@deriverse/kit 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/types.d.ts +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export declare const ASSOCIATED_TOKEN_PROGRAM_ID: Address<"ATokenGPvbdGVxr1b2hvZ
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function getPriceStep(price: number): number;
|
|
15
15
|
/**
|
|
16
|
-
* Main class to operate with
|
|
17
|
-
* @property {number} originalClientId
|
|
16
|
+
* Main class to operate with Deriverse
|
|
17
|
+
* @property {number} originalClientId Deriverse main client ID
|
|
18
18
|
* @property {AddressLookupTableAccount} lut Root address lookup table account
|
|
19
19
|
* @property {AddressLookupTableAccount} clientLut Client address lookup table account
|
|
20
20
|
* @property {Map<number, Token>} tokens Tokens data
|
|
@@ -62,13 +62,13 @@ export declare class Engine {
|
|
|
62
62
|
getSpotCandles(instrAccountHeaderModel: InstrAccountHeaderModel): Promise<IAccountMeta[]>;
|
|
63
63
|
getTokenAccount(mint: Address): Promise<Address>;
|
|
64
64
|
/**
|
|
65
|
-
* Get Token ID from mint public key if this token registered on
|
|
65
|
+
* Get Token ID from mint public key if this token registered on Deriverse
|
|
66
66
|
* @param mint Public key
|
|
67
67
|
* @returns Token ID
|
|
68
68
|
*/
|
|
69
69
|
getTokenId(mint: Address): Promise<number | null>;
|
|
70
70
|
/**
|
|
71
|
-
* Get intrument ID if this instrument registered on
|
|
71
|
+
* Get intrument ID if this instrument registered on Deriverse
|
|
72
72
|
* @param args Base crncy Token ID and asset token ID
|
|
73
73
|
* @returns Instrument ID
|
|
74
74
|
*/
|
package/dist/index.js
CHANGED
|
@@ -208,8 +208,8 @@ function getLookupTableAddress(authority, slot) {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
|
-
* Main class to operate with
|
|
212
|
-
* @property {number} originalClientId
|
|
211
|
+
* Main class to operate with Deriverse
|
|
212
|
+
* @property {number} originalClientId Deriverse main client ID
|
|
213
213
|
* @property {AddressLookupTableAccount} lut Root address lookup table account
|
|
214
214
|
* @property {AddressLookupTableAccount} clientLut Client address lookup table account
|
|
215
215
|
* @property {Map<number, Token>} tokens Tokens data
|
|
@@ -957,7 +957,7 @@ class Engine {
|
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
959
|
/**
|
|
960
|
-
* Get Token ID from mint public key if this token registered on
|
|
960
|
+
* Get Token ID from mint public key if this token registered on Deriverse
|
|
961
961
|
* @param mint Public key
|
|
962
962
|
* @returns Token ID
|
|
963
963
|
*/
|
|
@@ -975,7 +975,7 @@ class Engine {
|
|
|
975
975
|
});
|
|
976
976
|
}
|
|
977
977
|
/**
|
|
978
|
-
* Get intrument ID if this instrument registered on
|
|
978
|
+
* Get intrument ID if this instrument registered on Deriverse
|
|
979
979
|
* @param args Base crncy Token ID and asset token ID
|
|
980
980
|
* @returns Instrument ID
|
|
981
981
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -348,7 +348,7 @@ export interface PerpOrderCancelArgs {
|
|
|
348
348
|
}
|
|
349
349
|
/**
|
|
350
350
|
* Contains data for deposit function
|
|
351
|
-
* @property {number} tokenId
|
|
351
|
+
* @property {number} tokenId Deriverse SPL token registered ID
|
|
352
352
|
* @property {number} amount Amount to deposit
|
|
353
353
|
* @property {number} refId Referal Link ID for new account. Zero means no ref link
|
|
354
354
|
* @property {number} refId Referal Wallet
|
|
@@ -361,7 +361,7 @@ export interface DepositArgs {
|
|
|
361
361
|
}
|
|
362
362
|
/**
|
|
363
363
|
* Contains data about SPL tokens on main client account
|
|
364
|
-
* @property {number} tokenId
|
|
364
|
+
* @property {number} tokenId Deriverse SPL token registered ID
|
|
365
365
|
* @property {number} amount Amount of SPL tokens on main client account
|
|
366
366
|
*/
|
|
367
367
|
export interface ClientTokenData {
|
|
@@ -371,7 +371,7 @@ export interface ClientTokenData {
|
|
|
371
371
|
/**
|
|
372
372
|
* Contains data about Deriverse internal spot LP tokens on main client account
|
|
373
373
|
* @property {number} instrId Instrument ID
|
|
374
|
-
* @property {number} amount Amount of
|
|
374
|
+
* @property {number} amount Amount of Deriverse internal spot LP tokens on main client account
|
|
375
375
|
*/
|
|
376
376
|
export interface ClientLpData {
|
|
377
377
|
instrId: number;
|
|
@@ -445,7 +445,7 @@ export interface ClientRefProgramData {
|
|
|
445
445
|
* @property {number} lpTrades All-time lp trades
|
|
446
446
|
* @property {number} perpTrades All-time active perp trades
|
|
447
447
|
* @property {ClientTokenData[]} tokens Client tokens data
|
|
448
|
-
* @property {ClientLpData[]} lp Client data about
|
|
448
|
+
* @property {ClientLpData[]} lp Client data about Deriverse internal spot LP tokens
|
|
449
449
|
* @property {ClientSpotData[]} spot Client spot trading data
|
|
450
450
|
* @property {ClientPerpData[]} perp Client perp trading data
|
|
451
451
|
*/
|
|
@@ -467,7 +467,7 @@ export interface GetClientDataResponse {
|
|
|
467
467
|
}
|
|
468
468
|
/**
|
|
469
469
|
* Contains data for withdrawSplTokenInstruction function
|
|
470
|
-
* @property {number} tokenId
|
|
470
|
+
* @property {number} tokenId Deriverse token registered ID
|
|
471
471
|
* @property {number} amount Amount to withdraw
|
|
472
472
|
* @property {instrId[]} spot List of instruments ID to withdraw from client temporary instrument accounts
|
|
473
473
|
* client temporary derivative instrument accounts
|
|
@@ -500,8 +500,8 @@ export interface PerpForcedCloseArgs {
|
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
* Contains data for getInstrId function
|
|
503
|
-
* @property {number} assetTokenId Asset
|
|
504
|
-
* @property {number} baseCrncyTokenId Base currency
|
|
503
|
+
* @property {number} assetTokenId Asset Deriverse token registered ID
|
|
504
|
+
* @property {number} baseCrncyTokenId Base currency Deriverse token registered ID
|
|
505
505
|
*/
|
|
506
506
|
export interface GetInstrIdArgs {
|
|
507
507
|
assetTokenId: number;
|