@1inch/swap-vm-sdk 0.1.0
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/LICENSE +103 -0
- package/README.md +584 -0
- package/dist/abi/SwapVM.abi.d.mts +403 -0
- package/dist/abi/SwapVM.abi.d.ts +403 -0
- package/dist/abi/index.d.mts +1 -0
- package/dist/abi/index.d.ts +1 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3842 -0
- package/dist/index.mjs +3777 -0
- package/dist/swap-vm/index.d.mts +6 -0
- package/dist/swap-vm/index.d.ts +6 -0
- package/dist/swap-vm/instructions/balances/balances-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/balances/balances-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/balances/balances-args.d.mts +17 -0
- package/dist/swap-vm/instructions/balances/balances-args.d.ts +17 -0
- package/dist/swap-vm/instructions/balances/index.d.mts +3 -0
- package/dist/swap-vm/instructions/balances/index.d.ts +3 -0
- package/dist/swap-vm/instructions/balances/opcodes.d.mts +12 -0
- package/dist/swap-vm/instructions/balances/opcodes.d.ts +12 -0
- package/dist/swap-vm/instructions/balances/types.d.mts +5 -0
- package/dist/swap-vm/instructions/balances/types.d.ts +5 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args.d.mts +40 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args.d.ts +40 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/index.d.mts +2 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/index.d.ts +2 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/opcodes.d.mts +5 -0
- package/dist/swap-vm/instructions/base-fee-adjuster/opcodes.d.ts +5 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args.d.mts +21 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args.d.ts +21 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args.d.mts +17 -0
- package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args.d.ts +17 -0
- package/dist/swap-vm/instructions/concentrate/index.d.mts +5 -0
- package/dist/swap-vm/instructions/concentrate/index.d.ts +5 -0
- package/dist/swap-vm/instructions/concentrate/opcodes.d.mts +10 -0
- package/dist/swap-vm/instructions/concentrate/opcodes.d.ts +10 -0
- package/dist/swap-vm/instructions/concentrate/types.d.mts +5 -0
- package/dist/swap-vm/instructions/concentrate/types.d.ts +5 -0
- package/dist/swap-vm/instructions/concentrate/utils.d.mts +4 -0
- package/dist/swap-vm/instructions/concentrate/utils.d.ts +4 -0
- package/dist/swap-vm/instructions/controls/deadline-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/deadline-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/deadline-args.d.mts +9 -0
- package/dist/swap-vm/instructions/controls/deadline-args.d.ts +9 -0
- package/dist/swap-vm/instructions/controls/index.d.mts +8 -0
- package/dist/swap-vm/instructions/controls/index.d.ts +8 -0
- package/dist/swap-vm/instructions/controls/jump-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/jump-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/jump-args.d.mts +16 -0
- package/dist/swap-vm/instructions/controls/jump-args.d.ts +16 -0
- package/dist/swap-vm/instructions/controls/jump-if-token-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/jump-if-token-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/jump-if-token-args.d.mts +10 -0
- package/dist/swap-vm/instructions/controls/jump-if-token-args.d.ts +10 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args.d.mts +17 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args.d.ts +17 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args.d.mts +16 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args.d.ts +16 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args.d.mts +18 -0
- package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args.d.ts +18 -0
- package/dist/swap-vm/instructions/controls/opcodes.d.mts +36 -0
- package/dist/swap-vm/instructions/controls/opcodes.d.ts +36 -0
- package/dist/swap-vm/instructions/controls/salt-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/controls/salt-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/controls/salt-args.d.mts +16 -0
- package/dist/swap-vm/instructions/controls/salt-args.d.ts +16 -0
- package/dist/swap-vm/instructions/debug/debug-args.d.mts +8 -0
- package/dist/swap-vm/instructions/debug/debug-args.d.ts +8 -0
- package/dist/swap-vm/instructions/debug/debug-empty-args.d.mts +19 -0
- package/dist/swap-vm/instructions/debug/debug-empty-args.d.ts +19 -0
- package/dist/swap-vm/instructions/debug/opcodes.d.mts +18 -0
- package/dist/swap-vm/instructions/debug/opcodes.d.ts +18 -0
- package/dist/swap-vm/instructions/debug/print-amount-for-swap.d.mts +16 -0
- package/dist/swap-vm/instructions/debug/print-amount-for-swap.d.ts +16 -0
- package/dist/swap-vm/instructions/debug/print-context.d.mts +16 -0
- package/dist/swap-vm/instructions/debug/print-context.d.ts +16 -0
- package/dist/swap-vm/instructions/debug/print-free-memory-pointer.d.mts +16 -0
- package/dist/swap-vm/instructions/debug/print-free-memory-pointer.d.ts +16 -0
- package/dist/swap-vm/instructions/debug/print-gas-left.d.mts +16 -0
- package/dist/swap-vm/instructions/debug/print-gas-left.d.ts +16 -0
- package/dist/swap-vm/instructions/debug/print-swap-query.d.mts +16 -0
- package/dist/swap-vm/instructions/debug/print-swap-query.d.ts +16 -0
- package/dist/swap-vm/instructions/debug/print-swap-registers.d.mts +16 -0
- package/dist/swap-vm/instructions/debug/print-swap-registers.d.ts +16 -0
- package/dist/swap-vm/instructions/decay/decay-xd-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/decay/decay-xd-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/decay/decay-xd-args.d.mts +16 -0
- package/dist/swap-vm/instructions/decay/decay-xd-args.d.ts +16 -0
- package/dist/swap-vm/instructions/decay/index.d.mts +2 -0
- package/dist/swap-vm/instructions/decay/index.d.ts +2 -0
- package/dist/swap-vm/instructions/decay/opcodes.d.mts +5 -0
- package/dist/swap-vm/instructions/decay/opcodes.d.ts +5 -0
- package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args.d.mts +44 -0
- package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args.d.ts +44 -0
- package/dist/swap-vm/instructions/dutch-auction/index.d.mts +2 -0
- package/dist/swap-vm/instructions/dutch-auction/index.d.ts +2 -0
- package/dist/swap-vm/instructions/dutch-auction/opcodes.d.mts +10 -0
- package/dist/swap-vm/instructions/dutch-auction/opcodes.d.ts +10 -0
- package/dist/swap-vm/instructions/empty.d.mts +13 -0
- package/dist/swap-vm/instructions/empty.d.ts +13 -0
- package/dist/swap-vm/instructions/extruction/extruction-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/extruction/extruction-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/extruction/extruction-args.d.mts +21 -0
- package/dist/swap-vm/instructions/extruction/extruction-args.d.ts +21 -0
- package/dist/swap-vm/instructions/extruction/index.d.mts +2 -0
- package/dist/swap-vm/instructions/extruction/index.d.ts +2 -0
- package/dist/swap-vm/instructions/extruction/opcodes.d.mts +5 -0
- package/dist/swap-vm/instructions/extruction/opcodes.d.ts +5 -0
- package/dist/swap-vm/instructions/fee/flat-fee-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/fee/flat-fee-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/fee/flat-fee-args.d.mts +28 -0
- package/dist/swap-vm/instructions/fee/flat-fee-args.d.ts +28 -0
- package/dist/swap-vm/instructions/fee/index.d.mts +3 -0
- package/dist/swap-vm/instructions/fee/index.d.ts +3 -0
- package/dist/swap-vm/instructions/fee/opcodes.d.mts +30 -0
- package/dist/swap-vm/instructions/fee/opcodes.d.ts +30 -0
- package/dist/swap-vm/instructions/fee/protocol-fee-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/fee/protocol-fee-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/fee/protocol-fee-args.d.mts +35 -0
- package/dist/swap-vm/instructions/fee/protocol-fee-args.d.ts +35 -0
- package/dist/swap-vm/instructions/index.d.mts +29 -0
- package/dist/swap-vm/instructions/index.d.ts +29 -0
- package/dist/swap-vm/instructions/instruction.d.mts +7 -0
- package/dist/swap-vm/instructions/instruction.d.ts +7 -0
- package/dist/swap-vm/instructions/invalidators/index.d.mts +4 -0
- package/dist/swap-vm/instructions/invalidators/index.d.ts +4 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args.d.mts +16 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args.d.ts +16 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args.d.mts +8 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args.d.ts +8 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args.d.mts +8 -0
- package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args.d.ts +8 -0
- package/dist/swap-vm/instructions/invalidators/opcodes.d.mts +15 -0
- package/dist/swap-vm/instructions/invalidators/opcodes.d.ts +15 -0
- package/dist/swap-vm/instructions/limit-swap/index.d.mts +2 -0
- package/dist/swap-vm/instructions/limit-swap/index.d.ts +2 -0
- package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args.d.mts +24 -0
- package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args.d.ts +24 -0
- package/dist/swap-vm/instructions/limit-swap/opcodes.d.mts +10 -0
- package/dist/swap-vm/instructions/limit-swap/opcodes.d.ts +10 -0
- package/dist/swap-vm/instructions/min-rate/index.d.mts +2 -0
- package/dist/swap-vm/instructions/min-rate/index.d.ts +2 -0
- package/dist/swap-vm/instructions/min-rate/min-rate-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/min-rate/min-rate-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/min-rate/min-rate-args.d.mts +22 -0
- package/dist/swap-vm/instructions/min-rate/min-rate-args.d.ts +22 -0
- package/dist/swap-vm/instructions/min-rate/opcodes.d.mts +10 -0
- package/dist/swap-vm/instructions/min-rate/opcodes.d.ts +10 -0
- package/dist/swap-vm/instructions/opcode.d.mts +8 -0
- package/dist/swap-vm/instructions/opcode.d.ts +8 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/index.d.mts +2 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/index.d.ts +2 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/opcodes.d.mts +5 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/opcodes.d.ts +5 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args.d.mts +41 -0
- package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args.d.ts +41 -0
- package/dist/swap-vm/instructions/stable-swap/index.d.mts +2 -0
- package/dist/swap-vm/instructions/stable-swap/index.d.ts +2 -0
- package/dist/swap-vm/instructions/stable-swap/opcodes.d.mts +4 -0
- package/dist/swap-vm/instructions/stable-swap/opcodes.d.ts +4 -0
- package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args.d.mts +25 -0
- package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args.d.ts +25 -0
- package/dist/swap-vm/instructions/twap-swap/index.d.mts +2 -0
- package/dist/swap-vm/instructions/twap-swap/index.d.ts +2 -0
- package/dist/swap-vm/instructions/twap-swap/opcodes.d.mts +5 -0
- package/dist/swap-vm/instructions/twap-swap/opcodes.d.ts +5 -0
- package/dist/swap-vm/instructions/twap-swap/twap-swap-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/twap-swap/twap-swap-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/twap-swap/twap-swap-args.d.mts +71 -0
- package/dist/swap-vm/instructions/twap-swap/twap-swap-args.d.ts +71 -0
- package/dist/swap-vm/instructions/types.d.mts +18 -0
- package/dist/swap-vm/instructions/types.d.ts +18 -0
- package/dist/swap-vm/instructions/xyc-swap/index.d.mts +2 -0
- package/dist/swap-vm/instructions/xyc-swap/index.d.ts +2 -0
- package/dist/swap-vm/instructions/xyc-swap/opcodes.d.mts +5 -0
- package/dist/swap-vm/instructions/xyc-swap/opcodes.d.ts +5 -0
- package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args-coder.d.mts +7 -0
- package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args-coder.d.ts +7 -0
- package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args.d.mts +15 -0
- package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args.d.ts +15 -0
- package/dist/swap-vm/maker-traits.d.mts +206 -0
- package/dist/swap-vm/maker-traits.d.ts +206 -0
- package/dist/swap-vm/order.d.mts +84 -0
- package/dist/swap-vm/order.d.ts +84 -0
- package/dist/swap-vm/programs/aqua-program-builder.d.mts +118 -0
- package/dist/swap-vm/programs/aqua-program-builder.d.ts +118 -0
- package/dist/swap-vm/programs/index.d.mts +4 -0
- package/dist/swap-vm/programs/index.d.ts +4 -0
- package/dist/swap-vm/programs/program-builder.d.mts +26 -0
- package/dist/swap-vm/programs/program-builder.d.ts +26 -0
- package/dist/swap-vm/programs/regular-program-builder.d.mts +187 -0
- package/dist/swap-vm/programs/regular-program-builder.d.ts +187 -0
- package/dist/swap-vm/programs/swap-vm-program.d.mts +6 -0
- package/dist/swap-vm/programs/swap-vm-program.d.ts +6 -0
- package/dist/swap-vm/strategies/aqua-amm-strategy.d.mts +32 -0
- package/dist/swap-vm/strategies/aqua-amm-strategy.d.ts +32 -0
- package/dist/swap-vm/strategies/index.d.mts +1 -0
- package/dist/swap-vm/strategies/index.d.ts +1 -0
- package/dist/swap-vm/taker-traits.d.mts +214 -0
- package/dist/swap-vm/taker-traits.d.ts +214 -0
- package/dist/swap-vm/types.d.mts +22 -0
- package/dist/swap-vm/types.d.ts +22 -0
- package/dist/swap-vm-contract/constants.d.mts +13 -0
- package/dist/swap-vm-contract/constants.d.ts +13 -0
- package/dist/swap-vm-contract/events/index.d.mts +1 -0
- package/dist/swap-vm-contract/events/index.d.ts +1 -0
- package/dist/swap-vm-contract/events/swapped-event.d.mts +19 -0
- package/dist/swap-vm-contract/events/swapped-event.d.ts +19 -0
- package/dist/swap-vm-contract/index.d.mts +4 -0
- package/dist/swap-vm-contract/index.d.ts +4 -0
- package/dist/swap-vm-contract/swap-vm-contract.d.mts +38 -0
- package/dist/swap-vm-contract/swap-vm-contract.d.ts +38 -0
- package/dist/swap-vm-contract/types.d.mts +22 -0
- package/dist/swap-vm-contract/types.d.ts +22 -0
- package/package.json +72 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
export declare const SWAP_VM_ABI: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "AQUA";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
readonly internalType: "contract IAqua";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "ORDER_TYPEHASH";
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "bytes32";
|
|
18
|
+
readonly internalType: "bytes32";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
readonly name: "asView";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
readonly internalType: "contract ISwapVM";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "view";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "eip712Domain";
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "fields";
|
|
37
|
+
readonly type: "bytes1";
|
|
38
|
+
readonly internalType: "bytes1";
|
|
39
|
+
}, {
|
|
40
|
+
readonly name: "name";
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
readonly internalType: "string";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "version";
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
readonly internalType: "string";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "chainId";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
readonly internalType: "uint256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "verifyingContract";
|
|
53
|
+
readonly type: "address";
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "salt";
|
|
57
|
+
readonly type: "bytes32";
|
|
58
|
+
readonly internalType: "bytes32";
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "extensions";
|
|
61
|
+
readonly type: "uint256[]";
|
|
62
|
+
readonly internalType: "uint256[]";
|
|
63
|
+
}];
|
|
64
|
+
readonly stateMutability: "view";
|
|
65
|
+
}, {
|
|
66
|
+
readonly type: "function";
|
|
67
|
+
readonly name: "hash";
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly name: "order";
|
|
70
|
+
readonly type: "tuple";
|
|
71
|
+
readonly internalType: "struct ISwapVM.Order";
|
|
72
|
+
readonly components: readonly [{
|
|
73
|
+
readonly name: "maker";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "traits";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
readonly internalType: "MakerTraits";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "data";
|
|
82
|
+
readonly type: "bytes";
|
|
83
|
+
readonly internalType: "bytes";
|
|
84
|
+
}];
|
|
85
|
+
}];
|
|
86
|
+
readonly outputs: readonly [{
|
|
87
|
+
readonly name: "";
|
|
88
|
+
readonly type: "bytes32";
|
|
89
|
+
readonly internalType: "bytes32";
|
|
90
|
+
}];
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly name: "quote";
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly name: "order";
|
|
97
|
+
readonly type: "tuple";
|
|
98
|
+
readonly internalType: "struct ISwapVM.Order";
|
|
99
|
+
readonly components: readonly [{
|
|
100
|
+
readonly name: "maker";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "traits";
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
readonly internalType: "MakerTraits";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "data";
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
readonly internalType: "bytes";
|
|
111
|
+
}];
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "tokenIn";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "tokenOut";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
readonly internalType: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "amount";
|
|
122
|
+
readonly type: "uint256";
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "takerTraitsAndData";
|
|
126
|
+
readonly type: "bytes";
|
|
127
|
+
readonly internalType: "bytes";
|
|
128
|
+
}];
|
|
129
|
+
readonly outputs: readonly [{
|
|
130
|
+
readonly name: "amountIn";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "amountOut";
|
|
135
|
+
readonly type: "uint256";
|
|
136
|
+
readonly internalType: "uint256";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "orderHash";
|
|
139
|
+
readonly type: "bytes32";
|
|
140
|
+
readonly internalType: "bytes32";
|
|
141
|
+
}];
|
|
142
|
+
readonly stateMutability: "nonpayable";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "function";
|
|
145
|
+
readonly name: "swap";
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly name: "order";
|
|
148
|
+
readonly type: "tuple";
|
|
149
|
+
readonly internalType: "struct ISwapVM.Order";
|
|
150
|
+
readonly components: readonly [{
|
|
151
|
+
readonly name: "maker";
|
|
152
|
+
readonly type: "address";
|
|
153
|
+
readonly internalType: "address";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "traits";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
readonly internalType: "MakerTraits";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "data";
|
|
160
|
+
readonly type: "bytes";
|
|
161
|
+
readonly internalType: "bytes";
|
|
162
|
+
}];
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "tokenIn";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "tokenOut";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
readonly internalType: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "amount";
|
|
173
|
+
readonly type: "uint256";
|
|
174
|
+
readonly internalType: "uint256";
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "takerTraitsAndData";
|
|
177
|
+
readonly type: "bytes";
|
|
178
|
+
readonly internalType: "bytes";
|
|
179
|
+
}];
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly name: "amountIn";
|
|
182
|
+
readonly type: "uint256";
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "amountOut";
|
|
186
|
+
readonly type: "uint256";
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "orderHash";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
readonly internalType: "bytes32";
|
|
192
|
+
}];
|
|
193
|
+
readonly stateMutability: "nonpayable";
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "event";
|
|
196
|
+
readonly name: "EIP712DomainChanged";
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
readonly anonymous: false;
|
|
199
|
+
}, {
|
|
200
|
+
readonly type: "event";
|
|
201
|
+
readonly name: "Swapped";
|
|
202
|
+
readonly inputs: readonly [{
|
|
203
|
+
readonly name: "orderHash";
|
|
204
|
+
readonly type: "bytes32";
|
|
205
|
+
readonly indexed: false;
|
|
206
|
+
readonly internalType: "bytes32";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "maker";
|
|
209
|
+
readonly type: "address";
|
|
210
|
+
readonly indexed: false;
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "taker";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
readonly indexed: false;
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "tokenIn";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
readonly indexed: false;
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "tokenOut";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
readonly indexed: false;
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "amountIn";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
readonly indexed: false;
|
|
231
|
+
readonly internalType: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "amountOut";
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
readonly indexed: false;
|
|
236
|
+
readonly internalType: "uint256";
|
|
237
|
+
}];
|
|
238
|
+
readonly anonymous: false;
|
|
239
|
+
}, {
|
|
240
|
+
readonly type: "error";
|
|
241
|
+
readonly name: "AquaBalanceInsufficientAfterTakerPush";
|
|
242
|
+
readonly inputs: readonly [{
|
|
243
|
+
readonly name: "balance";
|
|
244
|
+
readonly type: "uint256";
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "preBalance";
|
|
248
|
+
readonly type: "uint256";
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "amount";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
}];
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "error";
|
|
257
|
+
readonly name: "BadSignature";
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly name: "maker";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
readonly internalType: "address";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "orderHash";
|
|
264
|
+
readonly type: "bytes32";
|
|
265
|
+
readonly internalType: "bytes32";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "signature";
|
|
268
|
+
readonly type: "bytes";
|
|
269
|
+
readonly internalType: "bytes";
|
|
270
|
+
}];
|
|
271
|
+
}, {
|
|
272
|
+
readonly type: "error";
|
|
273
|
+
readonly name: "ForceApproveFailed";
|
|
274
|
+
readonly inputs: readonly [];
|
|
275
|
+
}, {
|
|
276
|
+
readonly type: "error";
|
|
277
|
+
readonly name: "InvalidShortString";
|
|
278
|
+
readonly inputs: readonly [];
|
|
279
|
+
}, {
|
|
280
|
+
readonly type: "error";
|
|
281
|
+
readonly name: "MakerTraitsCustomReceiverIsIncompatibleWithAqua";
|
|
282
|
+
readonly inputs: readonly [];
|
|
283
|
+
}, {
|
|
284
|
+
readonly type: "error";
|
|
285
|
+
readonly name: "MakerTraitsTokenInAndTokenOutMustBeDifferent";
|
|
286
|
+
readonly inputs: readonly [];
|
|
287
|
+
}, {
|
|
288
|
+
readonly type: "error";
|
|
289
|
+
readonly name: "MakerTraitsUnwrapIsIncompatibleWithAqua";
|
|
290
|
+
readonly inputs: readonly [];
|
|
291
|
+
}, {
|
|
292
|
+
readonly type: "error";
|
|
293
|
+
readonly name: "MakerTraitsZeroAmountInNotAllowed";
|
|
294
|
+
readonly inputs: readonly [];
|
|
295
|
+
}, {
|
|
296
|
+
readonly type: "error";
|
|
297
|
+
readonly name: "RunLoopExcessiveCall";
|
|
298
|
+
readonly inputs: readonly [{
|
|
299
|
+
readonly name: "pc";
|
|
300
|
+
readonly type: "uint256";
|
|
301
|
+
readonly internalType: "uint256";
|
|
302
|
+
}, {
|
|
303
|
+
readonly name: "programLength";
|
|
304
|
+
readonly type: "uint256";
|
|
305
|
+
readonly internalType: "uint256";
|
|
306
|
+
}];
|
|
307
|
+
}, {
|
|
308
|
+
readonly type: "error";
|
|
309
|
+
readonly name: "SafeTransferFromFailed";
|
|
310
|
+
readonly inputs: readonly [];
|
|
311
|
+
}, {
|
|
312
|
+
readonly type: "error";
|
|
313
|
+
readonly name: "StringTooLong";
|
|
314
|
+
readonly inputs: readonly [{
|
|
315
|
+
readonly name: "str";
|
|
316
|
+
readonly type: "string";
|
|
317
|
+
readonly internalType: "string";
|
|
318
|
+
}];
|
|
319
|
+
}, {
|
|
320
|
+
readonly type: "error";
|
|
321
|
+
readonly name: "TakerTraitsAmountOutMustBeGreaterThanZero";
|
|
322
|
+
readonly inputs: readonly [{
|
|
323
|
+
readonly name: "amountOut";
|
|
324
|
+
readonly type: "uint256";
|
|
325
|
+
readonly internalType: "uint256";
|
|
326
|
+
}];
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "error";
|
|
329
|
+
readonly name: "TakerTraitsExceedingMaxInputAmount";
|
|
330
|
+
readonly inputs: readonly [{
|
|
331
|
+
readonly name: "amountIn";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
readonly internalType: "uint256";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "amountInMax";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
readonly internalType: "uint256";
|
|
338
|
+
}];
|
|
339
|
+
}, {
|
|
340
|
+
readonly type: "error";
|
|
341
|
+
readonly name: "TakerTraitsInsufficientMinOutputAmount";
|
|
342
|
+
readonly inputs: readonly [{
|
|
343
|
+
readonly name: "amountOut";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "amountOutMin";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
readonly internalType: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
}, {
|
|
352
|
+
readonly type: "error";
|
|
353
|
+
readonly name: "TakerTraitsNonExactThresholdAmountIn";
|
|
354
|
+
readonly inputs: readonly [{
|
|
355
|
+
readonly name: "amountIn";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
readonly internalType: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "amountThreshold";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
readonly internalType: "uint256";
|
|
362
|
+
}];
|
|
363
|
+
}, {
|
|
364
|
+
readonly type: "error";
|
|
365
|
+
readonly name: "TakerTraitsNonExactThresholdAmountOut";
|
|
366
|
+
readonly inputs: readonly [{
|
|
367
|
+
readonly name: "amountOut";
|
|
368
|
+
readonly type: "uint256";
|
|
369
|
+
readonly internalType: "uint256";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "amountThreshold";
|
|
372
|
+
readonly type: "uint256";
|
|
373
|
+
readonly internalType: "uint256";
|
|
374
|
+
}];
|
|
375
|
+
}, {
|
|
376
|
+
readonly type: "error";
|
|
377
|
+
readonly name: "TakerTraitsTakerAmountInMismatch";
|
|
378
|
+
readonly inputs: readonly [{
|
|
379
|
+
readonly name: "takerAmount";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
readonly internalType: "uint256";
|
|
382
|
+
}, {
|
|
383
|
+
readonly name: "computedAmount";
|
|
384
|
+
readonly type: "uint256";
|
|
385
|
+
readonly internalType: "uint256";
|
|
386
|
+
}];
|
|
387
|
+
}, {
|
|
388
|
+
readonly type: "error";
|
|
389
|
+
readonly name: "TakerTraitsTakerAmountOutMismatch";
|
|
390
|
+
readonly inputs: readonly [{
|
|
391
|
+
readonly name: "takerAmount";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
}, {
|
|
395
|
+
readonly name: "computedAmount";
|
|
396
|
+
readonly type: "uint256";
|
|
397
|
+
readonly internalType: "uint256";
|
|
398
|
+
}];
|
|
399
|
+
}, {
|
|
400
|
+
readonly type: "error";
|
|
401
|
+
readonly name: "UnexpectedLock";
|
|
402
|
+
readonly inputs: readonly [];
|
|
403
|
+
}];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SwapVM.abi';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SwapVM.abi';
|
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
ADDED