@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,17 @@
|
|
|
1
|
+
import type { Address, HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for checking if taker holds at least specified amount of token
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
|
|
6
|
+
**/
|
|
7
|
+
export declare class OnlyTakerTokenBalanceGteArgs implements IArgsData {
|
|
8
|
+
readonly token: Address;
|
|
9
|
+
readonly minAmount: bigint;
|
|
10
|
+
static readonly CODER: any;
|
|
11
|
+
constructor(token: Address, minAmount: bigint);
|
|
12
|
+
/**
|
|
13
|
+
* Decodes hex data into OnlyTakerTokenBalanceGteArgs instance
|
|
14
|
+
**/
|
|
15
|
+
static decode(data: HexString): OnlyTakerTokenBalanceGteArgs;
|
|
16
|
+
toJSON(): Record<string, unknown>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { OnlyTakerTokenBalanceNonZeroArgs } from './only-taker-token-balance-non-zero-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class OnlyTakerTokenBalanceNonZeroArgsCoder implements IArgsCoder<OnlyTakerTokenBalanceNonZeroArgs> {
|
|
5
|
+
encode(args: OnlyTakerTokenBalanceNonZeroArgs): HexString;
|
|
6
|
+
decode(data: HexString): OnlyTakerTokenBalanceNonZeroArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { OnlyTakerTokenBalanceNonZeroArgs } from './only-taker-token-balance-non-zero-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class OnlyTakerTokenBalanceNonZeroArgsCoder implements IArgsCoder<OnlyTakerTokenBalanceNonZeroArgs> {
|
|
5
|
+
encode(args: OnlyTakerTokenBalanceNonZeroArgs): HexString;
|
|
6
|
+
decode(data: HexString): OnlyTakerTokenBalanceNonZeroArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Address, HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for checking if taker holds any amount of a token
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
|
|
6
|
+
**/
|
|
7
|
+
export declare class OnlyTakerTokenBalanceNonZeroArgs implements IArgsData {
|
|
8
|
+
readonly token: Address;
|
|
9
|
+
static readonly CODER: any;
|
|
10
|
+
constructor(token: Address);
|
|
11
|
+
/**
|
|
12
|
+
* Decodes hex data into OnlyTakerTokenBalanceNonZeroArgs instance
|
|
13
|
+
**/
|
|
14
|
+
static decode(data: HexString): OnlyTakerTokenBalanceNonZeroArgs;
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Address, HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for checking if taker holds any amount of a token
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
|
|
6
|
+
**/
|
|
7
|
+
export declare class OnlyTakerTokenBalanceNonZeroArgs implements IArgsData {
|
|
8
|
+
readonly token: Address;
|
|
9
|
+
static readonly CODER: any;
|
|
10
|
+
constructor(token: Address);
|
|
11
|
+
/**
|
|
12
|
+
* Decodes hex data into OnlyTakerTokenBalanceNonZeroArgs instance
|
|
13
|
+
**/
|
|
14
|
+
static decode(data: HexString): OnlyTakerTokenBalanceNonZeroArgs;
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { OnlyTakerTokenSupplyShareGteArgs } from './only-taker-token-supply-share-gte-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class OnlyTakerTokenSupplyShareGteArgsCoder implements IArgsCoder<OnlyTakerTokenSupplyShareGteArgs> {
|
|
5
|
+
encode(args: OnlyTakerTokenSupplyShareGteArgs): HexString;
|
|
6
|
+
decode(data: HexString): OnlyTakerTokenSupplyShareGteArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { OnlyTakerTokenSupplyShareGteArgs } from './only-taker-token-supply-share-gte-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class OnlyTakerTokenSupplyShareGteArgsCoder implements IArgsCoder<OnlyTakerTokenSupplyShareGteArgs> {
|
|
5
|
+
encode(args: OnlyTakerTokenSupplyShareGteArgs): HexString;
|
|
6
|
+
decode(data: HexString): OnlyTakerTokenSupplyShareGteArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Address, HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { OnlyTakerTokenSupplyShareGteArgsCoder } from './only-taker-token-supply-share-gte-args-coder';
|
|
3
|
+
import type { IArgsData } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Arguments for checking if taker holds at least specified share of token's total supply
|
|
6
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
|
|
7
|
+
**/
|
|
8
|
+
export declare class OnlyTakerTokenSupplyShareGteArgs implements IArgsData {
|
|
9
|
+
readonly token: Address;
|
|
10
|
+
readonly minShareE18: bigint;
|
|
11
|
+
static readonly CODER: OnlyTakerTokenSupplyShareGteArgsCoder;
|
|
12
|
+
constructor(token: Address, minShareE18: bigint);
|
|
13
|
+
/**
|
|
14
|
+
* Decodes hex data into OnlyTakerTokenSupplyShareGteArgs instance
|
|
15
|
+
**/
|
|
16
|
+
static decode(data: HexString): OnlyTakerTokenSupplyShareGteArgs;
|
|
17
|
+
toJSON(): Record<string, unknown>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Address, HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { OnlyTakerTokenSupplyShareGteArgsCoder } from './only-taker-token-supply-share-gte-args-coder';
|
|
3
|
+
import type { IArgsData } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Arguments for checking if taker holds at least specified share of token's total supply
|
|
6
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
|
|
7
|
+
**/
|
|
8
|
+
export declare class OnlyTakerTokenSupplyShareGteArgs implements IArgsData {
|
|
9
|
+
readonly token: Address;
|
|
10
|
+
readonly minShareE18: bigint;
|
|
11
|
+
static readonly CODER: OnlyTakerTokenSupplyShareGteArgsCoder;
|
|
12
|
+
constructor(token: Address, minShareE18: bigint);
|
|
13
|
+
/**
|
|
14
|
+
* Decodes hex data into OnlyTakerTokenSupplyShareGteArgs instance
|
|
15
|
+
**/
|
|
16
|
+
static decode(data: HexString): OnlyTakerTokenSupplyShareGteArgs;
|
|
17
|
+
toJSON(): Record<string, unknown>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { JumpArgs } from './jump-args';
|
|
2
|
+
import { JumpIfTokenArgs } from './jump-if-token-args';
|
|
3
|
+
import { DeadlineArgs } from './deadline-args';
|
|
4
|
+
import { OnlyTakerTokenBalanceNonZeroArgs } from './only-taker-token-balance-non-zero-args';
|
|
5
|
+
import { OnlyTakerTokenBalanceGteArgs } from './only-taker-token-balance-gte-args';
|
|
6
|
+
import { OnlyTakerTokenSupplyShareGteArgs } from './only-taker-token-supply-share-gte-args';
|
|
7
|
+
import { SaltArgs } from './salt-args';
|
|
8
|
+
import { Opcode } from '../opcode';
|
|
9
|
+
/**
|
|
10
|
+
* Unconditional jump to specified program counter
|
|
11
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L52
|
|
12
|
+
**/
|
|
13
|
+
export declare const jump: Opcode<JumpArgs>;
|
|
14
|
+
export declare const jumpIfTokenIn: Opcode<JumpIfTokenArgs>;
|
|
15
|
+
export declare const jumpIfTokenOut: Opcode<JumpIfTokenArgs>;
|
|
16
|
+
export declare const deadline: Opcode<DeadlineArgs>;
|
|
17
|
+
/**
|
|
18
|
+
* Requires taker to hold any amount of specified token (supports NFTs)
|
|
19
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L77
|
|
20
|
+
**/
|
|
21
|
+
export declare const onlyTakerTokenBalanceNonZero: Opcode<OnlyTakerTokenBalanceNonZeroArgs>;
|
|
22
|
+
/**
|
|
23
|
+
* Requires taker to hold at least specified amount of token
|
|
24
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L86
|
|
25
|
+
*/
|
|
26
|
+
export declare const onlyTakerTokenBalanceGte: Opcode<OnlyTakerTokenBalanceGteArgs>;
|
|
27
|
+
/**
|
|
28
|
+
* Requires taker to hold at least specified share of token's total supply
|
|
29
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L96
|
|
30
|
+
**/
|
|
31
|
+
export declare const onlyTakerTokenSupplyShareGte: Opcode<OnlyTakerTokenSupplyShareGteArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* No-op instruction used to add uniqueness to order hashes (prevents replay attacks)
|
|
34
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L48
|
|
35
|
+
**/
|
|
36
|
+
export declare const salt: Opcode<SaltArgs>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { JumpArgs } from './jump-args';
|
|
2
|
+
import { JumpIfTokenArgs } from './jump-if-token-args';
|
|
3
|
+
import { DeadlineArgs } from './deadline-args';
|
|
4
|
+
import { OnlyTakerTokenBalanceNonZeroArgs } from './only-taker-token-balance-non-zero-args';
|
|
5
|
+
import { OnlyTakerTokenBalanceGteArgs } from './only-taker-token-balance-gte-args';
|
|
6
|
+
import { OnlyTakerTokenSupplyShareGteArgs } from './only-taker-token-supply-share-gte-args';
|
|
7
|
+
import { SaltArgs } from './salt-args';
|
|
8
|
+
import { Opcode } from '../opcode';
|
|
9
|
+
/**
|
|
10
|
+
* Unconditional jump to specified program counter
|
|
11
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L52
|
|
12
|
+
**/
|
|
13
|
+
export declare const jump: Opcode<JumpArgs>;
|
|
14
|
+
export declare const jumpIfTokenIn: Opcode<JumpIfTokenArgs>;
|
|
15
|
+
export declare const jumpIfTokenOut: Opcode<JumpIfTokenArgs>;
|
|
16
|
+
export declare const deadline: Opcode<DeadlineArgs>;
|
|
17
|
+
/**
|
|
18
|
+
* Requires taker to hold any amount of specified token (supports NFTs)
|
|
19
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L77
|
|
20
|
+
**/
|
|
21
|
+
export declare const onlyTakerTokenBalanceNonZero: Opcode<OnlyTakerTokenBalanceNonZeroArgs>;
|
|
22
|
+
/**
|
|
23
|
+
* Requires taker to hold at least specified amount of token
|
|
24
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L86
|
|
25
|
+
*/
|
|
26
|
+
export declare const onlyTakerTokenBalanceGte: Opcode<OnlyTakerTokenBalanceGteArgs>;
|
|
27
|
+
/**
|
|
28
|
+
* Requires taker to hold at least specified share of token's total supply
|
|
29
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L96
|
|
30
|
+
**/
|
|
31
|
+
export declare const onlyTakerTokenSupplyShareGte: Opcode<OnlyTakerTokenSupplyShareGteArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* No-op instruction used to add uniqueness to order hashes (prevents replay attacks)
|
|
34
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L48
|
|
35
|
+
**/
|
|
36
|
+
export declare const salt: Opcode<SaltArgs>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { SaltArgs } from './salt-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class SaltArgsCoder implements IArgsCoder<SaltArgs> {
|
|
5
|
+
encode(args: SaltArgs): HexString;
|
|
6
|
+
decode(data: HexString): SaltArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { SaltArgs } from './salt-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class SaltArgsCoder implements IArgsCoder<SaltArgs> {
|
|
5
|
+
encode(args: SaltArgs): HexString;
|
|
6
|
+
decode(data: HexString): SaltArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for salt instruction used to add uniqueness to order hashes
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L48
|
|
6
|
+
**/
|
|
7
|
+
export declare class SaltArgs implements IArgsData {
|
|
8
|
+
readonly salt: bigint;
|
|
9
|
+
static readonly CODER: any;
|
|
10
|
+
constructor(salt: bigint);
|
|
11
|
+
/**
|
|
12
|
+
* Decodes hex data into SaltArgs instance
|
|
13
|
+
**/
|
|
14
|
+
static decode(data: HexString): SaltArgs;
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for salt instruction used to add uniqueness to order hashes
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L48
|
|
6
|
+
**/
|
|
7
|
+
export declare class SaltArgs implements IArgsData {
|
|
8
|
+
readonly salt: bigint;
|
|
9
|
+
static readonly CODER: any;
|
|
10
|
+
constructor(salt: bigint);
|
|
11
|
+
/**
|
|
12
|
+
* Decodes hex data into SaltArgs instance
|
|
13
|
+
**/
|
|
14
|
+
static decode(data: HexString): SaltArgs;
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData, IArgsCoder } from '../types';
|
|
3
|
+
declare class DebugEmptyArgsCoder implements IArgsCoder<DebugEmptyArgs> {
|
|
4
|
+
encode(_args: DebugEmptyArgs): HexString;
|
|
5
|
+
decode(_data: HexString): DebugEmptyArgs;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Debug empty instruction arguments - used for debugging purposes
|
|
9
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Debug.sol
|
|
10
|
+
**/
|
|
11
|
+
export declare class DebugEmptyArgs implements IArgsData {
|
|
12
|
+
static readonly CODER: DebugEmptyArgsCoder;
|
|
13
|
+
/**
|
|
14
|
+
* Decodes hex data into DebugEmptyArgs instance
|
|
15
|
+
**/
|
|
16
|
+
static decode(_data: HexString): DebugEmptyArgs;
|
|
17
|
+
toJSON(): null;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData, IArgsCoder } from '../types';
|
|
3
|
+
declare class DebugEmptyArgsCoder implements IArgsCoder<DebugEmptyArgs> {
|
|
4
|
+
encode(_args: DebugEmptyArgs): HexString;
|
|
5
|
+
decode(_data: HexString): DebugEmptyArgs;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Debug empty instruction arguments - used for debugging purposes
|
|
9
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Debug.sol
|
|
10
|
+
**/
|
|
11
|
+
export declare class DebugEmptyArgs implements IArgsData {
|
|
12
|
+
static readonly CODER: DebugEmptyArgsCoder;
|
|
13
|
+
/**
|
|
14
|
+
* Decodes hex data into DebugEmptyArgs instance
|
|
15
|
+
**/
|
|
16
|
+
static decode(_data: HexString): DebugEmptyArgs;
|
|
17
|
+
toJSON(): null;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DebugEmptyArgs } from './debug-empty-args';
|
|
2
|
+
import { PrintSwapRegistersArgs } from './print-swap-registers';
|
|
3
|
+
import { PrintSwapQueryArgs } from './print-swap-query';
|
|
4
|
+
import { PrintContextArgs } from './print-context';
|
|
5
|
+
import { PrintAmountForSwapArgs } from './print-amount-for-swap';
|
|
6
|
+
import { PrintFreeMemoryPointerArgs } from './print-free-memory-pointer';
|
|
7
|
+
import { PrintGasLeftArgs } from './print-gas-left';
|
|
8
|
+
export { DebugEmptyArgs, PrintSwapRegistersArgs, PrintSwapQueryArgs, PrintContextArgs, PrintAmountForSwapArgs, PrintFreeMemoryPointerArgs, PrintGasLeftArgs, };
|
|
9
|
+
/**
|
|
10
|
+
* Debug empty opcode - placeholder
|
|
11
|
+
*/
|
|
12
|
+
export declare const debugEmpty: any;
|
|
13
|
+
export declare const printSwapRegisters: any;
|
|
14
|
+
export declare const printSwapQuery: any;
|
|
15
|
+
export declare const printContext: any;
|
|
16
|
+
export declare const printAmountForSwap: any;
|
|
17
|
+
export declare const printFreeMemoryPointer: any;
|
|
18
|
+
export declare const printGasLeft: any;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DebugEmptyArgs } from './debug-empty-args';
|
|
2
|
+
import { PrintSwapRegistersArgs } from './print-swap-registers';
|
|
3
|
+
import { PrintSwapQueryArgs } from './print-swap-query';
|
|
4
|
+
import { PrintContextArgs } from './print-context';
|
|
5
|
+
import { PrintAmountForSwapArgs } from './print-amount-for-swap';
|
|
6
|
+
import { PrintFreeMemoryPointerArgs } from './print-free-memory-pointer';
|
|
7
|
+
import { PrintGasLeftArgs } from './print-gas-left';
|
|
8
|
+
export { DebugEmptyArgs, PrintSwapRegistersArgs, PrintSwapQueryArgs, PrintContextArgs, PrintAmountForSwapArgs, PrintFreeMemoryPointerArgs, PrintGasLeftArgs, };
|
|
9
|
+
/**
|
|
10
|
+
* Debug empty opcode - placeholder
|
|
11
|
+
*/
|
|
12
|
+
export declare const debugEmpty: any;
|
|
13
|
+
export declare const printSwapRegisters: any;
|
|
14
|
+
export declare const printSwapQuery: any;
|
|
15
|
+
export declare const printContext: any;
|
|
16
|
+
export declare const printAmountForSwap: any;
|
|
17
|
+
export declare const printFreeMemoryPointer: any;
|
|
18
|
+
export declare const printGasLeft: any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintAmountForSwapArgsCoder implements IArgsCoder<PrintAmountForSwapArgs> {
|
|
5
|
+
encode(_args: PrintAmountForSwapArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintAmountForSwapArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print amount for swap
|
|
10
|
+
* @see Debug._printAmountForSwap in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintAmountForSwapArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintAmountForSwapArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintAmountForSwapArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintAmountForSwapArgsCoder implements IArgsCoder<PrintAmountForSwapArgs> {
|
|
5
|
+
encode(_args: PrintAmountForSwapArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintAmountForSwapArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print amount for swap
|
|
10
|
+
* @see Debug._printAmountForSwap in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintAmountForSwapArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintAmountForSwapArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintAmountForSwapArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintContextArgsCoder implements IArgsCoder<PrintContextArgs> {
|
|
5
|
+
encode(_args: PrintContextArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintContextArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print execution context
|
|
10
|
+
* @see Debug._printContext in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintContextArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintContextArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintContextArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintContextArgsCoder implements IArgsCoder<PrintContextArgs> {
|
|
5
|
+
encode(_args: PrintContextArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintContextArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print execution context
|
|
10
|
+
* @see Debug._printContext in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintContextArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintContextArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintContextArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintFreeMemoryPointerArgsCoder implements IArgsCoder<PrintFreeMemoryPointerArgs> {
|
|
5
|
+
encode(_args: PrintFreeMemoryPointerArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintFreeMemoryPointerArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print free memory pointer
|
|
10
|
+
* @see Debug._printFreeMemoryPointer in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintFreeMemoryPointerArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintFreeMemoryPointerArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintFreeMemoryPointerArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintFreeMemoryPointerArgsCoder implements IArgsCoder<PrintFreeMemoryPointerArgs> {
|
|
5
|
+
encode(_args: PrintFreeMemoryPointerArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintFreeMemoryPointerArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print free memory pointer
|
|
10
|
+
* @see Debug._printFreeMemoryPointer in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintFreeMemoryPointerArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintFreeMemoryPointerArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintFreeMemoryPointerArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintGasLeftArgsCoder implements IArgsCoder<PrintGasLeftArgs> {
|
|
5
|
+
encode(_args: PrintGasLeftArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintGasLeftArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print remaining gas
|
|
10
|
+
* @see Debug._printGasLeft in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintGasLeftArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintGasLeftArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintGasLeftArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintGasLeftArgsCoder implements IArgsCoder<PrintGasLeftArgs> {
|
|
5
|
+
encode(_args: PrintGasLeftArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintGasLeftArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print remaining gas
|
|
10
|
+
* @see Debug._printGasLeft in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintGasLeftArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintGasLeftArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintGasLeftArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintSwapQueryArgsCoder implements IArgsCoder<PrintSwapQueryArgs> {
|
|
5
|
+
encode(_args: PrintSwapQueryArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintSwapQueryArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print swap query information
|
|
10
|
+
* @see Debug._printSwapQuery in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintSwapQueryArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintSwapQueryArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintSwapQueryArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintSwapQueryArgsCoder implements IArgsCoder<PrintSwapQueryArgs> {
|
|
5
|
+
encode(_args: PrintSwapQueryArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintSwapQueryArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print swap query information
|
|
10
|
+
* @see Debug._printSwapQuery in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintSwapQueryArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintSwapQueryArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintSwapQueryArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintSwapRegistersArgsCoder implements IArgsCoder<PrintSwapRegistersArgs> {
|
|
5
|
+
encode(_args: PrintSwapRegistersArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintSwapRegistersArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print swap registers
|
|
10
|
+
* @see Debug._printSwapRegisters in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintSwapRegistersArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintSwapRegistersArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintSwapRegistersArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DebugArgs } from './debug-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
declare class PrintSwapRegistersArgsCoder implements IArgsCoder<PrintSwapRegistersArgs> {
|
|
5
|
+
encode(_args: PrintSwapRegistersArgs): HexString;
|
|
6
|
+
decode(_data: HexString): PrintSwapRegistersArgs;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Debug instruction to print swap registers
|
|
10
|
+
* @see Debug._printSwapRegisters in Solidity
|
|
11
|
+
*/
|
|
12
|
+
export declare class PrintSwapRegistersArgs extends DebugArgs {
|
|
13
|
+
static readonly CODER: PrintSwapRegistersArgsCoder;
|
|
14
|
+
static decode(_data: HexString): PrintSwapRegistersArgs;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DecayXDArgs } from './decay-xd-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class DecayXDArgsCoder implements IArgsCoder<DecayXDArgs> {
|
|
5
|
+
encode(args: DecayXDArgs): HexString;
|
|
6
|
+
decode(data: HexString): DecayXDArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import { DecayXDArgs } from './decay-xd-args';
|
|
3
|
+
import type { IArgsCoder } from '../types';
|
|
4
|
+
export declare class DecayXDArgsCoder implements IArgsCoder<DecayXDArgs> {
|
|
5
|
+
encode(args: DecayXDArgs): HexString;
|
|
6
|
+
decode(data: HexString): DecayXDArgs;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for decayXD instruction with decay period
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Decay.sol#L79
|
|
6
|
+
**/
|
|
7
|
+
export declare class DecayXDArgs implements IArgsData {
|
|
8
|
+
readonly decayPeriod: bigint;
|
|
9
|
+
static readonly CODER: any;
|
|
10
|
+
constructor(decayPeriod: bigint);
|
|
11
|
+
/**
|
|
12
|
+
* Decodes hex data into DecayXDArgs instance
|
|
13
|
+
**/
|
|
14
|
+
static decode(data: HexString): DecayXDArgs;
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HexString } from '@1inch/sdk-core';
|
|
2
|
+
import type { IArgsData } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Arguments for decayXD instruction with decay period
|
|
5
|
+
* @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Decay.sol#L79
|
|
6
|
+
**/
|
|
7
|
+
export declare class DecayXDArgs implements IArgsData {
|
|
8
|
+
readonly decayPeriod: bigint;
|
|
9
|
+
static readonly CODER: any;
|
|
10
|
+
constructor(decayPeriod: bigint);
|
|
11
|
+
/**
|
|
12
|
+
* Decodes hex data into DecayXDArgs instance
|
|
13
|
+
**/
|
|
14
|
+
static decode(data: HexString): DecayXDArgs;
|
|
15
|
+
toJSON(): Record<string, unknown>;
|
|
16
|
+
}
|