Constructors
constructor
- new Dex(address: PublicKey, connection: Connection): Dex
Parameters
address: PublicKey
connection: Connection
Returns Dex
Properties
address
address: PublicKey
connection
connection: Connection
Methods
createCoin
- createCoin(symbol: string, decimals: number, payer: Keypair, mintAuthority: Keypair, freezeAuthority: Keypair): Promise<Coin>
Parameters
symbol: string
decimals: number
payer: Keypair
mintAuthority: Keypair
freezeAuthority: Keypair
Returns Promise<Coin>
getCoin
- getCoin(symbol: string): Coin
initDexMarket
Parameters
payer: Keypair
baseCoin: Coin
quoteCoin: Coin
runMarketMaker
Parameters
Returns ChildProcess