@clober/v2-sdk 0.0.6 → 0.0.7-5.dev
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/README.md +12 -4
- package/dist/cjs/abis/core/book-manager-abi.js +112 -0
- package/dist/cjs/abis/core/book-manager-abi.js.map +1 -0
- package/dist/cjs/abis/core/book-viewer-abi.js +137 -5
- package/dist/cjs/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/cjs/abis/core/controller-abi.js +29 -24
- package/dist/cjs/abis/core/controller-abi.js.map +1 -1
- package/dist/cjs/abis/rebalancer/minter-abi.js +230 -0
- package/dist/cjs/abis/rebalancer/minter-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/mock-swap-abi.js +95 -0
- package/dist/cjs/abis/rebalancer/mock-swap-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/operator-abi.js +375 -0
- package/dist/cjs/abis/rebalancer/operator-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/rebalancer-abi.js +1367 -0
- package/dist/cjs/abis/rebalancer/rebalancer-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/strategy-abi.js +780 -0
- package/dist/cjs/abis/rebalancer/strategy-abi.js.map +1 -0
- package/dist/cjs/apis/chart-logs.js +163 -0
- package/dist/cjs/apis/chart-logs.js.map +1 -0
- package/dist/cjs/apis/market.js +40 -21
- package/dist/cjs/apis/market.js.map +1 -1
- package/dist/cjs/apis/odos.js +100 -0
- package/dist/cjs/apis/odos.js.map +1 -0
- package/dist/cjs/apis/open-order.js +60 -28
- package/dist/cjs/apis/open-order.js.map +1 -1
- package/dist/cjs/apis/pool.js +79 -0
- package/dist/cjs/apis/pool.js.map +1 -0
- package/dist/cjs/apis/strategy.js +30 -0
- package/dist/cjs/apis/strategy.js.map +1 -0
- package/dist/cjs/approval.js +85 -31
- package/dist/cjs/approval.js.map +1 -1
- package/dist/cjs/call.js +837 -155
- package/dist/cjs/call.js.map +1 -1
- package/dist/cjs/constants/addresses.js +50 -1
- package/dist/cjs/constants/addresses.js.map +1 -1
- package/dist/cjs/constants/bera-bartio-chain.js +30 -0
- package/dist/cjs/constants/bera-bartio-chain.js.map +1 -0
- package/dist/cjs/constants/chain.js +18 -2
- package/dist/cjs/constants/chain.js.map +1 -1
- package/dist/cjs/constants/currency.js +56 -3
- package/dist/cjs/constants/currency.js.map +1 -1
- package/dist/cjs/constants/fee.js +17 -2
- package/dist/cjs/constants/fee.js.map +1 -1
- package/dist/cjs/constants/permit.js +14 -0
- package/dist/cjs/constants/permit.js.map +1 -0
- package/dist/cjs/constants/price.js +2 -1
- package/dist/cjs/constants/price.js.map +1 -1
- package/dist/cjs/constants/subgraph.js +35 -0
- package/dist/cjs/constants/subgraph.js.map +1 -0
- package/dist/cjs/constants/test-chain.js +50 -0
- package/dist/cjs/constants/test-chain.js.map +1 -0
- package/dist/cjs/constants/tick.js +6 -0
- package/dist/cjs/constants/tick.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/book.js +62 -35
- package/dist/cjs/model/book.js.map +1 -1
- package/dist/cjs/model/chart-log.js +3 -0
- package/dist/cjs/model/chart-log.js.map +1 -0
- package/dist/cjs/model/market.js +61 -26
- package/dist/cjs/model/market.js.map +1 -1
- package/dist/cjs/model/pool.js +240 -0
- package/dist/cjs/model/pool.js.map +1 -0
- package/dist/cjs/type.js +16 -1
- package/dist/cjs/type.js.map +1 -1
- package/dist/cjs/utils/allowance.js +39 -0
- package/dist/cjs/utils/allowance.js.map +1 -0
- package/dist/cjs/utils/approval.js +2 -3
- package/dist/cjs/utils/approval.js.map +1 -1
- package/dist/cjs/utils/bigint.js +13 -0
- package/dist/cjs/utils/bigint.js.map +1 -0
- package/dist/cjs/utils/book-id.js +7 -7
- package/dist/cjs/utils/book-id.js.map +1 -1
- package/dist/cjs/utils/build-transaction.js +9 -9
- package/dist/cjs/utils/build-transaction.js.map +1 -1
- package/dist/cjs/utils/currency.js +95 -11
- package/dist/cjs/utils/currency.js.map +1 -1
- package/dist/cjs/utils/market.js +1 -1
- package/dist/cjs/utils/market.js.map +1 -1
- package/dist/cjs/utils/math.js +3 -1
- package/dist/cjs/utils/math.js.map +1 -1
- package/dist/cjs/utils/open.js +35 -25
- package/dist/cjs/utils/open.js.map +1 -1
- package/dist/cjs/utils/order.js +115 -0
- package/dist/cjs/utils/order.js.map +1 -0
- package/dist/cjs/utils/pool-key.js +17 -0
- package/dist/cjs/utils/pool-key.js.map +1 -0
- package/dist/cjs/utils/pool.js +88 -0
- package/dist/cjs/utils/pool.js.map +1 -0
- package/dist/cjs/utils/prices.js +40 -5
- package/dist/cjs/utils/prices.js.map +1 -1
- package/dist/cjs/utils/tick.js +12 -1
- package/dist/cjs/utils/tick.js.map +1 -1
- package/dist/cjs/utils/unit-size.js +48 -0
- package/dist/cjs/utils/unit-size.js.map +1 -0
- package/dist/cjs/utils.js +16 -0
- package/dist/cjs/utils.js.map +1 -0
- package/dist/cjs/view.js +271 -40
- package/dist/cjs/view.js.map +1 -1
- package/dist/esm/abis/core/book-manager-abi.js +109 -0
- package/dist/esm/abis/core/book-manager-abi.js.map +1 -0
- package/dist/esm/abis/core/book-viewer-abi.js +137 -5
- package/dist/esm/abis/core/book-viewer-abi.js.map +1 -1
- package/dist/esm/abis/core/controller-abi.js +29 -24
- package/dist/esm/abis/core/controller-abi.js.map +1 -1
- package/dist/esm/abis/rebalancer/minter-abi.js +227 -0
- package/dist/esm/abis/rebalancer/minter-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/mock-swap-abi.js +92 -0
- package/dist/esm/abis/rebalancer/mock-swap-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/operator-abi.js +372 -0
- package/dist/esm/abis/rebalancer/operator-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/rebalancer-abi.js +1364 -0
- package/dist/esm/abis/rebalancer/rebalancer-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/strategy-abi.js +777 -0
- package/dist/esm/abis/rebalancer/strategy-abi.js.map +1 -0
- package/dist/esm/apis/chart-logs.js +159 -0
- package/dist/esm/apis/chart-logs.js.map +1 -0
- package/dist/esm/apis/market.js +41 -22
- package/dist/esm/apis/market.js.map +1 -1
- package/dist/esm/apis/odos.js +94 -0
- package/dist/esm/apis/odos.js.map +1 -0
- package/dist/esm/apis/open-order.js +61 -28
- package/dist/esm/apis/open-order.js.map +1 -1
- package/dist/esm/apis/pool.js +74 -0
- package/dist/esm/apis/pool.js.map +1 -0
- package/dist/esm/apis/strategy.js +26 -0
- package/dist/esm/apis/strategy.js.map +1 -0
- package/dist/esm/approval.js +122 -45
- package/dist/esm/approval.js.map +1 -1
- package/dist/esm/call.js +942 -270
- package/dist/esm/call.js.map +1 -1
- package/dist/esm/constants/addresses.js +51 -2
- package/dist/esm/constants/addresses.js.map +1 -1
- package/dist/esm/constants/bera-bartio-chain.js +27 -0
- package/dist/esm/constants/bera-bartio-chain.js.map +1 -0
- package/dist/esm/constants/chain.js +17 -2
- package/dist/esm/constants/chain.js.map +1 -1
- package/dist/esm/constants/currency.js +57 -2
- package/dist/esm/constants/currency.js.map +1 -1
- package/dist/esm/constants/fee.js +17 -2
- package/dist/esm/constants/fee.js.map +1 -1
- package/dist/esm/constants/permit.js +11 -0
- package/dist/esm/constants/permit.js.map +1 -0
- package/dist/esm/constants/price.js +1 -0
- package/dist/esm/constants/price.js.map +1 -1
- package/dist/esm/constants/subgraph.js +31 -0
- package/dist/esm/constants/subgraph.js.map +1 -0
- package/dist/esm/constants/test-chain.js +47 -0
- package/dist/esm/constants/test-chain.js.map +1 -0
- package/dist/esm/constants/tick.js +3 -0
- package/dist/esm/constants/tick.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/book.js +62 -35
- package/dist/esm/model/book.js.map +1 -1
- package/dist/esm/model/chart-log.js +2 -0
- package/dist/esm/model/chart-log.js.map +1 -0
- package/dist/esm/model/market.js +63 -28
- package/dist/esm/model/market.js.map +1 -1
- package/dist/esm/model/pool.js +237 -0
- package/dist/esm/model/pool.js.map +1 -0
- package/dist/esm/type.js +15 -0
- package/dist/esm/type.js.map +1 -1
- package/dist/esm/utils/allowance.js +35 -0
- package/dist/esm/utils/allowance.js.map +1 -0
- package/dist/esm/utils/approval.js +2 -3
- package/dist/esm/utils/approval.js.map +1 -1
- package/dist/esm/utils/bigint.js +7 -0
- package/dist/esm/utils/bigint.js.map +1 -0
- package/dist/esm/utils/book-id.js +7 -7
- package/dist/esm/utils/book-id.js.map +1 -1
- package/dist/esm/utils/build-transaction.js +9 -9
- package/dist/esm/utils/build-transaction.js.map +1 -1
- package/dist/esm/utils/currency.js +93 -10
- package/dist/esm/utils/currency.js.map +1 -1
- package/dist/esm/utils/market.js +1 -1
- package/dist/esm/utils/market.js.map +1 -1
- package/dist/esm/utils/math.js +1 -0
- package/dist/esm/utils/math.js.map +1 -1
- package/dist/esm/utils/open.js +33 -23
- package/dist/esm/utils/open.js.map +1 -1
- package/dist/esm/utils/order.js +110 -0
- package/dist/esm/utils/order.js.map +1 -0
- package/dist/esm/utils/pool-key.js +12 -0
- package/dist/esm/utils/pool-key.js.map +1 -0
- package/dist/esm/utils/pool.js +84 -0
- package/dist/esm/utils/pool.js.map +1 -0
- package/dist/esm/utils/prices.js +39 -5
- package/dist/esm/utils/prices.js.map +1 -1
- package/dist/esm/utils/tick.js +11 -1
- package/dist/esm/utils/tick.js.map +1 -1
- package/dist/esm/utils/unit-size.js +44 -0
- package/dist/esm/utils/unit-size.js.map +1 -0
- package/dist/esm/utils.js +4 -0
- package/dist/esm/utils.js.map +1 -0
- package/dist/esm/view.js +410 -79
- package/dist/esm/view.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/abis/core/book-manager-abi.d.ts +82 -0
- package/dist/types/abis/core/book-manager-abi.d.ts.map +1 -0
- package/dist/types/abis/core/book-viewer-abi.d.ts +107 -5
- package/dist/types/abis/core/book-viewer-abi.d.ts.map +1 -1
- package/dist/types/abis/core/controller-abi.d.ts +23 -19
- package/dist/types/abis/core/controller-abi.d.ts.map +1 -1
- package/dist/types/abis/rebalancer/minter-abi.d.ts +174 -0
- package/dist/types/abis/rebalancer/minter-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/mock-swap-abi.d.ts +70 -0
- package/dist/types/abis/rebalancer/mock-swap-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/operator-abi.d.ts +287 -0
- package/dist/types/abis/rebalancer/operator-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/rebalancer-abi.d.ts +1056 -0
- package/dist/types/abis/rebalancer/rebalancer-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/strategy-abi.d.ts +602 -0
- package/dist/types/abis/rebalancer/strategy-abi.d.ts.map +1 -0
- package/dist/types/apis/chart-logs.d.ts +5 -0
- package/dist/types/apis/chart-logs.d.ts.map +1 -0
- package/dist/types/apis/market.d.ts +2 -1
- package/dist/types/apis/market.d.ts.map +1 -1
- package/dist/types/apis/odos.d.ts +28 -0
- package/dist/types/apis/odos.d.ts.map +1 -0
- package/dist/types/apis/open-order.d.ts +4 -2
- package/dist/types/apis/open-order.d.ts.map +1 -1
- package/dist/types/apis/pool.d.ts +12 -0
- package/dist/types/apis/pool.d.ts.map +1 -0
- package/dist/types/apis/strategy.d.ts +5 -0
- package/dist/types/apis/strategy.d.ts.map +1 -0
- package/dist/types/approval.d.ts +49 -17
- package/dist/types/approval.d.ts.map +1 -1
- package/dist/types/call.d.ts +311 -133
- package/dist/types/call.d.ts.map +1 -1
- package/dist/types/constants/addresses.d.ts +4 -0
- package/dist/types/constants/addresses.d.ts.map +1 -1
- package/dist/types/constants/bera-bartio-chain.d.ts +33 -0
- package/dist/types/constants/bera-bartio-chain.d.ts.map +1 -0
- package/dist/types/constants/chain.d.ts +7 -2
- package/dist/types/constants/chain.d.ts.map +1 -1
- package/dist/types/constants/currency.d.ts +6 -0
- package/dist/types/constants/currency.d.ts.map +1 -1
- package/dist/types/constants/fee.d.ts +7 -2
- package/dist/types/constants/fee.d.ts.map +1 -1
- package/dist/types/constants/permit.d.ts +10 -0
- package/dist/types/constants/permit.d.ts.map +1 -0
- package/dist/types/constants/price.d.ts +1 -0
- package/dist/types/constants/price.d.ts.map +1 -1
- package/dist/types/constants/subgraph.d.ts +5 -0
- package/dist/types/constants/subgraph.d.ts.map +1 -0
- package/dist/types/constants/test-chain.d.ts +4 -0
- package/dist/types/constants/test-chain.d.ts.map +1 -0
- package/dist/types/constants/tick.d.ts +3 -0
- package/dist/types/constants/tick.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/book.d.ts +25 -33
- package/dist/types/model/book.d.ts.map +1 -1
- package/dist/types/model/chart-log.d.ts +9 -0
- package/dist/types/model/chart-log.d.ts.map +1 -0
- package/dist/types/model/currency.d.ts +7 -0
- package/dist/types/model/currency.d.ts.map +1 -1
- package/dist/types/model/depth.d.ts +4 -3
- package/dist/types/model/depth.d.ts.map +1 -1
- package/dist/types/model/market.d.ts +24 -13
- package/dist/types/model/market.d.ts.map +1 -1
- package/dist/types/model/open-order.d.ts +20 -27
- package/dist/types/model/open-order.d.ts.map +1 -1
- package/dist/types/model/pool.d.ts +71 -0
- package/dist/types/model/pool.d.ts.map +1 -0
- package/dist/types/type.d.ts +112 -6
- package/dist/types/type.d.ts.map +1 -1
- package/dist/types/utils/allowance.d.ts +3 -0
- package/dist/types/utils/allowance.d.ts.map +1 -0
- package/dist/types/utils/approval.d.ts +2 -1
- package/dist/types/utils/approval.d.ts.map +1 -1
- package/dist/types/utils/bigint.d.ts +4 -0
- package/dist/types/utils/bigint.d.ts.map +1 -0
- package/dist/types/utils/book-id.d.ts +2 -1
- package/dist/types/utils/book-id.d.ts.map +1 -1
- package/dist/types/utils/build-transaction.d.ts +3 -3
- package/dist/types/utils/build-transaction.d.ts.map +1 -1
- package/dist/types/utils/currency.d.ts +5 -1
- package/dist/types/utils/currency.d.ts.map +1 -1
- package/dist/types/utils/math.d.ts +1 -0
- package/dist/types/utils/math.d.ts.map +1 -1
- package/dist/types/utils/open.d.ts +2 -1
- package/dist/types/utils/open.d.ts.map +1 -1
- package/dist/types/utils/order.d.ts +10 -0
- package/dist/types/utils/order.d.ts.map +1 -0
- package/dist/types/utils/pool-key.d.ts +3 -0
- package/dist/types/utils/pool-key.d.ts.map +1 -0
- package/dist/types/utils/pool.d.ts +11 -0
- package/dist/types/utils/pool.d.ts.map +1 -0
- package/dist/types/utils/prices.d.ts +13 -2
- package/dist/types/utils/prices.d.ts.map +1 -1
- package/dist/types/utils/tick.d.ts +1 -0
- package/dist/types/utils/tick.d.ts.map +1 -1
- package/dist/types/utils/unit-size.d.ts +5 -0
- package/dist/types/utils/unit-size.d.ts.map +1 -0
- package/dist/types/utils.d.ts +4 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/dist/types/view.d.ts +309 -51
- package/dist/types/view.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/cjs/abis/core/params-abi.js +0 -62
- package/dist/cjs/abis/core/params-abi.js.map +0 -1
- package/dist/cjs/apis/subgraph.js +0 -26
- package/dist/cjs/apis/subgraph.js.map +0 -1
- package/dist/cjs/constants/client.js +0 -14
- package/dist/cjs/constants/client.js.map +0 -1
- package/dist/cjs/constants/subgraph-url.js +0 -8
- package/dist/cjs/constants/subgraph-url.js.map +0 -1
- package/dist/cjs/signature.js +0 -141
- package/dist/cjs/signature.js.map +0 -1
- package/dist/cjs/utils/decorator.js +0 -13
- package/dist/cjs/utils/decorator.js.map +0 -1
- package/dist/cjs/utils/unit.js +0 -34
- package/dist/cjs/utils/unit.js.map +0 -1
- package/dist/esm/abis/core/params-abi.js +0 -59
- package/dist/esm/abis/core/params-abi.js.map +0 -1
- package/dist/esm/apis/subgraph.js +0 -22
- package/dist/esm/apis/subgraph.js.map +0 -1
- package/dist/esm/constants/client.js +0 -10
- package/dist/esm/constants/client.js.map +0 -1
- package/dist/esm/constants/subgraph-url.js +0 -5
- package/dist/esm/constants/subgraph-url.js.map +0 -1
- package/dist/esm/signature.js +0 -171
- package/dist/esm/signature.js.map +0 -1
- package/dist/esm/utils/decorator.js +0 -9
- package/dist/esm/utils/decorator.js.map +0 -1
- package/dist/esm/utils/unit.js +0 -30
- package/dist/esm/utils/unit.js.map +0 -1
- package/dist/types/abis/core/params-abi.d.ts +0 -21
- package/dist/types/abis/core/params-abi.d.ts.map +0 -1
- package/dist/types/apis/subgraph.d.ts +0 -3
- package/dist/types/apis/subgraph.d.ts.map +0 -1
- package/dist/types/constants/client.d.ts +0 -5
- package/dist/types/constants/client.d.ts.map +0 -1
- package/dist/types/constants/subgraph-url.d.ts +0 -5
- package/dist/types/constants/subgraph-url.d.ts.map +0 -1
- package/dist/types/signature.d.ts +0 -44
- package/dist/types/signature.d.ts.map +0 -1
- package/dist/types/utils/decorator.d.ts +0 -6
- package/dist/types/utils/decorator.d.ts.map +0 -1
- package/dist/types/utils/unit.d.ts +0 -4
- package/dist/types/utils/unit.d.ts.map +0 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const BOOK_MANAGER_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "OrderId";
|
|
4
|
+
readonly name: "id";
|
|
5
|
+
readonly type: "uint256";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "getOrder";
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly components: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "provider";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly internalType: "uint64";
|
|
15
|
+
readonly name: "open";
|
|
16
|
+
readonly type: "uint64";
|
|
17
|
+
}, {
|
|
18
|
+
readonly internalType: "uint64";
|
|
19
|
+
readonly name: "claimable";
|
|
20
|
+
readonly type: "uint64";
|
|
21
|
+
}];
|
|
22
|
+
readonly internalType: "struct IBookManager.OrderInfo";
|
|
23
|
+
readonly name: "";
|
|
24
|
+
readonly type: "tuple";
|
|
25
|
+
}];
|
|
26
|
+
readonly stateMutability: "view";
|
|
27
|
+
readonly type: "function";
|
|
28
|
+
}, {
|
|
29
|
+
readonly inputs: readonly [{
|
|
30
|
+
readonly internalType: "uint256";
|
|
31
|
+
readonly name: "tokenId";
|
|
32
|
+
readonly type: "uint256";
|
|
33
|
+
}];
|
|
34
|
+
readonly name: "ownerOf";
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly internalType: "BookId";
|
|
45
|
+
readonly name: "id";
|
|
46
|
+
readonly type: "uint192";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "getBookKey";
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly components: readonly [{
|
|
51
|
+
readonly internalType: "Currency";
|
|
52
|
+
readonly name: "base";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
}, {
|
|
55
|
+
readonly internalType: "uint64";
|
|
56
|
+
readonly name: "unitSize";
|
|
57
|
+
readonly type: "uint64";
|
|
58
|
+
}, {
|
|
59
|
+
readonly internalType: "Currency";
|
|
60
|
+
readonly name: "quote";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}, {
|
|
63
|
+
readonly internalType: "FeePolicy";
|
|
64
|
+
readonly name: "makerPolicy";
|
|
65
|
+
readonly type: "uint24";
|
|
66
|
+
}, {
|
|
67
|
+
readonly internalType: "contract IHooks";
|
|
68
|
+
readonly name: "hooks";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}, {
|
|
71
|
+
readonly internalType: "FeePolicy";
|
|
72
|
+
readonly name: "takerPolicy";
|
|
73
|
+
readonly type: "uint24";
|
|
74
|
+
}];
|
|
75
|
+
readonly internalType: "struct IBookManager.BookKey";
|
|
76
|
+
readonly name: "";
|
|
77
|
+
readonly type: "tuple";
|
|
78
|
+
}];
|
|
79
|
+
readonly stateMutability: "view";
|
|
80
|
+
readonly type: "function";
|
|
81
|
+
}];
|
|
82
|
+
//# sourceMappingURL=book-manager-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"book-manager-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/book-manager-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2GnB,CAAA"}
|
|
@@ -1,11 +1,97 @@
|
|
|
1
1
|
export declare const BOOK_VIEWER_ABI: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
2
3
|
readonly inputs: readonly [{
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
4
|
+
readonly indexed: true;
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly name: "previousOwner";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly indexed: true;
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "newOwner";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "OwnershipTransferred";
|
|
15
|
+
readonly type: "event";
|
|
16
|
+
}, {
|
|
17
|
+
readonly anonymous: false;
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly indexed: true;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "previousImplementation";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly indexed: true;
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "newImplementation";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "ProxyImplementationUpdated";
|
|
30
|
+
readonly type: "event";
|
|
31
|
+
}, {
|
|
32
|
+
readonly stateMutability: "payable";
|
|
33
|
+
readonly type: "fallback";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [];
|
|
36
|
+
readonly name: "owner";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly internalType: "address";
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "view";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
}, {
|
|
45
|
+
readonly inputs: readonly [{
|
|
46
|
+
readonly internalType: "bytes4";
|
|
47
|
+
readonly name: "id";
|
|
48
|
+
readonly type: "bytes4";
|
|
49
|
+
}];
|
|
50
|
+
readonly name: "supportsInterface";
|
|
51
|
+
readonly outputs: readonly [{
|
|
52
|
+
readonly internalType: "bool";
|
|
53
|
+
readonly name: "";
|
|
54
|
+
readonly type: "bool";
|
|
55
|
+
}];
|
|
56
|
+
readonly stateMutability: "view";
|
|
57
|
+
readonly type: "function";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "newOwner";
|
|
5
62
|
readonly type: "address";
|
|
6
63
|
}];
|
|
64
|
+
readonly name: "transferOwnership";
|
|
65
|
+
readonly outputs: readonly [];
|
|
7
66
|
readonly stateMutability: "nonpayable";
|
|
8
|
-
readonly type: "
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
}, {
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly internalType: "address";
|
|
71
|
+
readonly name: "newImplementation";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
}];
|
|
74
|
+
readonly name: "upgradeTo";
|
|
75
|
+
readonly outputs: readonly [];
|
|
76
|
+
readonly stateMutability: "nonpayable";
|
|
77
|
+
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";
|
|
9
95
|
}, {
|
|
10
96
|
readonly inputs: readonly [];
|
|
11
97
|
readonly name: "InvalidTick";
|
|
@@ -62,7 +148,7 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
62
148
|
readonly type: "uint256";
|
|
63
149
|
}, {
|
|
64
150
|
readonly internalType: "uint256";
|
|
65
|
-
readonly name: "
|
|
151
|
+
readonly name: "spentBaseAmount";
|
|
66
152
|
readonly type: "uint256";
|
|
67
153
|
}];
|
|
68
154
|
readonly stateMutability: "view";
|
|
@@ -101,7 +187,7 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
101
187
|
readonly type: "uint256";
|
|
102
188
|
}, {
|
|
103
189
|
readonly internalType: "uint256";
|
|
104
|
-
readonly name: "
|
|
190
|
+
readonly name: "spentBaseAmount";
|
|
105
191
|
readonly type: "uint256";
|
|
106
192
|
}];
|
|
107
193
|
readonly stateMutability: "view";
|
|
@@ -137,5 +223,21 @@ export declare const BOOK_VIEWER_ABI: readonly [{
|
|
|
137
223
|
}];
|
|
138
224
|
readonly stateMutability: "view";
|
|
139
225
|
readonly type: "function";
|
|
226
|
+
}, {
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly internalType: "address";
|
|
229
|
+
readonly name: "implementationAddress";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}, {
|
|
232
|
+
readonly internalType: "address";
|
|
233
|
+
readonly name: "ownerAddress";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly internalType: "bytes";
|
|
237
|
+
readonly name: "data";
|
|
238
|
+
readonly type: "bytes";
|
|
239
|
+
}];
|
|
240
|
+
readonly stateMutability: "payable";
|
|
241
|
+
readonly type: "constructor";
|
|
140
242
|
}];
|
|
141
243
|
//# sourceMappingURL=book-viewer-abi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"book-viewer-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/book-viewer-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"book-viewer-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/book-viewer-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4TlB,CAAA"}
|
|
@@ -14,14 +14,6 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
14
14
|
}];
|
|
15
15
|
readonly name: "AddressEmptyCode";
|
|
16
16
|
readonly type: "error";
|
|
17
|
-
}, {
|
|
18
|
-
readonly inputs: readonly [{
|
|
19
|
-
readonly internalType: "address";
|
|
20
|
-
readonly name: "account";
|
|
21
|
-
readonly type: "address";
|
|
22
|
-
}];
|
|
23
|
-
readonly name: "AddressInsufficientBalance";
|
|
24
|
-
readonly type: "error";
|
|
25
17
|
}, {
|
|
26
18
|
readonly inputs: readonly [];
|
|
27
19
|
readonly name: "ControllerSlippage";
|
|
@@ -36,7 +28,19 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
36
28
|
readonly type: "error";
|
|
37
29
|
}, {
|
|
38
30
|
readonly inputs: readonly [];
|
|
39
|
-
readonly name: "
|
|
31
|
+
readonly name: "FailedCall";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
readonly name: "balance";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "needed";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "InsufficientBalance";
|
|
40
44
|
readonly type: "error";
|
|
41
45
|
}, {
|
|
42
46
|
readonly inputs: readonly [];
|
|
@@ -50,10 +54,6 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
50
54
|
readonly inputs: readonly [];
|
|
51
55
|
readonly name: "InvalidLength";
|
|
52
56
|
readonly type: "error";
|
|
53
|
-
}, {
|
|
54
|
-
readonly inputs: readonly [];
|
|
55
|
-
readonly name: "InvalidMarket";
|
|
56
|
-
readonly type: "error";
|
|
57
57
|
}, {
|
|
58
58
|
readonly inputs: readonly [];
|
|
59
59
|
readonly name: "InvalidPrice";
|
|
@@ -90,10 +90,6 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
90
90
|
}];
|
|
91
91
|
readonly name: "SafeERC20FailedOperation";
|
|
92
92
|
readonly type: "error";
|
|
93
|
-
}, {
|
|
94
|
-
readonly inputs: readonly [];
|
|
95
|
-
readonly name: "ValueTransferFailed";
|
|
96
|
-
readonly type: "error";
|
|
97
93
|
}, {
|
|
98
94
|
readonly inputs: readonly [{
|
|
99
95
|
readonly components: readonly [{
|
|
@@ -340,7 +336,7 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
340
336
|
readonly name: "id";
|
|
341
337
|
readonly type: "uint192";
|
|
342
338
|
}];
|
|
343
|
-
readonly name: "
|
|
339
|
+
readonly name: "getHighestPrice";
|
|
344
340
|
readonly outputs: readonly [{
|
|
345
341
|
readonly internalType: "uint256";
|
|
346
342
|
readonly name: "";
|
|
@@ -559,7 +555,7 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
559
555
|
readonly type: "address";
|
|
560
556
|
}, {
|
|
561
557
|
readonly internalType: "uint64";
|
|
562
|
-
readonly name: "
|
|
558
|
+
readonly name: "unitSize";
|
|
563
559
|
readonly type: "uint64";
|
|
564
560
|
}, {
|
|
565
561
|
readonly internalType: "Currency";
|
|
@@ -612,6 +608,10 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
612
608
|
readonly internalType: "uint256";
|
|
613
609
|
readonly name: "baseAmount";
|
|
614
610
|
readonly type: "uint256";
|
|
611
|
+
}, {
|
|
612
|
+
readonly internalType: "uint256";
|
|
613
|
+
readonly name: "minQuoteAmount";
|
|
614
|
+
readonly type: "uint256";
|
|
615
615
|
}, {
|
|
616
616
|
readonly internalType: "bytes";
|
|
617
617
|
readonly name: "hookData";
|
|
@@ -681,6 +681,10 @@ export declare const CONTROLLER_ABI: readonly [{
|
|
|
681
681
|
readonly internalType: "uint256";
|
|
682
682
|
readonly name: "quoteAmount";
|
|
683
683
|
readonly type: "uint256";
|
|
684
|
+
}, {
|
|
685
|
+
readonly internalType: "uint256";
|
|
686
|
+
readonly name: "maxBaseAmount";
|
|
687
|
+
readonly type: "uint256";
|
|
684
688
|
}, {
|
|
685
689
|
readonly internalType: "bytes";
|
|
686
690
|
readonly name: "hookData";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/controller-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"controller-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/core/controller-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA69BjB,CAAA"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export declare const MINTER_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_bookManager";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address payable";
|
|
8
|
+
readonly name: "_rebalancer";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "_router";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "nonpayable";
|
|
16
|
+
readonly type: "constructor";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "ERC20TransferFailed";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "NativeTransferFailed";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "bytes";
|
|
28
|
+
readonly name: "message";
|
|
29
|
+
readonly type: "bytes";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "RouterSwapFailed";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "token";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}];
|
|
39
|
+
readonly name: "SafeERC20FailedOperation";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "bookManager";
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly internalType: "contract IBookManager";
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly internalType: "bytes32";
|
|
54
|
+
readonly name: "key";
|
|
55
|
+
readonly type: "bytes32";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "amountA";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "amountB";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}, {
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
readonly name: "minLpAmount";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}, {
|
|
69
|
+
readonly components: readonly [{
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "permitAmount";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}, {
|
|
74
|
+
readonly components: readonly [{
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "deadline";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}, {
|
|
79
|
+
readonly internalType: "uint8";
|
|
80
|
+
readonly name: "v";
|
|
81
|
+
readonly type: "uint8";
|
|
82
|
+
}, {
|
|
83
|
+
readonly internalType: "bytes32";
|
|
84
|
+
readonly name: "r";
|
|
85
|
+
readonly type: "bytes32";
|
|
86
|
+
}, {
|
|
87
|
+
readonly internalType: "bytes32";
|
|
88
|
+
readonly name: "s";
|
|
89
|
+
readonly type: "bytes32";
|
|
90
|
+
}];
|
|
91
|
+
readonly internalType: "struct PermitSignature";
|
|
92
|
+
readonly name: "signature";
|
|
93
|
+
readonly type: "tuple";
|
|
94
|
+
}];
|
|
95
|
+
readonly internalType: "struct ERC20PermitParams";
|
|
96
|
+
readonly name: "currencyAPermitParams";
|
|
97
|
+
readonly type: "tuple";
|
|
98
|
+
}, {
|
|
99
|
+
readonly components: readonly [{
|
|
100
|
+
readonly internalType: "uint256";
|
|
101
|
+
readonly name: "permitAmount";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
}, {
|
|
104
|
+
readonly components: readonly [{
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "deadline";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly internalType: "uint8";
|
|
110
|
+
readonly name: "v";
|
|
111
|
+
readonly type: "uint8";
|
|
112
|
+
}, {
|
|
113
|
+
readonly internalType: "bytes32";
|
|
114
|
+
readonly name: "r";
|
|
115
|
+
readonly type: "bytes32";
|
|
116
|
+
}, {
|
|
117
|
+
readonly internalType: "bytes32";
|
|
118
|
+
readonly name: "s";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
}];
|
|
121
|
+
readonly internalType: "struct PermitSignature";
|
|
122
|
+
readonly name: "signature";
|
|
123
|
+
readonly type: "tuple";
|
|
124
|
+
}];
|
|
125
|
+
readonly internalType: "struct ERC20PermitParams";
|
|
126
|
+
readonly name: "currencyBPermitParams";
|
|
127
|
+
readonly type: "tuple";
|
|
128
|
+
}, {
|
|
129
|
+
readonly components: readonly [{
|
|
130
|
+
readonly internalType: "Currency";
|
|
131
|
+
readonly name: "inCurrency";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly internalType: "uint256";
|
|
135
|
+
readonly name: "amount";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}, {
|
|
138
|
+
readonly internalType: "bytes";
|
|
139
|
+
readonly name: "data";
|
|
140
|
+
readonly type: "bytes";
|
|
141
|
+
}];
|
|
142
|
+
readonly internalType: "struct IMinter.SwapParams";
|
|
143
|
+
readonly name: "swapParams";
|
|
144
|
+
readonly type: "tuple";
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "mint";
|
|
147
|
+
readonly outputs: readonly [];
|
|
148
|
+
readonly stateMutability: "payable";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
}, {
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly name: "rebalancer";
|
|
153
|
+
readonly outputs: readonly [{
|
|
154
|
+
readonly internalType: "contract Rebalancer";
|
|
155
|
+
readonly name: "";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}];
|
|
158
|
+
readonly stateMutability: "view";
|
|
159
|
+
readonly type: "function";
|
|
160
|
+
}, {
|
|
161
|
+
readonly inputs: readonly [];
|
|
162
|
+
readonly name: "router";
|
|
163
|
+
readonly outputs: readonly [{
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "address";
|
|
167
|
+
}];
|
|
168
|
+
readonly stateMutability: "view";
|
|
169
|
+
readonly type: "function";
|
|
170
|
+
}, {
|
|
171
|
+
readonly stateMutability: "payable";
|
|
172
|
+
readonly type: "receive";
|
|
173
|
+
}];
|
|
174
|
+
//# sourceMappingURL=minter-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minter-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/rebalancer/minter-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiOb,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const MOCK_SWAP_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "target";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "AddressEmptyCode";
|
|
8
|
+
readonly type: "error";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "FailedCall";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly internalType: "uint256";
|
|
16
|
+
readonly name: "balance";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "needed";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "InsufficientBalance";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "token";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "SafeERC20FailedOperation";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "tokenIn";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "amountIn";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}, {
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "tokenOut";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "amountOut";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "swap";
|
|
52
|
+
readonly outputs: readonly [];
|
|
53
|
+
readonly stateMutability: "nonpayable";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "tokenOut";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "amountOut";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "swapEthForToken";
|
|
66
|
+
readonly outputs: readonly [];
|
|
67
|
+
readonly stateMutability: "payable";
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
}];
|
|
70
|
+
//# sourceMappingURL=mock-swap-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-swap-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/rebalancer/mock-swap-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0FhB,CAAA"}
|