@cetusprotocol/aggregator-sdk 0.0.0-experimental-20241018181235 → 0.0.0-experimental-20241018200510
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.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/api.d.ts +5 -1
- package/package.json +1 -1
- package/src/api.ts +5 -1
- package/src/transaction/deepbook_v3.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -241,10 +241,14 @@ declare function getRouterResult(endpoint: string, params: FindRouterParams): Pr
|
|
|
241
241
|
type DeepbookV3Config = {
|
|
242
242
|
id: string;
|
|
243
243
|
is_alternative_payment: boolean;
|
|
244
|
+
alternative_payment_amount: number;
|
|
245
|
+
trade_cap: string;
|
|
246
|
+
balance_manager: string;
|
|
244
247
|
deep_fee_vault: number;
|
|
245
248
|
whitelist: number;
|
|
246
|
-
|
|
249
|
+
package_version: 0;
|
|
247
250
|
last_updated_time: number;
|
|
251
|
+
whitelist_pools: string[];
|
|
248
252
|
};
|
|
249
253
|
type DeepbookV3ConfigResponse = {
|
|
250
254
|
code: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -241,10 +241,14 @@ declare function getRouterResult(endpoint: string, params: FindRouterParams): Pr
|
|
|
241
241
|
type DeepbookV3Config = {
|
|
242
242
|
id: string;
|
|
243
243
|
is_alternative_payment: boolean;
|
|
244
|
+
alternative_payment_amount: number;
|
|
245
|
+
trade_cap: string;
|
|
246
|
+
balance_manager: string;
|
|
244
247
|
deep_fee_vault: number;
|
|
245
248
|
whitelist: number;
|
|
246
|
-
|
|
249
|
+
package_version: 0;
|
|
247
250
|
last_updated_time: number;
|
|
251
|
+
whitelist_pools: string[];
|
|
248
252
|
};
|
|
249
253
|
type DeepbookV3ConfigResponse = {
|
|
250
254
|
code: number;
|
package/dist/index.js
CHANGED
|
@@ -6008,7 +6008,7 @@ var Bluemove = class {
|
|
|
6008
6008
|
// src/transaction/deepbook_v3.ts
|
|
6009
6009
|
var DeepbookV3 = class {
|
|
6010
6010
|
constructor(env) {
|
|
6011
|
-
this.deepbookV3Config = env === 0 /* Mainnet */ ? "
|
|
6011
|
+
this.deepbookV3Config = env === 0 /* Mainnet */ ? "0xa0c3e61f2f57045942f498cdc38c6347bd2e09e04a85ac33b866b84de5b5b141" : "0xe19b5d072346cae83a037d4e3c8492068a74410a74e5830b3a68012db38296aa";
|
|
6012
6012
|
this.deepCoinType = env === 0 /* Mainnet */ ? "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP" : "0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP";
|
|
6013
6013
|
}
|
|
6014
6014
|
swap(client, txb, path, inputCoin, deepbookv3DeepFee) {
|
package/dist/index.mjs
CHANGED
|
@@ -6006,7 +6006,7 @@ var Bluemove = class {
|
|
|
6006
6006
|
// src/transaction/deepbook_v3.ts
|
|
6007
6007
|
var DeepbookV3 = class {
|
|
6008
6008
|
constructor(env) {
|
|
6009
|
-
this.deepbookV3Config = env === 0 /* Mainnet */ ? "
|
|
6009
|
+
this.deepbookV3Config = env === 0 /* Mainnet */ ? "0xa0c3e61f2f57045942f498cdc38c6347bd2e09e04a85ac33b866b84de5b5b141" : "0xe19b5d072346cae83a037d4e3c8492068a74410a74e5830b3a68012db38296aa";
|
|
6010
6010
|
this.deepCoinType = env === 0 /* Mainnet */ ? "0xdeeb7a4662eec9f2f3def03fb937a663dddaa2e215b8078a284d026b7946c270::deep::DEEP" : "0x36dbef866a1d62bf7328989a10fb2f07d769f4ee587c0de4a0a256e57e0a58a8::deep::DEEP";
|
|
6011
6011
|
}
|
|
6012
6012
|
swap(client, txb, path, inputCoin, deepbookv3DeepFee) {
|
package/dist/src/api.d.ts
CHANGED
|
@@ -64,10 +64,14 @@ export declare function getRouterResult(endpoint: string, params: FindRouterPara
|
|
|
64
64
|
export type DeepbookV3Config = {
|
|
65
65
|
id: string;
|
|
66
66
|
is_alternative_payment: boolean;
|
|
67
|
+
alternative_payment_amount: number;
|
|
68
|
+
trade_cap: string;
|
|
69
|
+
balance_manager: string;
|
|
67
70
|
deep_fee_vault: number;
|
|
68
71
|
whitelist: number;
|
|
69
|
-
|
|
72
|
+
package_version: 0;
|
|
70
73
|
last_updated_time: number;
|
|
74
|
+
whitelist_pools: string[];
|
|
71
75
|
};
|
|
72
76
|
export type DeepbookV3ConfigResponse = {
|
|
73
77
|
code: number;
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -235,11 +235,15 @@ async function postRouterWithLiquidityChanges(
|
|
|
235
235
|
export type DeepbookV3Config = {
|
|
236
236
|
id: string
|
|
237
237
|
is_alternative_payment: boolean
|
|
238
|
+
alternative_payment_amount: number
|
|
239
|
+
trade_cap: string
|
|
240
|
+
balance_manager: string
|
|
238
241
|
deep_fee_vault: number
|
|
239
242
|
whitelist: number
|
|
240
|
-
|
|
243
|
+
package_version: 0
|
|
241
244
|
// unix timestamp in seconds
|
|
242
245
|
last_updated_time: number
|
|
246
|
+
whitelist_pools: string[]
|
|
243
247
|
}
|
|
244
248
|
|
|
245
249
|
export type DeepbookV3ConfigResponse = {
|
|
@@ -19,7 +19,7 @@ export class DeepbookV3 implements Dex {
|
|
|
19
19
|
constructor(env: Env) {
|
|
20
20
|
this.deepbookV3Config =
|
|
21
21
|
env === Env.Mainnet
|
|
22
|
-
? "
|
|
22
|
+
? "0xa0c3e61f2f57045942f498cdc38c6347bd2e09e04a85ac33b866b84de5b5b141"
|
|
23
23
|
: "0xe19b5d072346cae83a037d4e3c8492068a74410a74e5830b3a68012db38296aa"
|
|
24
24
|
this.deepCoinType =
|
|
25
25
|
env === Env.Mainnet
|