\ No newline at end of file
diff --git a/classes/FileKeypair.html b/classes/FileKeypair.html
index b8fa273..5f274a0 100644
--- a/classes/FileKeypair.html
+++ b/classes/FileKeypair.html
@@ -1,3 +1,3 @@
FileKeypair | @project-serum/serum-dev-tools
\ No newline at end of file
diff --git a/interfaces/MarketAccounts.html b/interfaces/MarketAccounts.html
index c077d59..1483af3 100644
--- a/interfaces/MarketAccounts.html
+++ b/interfaces/MarketAccounts.html
@@ -1 +1 @@
-MarketAccounts | @project-serum/serum-dev-tools
\ No newline at end of file
diff --git a/modules.html b/modules.html
index 42d9e72..8c1d43e 100644
--- a/modules.html
+++ b/modules.html
@@ -1,11 +1,11 @@
-@project-serum/serum-dev-tools
- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsClass Coin
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
Private constructor
Parameters
symbol: string
decimals: number
mint: PublicKey
mintAuthority: Keypair
freezeAuthority: null | Keypair
Returns Coin
Properties
Private _decimals
Private _freeze Authority
Private _mint
Private _mint Authority
Private _symbol
Accessors
decimals
Returns number
freeze Authority
Returns null | Keypair
mint
Returns PublicKey
mint Authority
Returns Keypair
symbol
Returns string
Methods
fund Account
Fund the owner key-pair with the specified amount of this coin.
Parameters
decimalAmount: number
The amount of tokens to fund account with, in decimal notation.
@@ -6,17 +6,17 @@The
Keypair
to fund.connection: Connection
The
-Connection
object to connect to Solana.Returns Promise<void>
get Balance
Returns Promise<void>
get Balance
Get the token balance for the specified owner.
Parameters
owner: Keypair
The
Keypair
whose balance to fetch.connection: Connection
The
-Connection
object to connect to Solana.Returns Promise<RpcResponseAndContext<TokenAmount>>
is Equal
Returns Promise<RpcResponseAndContext<TokenAmount>>
is Equal
Equality check between two
Coin
s.Parameters
to: Coin
The
-Coin
object to compare to.Returns boolean
Static load
Returns boolean
Static load
Load an exisiting mint as a Coin.
Parameters
connection: Connection
The
diff --git a/classes/Dex.html b/classes/Dex.html index a9d9031..fe3107a 100644 --- a/classes/Dex.html +++ b/classes/Dex.html @@ -1,6 +1,6 @@Connection
object to connect to Solana.- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsClass Dex
Dex is a wrapper class for a deployed Serum Dex program.
-Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
address: PublicKey
connection: Connection
Returns Dex
Properties
Private _address
Private _coins
Private _connection
Private _markets
Accessors
address
Returns PublicKey
coins
Returns Coin[]
connection
Returns Connection
markets
Returns DexMarket[]
Methods
create Coin
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
address: PublicKey
connection: Connection
Returns Dex
Properties
Private _address
Private _coins
Private _connection
Private _markets
Accessors
address
Returns PublicKey
coins
Returns Coin[]
connection
Returns Connection
markets
Returns DexMarket[]
Methods
create Coin
Create a
Coin
object to be associated with theDex
.Parameters
symbol: string
The symbol of the coin to create
@@ -14,17 +14,17 @@The optionals freeze authority
Keypair
to use for the mintOptional keypair: Keypair
The optional keypair for the Mint to be created, defaults to a random one
-Returns Promise<Coin>
get Coin
Returns Promise<Coin>
get Coin
Fetch one of the
Coin
objects associated with theDex
by symbol.Parameters
symbol: string
The symbol of the coin to fetch
-Returns null | Coin
get Market
Returns null | Coin
get Market
Fetch a
DexMarket
object associated with theDex
by the base coin and quote coin.Parameters
baseCoin: Coin
The base
Coin
of the market to fetchquoteCoin: Coin
The quote
-Coin
of the market to fetchReturns null | DexMarket
init Dex Market
Returns null | DexMarket
init Dex Market
Initialize a
DexMarket
instance associated with theDex
.Parameters
payer: Keypair
The payer
@@ -34,7 +34,7 @@Keypair
to use for the transactionsThe quote
Coin
of the market to createmarketParams: MarketParams
The parameters required to create the market
-Returns Promise<DexMarket>
run Crank
Returns Promise<DexMarket>
run Crank
Runs a crank on a separate node process for the given
DexMarket
for specified duration.Parameters
market: DexMarket
The
@@ -42,7 +42,7 @@DexMarket
to run a crank forThe owner
FileKeypair
consuming events.opts: CrankOpts
The crank options used
-Returns ChildProcess
run Market Maker
Returns ChildProcess
run Market Maker
Runs a Market Making on a separate node process for
durationInSecs
seconds.Parameters
market: DexMarket
The
diff --git a/classes/DexMarket.html b/classes/DexMarket.html index 9560df7..9f656ae 100644 --- a/classes/DexMarket.html +++ b/classes/DexMarket.html @@ -1,6 +1,6 @@DexMarket
to run market maker on- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsClass DexMarket
A wrapper class around
-serum-ts
'sMarket
class.Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
Private constructor
Parameters
address: PublicKey
serumMarket: Market
baseCoin: Coin
quoteCoin: Coin
Returns DexMarket
Properties
Private _address
Private _base Coin
Private _market Symbol
Private _quote Coin
Private _serum Market
Accessors
address
Returns PublicKey
base Coin
Returns Coin
market Symbol
Returns string
quote Coin
Returns Coin
serum Market
Returns Market
Methods
Static cancel Order
Hierarchy
Index
Constructors
Properties
Accessors
Methods
Constructors
Private constructor
Parameters
address: PublicKey
serumMarket: Market
baseCoin: Coin
quoteCoin: Coin
Returns DexMarket
Properties
Private _address
Private _base Coin
Private _market Symbol
Private _quote Coin
Private _serum Market
Accessors
address
Returns PublicKey
base Coin
Returns Coin
market Symbol
Returns string
quote Coin
Returns Coin
serum Market
Returns Market
Methods
Static cancel Order
Cancel an order on the DexMarket.
Parameters
connection: Connection
The
@@ -10,7 +10,7 @@Connection
object to connect to Solana.The
Market
object fromserum-ts
package.order: Order
The
-Order
object to cancel.Returns Promise<string>
Static create Market Accounts Instructions
Returns Promise<string>
Static create Market Accounts Instructions
Create a
Transaction
object for creating the accounts required for a DexMarket.Parameters
accounts: MarketAccounts
The
@@ -20,7 +20,7 @@MarketAccounts
object containing the accounts needed for initializing the market.The
Connection
object to connect to Solana.programID: PublicKey
The address of the
-serum-dex
program deployed.Returns Promise<TransactionInstruction[]>
Static create Market Vaults Transaction
Returns Promise<TransactionInstruction[]>
Static create Market Vaults Transaction
Create a
Transaction
object for creating the vaults required for a DexMarket.Parameters
payer: Keypair
The
@@ -36,7 +36,7 @@Keypair
of the account that will pay for the transaction.The quote
Coin
object provided by theCoin
class.connection: Connection
The
-Connection
object to connect to Solana.Returns Promise<Transaction>
Static get Cancel Order Transaction
Returns Promise<Transaction>
Static get Cancel Order Transaction
Create a
Transaction
object for cancelling an order.Parameters
connection: Connection
The
@@ -46,7 +46,7 @@Connection
object to connect to Solana.The
Market
object fromserum-ts
package.order: Order
The
-Order
object to cancel.Returns Promise<TransactionWithSigners>
Static get Or Create Open Order Account
Returns Promise<TransactionWithSigners>
Static get Or Create Open Order Account
Get or create an OpenOrder account for the specified owner.
Parameters
owner: Keypair
The
@@ -54,7 +54,7 @@Keypair
for which OpenOrders account is required.The
Market
object fromserum-ts
package.connection: Connection
The
-Connection
object to connect to Solana.Returns Promise<OpenOrders>
Static get Orders For Owner
Returns Promise<OpenOrders>
Static get Orders For Owner
Get all orders placed by a keypair.
Parameters
owner: Keypair
The
@@ -62,7 +62,7 @@Keypair
for which orders have to be fetched.The
Market
object fromserum-ts
package.connection: Connection
The
-Connection
object to connect to Solana.Returns Promise<Order[]>
Static get Place Order Transaction
Returns Promise<Order[]>
Static get Place Order Transaction
Create a
Transaction
object for placing an order.Parameters
connection: Connection
The
@@ -80,7 +80,7 @@Connection
object to connect to Solana.The
price
of the order.Optional selfTradeBehaviour: SelfTradeBehaviour
The
-SelfTradeBehaviour
action to follow for the order placed.Returns Promise<TransactionWithSigners>
Static load
Returns Promise<TransactionWithSigners>
Static load
Load a
DexMarket
instance from a given market address.Parameters
connection: Connection
The
@@ -92,7 +92,7 @@Connection
object to connect to Solana.The base
Coin
object provided by theCoin
class.quoteCoin: Coin
The quote
-Coin
object provided by theCoin
class.Returns Promise<DexMarket>
Static place Order
Returns Promise<DexMarket>
Static place Order
Place an order on the DexMarket.
Parameters
connection: Connection
The
@@ -110,4 +110,4 @@Connection
object to connect to Solana.The
price
of the order.Optional selfTradeBehaviour: SelfTradeBehaviour
The
-SelfTradeBehaviour
action to follow for the order placed.Returns Promise<string>
Static sanity Check
Parameters
serumMarket: Market
price: number
size: number
Returns void
Generated using TypeDoc
Returns Promise<string>
Static sanity Check
Parameters
serumMarket: Market
price: number
size: number
Returns void
Generated using TypeDoc
- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsClass FileKeypair
A wrapper class around @solana/web3.js
-Keypair
that allows persisting key-pairs in your local filesystem.Hierarchy
Index
Constructors
Properties
Methods
Constructors
Private constructor
Parameters
absoluteFilePath: string
keypair: Keypair
Returns FileKeypair
Properties
absolute File Path
keypair
Methods
Static generate
Parameters
filePath: string
Returns FileKeypair
Static load
Parameters
filePath: string
Returns FileKeypair
Static load Or Generate
Parameters
filePath: string
Returns FileKeypair
Static with Keypair
Parameters
filePath: string
keypair: Keypair
Returns FileKeypair
Generated using TypeDoc
Hierarchy
Index
Constructors
Properties
Methods
Constructors
Private constructor
Parameters
absoluteFilePath: string
keypair: Keypair
Returns FileKeypair
Properties
absolute File Path
keypair
Methods
Static generate
Parameters
filePath: string
Returns FileKeypair
Static load
Parameters
filePath: string
Returns FileKeypair
Static load Or Generate
Parameters
filePath: string
Returns FileKeypair
Static with Keypair
Parameters
filePath: string
keypair: Keypair
Returns FileKeypair
Generated using TypeDoc
- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsInterface MarketAccounts
Hierarchy
Index
Properties
Properties
asks
bids
event Queue
market
request Queue
Generated using TypeDoc
- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsInterface MarketAccounts
Hierarchy
Index
Properties
Properties
asks
bids
event Queue
market
request Queue
Generated using TypeDoc
- Preparing search index...
- The search index is not available
@project-serum/serum-dev-tools@project-serum/serum-dev-tools
Index
Classes
Interfaces
Type aliases
Type aliases
Crank Opts
The duration in seconds for which the market maker will run.
+- Preparing search index...
- The search index is not available
@project-serum/serum-dev-tools@project-serum/serum-dev-tools
Index
Classes
Interfaces
Type aliases
Type aliases
Crank Opts
The duration in seconds for which the market maker will run.
The boolean flag determining whether to log about the actions taking place.
-Type declaration
duration In Secs: number
verbose: boolean
Market Maker Opts
The duration in seconds for which the market maker will run.
+Type declaration
duration In Secs: number
verbose: boolean
Market Maker Opts
The duration in seconds for which the market maker will run.
The number of orders to place per side in each iteration.
The initial bid size for the market maker.
The symbol used by CoinGecko for the base coin.
The symbol used by CoinGecko for the quote coin.
The boolean flag determining whether to log about the actions taking place.
-Type declaration
base Gecko Symbol: string
duration In Secs: number
initial Bid Size: number
order Count: number
quote Gecko Symbol: string
verbose: boolean
Market Params
This is the smallest representable amount of the base coin .
+Type declaration
base Gecko Symbol: string
duration In Secs: number
initial Bid Size: number
order Count: number
quote Gecko Symbol: string
verbose: boolean
Market Params
This is the smallest representable amount of the base coin .
This is the smallest representable amount of the quote coin.
-Type declaration
lot Size: number
tick Size: number
Message Type
Type declaration
action: "start"
args: any
Order Type
Self Trade Behaviour
Transaction With Signers
Type declaration
signers: Signer[]
transaction: Transaction
Generated using TypeDoc
Type declaration
lot Size: number
tick Size: number
Message Type
Type declaration
action: "start"
args: any
Order Type
Self Trade Behaviour
Transaction With Signers
Type declaration
signers: Signer[]
transaction: Transaction
Generated using TypeDoc