\ No newline at end of file
diff --git a/classes/FileKeypair.html b/classes/FileKeypair.html
index ea73730..01d71a5 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/index.html b/index.html
index a7c49fe..669e3bb 100644
--- a/index.html
+++ b/index.html
@@ -8,7 +8,7 @@
Prerequisites
You will need to use the FileKeypair class that extends the Keypair class from @solana/web3.js to provide easy file-based keypair management, which is required for the market making features provided by this package.
\ No newline at end of file
diff --git a/interfaces/MarketAccounts.html b/interfaces/MarketAccounts.html
index 19427a1..f5365a1 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 9b8b5fe..3b6cc1b 100644
--- a/modules.html
+++ b/modules.html
@@ -1,8 +1,8 @@
-@project-serum/serum-dev-tools
- Preparing search index...
- The search index is not available
@project-serum/serum-dev-toolsClass Coin
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
symbol: string
decimals: number
mint: PublicKey
mintAuthority: Keypair
freezeAuthority: Keypair
Returns Coin
Properties
decimals
freeze Authority
mint
mint Authority
symbol
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,7 +6,7 @@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
diff --git a/classes/Dex.html b/classes/Dex.html index 583146f..1ceaf23 100644 --- a/classes/Dex.html +++ b/classes/Dex.html @@ -1,6 +1,6 @@Keypair
whose balance to fetch.- 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
Methods
Constructors
constructor
Parameters
address: PublicKey
connection: Connection
Returns Dex
Properties
address
coins
connection
markets
Methods
create Coin
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
address: PublicKey
connection: Connection
Returns Dex
Properties
address
coins
connection
markets
Methods
create Coin
Create a
Coin
object to be associated with theDex
.Parameters
symbol: string
The symbol of the coin to create
@@ -12,17 +12,17 @@The mint authority
Keypair
to use for the mintfreezeAuthority: Keypair
The freeze authority
-Keypair
to use for the mintReturns 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 Coin
get Market
Returns 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 DexMarket
init Dex Market
Returns DexMarket
init Dex Market
Initialize a
DexMarket
instance associated with theDex
.Parameters
payer: Keypair
The payer
@@ -32,7 +32,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 Market Maker
Returns Promise<DexMarket>
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 0144936..c61027c 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
@@ -78,7 +78,7 @@Connection
object to connect to Solana.The
size
of the order.price: number
The
-price
of the order.Returns Promise<TransactionWithSigners>
Static load
Returns Promise<TransactionWithSigners>
Static load
Load a
DexMarket
instance from a given market address.Parameters
connection: Connection
The
@@ -90,7 +90,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
@@ -106,4 +106,4 @@Connection
object to connect to Solana.The
size
of the order.price: number
The
-price
of the order.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
filePath: string
keypair: Keypair
Returns FileKeypair
Properties
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
filePath: string
keypair: Keypair
Returns FileKeypair
Properties
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
Prerequisites
You will need to use the
-FileKeypair
class that extends theKeypair
class from@solana/web3.js
to provide easy file-based keypair management, which is required for the market making features provided by this package.