@1stdex/first-sdk 1.0.21 → 1.0.23
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/cjs/calls/batch/prepare-market-order-with-setup.js +2 -9
- package/dist/cjs/calls/batch/prepare-market-order-with-setup.js.map +1 -1
- package/dist/cjs/calls/batch/prepare-order-with-setup.js +2 -9
- package/dist/cjs/calls/batch/prepare-order-with-setup.js.map +1 -1
- package/dist/cjs/calls/market/cancel.js +0 -1
- package/dist/cjs/calls/market/cancel.js.map +1 -1
- package/dist/cjs/calls/market/claim.js +0 -1
- package/dist/cjs/calls/market/claim.js.map +1 -1
- package/dist/cjs/calls/market/limit.js +0 -2
- package/dist/cjs/calls/market/limit.js.map +1 -1
- package/dist/cjs/calls/market/make.js +0 -6
- package/dist/cjs/calls/market/make.js.map +1 -1
- package/dist/cjs/calls/market/market.js +5 -10
- package/dist/cjs/calls/market/market.js.map +1 -1
- package/dist/cjs/constants/abis/core/book-manager-abi.js +12 -7
- package/dist/cjs/constants/abis/core/book-manager-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/book-viewer-abi.js +141 -199
- package/dist/cjs/constants/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/claimable-dex-vault.js +46 -0
- package/dist/cjs/constants/abis/core/claimable-dex-vault.js.map +1 -1
- package/dist/cjs/constants/abis/core/controller-abi.js +94 -101
- package/dist/cjs/constants/abis/core/controller-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/dex-vault-abi.js +1 -1
- package/dist/cjs/constants/abis/core/dex-vault-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/mirror-token-abi.js +901 -6
- package/dist/cjs/constants/abis/core/mirror-token-abi.js.map +1 -1
- package/dist/cjs/constants/abis/core/params-abi.js +11 -38
- package/dist/cjs/constants/abis/core/params-abi.js.map +1 -1
- package/dist/cjs/constants/chain-configs/addresses.js +3 -3
- package/dist/cjs/constants/chain-configs/currency.js +1 -1
- package/dist/cjs/views/setup.js +8 -0
- package/dist/cjs/views/setup.js.map +1 -1
- package/dist/esm/calls/batch/prepare-market-order-with-setup.js +4 -10
- package/dist/esm/calls/batch/prepare-market-order-with-setup.js.map +1 -1
- package/dist/esm/calls/batch/prepare-order-with-setup.js +4 -10
- package/dist/esm/calls/batch/prepare-order-with-setup.js.map +1 -1
- package/dist/esm/calls/market/cancel.js +0 -1
- package/dist/esm/calls/market/cancel.js.map +1 -1
- package/dist/esm/calls/market/claim.js +0 -1
- package/dist/esm/calls/market/claim.js.map +1 -1
- package/dist/esm/calls/market/limit.js +0 -3
- package/dist/esm/calls/market/limit.js.map +1 -1
- package/dist/esm/calls/market/make.js +0 -6
- package/dist/esm/calls/market/make.js.map +1 -1
- package/dist/esm/calls/market/market.js +6 -12
- package/dist/esm/calls/market/market.js.map +1 -1
- package/dist/esm/constants/abis/core/book-manager-abi.js +12 -7
- package/dist/esm/constants/abis/core/book-manager-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/book-viewer-abi.js +141 -199
- package/dist/esm/constants/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/claimable-dex-vault.js +46 -0
- package/dist/esm/constants/abis/core/claimable-dex-vault.js.map +1 -1
- package/dist/esm/constants/abis/core/controller-abi.js +94 -101
- package/dist/esm/constants/abis/core/controller-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/dex-vault-abi.js +1 -1
- package/dist/esm/constants/abis/core/dex-vault-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/mirror-token-abi.js +901 -6
- package/dist/esm/constants/abis/core/mirror-token-abi.js.map +1 -1
- package/dist/esm/constants/abis/core/params-abi.js +11 -38
- package/dist/esm/constants/abis/core/params-abi.js.map +1 -1
- package/dist/esm/constants/chain-configs/addresses.js +3 -3
- package/dist/esm/constants/chain-configs/currency.js +1 -1
- package/dist/esm/views/setup.js +8 -0
- package/dist/esm/views/setup.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/calls/batch/prepare-market-order-with-setup.d.ts.map +1 -1
- package/dist/types/calls/batch/prepare-order-with-setup.d.ts.map +1 -1
- package/dist/types/calls/market/cancel.d.ts.map +1 -1
- package/dist/types/calls/market/claim.d.ts.map +1 -1
- package/dist/types/calls/market/limit.d.ts +1 -3
- package/dist/types/calls/market/limit.d.ts.map +1 -1
- package/dist/types/calls/market/make.d.ts.map +1 -1
- package/dist/types/calls/market/market.d.ts +2 -4
- package/dist/types/calls/market/market.d.ts.map +1 -1
- package/dist/types/constants/abis/core/book-manager-abi.d.ts +32 -15
- package/dist/types/constants/abis/core/book-manager-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/book-viewer-abi.d.ts +170 -68
- package/dist/types/constants/abis/core/book-viewer-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/claimable-dex-vault.d.ts +83 -0
- package/dist/types/constants/abis/core/claimable-dex-vault.d.ts.map +1 -1
- package/dist/types/constants/abis/core/controller-abi.d.ts +130 -164
- package/dist/types/constants/abis/core/controller-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/dex-vault-abi.d.ts +1 -1
- package/dist/types/constants/abis/core/mirror-token-abi.d.ts +1252 -16
- package/dist/types/constants/abis/core/mirror-token-abi.d.ts.map +1 -1
- package/dist/types/constants/abis/core/params-abi.d.ts.map +1 -1
- package/dist/types/views/setup.d.ts +1 -0
- package/dist/types/views/setup.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-market-order-with-setup.d.ts","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-market-order-with-setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-market-order-with-setup.d.ts","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-market-order-with-setup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAOhE,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,2BAA2B,qFAQrC;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;QACzB,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;QACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B,GAAG,2BAA2B,CAAC;CACjC,KAAG,QAAQ,SAAS,EAAE,CAiItB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-order-with-setup.d.ts","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-order-with-setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-order-with-setup.d.ts","sourceRoot":"","sources":["../../../../src/calls/batch/prepare-order-with-setup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAOhE,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,KAAK,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,KAAK,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6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D/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../../src/calls/market/claim.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,2BAA2B,EAE3B,WAAW,EACZ,MAAM,aAAa,CAAC;AAYrB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU,2CAKpB;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,2BAA2B,GAAG;QACtC,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;CACH,KAAG,QAAQ;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,CAW7D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,4CAKrB;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,OAAO,CAAC,EAAE,2BAA2B,GAAG;QACtC,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;CACH,KAAG,QAAQ;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,YAAY,EAAE,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../../src/calls/market/claim.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,2BAA2B,EAE3B,WAAW,EACZ,MAAM,aAAa,CAAC;AAYrB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU,2CAKpB;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,2BAA2B,GAAG;QACtC,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;CACH,KAAG,QAAQ;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,YAAY,CAAA;CAAE,CAW7D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,4CAKrB;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,OAAO,CAAC,EAAE,2BAA2B,GAAG;QACtC,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;CACH,KAAG,QAAQ;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,YAAY,EAAE,CAAA;CAAE,CA0D/D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CHAIN_IDS } from '../../constants/chain-configs/chain';
|
|
2
|
-
import { CurrencyFlow, DefaultWriteContractOptions,
|
|
2
|
+
import { CurrencyFlow, DefaultWriteContractOptions, Transaction } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Places a limit order on the specified chain for trading tokens.
|
|
5
5
|
*
|
|
@@ -10,7 +10,6 @@ import { CurrencyFlow, DefaultWriteContractOptions, ERC20PermitParam, Transactio
|
|
|
10
10
|
* @param {string} amount The amount of input tokens for the order.
|
|
11
11
|
* @param {string} price The price at which the order should be executed.
|
|
12
12
|
* @param options {@link DefaultWriteContractOptions} options.
|
|
13
|
-
* @param {erc20PermitParam} [options.erc20PermitParam] The permit signature for token approval.
|
|
14
13
|
* @param {boolean} [options.postOnly] A boolean indicating whether the order is only to be made not taken.
|
|
15
14
|
* @param {bigint} [options.makeTick] The tick for the make order.
|
|
16
15
|
* @param {bigint} [options.takeLimitTick] The tick for the take order.
|
|
@@ -53,7 +52,6 @@ export declare const limitOrder: ({ chainId, userAddress, inputToken, outputToke
|
|
|
53
52
|
amount: string;
|
|
54
53
|
price: string;
|
|
55
54
|
options?: {
|
|
56
|
-
erc20PermitParam?: ERC20PermitParam;
|
|
57
55
|
postOnly?: boolean;
|
|
58
56
|
makeTick?: bigint;
|
|
59
57
|
takeLimitTick?: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limit.d.ts","sourceRoot":"","sources":["../../../../src/calls/market/limit.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"limit.d.ts","sourceRoot":"","sources":["../../../../src/calls/market/limit.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,WAAW,EACZ,MAAM,aAAa,CAAC;AAWrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,UAAU,+EAQpB;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACR,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC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AuB,qGASjC;IACD,OAAO,EAAE,SAAS,CAAC;IACnB,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;IAC3B,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/C,SAAS,EAAE,KAAK,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,KAAK,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;QAC5B,YAAY,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;QAC7B,QAAQ,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;QACzB,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;KAC5B,GAAG,2BAA2B,CAAC;CACjC,KAAG,QAAQ,WAAW,CAkLtB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CHAIN_IDS } from '../../constants/chain-configs/chain';
|
|
2
|
-
import { CurrencyFlow, DefaultWriteContractOptions,
|
|
2
|
+
import { CurrencyFlow, DefaultWriteContractOptions, Transaction } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Executes a market order on the specified chain for trading tokens.
|
|
5
5
|
* If only `amountIn` is provided, spend the specified amount of input tokens.
|
|
@@ -12,7 +12,6 @@ import { CurrencyFlow, DefaultWriteContractOptions, ERC20PermitParam, Transactio
|
|
|
12
12
|
* @param {string} amountIn The amount of input tokens for the order to spend.
|
|
13
13
|
* @param {string} amountOut The amount of output tokens for the order to take.
|
|
14
14
|
* @param options {@link DefaultWriteContractOptions} options.
|
|
15
|
-
* @param {erc20PermitParam} [options.erc20PermitParam] The permit signature for token approval.
|
|
16
15
|
* @param {number} [options.slippage] The maximum slippage percentage allowed for the order.
|
|
17
16
|
* @param {boolean} [options.roundingDownTakenBid] A boolean indicating whether to round down the taken bid.
|
|
18
17
|
* @param {boolean} [options.roundingUpTakenAsk] A boolean indicating whether to round up the taken ask.
|
|
@@ -29,7 +28,7 @@ import { CurrencyFlow, DefaultWriteContractOptions, ERC20PermitParam, Transactio
|
|
|
29
28
|
* inputToken: '0x00bfd44e79fb7f6dd5887a9426c8ef85a0cd23e0',
|
|
30
29
|
* outputToken: '0x0000000000000000000000000000000000000000',
|
|
31
30
|
* amount: '100.123', // 100.123 USDC
|
|
32
|
-
* options: {
|
|
31
|
+
* options: { }
|
|
33
32
|
* })
|
|
34
33
|
*
|
|
35
34
|
*/
|
|
@@ -43,7 +42,6 @@ export declare const marketOrder: ({ chainId, userAddress, inputToken, outputTok
|
|
|
43
42
|
options?: {
|
|
44
43
|
provider?: `0x${string}`;
|
|
45
44
|
referrer?: `0x${string}`;
|
|
46
|
-
erc20PermitParam?: ERC20PermitParam;
|
|
47
45
|
slippage?: number;
|
|
48
46
|
roundingDownTakenBid?: boolean;
|
|
49
47
|
roundingUpTakenAsk?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../../../src/calls/market/market.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../../../src/calls/market/market.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAa,MAAM,qCAAqC,CAAC;AAC3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|
-
readonly name: "_owner";
|
|
5
|
-
readonly type: "address";
|
|
6
|
-
}, {
|
|
7
3
|
readonly internalType: "address";
|
|
8
4
|
readonly name: "_defaultReferrer";
|
|
9
5
|
readonly type: "address";
|
|
@@ -42,6 +38,10 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
42
38
|
readonly inputs: readonly [];
|
|
43
39
|
readonly name: "BookPausedError";
|
|
44
40
|
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "CallerMustBeLocker";
|
|
44
|
+
readonly type: "error";
|
|
45
45
|
}, {
|
|
46
46
|
readonly inputs: readonly [];
|
|
47
47
|
readonly name: "CurrencyNotSettled";
|
|
@@ -90,6 +90,10 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
90
90
|
}];
|
|
91
91
|
readonly name: "LockedBy";
|
|
92
92
|
readonly type: "error";
|
|
93
|
+
}, {
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly name: "LockerNotAuthorized";
|
|
96
|
+
readonly type: "error";
|
|
93
97
|
}, {
|
|
94
98
|
readonly inputs: readonly [{
|
|
95
99
|
readonly internalType: "OrderId";
|
|
@@ -118,6 +122,10 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
118
122
|
}];
|
|
119
123
|
readonly name: "OrderNotAuthorized";
|
|
120
124
|
readonly type: "error";
|
|
125
|
+
}, {
|
|
126
|
+
readonly inputs: readonly [];
|
|
127
|
+
readonly name: "OrderNotFoundAtIndex";
|
|
128
|
+
readonly type: "error";
|
|
121
129
|
}, {
|
|
122
130
|
readonly inputs: readonly [{
|
|
123
131
|
readonly internalType: "address";
|
|
@@ -138,6 +146,22 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
138
146
|
readonly inputs: readonly [];
|
|
139
147
|
readonly name: "OwnerCannotBeZero";
|
|
140
148
|
readonly type: "error";
|
|
149
|
+
}, {
|
|
150
|
+
readonly inputs: readonly [];
|
|
151
|
+
readonly name: "ProviderAlreadyWhitelisted";
|
|
152
|
+
readonly type: "error";
|
|
153
|
+
}, {
|
|
154
|
+
readonly inputs: readonly [];
|
|
155
|
+
readonly name: "ProviderNotWhitelisted";
|
|
156
|
+
readonly type: "error";
|
|
157
|
+
}, {
|
|
158
|
+
readonly inputs: readonly [{
|
|
159
|
+
readonly internalType: "address";
|
|
160
|
+
readonly name: "token";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
}];
|
|
163
|
+
readonly name: "SafeERC20FailedOperation";
|
|
164
|
+
readonly type: "error";
|
|
141
165
|
}, {
|
|
142
166
|
readonly inputs: readonly [];
|
|
143
167
|
readonly name: "Unauthorized";
|
|
@@ -170,6 +194,10 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
170
194
|
readonly inputs: readonly [];
|
|
171
195
|
readonly name: "VaultCannotBeZero";
|
|
172
196
|
readonly type: "error";
|
|
197
|
+
}, {
|
|
198
|
+
readonly inputs: readonly [];
|
|
199
|
+
readonly name: "VaultDoesNotExist";
|
|
200
|
+
readonly type: "error";
|
|
173
201
|
}, {
|
|
174
202
|
readonly anonymous: false;
|
|
175
203
|
readonly inputs: readonly [{
|
|
@@ -691,10 +719,6 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
691
719
|
readonly internalType: "uint64";
|
|
692
720
|
readonly name: "toUnit";
|
|
693
721
|
readonly type: "uint64";
|
|
694
|
-
}, {
|
|
695
|
-
readonly internalType: "address";
|
|
696
|
-
readonly name: "owner";
|
|
697
|
-
readonly type: "address";
|
|
698
722
|
}];
|
|
699
723
|
readonly internalType: "struct IBookManager.CancelParams";
|
|
700
724
|
readonly name: "params";
|
|
@@ -714,10 +738,6 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
714
738
|
readonly internalType: "OrderId";
|
|
715
739
|
readonly name: "id";
|
|
716
740
|
readonly type: "uint256";
|
|
717
|
-
}, {
|
|
718
|
-
readonly internalType: "address";
|
|
719
|
-
readonly name: "owner";
|
|
720
|
-
readonly type: "address";
|
|
721
741
|
}];
|
|
722
742
|
readonly internalType: "struct IBookManager.ClaimParams";
|
|
723
743
|
readonly name: "params";
|
|
@@ -1681,8 +1701,5 @@ export declare const BOOK_MANAGER_ABI: readonly [{
|
|
|
1681
1701
|
readonly outputs: readonly [];
|
|
1682
1702
|
readonly stateMutability: "nonpayable";
|
|
1683
1703
|
readonly type: "function";
|
|
1684
|
-
}, {
|
|
1685
|
-
readonly stateMutability: "payable";
|
|
1686
|
-
readonly type: "receive";
|
|
1687
1704
|
}];
|
|
1688
1705
|
//# sourceMappingURL=book-manager-abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"book-manager-abi.d.ts","sourceRoot":"","sources":["../../../../../src/constants/abis/core/book-manager-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"book-manager-abi.d.ts","sourceRoot":"","sources":["../../../../../src/constants/abis/core/book-manager-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+uCnB,CAAC"}
|
|
@@ -1,4 +1,94 @@
|
|
|
1
1
|
export declare const BOOK_VIEWER_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "contract IBookManager";
|
|
4
|
+
readonly name: "bookManager_";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly stateMutability: "nonpayable";
|
|
8
|
+
readonly type: "constructor";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [{
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "target";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly name: "AddressEmptyCode";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "implementation";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "ERC1967NonPayable";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly name: "FailedCall";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "InvalidInitialization";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "InvalidTick";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "NotInitializing";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly internalType: "address";
|
|
48
|
+
readonly name: "owner";
|
|
49
|
+
readonly type: "address";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "OwnableInvalidOwner";
|
|
52
|
+
readonly type: "error";
|
|
53
|
+
}, {
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "account";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
60
|
+
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
readonly name: "value";
|
|
65
|
+
readonly type: "uint256";
|
|
66
|
+
}];
|
|
67
|
+
readonly name: "SafeCastOverflowedUintToInt";
|
|
68
|
+
readonly type: "error";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [];
|
|
71
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
72
|
+
readonly type: "error";
|
|
73
|
+
}, {
|
|
74
|
+
readonly inputs: readonly [{
|
|
75
|
+
readonly internalType: "bytes32";
|
|
76
|
+
readonly name: "slot";
|
|
77
|
+
readonly type: "bytes32";
|
|
78
|
+
}];
|
|
79
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
80
|
+
readonly type: "error";
|
|
81
|
+
}, {
|
|
82
|
+
readonly anonymous: false;
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly indexed: false;
|
|
85
|
+
readonly internalType: "uint64";
|
|
86
|
+
readonly name: "version";
|
|
87
|
+
readonly type: "uint64";
|
|
88
|
+
}];
|
|
89
|
+
readonly name: "Initialized";
|
|
90
|
+
readonly type: "event";
|
|
91
|
+
}, {
|
|
2
92
|
readonly anonymous: false;
|
|
3
93
|
readonly inputs: readonly [{
|
|
4
94
|
readonly indexed: true;
|
|
@@ -11,99 +101,59 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
11
101
|
readonly name: "newOwner";
|
|
12
102
|
readonly type: "address";
|
|
13
103
|
}];
|
|
14
|
-
readonly name: "
|
|
104
|
+
readonly name: "OwnershipTransferStarted";
|
|
15
105
|
readonly type: "event";
|
|
16
106
|
}, {
|
|
17
107
|
readonly anonymous: false;
|
|
18
108
|
readonly inputs: readonly [{
|
|
19
109
|
readonly indexed: true;
|
|
20
110
|
readonly internalType: "address";
|
|
21
|
-
readonly name: "
|
|
111
|
+
readonly name: "previousOwner";
|
|
22
112
|
readonly type: "address";
|
|
23
113
|
}, {
|
|
24
114
|
readonly indexed: true;
|
|
25
115
|
readonly internalType: "address";
|
|
26
|
-
readonly name: "
|
|
116
|
+
readonly name: "newOwner";
|
|
27
117
|
readonly type: "address";
|
|
28
118
|
}];
|
|
29
|
-
readonly name: "
|
|
119
|
+
readonly name: "OwnershipTransferred";
|
|
30
120
|
readonly type: "event";
|
|
31
121
|
}, {
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
|
|
35
|
-
readonly inputs: readonly [];
|
|
36
|
-
readonly name: "owner";
|
|
37
|
-
readonly outputs: readonly [{
|
|
122
|
+
readonly anonymous: false;
|
|
123
|
+
readonly inputs: readonly [{
|
|
124
|
+
readonly indexed: true;
|
|
38
125
|
readonly internalType: "address";
|
|
39
|
-
readonly name: "";
|
|
126
|
+
readonly name: "implementation";
|
|
40
127
|
readonly type: "address";
|
|
41
128
|
}];
|
|
42
|
-
readonly
|
|
43
|
-
readonly type: "
|
|
129
|
+
readonly name: "Upgraded";
|
|
130
|
+
readonly type: "event";
|
|
44
131
|
}, {
|
|
45
|
-
readonly inputs: readonly [
|
|
46
|
-
|
|
47
|
-
readonly name: "id";
|
|
48
|
-
readonly type: "bytes4";
|
|
49
|
-
}];
|
|
50
|
-
readonly name: "supportsInterface";
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
51
134
|
readonly outputs: readonly [{
|
|
52
|
-
readonly internalType: "
|
|
135
|
+
readonly internalType: "string";
|
|
53
136
|
readonly name: "";
|
|
54
|
-
readonly type: "
|
|
137
|
+
readonly type: "string";
|
|
55
138
|
}];
|
|
56
139
|
readonly stateMutability: "view";
|
|
57
140
|
readonly type: "function";
|
|
58
141
|
}, {
|
|
59
142
|
readonly inputs: readonly [{
|
|
60
143
|
readonly internalType: "address";
|
|
61
|
-
readonly name: "
|
|
144
|
+
readonly name: "owner";
|
|
62
145
|
readonly type: "address";
|
|
63
146
|
}];
|
|
64
|
-
readonly name: "
|
|
147
|
+
readonly name: "__BookViewer_init";
|
|
65
148
|
readonly outputs: readonly [];
|
|
66
149
|
readonly stateMutability: "nonpayable";
|
|
67
150
|
readonly type: "function";
|
|
68
151
|
}, {
|
|
69
|
-
readonly inputs: readonly [
|
|
70
|
-
|
|
71
|
-
readonly name: "newImplementation";
|
|
72
|
-
readonly type: "address";
|
|
73
|
-
}];
|
|
74
|
-
readonly name: "upgradeTo";
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly name: "acceptOwnership";
|
|
75
154
|
readonly outputs: readonly [];
|
|
76
155
|
readonly stateMutability: "nonpayable";
|
|
77
156
|
readonly type: "function";
|
|
78
|
-
}, {
|
|
79
|
-
readonly inputs: readonly [{
|
|
80
|
-
readonly internalType: "address";
|
|
81
|
-
readonly name: "newImplementation";
|
|
82
|
-
readonly type: "address";
|
|
83
|
-
}, {
|
|
84
|
-
readonly internalType: "bytes";
|
|
85
|
-
readonly name: "data";
|
|
86
|
-
readonly type: "bytes";
|
|
87
|
-
}];
|
|
88
|
-
readonly name: "upgradeToAndCall";
|
|
89
|
-
readonly outputs: readonly [];
|
|
90
|
-
readonly stateMutability: "payable";
|
|
91
|
-
readonly type: "function";
|
|
92
|
-
}, {
|
|
93
|
-
readonly stateMutability: "payable";
|
|
94
|
-
readonly type: "receive";
|
|
95
|
-
}, {
|
|
96
|
-
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "InvalidTick";
|
|
98
|
-
readonly type: "error";
|
|
99
|
-
}, {
|
|
100
|
-
readonly inputs: readonly [{
|
|
101
|
-
readonly internalType: "uint256";
|
|
102
|
-
readonly name: "value";
|
|
103
|
-
readonly type: "uint256";
|
|
104
|
-
}];
|
|
105
|
-
readonly name: "SafeCastOverflowedUintToInt";
|
|
106
|
-
readonly type: "error";
|
|
107
157
|
}, {
|
|
108
158
|
readonly inputs: readonly [];
|
|
109
159
|
readonly name: "bookManager";
|
|
@@ -133,9 +183,13 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
133
183
|
readonly name: "maxBaseAmount";
|
|
134
184
|
readonly type: "uint256";
|
|
135
185
|
}, {
|
|
136
|
-
readonly internalType: "
|
|
137
|
-
readonly name: "
|
|
138
|
-
readonly type: "
|
|
186
|
+
readonly internalType: "address";
|
|
187
|
+
readonly name: "provider";
|
|
188
|
+
readonly type: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly internalType: "address";
|
|
191
|
+
readonly name: "referrer";
|
|
192
|
+
readonly type: "address";
|
|
139
193
|
}];
|
|
140
194
|
readonly internalType: "struct IController.TakeOrderParams";
|
|
141
195
|
readonly name: "params";
|
|
@@ -172,9 +226,13 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
172
226
|
readonly name: "minQuoteAmount";
|
|
173
227
|
readonly type: "uint256";
|
|
174
228
|
}, {
|
|
175
|
-
readonly internalType: "
|
|
176
|
-
readonly name: "
|
|
177
|
-
readonly type: "
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
readonly name: "provider";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
}, {
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "referrer";
|
|
235
|
+
readonly type: "address";
|
|
178
236
|
}];
|
|
179
237
|
readonly internalType: "struct IController.SpendOrderParams";
|
|
180
238
|
readonly name: "params";
|
|
@@ -223,21 +281,65 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
223
281
|
}];
|
|
224
282
|
readonly stateMutability: "view";
|
|
225
283
|
readonly type: "function";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [];
|
|
286
|
+
readonly name: "owner";
|
|
287
|
+
readonly outputs: readonly [{
|
|
288
|
+
readonly internalType: "address";
|
|
289
|
+
readonly name: "";
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
}];
|
|
292
|
+
readonly stateMutability: "view";
|
|
293
|
+
readonly type: "function";
|
|
294
|
+
}, {
|
|
295
|
+
readonly inputs: readonly [];
|
|
296
|
+
readonly name: "pendingOwner";
|
|
297
|
+
readonly outputs: readonly [{
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly name: "";
|
|
300
|
+
readonly type: "address";
|
|
301
|
+
}];
|
|
302
|
+
readonly stateMutability: "view";
|
|
303
|
+
readonly type: "function";
|
|
304
|
+
}, {
|
|
305
|
+
readonly inputs: readonly [];
|
|
306
|
+
readonly name: "proxiableUUID";
|
|
307
|
+
readonly outputs: readonly [{
|
|
308
|
+
readonly internalType: "bytes32";
|
|
309
|
+
readonly name: "";
|
|
310
|
+
readonly type: "bytes32";
|
|
311
|
+
}];
|
|
312
|
+
readonly stateMutability: "view";
|
|
313
|
+
readonly type: "function";
|
|
314
|
+
}, {
|
|
315
|
+
readonly inputs: readonly [];
|
|
316
|
+
readonly name: "renounceOwnership";
|
|
317
|
+
readonly outputs: readonly [];
|
|
318
|
+
readonly stateMutability: "nonpayable";
|
|
319
|
+
readonly type: "function";
|
|
226
320
|
}, {
|
|
227
321
|
readonly inputs: readonly [{
|
|
228
322
|
readonly internalType: "address";
|
|
229
|
-
readonly name: "
|
|
323
|
+
readonly name: "newOwner";
|
|
230
324
|
readonly type: "address";
|
|
231
|
-
}
|
|
325
|
+
}];
|
|
326
|
+
readonly name: "transferOwnership";
|
|
327
|
+
readonly outputs: readonly [];
|
|
328
|
+
readonly stateMutability: "nonpayable";
|
|
329
|
+
readonly type: "function";
|
|
330
|
+
}, {
|
|
331
|
+
readonly inputs: readonly [{
|
|
232
332
|
readonly internalType: "address";
|
|
233
|
-
readonly name: "
|
|
333
|
+
readonly name: "newImplementation";
|
|
234
334
|
readonly type: "address";
|
|
235
335
|
}, {
|
|
236
336
|
readonly internalType: "bytes";
|
|
237
337
|
readonly name: "data";
|
|
238
338
|
readonly type: "bytes";
|
|
239
339
|
}];
|
|
340
|
+
readonly name: "upgradeToAndCall";
|
|
341
|
+
readonly outputs: readonly [];
|
|
240
342
|
readonly stateMutability: "payable";
|
|
241
|
-
readonly type: "
|
|
343
|
+
readonly type: "function";
|
|
242
344
|
}];
|
|
243
345
|
//# sourceMappingURL=book-viewer-abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"book-viewer-abi.d.ts","sourceRoot":"","sources":["../../../../../src/constants/abis/core/book-viewer-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"book-viewer-abi.d.ts","sourceRoot":"","sources":["../../../../../src/constants/abis/core/book-viewer-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkQlB,CAAC"}
|