@1inch/swap-vm-sdk 0.1.2-rc.5 → 0.1.2-rc.6

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.
Files changed (93) hide show
  1. package/dist/swap-vm/instructions/balances/balances-args.d.mts +2 -2
  2. package/dist/swap-vm/instructions/balances/balances-args.d.ts +2 -2
  3. package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args.d.mts +2 -2
  4. package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args.d.ts +2 -2
  5. package/dist/swap-vm/instructions/base-fee-adjuster/opcodes.d.mts +3 -1
  6. package/dist/swap-vm/instructions/base-fee-adjuster/opcodes.d.ts +3 -1
  7. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args.d.mts +2 -2
  8. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args.d.ts +2 -2
  9. package/dist/swap-vm/instructions/concentrate/opcodes.d.mts +3 -1
  10. package/dist/swap-vm/instructions/concentrate/opcodes.d.ts +3 -1
  11. package/dist/swap-vm/instructions/controls/deadline-args.d.mts +2 -2
  12. package/dist/swap-vm/instructions/controls/deadline-args.d.ts +2 -2
  13. package/dist/swap-vm/instructions/controls/jump-args.d.mts +2 -2
  14. package/dist/swap-vm/instructions/controls/jump-args.d.ts +2 -2
  15. package/dist/swap-vm/instructions/controls/jump-if-token-args.d.mts +2 -2
  16. package/dist/swap-vm/instructions/controls/jump-if-token-args.d.ts +2 -2
  17. package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args.d.mts +2 -2
  18. package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args.d.ts +2 -2
  19. package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args.d.mts +2 -2
  20. package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args.d.ts +2 -2
  21. package/dist/swap-vm/instructions/controls/salt-args.d.mts +2 -2
  22. package/dist/swap-vm/instructions/controls/salt-args.d.ts +2 -2
  23. package/dist/swap-vm/instructions/debug/debug-empty-args.d.mts +1 -6
  24. package/dist/swap-vm/instructions/debug/debug-empty-args.d.ts +1 -6
  25. package/dist/swap-vm/instructions/debug/opcodes.d.mts +8 -7
  26. package/dist/swap-vm/instructions/debug/opcodes.d.ts +8 -7
  27. package/dist/swap-vm/instructions/debug/print-amount-for-swap.d.mts +1 -6
  28. package/dist/swap-vm/instructions/debug/print-amount-for-swap.d.ts +1 -6
  29. package/dist/swap-vm/instructions/debug/print-context.d.mts +1 -6
  30. package/dist/swap-vm/instructions/debug/print-context.d.ts +1 -6
  31. package/dist/swap-vm/instructions/debug/print-free-memory-pointer.d.mts +1 -6
  32. package/dist/swap-vm/instructions/debug/print-free-memory-pointer.d.ts +1 -6
  33. package/dist/swap-vm/instructions/debug/print-gas-left.d.mts +1 -6
  34. package/dist/swap-vm/instructions/debug/print-gas-left.d.ts +1 -6
  35. package/dist/swap-vm/instructions/debug/print-swap-query.d.mts +1 -6
  36. package/dist/swap-vm/instructions/debug/print-swap-query.d.ts +1 -6
  37. package/dist/swap-vm/instructions/debug/print-swap-registers.d.mts +1 -6
  38. package/dist/swap-vm/instructions/debug/print-swap-registers.d.ts +1 -6
  39. package/dist/swap-vm/instructions/decay/decay-xd-args.d.mts +2 -2
  40. package/dist/swap-vm/instructions/decay/decay-xd-args.d.ts +2 -2
  41. package/dist/swap-vm/instructions/decay/opcodes.d.mts +3 -1
  42. package/dist/swap-vm/instructions/decay/opcodes.d.ts +3 -1
  43. package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args.d.mts +2 -2
  44. package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args.d.ts +2 -2
  45. package/dist/swap-vm/instructions/dutch-auction/opcodes.d.mts +4 -2
  46. package/dist/swap-vm/instructions/dutch-auction/opcodes.d.ts +4 -2
  47. package/dist/swap-vm/instructions/extruction/extruction-args.d.mts +2 -2
  48. package/dist/swap-vm/instructions/extruction/extruction-args.d.ts +2 -2
  49. package/dist/swap-vm/instructions/extruction/opcodes.d.mts +3 -1
  50. package/dist/swap-vm/instructions/extruction/opcodes.d.ts +3 -1
  51. package/dist/swap-vm/instructions/fee/dynamic-protocol-fee/dynamic-protocol-fee-args.d.mts +2 -2
  52. package/dist/swap-vm/instructions/fee/dynamic-protocol-fee/dynamic-protocol-fee-args.d.ts +2 -2
  53. package/dist/swap-vm/instructions/fee/flat-fee/flat-fee-args.d.mts +2 -2
  54. package/dist/swap-vm/instructions/fee/flat-fee/flat-fee-args.d.ts +2 -2
  55. package/dist/swap-vm/instructions/fee/opcodes.d.mts +14 -10
  56. package/dist/swap-vm/instructions/fee/opcodes.d.ts +14 -10
  57. package/dist/swap-vm/instructions/fee/protocol-fee/protocol-fee-args.d.mts +2 -2
  58. package/dist/swap-vm/instructions/fee/protocol-fee/protocol-fee-args.d.ts +2 -2
  59. package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args.d.mts +2 -2
  60. package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args.d.ts +2 -2
  61. package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args.d.mts +2 -2
  62. package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args.d.ts +2 -2
  63. package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args.d.mts +2 -2
  64. package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args.d.ts +2 -2
  65. package/dist/swap-vm/instructions/invalidators/opcodes.d.mts +7 -3
  66. package/dist/swap-vm/instructions/invalidators/opcodes.d.ts +7 -3
  67. package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args.d.mts +2 -2
  68. package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args.d.ts +2 -2
  69. package/dist/swap-vm/instructions/limit-swap/opcodes.d.mts +4 -2
  70. package/dist/swap-vm/instructions/limit-swap/opcodes.d.ts +4 -2
  71. package/dist/swap-vm/instructions/min-rate/min-rate-args.d.mts +2 -2
  72. package/dist/swap-vm/instructions/min-rate/min-rate-args.d.ts +2 -2
  73. package/dist/swap-vm/instructions/min-rate/opcodes.d.mts +4 -2
  74. package/dist/swap-vm/instructions/min-rate/opcodes.d.ts +4 -2
  75. package/dist/swap-vm/instructions/oracle-price-adjuster/opcodes.d.mts +3 -1
  76. package/dist/swap-vm/instructions/oracle-price-adjuster/opcodes.d.ts +3 -1
  77. package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args.d.mts +2 -2
  78. package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args.d.ts +2 -2
  79. package/dist/swap-vm/instructions/pegged-swap/opcodes.d.mts +3 -1
  80. package/dist/swap-vm/instructions/pegged-swap/opcodes.d.ts +3 -1
  81. package/dist/swap-vm/instructions/pegged-swap/pegged-swap-args.d.mts +2 -2
  82. package/dist/swap-vm/instructions/pegged-swap/pegged-swap-args.d.ts +2 -2
  83. package/dist/swap-vm/instructions/twap-swap/opcodes.d.mts +3 -1
  84. package/dist/swap-vm/instructions/twap-swap/opcodes.d.ts +3 -1
  85. package/dist/swap-vm/instructions/twap-swap/twap-swap-args.d.mts +2 -2
  86. package/dist/swap-vm/instructions/twap-swap/twap-swap-args.d.ts +2 -2
  87. package/dist/swap-vm/instructions/xyc-swap/opcodes.d.mts +3 -1
  88. package/dist/swap-vm/instructions/xyc-swap/opcodes.d.ts +3 -1
  89. package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args.d.mts +2 -2
  90. package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args.d.ts +2 -2
  91. package/dist/swap-vm/maker-traits.d.mts +1 -1
  92. package/dist/swap-vm/maker-traits.d.ts +1 -1
  93. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
2
  import type { TokenBalance } from './types';
3
- import type { IArgsData } from '../types';
3
+ import type { IArgsCoder, IArgsData } from '../types';
4
4
  /**
5
5
  * Arguments for setBalances and balances instructions containing token-amount pairs
6
6
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Balances.sol#L10
7
7
  **/
8
8
  export declare class BalancesArgs implements IArgsData {
9
9
  readonly tokenBalances: TokenBalance[];
10
- static readonly CODER: any;
10
+ static readonly CODER: IArgsCoder<BalancesArgs>;
11
11
  constructor(tokenBalances: TokenBalance[]);
12
12
  /**
13
13
  * Decodes hex data into BalancesArgs instance
@@ -1,13 +1,13 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
2
  import type { TokenBalance } from './types';
3
- import type { IArgsData } from '../types';
3
+ import type { IArgsCoder, IArgsData } from '../types';
4
4
  /**
5
5
  * Arguments for setBalances and balances instructions containing token-amount pairs
6
6
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Balances.sol#L10
7
7
  **/
8
8
  export declare class BalancesArgs implements IArgsData {
9
9
  readonly tokenBalances: TokenBalance[];
10
- static readonly CODER: any;
10
+ static readonly CODER: IArgsCoder<BalancesArgs>;
11
11
  constructor(tokenBalances: TokenBalance[]);
12
12
  /**
13
13
  * Decodes hex data into BalancesArgs instance
@@ -1,5 +1,5 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * @notice Base Fee Gas Price Adjuster instruction for dynamic price adjustment based on network gas costs
5
5
  * @dev Adjusts swap prices based on current gas conditions to compensate for transaction costs:
@@ -24,7 +24,7 @@ export declare class BaseFeeAdjusterArgs implements IArgsData {
24
24
  readonly ethToToken1Price: bigint;
25
25
  readonly gasAmount: bigint;
26
26
  readonly maxPriceDecay: bigint;
27
- static readonly CODER: any;
27
+ static readonly CODER: IArgsCoder<BaseFeeAdjusterArgs>;
28
28
  /**
29
29
  * baseGasPrice - base gas price for comparison (uint64)
30
30
  * ethToToken1Price - ETH price in token1 units, e.g.,
@@ -1,5 +1,5 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * @notice Base Fee Gas Price Adjuster instruction for dynamic price adjustment based on network gas costs
5
5
  * @dev Adjusts swap prices based on current gas conditions to compensate for transaction costs:
@@ -24,7 +24,7 @@ export declare class BaseFeeAdjusterArgs implements IArgsData {
24
24
  readonly ethToToken1Price: bigint;
25
25
  readonly gasAmount: bigint;
26
26
  readonly maxPriceDecay: bigint;
27
- static readonly CODER: any;
27
+ static readonly CODER: IArgsCoder<BaseFeeAdjusterArgs>;
28
28
  /**
29
29
  * baseGasPrice - base gas price for comparison (uint64)
30
30
  * ethToToken1Price - ETH price in token1 units, e.g.,
@@ -1,5 +1,7 @@
1
+ import { BaseFeeAdjusterArgs } from './base-fee-adjuster-args';
2
+ import { Opcode } from '../opcode';
1
3
  /**
2
4
  * Adjusts swap prices based on network gas costs
3
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/BaseFeeAdjuster.sol#L75
4
6
  **/
5
- export declare const baseFeeAdjuster1D: any;
7
+ export declare const baseFeeAdjuster1D: Opcode<BaseFeeAdjusterArgs>;
@@ -1,5 +1,7 @@
1
+ import { BaseFeeAdjusterArgs } from './base-fee-adjuster-args';
2
+ import { Opcode } from '../opcode';
1
3
  /**
2
4
  * Adjusts swap prices based on network gas costs
3
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/BaseFeeAdjuster.sol#L75
4
6
  **/
5
- export declare const baseFeeAdjuster1D: any;
7
+ export declare const baseFeeAdjuster1D: Opcode<BaseFeeAdjusterArgs>;
@@ -1,5 +1,5 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  export declare const ONE_E18: bigint;
4
4
  /**
5
5
  * Arguments for concentrateGrowLiquidity2D instruction
@@ -10,7 +10,7 @@ export declare const ONE_E18: bigint;
10
10
  export declare class ConcentrateGrowLiquidity2DArgs implements IArgsData {
11
11
  readonly sqrtPriceMin: bigint;
12
12
  readonly sqrtPriceMax: bigint;
13
- static readonly CODER: any;
13
+ static readonly CODER: IArgsCoder<ConcentrateGrowLiquidity2DArgs>;
14
14
  constructor(sqrtPriceMin: bigint, sqrtPriceMax: bigint);
15
15
  /**
16
16
  * Build args from sqrt prices (1e18 fixed-point).
@@ -1,5 +1,5 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  export declare const ONE_E18: bigint;
4
4
  /**
5
5
  * Arguments for concentrateGrowLiquidity2D instruction
@@ -10,7 +10,7 @@ export declare const ONE_E18: bigint;
10
10
  export declare class ConcentrateGrowLiquidity2DArgs implements IArgsData {
11
11
  readonly sqrtPriceMin: bigint;
12
12
  readonly sqrtPriceMax: bigint;
13
- static readonly CODER: any;
13
+ static readonly CODER: IArgsCoder<ConcentrateGrowLiquidity2DArgs>;
14
14
  constructor(sqrtPriceMin: bigint, sqrtPriceMax: bigint);
15
15
  /**
16
16
  * Build args from sqrt prices (1e18 fixed-point).
@@ -1,5 +1,7 @@
1
+ import { ConcentrateGrowLiquidity2DArgs } from './concentrate-grow-liquidity-2d-args';
2
+ import { Opcode } from '../opcode';
1
3
  /**
2
4
  * Concentrates liquidity within price bounds for two tokens
3
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/XYCConcentrate.sol#L172
4
6
  **/
5
- export declare const concentrateGrowLiquidity2D: any;
7
+ export declare const concentrateGrowLiquidity2D: Opcode<ConcentrateGrowLiquidity2DArgs>;
@@ -1,5 +1,7 @@
1
+ import { ConcentrateGrowLiquidity2DArgs } from './concentrate-grow-liquidity-2d-args';
2
+ import { Opcode } from '../opcode';
1
3
  /**
2
4
  * Concentrates liquidity within price bounds for two tokens
3
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/XYCConcentrate.sol#L172
4
6
  **/
5
- export declare const concentrateGrowLiquidity2D: any;
7
+ export declare const concentrateGrowLiquidity2D: Opcode<ConcentrateGrowLiquidity2DArgs>;
@@ -1,8 +1,8 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  export declare class DeadlineArgs implements IArgsData {
4
4
  readonly deadline: bigint;
5
- static readonly CODER: any;
5
+ static readonly CODER: IArgsCoder<DeadlineArgs>;
6
6
  constructor(deadline: bigint);
7
7
  static decode(data: HexString): DeadlineArgs;
8
8
  toJSON(): Record<string, unknown>;
@@ -1,8 +1,8 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  export declare class DeadlineArgs implements IArgsData {
4
4
  readonly deadline: bigint;
5
- static readonly CODER: any;
5
+ static readonly CODER: IArgsCoder<DeadlineArgs>;
6
6
  constructor(deadline: bigint);
7
7
  static decode(data: HexString): DeadlineArgs;
8
8
  toJSON(): Record<string, unknown>;
@@ -1,12 +1,12 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for jump instructions containing target program counter
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
6
6
  **/
7
7
  export declare class JumpArgs implements IArgsData {
8
8
  readonly nextPC: bigint;
9
- static readonly CODER: any;
9
+ static readonly CODER: IArgsCoder<JumpArgs>;
10
10
  constructor(nextPC: bigint);
11
11
  /**
12
12
  * Decodes hex data into JumpArgs instance
@@ -1,12 +1,12 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for jump instructions containing target program counter
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
6
6
  **/
7
7
  export declare class JumpArgs implements IArgsData {
8
8
  readonly nextPC: bigint;
9
- static readonly CODER: any;
9
+ static readonly CODER: IArgsCoder<JumpArgs>;
10
10
  constructor(nextPC: bigint);
11
11
  /**
12
12
  * Decodes hex data into JumpArgs instance
@@ -1,9 +1,9 @@
1
1
  import type { HexString, AddressHalf } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  export declare class JumpIfTokenArgs implements IArgsData {
4
4
  readonly tokenTail: AddressHalf;
5
5
  readonly nextPC: bigint;
6
- static readonly CODER: any;
6
+ static readonly CODER: IArgsCoder<JumpIfTokenArgs>;
7
7
  constructor(tokenTail: AddressHalf, nextPC: bigint);
8
8
  static decode(data: HexString): JumpIfTokenArgs;
9
9
  toJSON(): Record<string, unknown>;
@@ -1,9 +1,9 @@
1
1
  import type { HexString, AddressHalf } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  export declare class JumpIfTokenArgs implements IArgsData {
4
4
  readonly tokenTail: AddressHalf;
5
5
  readonly nextPC: bigint;
6
- static readonly CODER: any;
6
+ static readonly CODER: IArgsCoder<JumpIfTokenArgs>;
7
7
  constructor(tokenTail: AddressHalf, nextPC: bigint);
8
8
  static decode(data: HexString): JumpIfTokenArgs;
9
9
  toJSON(): Record<string, unknown>;
@@ -1,5 +1,5 @@
1
1
  import type { Address, HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for checking if taker holds at least specified amount of token
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
@@ -7,7 +7,7 @@ import type { IArgsData } from '../types';
7
7
  export declare class OnlyTakerTokenBalanceGteArgs implements IArgsData {
8
8
  readonly token: Address;
9
9
  readonly minAmount: bigint;
10
- static readonly CODER: any;
10
+ static readonly CODER: IArgsCoder<OnlyTakerTokenBalanceGteArgs>;
11
11
  constructor(token: Address, minAmount: bigint);
12
12
  /**
13
13
  * Decodes hex data into OnlyTakerTokenBalanceGteArgs instance
@@ -1,5 +1,5 @@
1
1
  import type { Address, HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for checking if taker holds at least specified amount of token
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
@@ -7,7 +7,7 @@ import type { IArgsData } from '../types';
7
7
  export declare class OnlyTakerTokenBalanceGteArgs implements IArgsData {
8
8
  readonly token: Address;
9
9
  readonly minAmount: bigint;
10
- static readonly CODER: any;
10
+ static readonly CODER: IArgsCoder<OnlyTakerTokenBalanceGteArgs>;
11
11
  constructor(token: Address, minAmount: bigint);
12
12
  /**
13
13
  * Decodes hex data into OnlyTakerTokenBalanceGteArgs instance
@@ -1,12 +1,12 @@
1
1
  import type { Address, HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for checking if taker holds any amount of a token
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
6
6
  **/
7
7
  export declare class OnlyTakerTokenBalanceNonZeroArgs implements IArgsData {
8
8
  readonly token: Address;
9
- static readonly CODER: any;
9
+ static readonly CODER: IArgsCoder<OnlyTakerTokenBalanceNonZeroArgs>;
10
10
  constructor(token: Address);
11
11
  /**
12
12
  * Decodes hex data into OnlyTakerTokenBalanceNonZeroArgs instance
@@ -1,12 +1,12 @@
1
1
  import type { Address, HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for checking if taker holds any amount of a token
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L10
6
6
  **/
7
7
  export declare class OnlyTakerTokenBalanceNonZeroArgs implements IArgsData {
8
8
  readonly token: Address;
9
- static readonly CODER: any;
9
+ static readonly CODER: IArgsCoder<OnlyTakerTokenBalanceNonZeroArgs>;
10
10
  constructor(token: Address);
11
11
  /**
12
12
  * Decodes hex data into OnlyTakerTokenBalanceNonZeroArgs instance
@@ -1,12 +1,12 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for salt instruction used to add uniqueness to order hashes
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L48
6
6
  **/
7
7
  export declare class SaltArgs implements IArgsData {
8
8
  readonly salt: bigint;
9
- static readonly CODER: any;
9
+ static readonly CODER: IArgsCoder<SaltArgs>;
10
10
  constructor(salt: bigint);
11
11
  /**
12
12
  * Decodes hex data into SaltArgs instance
@@ -1,12 +1,12 @@
1
1
  import type { HexString } from '@1inch/sdk-core';
2
- import type { IArgsData } from '../types';
2
+ import type { IArgsCoder, IArgsData } from '../types';
3
3
  /**
4
4
  * Arguments for salt instruction used to add uniqueness to order hashes
5
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Controls.sol#L48
6
6
  **/
7
7
  export declare class SaltArgs implements IArgsData {
8
8
  readonly salt: bigint;
9
- static readonly CODER: any;
9
+ static readonly CODER: IArgsCoder<SaltArgs>;
10
10
  constructor(salt: bigint);
11
11
  /**
12
12
  * Decodes hex data into SaltArgs instance
@@ -1,19 +1,14 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
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
3
  /**
8
4
  * Debug empty instruction arguments - used for debugging purposes
9
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Debug.sol
10
6
  **/
11
7
  export declare class DebugEmptyArgs implements IArgsData {
12
- static readonly CODER: DebugEmptyArgsCoder;
8
+ static readonly CODER: IArgsCoder<DebugEmptyArgs>;
13
9
  /**
14
10
  * Decodes hex data into DebugEmptyArgs instance
15
11
  **/
16
12
  static decode(_data: HexString): DebugEmptyArgs;
17
13
  toJSON(): null;
18
14
  }
19
- export {};
@@ -1,19 +1,14 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
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
3
  /**
8
4
  * Debug empty instruction arguments - used for debugging purposes
9
5
  * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Debug.sol
10
6
  **/
11
7
  export declare class DebugEmptyArgs implements IArgsData {
12
- static readonly CODER: DebugEmptyArgsCoder;
8
+ static readonly CODER: IArgsCoder<DebugEmptyArgs>;
13
9
  /**
14
10
  * Decodes hex data into DebugEmptyArgs instance
15
11
  **/
16
12
  static decode(_data: HexString): DebugEmptyArgs;
17
13
  toJSON(): null;
18
14
  }
19
- export {};
@@ -5,14 +5,15 @@ import { PrintContextArgs } from './print-context';
5
5
  import { PrintAmountForSwapArgs } from './print-amount-for-swap';
6
6
  import { PrintFreeMemoryPointerArgs } from './print-free-memory-pointer';
7
7
  import { PrintGasLeftArgs } from './print-gas-left';
8
+ import { Opcode } from '../opcode';
8
9
  export { DebugEmptyArgs, PrintSwapRegistersArgs, PrintSwapQueryArgs, PrintContextArgs, PrintAmountForSwapArgs, PrintFreeMemoryPointerArgs, PrintGasLeftArgs, };
9
10
  /**
10
11
  * Debug empty opcode - placeholder
11
12
  */
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;
13
+ export declare const debugEmpty: Opcode<DebugEmptyArgs>;
14
+ export declare const printSwapRegisters: Opcode<PrintSwapRegistersArgs>;
15
+ export declare const printSwapQuery: Opcode<PrintSwapQueryArgs>;
16
+ export declare const printContext: Opcode<PrintContextArgs>;
17
+ export declare const printAmountForSwap: Opcode<PrintAmountForSwapArgs>;
18
+ export declare const printFreeMemoryPointer: Opcode<PrintFreeMemoryPointerArgs>;
19
+ export declare const printGasLeft: Opcode<PrintGasLeftArgs>;
@@ -5,14 +5,15 @@ import { PrintContextArgs } from './print-context';
5
5
  import { PrintAmountForSwapArgs } from './print-amount-for-swap';
6
6
  import { PrintFreeMemoryPointerArgs } from './print-free-memory-pointer';
7
7
  import { PrintGasLeftArgs } from './print-gas-left';
8
+ import { Opcode } from '../opcode';
8
9
  export { DebugEmptyArgs, PrintSwapRegistersArgs, PrintSwapQueryArgs, PrintContextArgs, PrintAmountForSwapArgs, PrintFreeMemoryPointerArgs, PrintGasLeftArgs, };
9
10
  /**
10
11
  * Debug empty opcode - placeholder
11
12
  */
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;
13
+ export declare const debugEmpty: Opcode<DebugEmptyArgs>;
14
+ export declare const printSwapRegisters: Opcode<PrintSwapRegistersArgs>;
15
+ export declare const printSwapQuery: Opcode<PrintSwapQueryArgs>;
16
+ export declare const printContext: Opcode<PrintContextArgs>;
17
+ export declare const printAmountForSwap: Opcode<PrintAmountForSwapArgs>;
18
+ export declare const printFreeMemoryPointer: Opcode<PrintFreeMemoryPointerArgs>;
19
+ export declare const printGasLeft: Opcode<PrintGasLeftArgs>;
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print amount for swap
10
6
  * @see Debug._printAmountForSwap in Solidity
11
7
  */
12
8
  export declare class PrintAmountForSwapArgs extends DebugArgs {
13
- static readonly CODER: PrintAmountForSwapArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintAmountForSwapArgs>;
14
10
  static decode(_data: HexString): PrintAmountForSwapArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print amount for swap
10
6
  * @see Debug._printAmountForSwap in Solidity
11
7
  */
12
8
  export declare class PrintAmountForSwapArgs extends DebugArgs {
13
- static readonly CODER: PrintAmountForSwapArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintAmountForSwapArgs>;
14
10
  static decode(_data: HexString): PrintAmountForSwapArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print execution context
10
6
  * @see Debug._printContext in Solidity
11
7
  */
12
8
  export declare class PrintContextArgs extends DebugArgs {
13
- static readonly CODER: PrintContextArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintContextArgs>;
14
10
  static decode(_data: HexString): PrintContextArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print execution context
10
6
  * @see Debug._printContext in Solidity
11
7
  */
12
8
  export declare class PrintContextArgs extends DebugArgs {
13
- static readonly CODER: PrintContextArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintContextArgs>;
14
10
  static decode(_data: HexString): PrintContextArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print free memory pointer
10
6
  * @see Debug._printFreeMemoryPointer in Solidity
11
7
  */
12
8
  export declare class PrintFreeMemoryPointerArgs extends DebugArgs {
13
- static readonly CODER: PrintFreeMemoryPointerArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintFreeMemoryPointerArgs>;
14
10
  static decode(_data: HexString): PrintFreeMemoryPointerArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print free memory pointer
10
6
  * @see Debug._printFreeMemoryPointer in Solidity
11
7
  */
12
8
  export declare class PrintFreeMemoryPointerArgs extends DebugArgs {
13
- static readonly CODER: PrintFreeMemoryPointerArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintFreeMemoryPointerArgs>;
14
10
  static decode(_data: HexString): PrintFreeMemoryPointerArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print remaining gas
10
6
  * @see Debug._printGasLeft in Solidity
11
7
  */
12
8
  export declare class PrintGasLeftArgs extends DebugArgs {
13
- static readonly CODER: PrintGasLeftArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintGasLeftArgs>;
14
10
  static decode(_data: HexString): PrintGasLeftArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print remaining gas
10
6
  * @see Debug._printGasLeft in Solidity
11
7
  */
12
8
  export declare class PrintGasLeftArgs extends DebugArgs {
13
- static readonly CODER: PrintGasLeftArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintGasLeftArgs>;
14
10
  static decode(_data: HexString): PrintGasLeftArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print swap query information
10
6
  * @see Debug._printSwapQuery in Solidity
11
7
  */
12
8
  export declare class PrintSwapQueryArgs extends DebugArgs {
13
- static readonly CODER: PrintSwapQueryArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintSwapQueryArgs>;
14
10
  static decode(_data: HexString): PrintSwapQueryArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print swap query information
10
6
  * @see Debug._printSwapQuery in Solidity
11
7
  */
12
8
  export declare class PrintSwapQueryArgs extends DebugArgs {
13
- static readonly CODER: PrintSwapQueryArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintSwapQueryArgs>;
14
10
  static decode(_data: HexString): PrintSwapQueryArgs;
15
11
  }
16
- export {};
@@ -1,16 +1,11 @@
1
1
  import { HexString } from '@1inch/sdk-core';
2
2
  import { DebugArgs } from './debug-args';
3
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
4
  /**
9
5
  * Debug instruction to print swap registers
10
6
  * @see Debug._printSwapRegisters in Solidity
11
7
  */
12
8
  export declare class PrintSwapRegistersArgs extends DebugArgs {
13
- static readonly CODER: PrintSwapRegistersArgsCoder;
9
+ static readonly CODER: IArgsCoder<PrintSwapRegistersArgs>;
14
10
  static decode(_data: HexString): PrintSwapRegistersArgs;
15
11
  }
16
- export {};