@floorlaunchpad/sdk-evm 0.0.0-stage → 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 (67) hide show
  1. package/LICENSE +61 -0
  2. package/README.md +154 -2
  3. package/dist/abi/floor.d.ts +1315 -0
  4. package/dist/abi/floor.d.ts.map +1 -0
  5. package/dist/abi/floor.js +154 -0
  6. package/dist/abi/floor.js.map +1 -0
  7. package/dist/abi/generated.d.ts +12824 -0
  8. package/dist/abi/generated.d.ts.map +1 -0
  9. package/dist/abi/generated.js +1264 -0
  10. package/dist/abi/generated.js.map +1 -0
  11. package/dist/abi/index.d.ts +2 -0
  12. package/dist/abi/index.d.ts.map +1 -0
  13. package/dist/abi/index.js +2 -0
  14. package/dist/abi/index.js.map +1 -0
  15. package/dist/adapter.d.ts +89 -0
  16. package/dist/adapter.d.ts.map +1 -0
  17. package/dist/adapter.js +250 -0
  18. package/dist/adapter.js.map +1 -0
  19. package/dist/deployments.d.ts +154 -0
  20. package/dist/deployments.d.ts.map +1 -0
  21. package/dist/deployments.js +368 -0
  22. package/dist/deployments.js.map +1 -0
  23. package/dist/errors.d.ts +56 -0
  24. package/dist/errors.d.ts.map +1 -0
  25. package/dist/errors.js +42 -0
  26. package/dist/errors.js.map +1 -0
  27. package/dist/events.d.ts +45 -0
  28. package/dist/events.d.ts.map +1 -0
  29. package/dist/events.js +78 -0
  30. package/dist/events.js.map +1 -0
  31. package/dist/fees.d.ts +100 -0
  32. package/dist/fees.d.ts.map +1 -0
  33. package/dist/fees.js +156 -0
  34. package/dist/fees.js.map +1 -0
  35. package/dist/index.d.ts +18 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +18 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/pool.d.ts +63 -0
  40. package/dist/pool.d.ts.map +1 -0
  41. package/dist/pool.js +118 -0
  42. package/dist/pool.js.map +1 -0
  43. package/dist/reads.d.ts +107 -0
  44. package/dist/reads.d.ts.map +1 -0
  45. package/dist/reads.js +201 -0
  46. package/dist/reads.js.map +1 -0
  47. package/dist/router.d.ts +99 -0
  48. package/dist/router.d.ts.map +1 -0
  49. package/dist/router.js +132 -0
  50. package/dist/router.js.map +1 -0
  51. package/dist/sale.d.ts +79 -0
  52. package/dist/sale.d.ts.map +1 -0
  53. package/dist/sale.js +123 -0
  54. package/dist/sale.js.map +1 -0
  55. package/dist/send.d.ts +64 -0
  56. package/dist/send.d.ts.map +1 -0
  57. package/dist/send.js +137 -0
  58. package/dist/send.js.map +1 -0
  59. package/dist/simulate.d.ts +180 -0
  60. package/dist/simulate.d.ts.map +1 -0
  61. package/dist/simulate.js +270 -0
  62. package/dist/simulate.js.map +1 -0
  63. package/dist/trade.d.ts +140 -0
  64. package/dist/trade.d.ts.map +1 -0
  65. package/dist/trade.js +170 -0
  66. package/dist/trade.js.map +1 -0
  67. package/package.json +43 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floor.d.ts","sourceRoot":"","sources":["../../src/abi/floor.ts"],"names":[],"mappings":"AAoBA,cAAc,gBAAgB,CAAC;AAC/B,eAAO,MAAM,yBAAyB,aAC5B,CAAC;AACX,eAAO,MAAM,gBAAgB,QAA+F,CAAC;AAC7H,eAAO,MAAM,uBAAuB,QAAsD,CAAC;AAC3F,2HAA2H;AAC3H,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyB,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ChB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBnB,CAAC;AACX,eAAO,MAAM,aAAa;;;;;;;;;EAGhB,CAAC;AACX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;EAGvB,CAAC"}
@@ -0,0 +1,154 @@
1
+ /**
2
+ * FLOOR's EVM ABIs, as `as const` arrays so viem infers every argument and return type.
3
+ *
4
+ * FLOOR's own contracts are in `./generated.ts`, written by `scripts/gen-abi.mjs` from the contracts' build artifacts
5
+ * (names, order and components are the contracts' own). This file adds the Uniswap / Permit2 interfaces the SDK calls,
6
+ * the pool-state width constants and two aliases.
7
+ *
8
+ * Traps:
9
+ * - `HOOK_ABI` is the SINGLETON hook: one `SingletonFloorHook` per chain keys every pool by `poolId`. It carries the hook's
10
+ * own functions, the trader-referral functions its fallback serves, and every event and error its modules emit. The
11
+ * per-pool functions in `POOL_ABI` (`bidRawQuotePerToken`, `claimCreatorFees`, ...) go INSIDE `execute(poolId, data)`,
12
+ * never to the hook address directly: a direct call reaches the hook's fallback and reverts `UnknownPool()`. The calldata
13
+ * is the per-pool call (the hook appends the pool id), and the answer is ABI-encoded twice (an outer `bytes` around the
14
+ * function's own return). `execute` is `payable`; read through it with `call` / `simulateContract`.
15
+ * - `FLOOR_ERRORS_ABI` is every error the covered contracts declare: a revert that bubbles out of a nested call (a factory
16
+ * create reaching the hook, a sale reaching the preset registry) decodes against it, not against the called contract.
17
+ * - `poolState` is read through `decodePoolState` (`../reads.ts`), which refuses any width but `POOL_STATE_WORDS`.
18
+ */
19
+ import { FLOOR_SWAP_RATCHET_ABI, FLOOR_TRADER_REFERRALS_ABI, POOL_STATE_COMPONENTS } from './generated.js';
20
+ export * from './generated.js';
21
+ export const POOL_STATE_UNDECODED_TAIL = [];
22
+ export const POOL_STATE_WORDS = POOL_STATE_COMPONENTS.reduce((n, c) => n + ('components' in c ? c.components.length : 1), 0);
23
+ export const POOL_STATE_ENGINE_WORDS = POOL_STATE_WORDS + POOL_STATE_UNDECODED_TAIL.length;
24
+ /** `FloorSwapRatchet.swapAndRatchet` takes the `sweep` field; the name is kept for callers that picked the sweep build. */
25
+ export const FLOOR_SWAP_RATCHET_SWEEP_ABI = FLOOR_SWAP_RATCHET_ABI;
26
+ export const TRADER_REFERRALS_ABI = FLOOR_TRADER_REFERRALS_ABI;
27
+ /** `SwapAndRatchet.ratchet`: what the ratchet step did. */
28
+ export const RATCHET_RESULT = { NotAsked: 0, NothingDue: 1, Ran: 2, Failed: 3 };
29
+ export const POOL_MANAGER_ABI = [
30
+ { type: 'event', name: 'Swap', inputs: [
31
+ { name: 'id', type: 'bytes32', indexed: true }, { name: 'sender', type: 'address', indexed: true },
32
+ { name: 'amount0', type: 'int128', indexed: false }, { name: 'amount1', type: 'int128', indexed: false },
33
+ { name: 'sqrtPriceX96', type: 'uint160', indexed: false }, { name: 'liquidity', type: 'uint128', indexed: false },
34
+ { name: 'tick', type: 'int24', indexed: false }, { name: 'fee', type: 'uint24', indexed: false },
35
+ ] },
36
+ ];
37
+ export const PERMIT2_ABI = [
38
+ { type: 'function', name: 'approve', stateMutability: 'nonpayable',
39
+ inputs: [
40
+ { name: 'token', type: 'address' }, { name: 'spender', type: 'address' },
41
+ { name: 'amount', type: 'uint160' }, { name: 'expiration', type: 'uint48' },
42
+ ], outputs: [] },
43
+ { type: 'function', name: 'allowance', stateMutability: 'view',
44
+ inputs: [{ name: 'user', type: 'address' }, { name: 'token', type: 'address' }, { name: 'spender', type: 'address' }],
45
+ outputs: [{ name: 'amount', type: 'uint160' }, { name: 'expiration', type: 'uint48' }, { name: 'nonce', type: 'uint48' }] },
46
+ ];
47
+ export const POOL_STATE_ABI = [
48
+ { type: 'function', name: 'extsload', stateMutability: 'view', inputs: [{ name: 'slot', type: 'bytes32' }], outputs: [{ type: 'bytes32' }] },
49
+ ];
50
+ export const POOL_STATE_BATCH_ABI = [
51
+ { type: 'function', name: 'extsload', stateMutability: 'view', inputs: [{ name: 'slots', type: 'bytes32[]' }], outputs: [{ type: 'bytes32[]' }] },
52
+ ];
53
+ export const SWAP_ROUTER_ABI = [
54
+ { type: 'function', name: 'swap', stateMutability: 'payable',
55
+ inputs: [
56
+ { name: 'key', type: 'tuple', components: [
57
+ { name: 'currency0', type: 'address' }, { name: 'currency1', type: 'address' },
58
+ { name: 'fee', type: 'uint24' }, { name: 'tickSpacing', type: 'int24' }, { name: 'hooks', type: 'address' },
59
+ ] },
60
+ { name: 'params', type: 'tuple', components: [
61
+ { name: 'zeroForOne', type: 'bool' }, { name: 'amountSpecified', type: 'int256' },
62
+ { name: 'sqrtPriceLimitX96', type: 'uint160' },
63
+ ] },
64
+ { name: 'testSettings', type: 'tuple', components: [
65
+ { name: 'takeClaims', type: 'bool' }, { name: 'settleUsingBurn', type: 'bool' },
66
+ ] },
67
+ { name: 'hookData', type: 'bytes' },
68
+ ],
69
+ outputs: [{ type: 'int256' }] },
70
+ ];
71
+ export const UNIVERSAL_ROUTER_ABI = [
72
+ { type: 'function', name: 'execute', stateMutability: 'payable',
73
+ inputs: [
74
+ { name: 'commands', type: 'bytes' }, { name: 'inputs', type: 'bytes[]' },
75
+ { name: 'deadline', type: 'uint256' },
76
+ ],
77
+ outputs: [] },
78
+ ];
79
+ export const V4_QUOTER_ABI = [
80
+ { type: 'function', name: 'quoteExactInputSingle', stateMutability: 'nonpayable',
81
+ inputs: [{ name: 'params', type: 'tuple', components: [
82
+ { name: 'poolKey', type: 'tuple', components: [
83
+ { name: 'currency0', type: 'address' }, { name: 'currency1', type: 'address' },
84
+ { name: 'fee', type: 'uint24' }, { name: 'tickSpacing', type: 'int24' },
85
+ { name: 'hooks', type: 'address' },
86
+ ] },
87
+ { name: 'zeroForOne', type: 'bool' },
88
+ { name: 'exactAmount', type: 'uint128' },
89
+ { name: 'hookData', type: 'bytes' },
90
+ ] }],
91
+ outputs: [{ name: 'amountOut', type: 'uint256' }, { name: 'gasEstimate', type: 'uint256' }] },
92
+ { type: 'function', name: 'quoteExactOutputSingle', stateMutability: 'nonpayable',
93
+ inputs: [{ name: 'params', type: 'tuple', components: [
94
+ { name: 'poolKey', type: 'tuple', components: [
95
+ { name: 'currency0', type: 'address' }, { name: 'currency1', type: 'address' },
96
+ { name: 'fee', type: 'uint24' }, { name: 'tickSpacing', type: 'int24' },
97
+ { name: 'hooks', type: 'address' },
98
+ ] },
99
+ { name: 'zeroForOne', type: 'bool' },
100
+ { name: 'exactAmount', type: 'uint128' },
101
+ { name: 'hookData', type: 'bytes' },
102
+ ] }],
103
+ outputs: [{ name: 'amountIn', type: 'uint256' }, { name: 'gasEstimate', type: 'uint256' }] },
104
+ { type: 'function', name: 'quoteExactInput', stateMutability: 'nonpayable',
105
+ inputs: [{ name: 'params', type: 'tuple', components: [
106
+ { name: 'exactCurrency', type: 'address' },
107
+ { name: 'path', type: 'tuple[]', components: [
108
+ { name: 'intermediateCurrency', type: 'address' }, { name: 'fee', type: 'uint24' },
109
+ { name: 'tickSpacing', type: 'int24' }, { name: 'hooks', type: 'address' }, { name: 'hookData', type: 'bytes' },
110
+ ] },
111
+ { name: 'exactAmount', type: 'uint128' },
112
+ ] }],
113
+ outputs: [{ name: 'amountOut', type: 'uint256' }, { name: 'gasEstimate', type: 'uint256' }] },
114
+ { type: 'function', name: 'quoteExactOutput', stateMutability: 'nonpayable',
115
+ inputs: [{ name: 'params', type: 'tuple', components: [
116
+ { name: 'exactCurrency', type: 'address' },
117
+ { name: 'path', type: 'tuple[]', components: [
118
+ { name: 'intermediateCurrency', type: 'address' }, { name: 'fee', type: 'uint24' },
119
+ { name: 'tickSpacing', type: 'int24' }, { name: 'hooks', type: 'address' }, { name: 'hookData', type: 'bytes' },
120
+ ] },
121
+ { name: 'exactAmount', type: 'uint128' },
122
+ ] }],
123
+ outputs: [{ name: 'amountIn', type: 'uint256' }, { name: 'gasEstimate', type: 'uint256' }] },
124
+ { type: 'function', name: 'poolManager', stateMutability: 'view', inputs: [], outputs: [{ type: 'address' }] },
125
+ ];
126
+ export const V3_QUOTER_V2_ABI = [
127
+ { type: 'function', name: 'quoteExactInputSingle', stateMutability: 'nonpayable',
128
+ inputs: [{ name: 'params', type: 'tuple', components: [
129
+ { name: 'tokenIn', type: 'address' }, { name: 'tokenOut', type: 'address' }, { name: 'amountIn', type: 'uint256' },
130
+ { name: 'fee', type: 'uint24' }, { name: 'sqrtPriceLimitX96', type: 'uint160' },
131
+ ] }],
132
+ outputs: [{ name: 'amountOut', type: 'uint256' }, { name: 'sqrtPriceX96After', type: 'uint160' }, { name: 'initializedTicksCrossed', type: 'uint32' }, { name: 'gasEstimate', type: 'uint256' }] },
133
+ { type: 'function', name: 'quoteExactOutputSingle', stateMutability: 'nonpayable',
134
+ inputs: [{ name: 'params', type: 'tuple', components: [
135
+ { name: 'tokenIn', type: 'address' }, { name: 'tokenOut', type: 'address' }, { name: 'amount', type: 'uint256' },
136
+ { name: 'fee', type: 'uint24' }, { name: 'sqrtPriceLimitX96', type: 'uint160' },
137
+ ] }],
138
+ outputs: [{ name: 'amountIn', type: 'uint256' }, { name: 'sqrtPriceX96After', type: 'uint160' }, { name: 'initializedTicksCrossed', type: 'uint32' }, { name: 'gasEstimate', type: 'uint256' }] },
139
+ { type: 'function', name: 'quoteExactInput', stateMutability: 'nonpayable',
140
+ inputs: [{ name: 'path', type: 'bytes' }, { name: 'amountIn', type: 'uint256' }],
141
+ outputs: [{ name: 'amountOut', type: 'uint256' }, { name: 'sqrtPriceX96AfterList', type: 'uint160[]' }, { name: 'initializedTicksCrossedList', type: 'uint32[]' }, { name: 'gasEstimate', type: 'uint256' }] },
142
+ { type: 'function', name: 'quoteExactOutput', stateMutability: 'nonpayable',
143
+ inputs: [{ name: 'path', type: 'bytes' }, { name: 'amountOut', type: 'uint256' }],
144
+ outputs: [{ name: 'amountIn', type: 'uint256' }, { name: 'sqrtPriceX96AfterList', type: 'uint160[]' }, { name: 'initializedTicksCrossedList', type: 'uint32[]' }, { name: 'gasEstimate', type: 'uint256' }] },
145
+ ];
146
+ export const V4_ROUTER_ABI = [
147
+ { type: 'function', name: 'executeActionsAndSweepExcessETH', stateMutability: 'payable',
148
+ inputs: [{ name: 'params', type: 'bytes' }], outputs: [] },
149
+ ];
150
+ export const V4_QUOTER_ERRORS_ABI = [
151
+ { type: 'error', name: 'UnexpectedRevertBytes', inputs: [{ name: 'revertData', type: 'bytes' }] },
152
+ { type: 'error', name: 'NotEnoughLiquidity', inputs: [{ name: 'poolId', type: 'bytes32' }] },
153
+ ];
154
+ //# sourceMappingURL=floor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floor.js","sourceRoot":"","sources":["../../src/abi/floor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE3G,cAAc,gBAAgB,CAAC;AAC/B,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAC/B,CAAC;AACX,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC7H,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,yBAAyB,CAAC,MAAM,CAAC;AAC3F,2HAA2H;AAC3H,MAAM,CAAC,MAAM,4BAA4B,GAAG,sBAAsB,CAAC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