@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.
Files changed (241) hide show
  1. package/LICENSE +103 -0
  2. package/README.md +584 -0
  3. package/dist/abi/SwapVM.abi.d.mts +403 -0
  4. package/dist/abi/SwapVM.abi.d.ts +403 -0
  5. package/dist/abi/index.d.mts +1 -0
  6. package/dist/abi/index.d.ts +1 -0
  7. package/dist/index.d.mts +4 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.js +3842 -0
  10. package/dist/index.mjs +3777 -0
  11. package/dist/swap-vm/index.d.mts +6 -0
  12. package/dist/swap-vm/index.d.ts +6 -0
  13. package/dist/swap-vm/instructions/balances/balances-args-coder.d.mts +7 -0
  14. package/dist/swap-vm/instructions/balances/balances-args-coder.d.ts +7 -0
  15. package/dist/swap-vm/instructions/balances/balances-args.d.mts +17 -0
  16. package/dist/swap-vm/instructions/balances/balances-args.d.ts +17 -0
  17. package/dist/swap-vm/instructions/balances/index.d.mts +3 -0
  18. package/dist/swap-vm/instructions/balances/index.d.ts +3 -0
  19. package/dist/swap-vm/instructions/balances/opcodes.d.mts +12 -0
  20. package/dist/swap-vm/instructions/balances/opcodes.d.ts +12 -0
  21. package/dist/swap-vm/instructions/balances/types.d.mts +5 -0
  22. package/dist/swap-vm/instructions/balances/types.d.ts +5 -0
  23. package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args-coder.d.mts +7 -0
  24. package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args-coder.d.ts +7 -0
  25. package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args.d.mts +40 -0
  26. package/dist/swap-vm/instructions/base-fee-adjuster/base-fee-adjuster-args.d.ts +40 -0
  27. package/dist/swap-vm/instructions/base-fee-adjuster/index.d.mts +2 -0
  28. package/dist/swap-vm/instructions/base-fee-adjuster/index.d.ts +2 -0
  29. package/dist/swap-vm/instructions/base-fee-adjuster/opcodes.d.mts +5 -0
  30. package/dist/swap-vm/instructions/base-fee-adjuster/opcodes.d.ts +5 -0
  31. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args-coder.d.mts +7 -0
  32. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args-coder.d.ts +7 -0
  33. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args.d.mts +21 -0
  34. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-2d-args.d.ts +21 -0
  35. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args-coder.d.mts +7 -0
  36. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args-coder.d.ts +7 -0
  37. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args.d.mts +17 -0
  38. package/dist/swap-vm/instructions/concentrate/concentrate-grow-liquidity-xd-args.d.ts +17 -0
  39. package/dist/swap-vm/instructions/concentrate/index.d.mts +5 -0
  40. package/dist/swap-vm/instructions/concentrate/index.d.ts +5 -0
  41. package/dist/swap-vm/instructions/concentrate/opcodes.d.mts +10 -0
  42. package/dist/swap-vm/instructions/concentrate/opcodes.d.ts +10 -0
  43. package/dist/swap-vm/instructions/concentrate/types.d.mts +5 -0
  44. package/dist/swap-vm/instructions/concentrate/types.d.ts +5 -0
  45. package/dist/swap-vm/instructions/concentrate/utils.d.mts +4 -0
  46. package/dist/swap-vm/instructions/concentrate/utils.d.ts +4 -0
  47. package/dist/swap-vm/instructions/controls/deadline-args-coder.d.mts +7 -0
  48. package/dist/swap-vm/instructions/controls/deadline-args-coder.d.ts +7 -0
  49. package/dist/swap-vm/instructions/controls/deadline-args.d.mts +9 -0
  50. package/dist/swap-vm/instructions/controls/deadline-args.d.ts +9 -0
  51. package/dist/swap-vm/instructions/controls/index.d.mts +8 -0
  52. package/dist/swap-vm/instructions/controls/index.d.ts +8 -0
  53. package/dist/swap-vm/instructions/controls/jump-args-coder.d.mts +7 -0
  54. package/dist/swap-vm/instructions/controls/jump-args-coder.d.ts +7 -0
  55. package/dist/swap-vm/instructions/controls/jump-args.d.mts +16 -0
  56. package/dist/swap-vm/instructions/controls/jump-args.d.ts +16 -0
  57. package/dist/swap-vm/instructions/controls/jump-if-token-args-coder.d.mts +7 -0
  58. package/dist/swap-vm/instructions/controls/jump-if-token-args-coder.d.ts +7 -0
  59. package/dist/swap-vm/instructions/controls/jump-if-token-args.d.mts +10 -0
  60. package/dist/swap-vm/instructions/controls/jump-if-token-args.d.ts +10 -0
  61. package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args-coder.d.mts +7 -0
  62. package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args-coder.d.ts +7 -0
  63. package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args.d.mts +17 -0
  64. package/dist/swap-vm/instructions/controls/only-taker-token-balance-gte-args.d.ts +17 -0
  65. package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args-coder.d.mts +7 -0
  66. package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args-coder.d.ts +7 -0
  67. package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args.d.mts +16 -0
  68. package/dist/swap-vm/instructions/controls/only-taker-token-balance-non-zero-args.d.ts +16 -0
  69. package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args-coder.d.mts +7 -0
  70. package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args-coder.d.ts +7 -0
  71. package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args.d.mts +18 -0
  72. package/dist/swap-vm/instructions/controls/only-taker-token-supply-share-gte-args.d.ts +18 -0
  73. package/dist/swap-vm/instructions/controls/opcodes.d.mts +36 -0
  74. package/dist/swap-vm/instructions/controls/opcodes.d.ts +36 -0
  75. package/dist/swap-vm/instructions/controls/salt-args-coder.d.mts +7 -0
  76. package/dist/swap-vm/instructions/controls/salt-args-coder.d.ts +7 -0
  77. package/dist/swap-vm/instructions/controls/salt-args.d.mts +16 -0
  78. package/dist/swap-vm/instructions/controls/salt-args.d.ts +16 -0
  79. package/dist/swap-vm/instructions/debug/debug-args.d.mts +8 -0
  80. package/dist/swap-vm/instructions/debug/debug-args.d.ts +8 -0
  81. package/dist/swap-vm/instructions/debug/debug-empty-args.d.mts +19 -0
  82. package/dist/swap-vm/instructions/debug/debug-empty-args.d.ts +19 -0
  83. package/dist/swap-vm/instructions/debug/opcodes.d.mts +18 -0
  84. package/dist/swap-vm/instructions/debug/opcodes.d.ts +18 -0
  85. package/dist/swap-vm/instructions/debug/print-amount-for-swap.d.mts +16 -0
  86. package/dist/swap-vm/instructions/debug/print-amount-for-swap.d.ts +16 -0
  87. package/dist/swap-vm/instructions/debug/print-context.d.mts +16 -0
  88. package/dist/swap-vm/instructions/debug/print-context.d.ts +16 -0
  89. package/dist/swap-vm/instructions/debug/print-free-memory-pointer.d.mts +16 -0
  90. package/dist/swap-vm/instructions/debug/print-free-memory-pointer.d.ts +16 -0
  91. package/dist/swap-vm/instructions/debug/print-gas-left.d.mts +16 -0
  92. package/dist/swap-vm/instructions/debug/print-gas-left.d.ts +16 -0
  93. package/dist/swap-vm/instructions/debug/print-swap-query.d.mts +16 -0
  94. package/dist/swap-vm/instructions/debug/print-swap-query.d.ts +16 -0
  95. package/dist/swap-vm/instructions/debug/print-swap-registers.d.mts +16 -0
  96. package/dist/swap-vm/instructions/debug/print-swap-registers.d.ts +16 -0
  97. package/dist/swap-vm/instructions/decay/decay-xd-args-coder.d.mts +7 -0
  98. package/dist/swap-vm/instructions/decay/decay-xd-args-coder.d.ts +7 -0
  99. package/dist/swap-vm/instructions/decay/decay-xd-args.d.mts +16 -0
  100. package/dist/swap-vm/instructions/decay/decay-xd-args.d.ts +16 -0
  101. package/dist/swap-vm/instructions/decay/index.d.mts +2 -0
  102. package/dist/swap-vm/instructions/decay/index.d.ts +2 -0
  103. package/dist/swap-vm/instructions/decay/opcodes.d.mts +5 -0
  104. package/dist/swap-vm/instructions/decay/opcodes.d.ts +5 -0
  105. package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args-coder.d.mts +7 -0
  106. package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args-coder.d.ts +7 -0
  107. package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args.d.mts +44 -0
  108. package/dist/swap-vm/instructions/dutch-auction/dutch-auction-args.d.ts +44 -0
  109. package/dist/swap-vm/instructions/dutch-auction/index.d.mts +2 -0
  110. package/dist/swap-vm/instructions/dutch-auction/index.d.ts +2 -0
  111. package/dist/swap-vm/instructions/dutch-auction/opcodes.d.mts +10 -0
  112. package/dist/swap-vm/instructions/dutch-auction/opcodes.d.ts +10 -0
  113. package/dist/swap-vm/instructions/empty.d.mts +13 -0
  114. package/dist/swap-vm/instructions/empty.d.ts +13 -0
  115. package/dist/swap-vm/instructions/extruction/extruction-args-coder.d.mts +7 -0
  116. package/dist/swap-vm/instructions/extruction/extruction-args-coder.d.ts +7 -0
  117. package/dist/swap-vm/instructions/extruction/extruction-args.d.mts +21 -0
  118. package/dist/swap-vm/instructions/extruction/extruction-args.d.ts +21 -0
  119. package/dist/swap-vm/instructions/extruction/index.d.mts +2 -0
  120. package/dist/swap-vm/instructions/extruction/index.d.ts +2 -0
  121. package/dist/swap-vm/instructions/extruction/opcodes.d.mts +5 -0
  122. package/dist/swap-vm/instructions/extruction/opcodes.d.ts +5 -0
  123. package/dist/swap-vm/instructions/fee/flat-fee-args-coder.d.mts +7 -0
  124. package/dist/swap-vm/instructions/fee/flat-fee-args-coder.d.ts +7 -0
  125. package/dist/swap-vm/instructions/fee/flat-fee-args.d.mts +28 -0
  126. package/dist/swap-vm/instructions/fee/flat-fee-args.d.ts +28 -0
  127. package/dist/swap-vm/instructions/fee/index.d.mts +3 -0
  128. package/dist/swap-vm/instructions/fee/index.d.ts +3 -0
  129. package/dist/swap-vm/instructions/fee/opcodes.d.mts +30 -0
  130. package/dist/swap-vm/instructions/fee/opcodes.d.ts +30 -0
  131. package/dist/swap-vm/instructions/fee/protocol-fee-args-coder.d.mts +7 -0
  132. package/dist/swap-vm/instructions/fee/protocol-fee-args-coder.d.ts +7 -0
  133. package/dist/swap-vm/instructions/fee/protocol-fee-args.d.mts +35 -0
  134. package/dist/swap-vm/instructions/fee/protocol-fee-args.d.ts +35 -0
  135. package/dist/swap-vm/instructions/index.d.mts +29 -0
  136. package/dist/swap-vm/instructions/index.d.ts +29 -0
  137. package/dist/swap-vm/instructions/instruction.d.mts +7 -0
  138. package/dist/swap-vm/instructions/instruction.d.ts +7 -0
  139. package/dist/swap-vm/instructions/invalidators/index.d.mts +4 -0
  140. package/dist/swap-vm/instructions/invalidators/index.d.ts +4 -0
  141. package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args-coder.d.mts +7 -0
  142. package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args-coder.d.ts +7 -0
  143. package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args.d.mts +16 -0
  144. package/dist/swap-vm/instructions/invalidators/invalidate-bit-1d-args.d.ts +16 -0
  145. package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args-coder.d.mts +7 -0
  146. package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args-coder.d.ts +7 -0
  147. package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args.d.mts +8 -0
  148. package/dist/swap-vm/instructions/invalidators/invalidate-token-in-1d-args.d.ts +8 -0
  149. package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args-coder.d.mts +7 -0
  150. package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args-coder.d.ts +7 -0
  151. package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args.d.mts +8 -0
  152. package/dist/swap-vm/instructions/invalidators/invalidate-token-out-1d-args.d.ts +8 -0
  153. package/dist/swap-vm/instructions/invalidators/opcodes.d.mts +15 -0
  154. package/dist/swap-vm/instructions/invalidators/opcodes.d.ts +15 -0
  155. package/dist/swap-vm/instructions/limit-swap/index.d.mts +2 -0
  156. package/dist/swap-vm/instructions/limit-swap/index.d.ts +2 -0
  157. package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args-coder.d.mts +7 -0
  158. package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args-coder.d.ts +7 -0
  159. package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args.d.mts +24 -0
  160. package/dist/swap-vm/instructions/limit-swap/limit-swap-direction-args.d.ts +24 -0
  161. package/dist/swap-vm/instructions/limit-swap/opcodes.d.mts +10 -0
  162. package/dist/swap-vm/instructions/limit-swap/opcodes.d.ts +10 -0
  163. package/dist/swap-vm/instructions/min-rate/index.d.mts +2 -0
  164. package/dist/swap-vm/instructions/min-rate/index.d.ts +2 -0
  165. package/dist/swap-vm/instructions/min-rate/min-rate-args-coder.d.mts +7 -0
  166. package/dist/swap-vm/instructions/min-rate/min-rate-args-coder.d.ts +7 -0
  167. package/dist/swap-vm/instructions/min-rate/min-rate-args.d.mts +22 -0
  168. package/dist/swap-vm/instructions/min-rate/min-rate-args.d.ts +22 -0
  169. package/dist/swap-vm/instructions/min-rate/opcodes.d.mts +10 -0
  170. package/dist/swap-vm/instructions/min-rate/opcodes.d.ts +10 -0
  171. package/dist/swap-vm/instructions/opcode.d.mts +8 -0
  172. package/dist/swap-vm/instructions/opcode.d.ts +8 -0
  173. package/dist/swap-vm/instructions/oracle-price-adjuster/index.d.mts +2 -0
  174. package/dist/swap-vm/instructions/oracle-price-adjuster/index.d.ts +2 -0
  175. package/dist/swap-vm/instructions/oracle-price-adjuster/opcodes.d.mts +5 -0
  176. package/dist/swap-vm/instructions/oracle-price-adjuster/opcodes.d.ts +5 -0
  177. package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args-coder.d.mts +7 -0
  178. package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args-coder.d.ts +7 -0
  179. package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args.d.mts +41 -0
  180. package/dist/swap-vm/instructions/oracle-price-adjuster/oracle-price-adjuster-args.d.ts +41 -0
  181. package/dist/swap-vm/instructions/stable-swap/index.d.mts +2 -0
  182. package/dist/swap-vm/instructions/stable-swap/index.d.ts +2 -0
  183. package/dist/swap-vm/instructions/stable-swap/opcodes.d.mts +4 -0
  184. package/dist/swap-vm/instructions/stable-swap/opcodes.d.ts +4 -0
  185. package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args-coder.d.mts +7 -0
  186. package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args-coder.d.ts +7 -0
  187. package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args.d.mts +25 -0
  188. package/dist/swap-vm/instructions/stable-swap/stable-swap-2d-args.d.ts +25 -0
  189. package/dist/swap-vm/instructions/twap-swap/index.d.mts +2 -0
  190. package/dist/swap-vm/instructions/twap-swap/index.d.ts +2 -0
  191. package/dist/swap-vm/instructions/twap-swap/opcodes.d.mts +5 -0
  192. package/dist/swap-vm/instructions/twap-swap/opcodes.d.ts +5 -0
  193. package/dist/swap-vm/instructions/twap-swap/twap-swap-args-coder.d.mts +7 -0
  194. package/dist/swap-vm/instructions/twap-swap/twap-swap-args-coder.d.ts +7 -0
  195. package/dist/swap-vm/instructions/twap-swap/twap-swap-args.d.mts +71 -0
  196. package/dist/swap-vm/instructions/twap-swap/twap-swap-args.d.ts +71 -0
  197. package/dist/swap-vm/instructions/types.d.mts +18 -0
  198. package/dist/swap-vm/instructions/types.d.ts +18 -0
  199. package/dist/swap-vm/instructions/xyc-swap/index.d.mts +2 -0
  200. package/dist/swap-vm/instructions/xyc-swap/index.d.ts +2 -0
  201. package/dist/swap-vm/instructions/xyc-swap/opcodes.d.mts +5 -0
  202. package/dist/swap-vm/instructions/xyc-swap/opcodes.d.ts +5 -0
  203. package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args-coder.d.mts +7 -0
  204. package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args-coder.d.ts +7 -0
  205. package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args.d.mts +15 -0
  206. package/dist/swap-vm/instructions/xyc-swap/xyc-swap-xd-args.d.ts +15 -0
  207. package/dist/swap-vm/maker-traits.d.mts +206 -0
  208. package/dist/swap-vm/maker-traits.d.ts +206 -0
  209. package/dist/swap-vm/order.d.mts +84 -0
  210. package/dist/swap-vm/order.d.ts +84 -0
  211. package/dist/swap-vm/programs/aqua-program-builder.d.mts +118 -0
  212. package/dist/swap-vm/programs/aqua-program-builder.d.ts +118 -0
  213. package/dist/swap-vm/programs/index.d.mts +4 -0
  214. package/dist/swap-vm/programs/index.d.ts +4 -0
  215. package/dist/swap-vm/programs/program-builder.d.mts +26 -0
  216. package/dist/swap-vm/programs/program-builder.d.ts +26 -0
  217. package/dist/swap-vm/programs/regular-program-builder.d.mts +187 -0
  218. package/dist/swap-vm/programs/regular-program-builder.d.ts +187 -0
  219. package/dist/swap-vm/programs/swap-vm-program.d.mts +6 -0
  220. package/dist/swap-vm/programs/swap-vm-program.d.ts +6 -0
  221. package/dist/swap-vm/strategies/aqua-amm-strategy.d.mts +32 -0
  222. package/dist/swap-vm/strategies/aqua-amm-strategy.d.ts +32 -0
  223. package/dist/swap-vm/strategies/index.d.mts +1 -0
  224. package/dist/swap-vm/strategies/index.d.ts +1 -0
  225. package/dist/swap-vm/taker-traits.d.mts +214 -0
  226. package/dist/swap-vm/taker-traits.d.ts +214 -0
  227. package/dist/swap-vm/types.d.mts +22 -0
  228. package/dist/swap-vm/types.d.ts +22 -0
  229. package/dist/swap-vm-contract/constants.d.mts +13 -0
  230. package/dist/swap-vm-contract/constants.d.ts +13 -0
  231. package/dist/swap-vm-contract/events/index.d.mts +1 -0
  232. package/dist/swap-vm-contract/events/index.d.ts +1 -0
  233. package/dist/swap-vm-contract/events/swapped-event.d.mts +19 -0
  234. package/dist/swap-vm-contract/events/swapped-event.d.ts +19 -0
  235. package/dist/swap-vm-contract/index.d.mts +4 -0
  236. package/dist/swap-vm-contract/index.d.ts +4 -0
  237. package/dist/swap-vm-contract/swap-vm-contract.d.mts +38 -0
  238. package/dist/swap-vm-contract/swap-vm-contract.d.ts +38 -0
  239. package/dist/swap-vm-contract/types.d.mts +22 -0
  240. package/dist/swap-vm-contract/types.d.ts +22 -0
  241. 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,8 @@
1
+ import type { IArgsData } from '../types';
2
+ /**
3
+ * Base class for all debug instruction arguments
4
+ * Debug instructions don't have parameters, they just print/log state
5
+ */
6
+ export declare abstract class DebugArgs implements IArgsData {
7
+ toJSON(): null;
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { IArgsData } from '../types';
2
+ /**
3
+ * Base class for all debug instruction arguments
4
+ * Debug instructions don't have parameters, they just print/log state
5
+ */
6
+ export declare abstract class DebugArgs implements IArgsData {
7
+ toJSON(): null;
8
+ }
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './opcodes';
2
+ export { DecayXDArgs } from './decay-xd-args';
@@ -0,0 +1,2 @@
1
+ export * from './opcodes';
2
+ export { DecayXDArgs } from './decay-xd-args';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Applies time-based decay to balance adjustments
3
+ * @see https://github.com/1inch/swap-vm/blob/main/src/instructions/Decay.sol#L79
4
+ **/
5
+ export declare const decayXD: any;