@luxfi/exchange 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 (154) hide show
  1. package/dist/bridge/__tests__/use-private-teleport.test.d.ts +2 -0
  2. package/dist/bridge/__tests__/use-private-teleport.test.d.ts.map +1 -0
  3. package/dist/bridge/__tests__/use-private-teleport.test.js +272 -0
  4. package/dist/bridge/cross-chain-store.d.ts +57 -0
  5. package/dist/bridge/cross-chain-store.d.ts.map +1 -0
  6. package/dist/bridge/cross-chain-store.js +158 -0
  7. package/dist/bridge/index.d.ts +78 -0
  8. package/dist/bridge/index.d.ts.map +1 -0
  9. package/dist/bridge/index.js +79 -0
  10. package/dist/bridge/private-teleport-types.d.ts +634 -0
  11. package/dist/bridge/private-teleport-types.d.ts.map +1 -0
  12. package/dist/bridge/private-teleport-types.js +308 -0
  13. package/dist/bridge/types.d.ts +84 -0
  14. package/dist/bridge/types.d.ts.map +1 -0
  15. package/dist/bridge/types.js +37 -0
  16. package/dist/bridge/use-cross-chain-mint.d.ts +34 -0
  17. package/dist/bridge/use-cross-chain-mint.d.ts.map +1 -0
  18. package/dist/bridge/use-cross-chain-mint.js +228 -0
  19. package/dist/bridge/use-private-teleport.d.ts +69 -0
  20. package/dist/bridge/use-private-teleport.d.ts.map +1 -0
  21. package/dist/bridge/use-private-teleport.js +666 -0
  22. package/dist/chains/index.d.ts +6 -0
  23. package/dist/chains/index.d.ts.map +1 -0
  24. package/dist/chains/index.js +6 -0
  25. package/dist/chains/lux.d.ts +508 -0
  26. package/dist/chains/lux.d.ts.map +1 -0
  27. package/dist/chains/lux.js +131 -0
  28. package/dist/contracts/abis/dex-swap-router.d.ts +137 -0
  29. package/dist/contracts/abis/dex-swap-router.d.ts.map +1 -0
  30. package/dist/contracts/abis/dex-swap-router.js +95 -0
  31. package/dist/contracts/abis/erc20.d.ts +136 -0
  32. package/dist/contracts/abis/erc20.d.ts.map +1 -0
  33. package/dist/contracts/abis/erc20.js +96 -0
  34. package/dist/contracts/abis/index.d.ts +15 -0
  35. package/dist/contracts/abis/index.d.ts.map +1 -0
  36. package/dist/contracts/abis/index.js +15 -0
  37. package/dist/contracts/abis/nft-position-manager.d.ts +235 -0
  38. package/dist/contracts/abis/nft-position-manager.d.ts.map +1 -0
  39. package/dist/contracts/abis/nft-position-manager.js +146 -0
  40. package/dist/contracts/abis/pool-manager.d.ts +315 -0
  41. package/dist/contracts/abis/pool-manager.d.ts.map +1 -0
  42. package/dist/contracts/abis/pool-manager.js +191 -0
  43. package/dist/contracts/abis/quoter-v2.d.ts +103 -0
  44. package/dist/contracts/abis/quoter-v2.d.ts.map +1 -0
  45. package/dist/contracts/abis/quoter-v2.js +68 -0
  46. package/dist/contracts/abis/swap-router.d.ts +119 -0
  47. package/dist/contracts/abis/swap-router.d.ts.map +1 -0
  48. package/dist/contracts/abis/swap-router.js +75 -0
  49. package/dist/contracts/abis/uniswap-v2-factory.d.ts +75 -0
  50. package/dist/contracts/abis/uniswap-v2-factory.d.ts.map +1 -0
  51. package/dist/contracts/abis/uniswap-v2-factory.js +49 -0
  52. package/dist/contracts/abis/uniswap-v2-pair.d.ts +119 -0
  53. package/dist/contracts/abis/uniswap-v2-pair.d.ts.map +1 -0
  54. package/dist/contracts/abis/uniswap-v2-pair.js +85 -0
  55. package/dist/contracts/abis/uniswap-v2-router.d.ts +249 -0
  56. package/dist/contracts/abis/uniswap-v2-router.d.ts.map +1 -0
  57. package/dist/contracts/abis/uniswap-v2-router.js +146 -0
  58. package/dist/contracts/abis/uniswap-v3-factory.d.ts +77 -0
  59. package/dist/contracts/abis/uniswap-v3-factory.d.ts.map +1 -0
  60. package/dist/contracts/abis/uniswap-v3-factory.js +45 -0
  61. package/dist/contracts/abis/uniswap-v3-pool.d.ts +128 -0
  62. package/dist/contracts/abis/uniswap-v3-pool.d.ts.map +1 -0
  63. package/dist/contracts/abis/uniswap-v3-pool.js +81 -0
  64. package/dist/contracts/addresses.d.ts +141 -0
  65. package/dist/contracts/addresses.d.ts.map +1 -0
  66. package/dist/contracts/addresses.js +108 -0
  67. package/dist/contracts/index.d.ts +6 -0
  68. package/dist/contracts/index.d.ts.map +1 -0
  69. package/dist/contracts/index.js +5 -0
  70. package/dist/dex/balance-delta.d.ts +27 -0
  71. package/dist/dex/balance-delta.d.ts.map +1 -0
  72. package/dist/dex/balance-delta.js +45 -0
  73. package/dist/dex/index.d.ts +7 -0
  74. package/dist/dex/index.d.ts.map +1 -0
  75. package/dist/dex/index.js +6 -0
  76. package/dist/dex/pool-key.d.ts +19 -0
  77. package/dist/dex/pool-key.d.ts.map +1 -0
  78. package/dist/dex/pool-key.js +44 -0
  79. package/dist/dex/types.d.ts +71 -0
  80. package/dist/dex/types.d.ts.map +1 -0
  81. package/dist/dex/types.js +28 -0
  82. package/dist/hooks/index.d.ts +10 -0
  83. package/dist/hooks/index.d.ts.map +1 -0
  84. package/dist/hooks/index.js +9 -0
  85. package/dist/hooks/use-pools.d.ts +24 -0
  86. package/dist/hooks/use-pools.d.ts.map +1 -0
  87. package/dist/hooks/use-pools.js +85 -0
  88. package/dist/hooks/use-positions.d.ts +17 -0
  89. package/dist/hooks/use-positions.d.ts.map +1 -0
  90. package/dist/hooks/use-positions.js +65 -0
  91. package/dist/hooks/use-swap-quote.d.ts +19 -0
  92. package/dist/hooks/use-swap-quote.d.ts.map +1 -0
  93. package/dist/hooks/use-swap-quote.js +54 -0
  94. package/dist/hooks/use-swap.d.ts +22 -0
  95. package/dist/hooks/use-swap.d.ts.map +1 -0
  96. package/dist/hooks/use-swap.js +46 -0
  97. package/dist/hooks/use-token-allowance.d.ts +27 -0
  98. package/dist/hooks/use-token-allowance.d.ts.map +1 -0
  99. package/dist/hooks/use-token-allowance.js +59 -0
  100. package/dist/hooks/use-token-balance.d.ts +17 -0
  101. package/dist/hooks/use-token-balance.d.ts.map +1 -0
  102. package/dist/hooks/use-token-balance.js +58 -0
  103. package/dist/index.d.ts +17 -0
  104. package/dist/index.d.ts.map +1 -0
  105. package/dist/index.js +24 -0
  106. package/dist/stores/index.d.ts +7 -0
  107. package/dist/stores/index.d.ts.map +1 -0
  108. package/dist/stores/index.js +6 -0
  109. package/dist/stores/settings-store.d.ts +25 -0
  110. package/dist/stores/settings-store.d.ts.map +1 -0
  111. package/dist/stores/settings-store.js +16 -0
  112. package/dist/stores/swap-store.d.ts +38 -0
  113. package/dist/stores/swap-store.d.ts.map +1 -0
  114. package/dist/stores/swap-store.js +58 -0
  115. package/dist/stores/token-store.d.ts +21 -0
  116. package/dist/stores/token-store.d.ts.map +1 -0
  117. package/dist/stores/token-store.js +32 -0
  118. package/dist/tokens/index.d.ts +65 -0
  119. package/dist/tokens/index.d.ts.map +1 -0
  120. package/dist/tokens/index.js +185 -0
  121. package/package.json +78 -0
  122. package/src/chains/index.ts +21 -0
  123. package/src/chains/lux.ts +141 -0
  124. package/src/contracts/abis/dex-swap-router.ts +98 -0
  125. package/src/contracts/abis/erc20.ts +96 -0
  126. package/src/contracts/abis/index.ts +17 -0
  127. package/src/contracts/abis/nft-position-manager.ts +146 -0
  128. package/src/contracts/abis/pool-manager.ts +198 -0
  129. package/src/contracts/abis/quoter-v2.ts +68 -0
  130. package/src/contracts/abis/swap-router.ts +75 -0
  131. package/src/contracts/abis/uniswap-v2-factory.ts +49 -0
  132. package/src/contracts/abis/uniswap-v2-pair.ts +85 -0
  133. package/src/contracts/abis/uniswap-v2-router.ts +146 -0
  134. package/src/contracts/abis/uniswap-v3-factory.ts +45 -0
  135. package/src/contracts/abis/uniswap-v3-pool.ts +81 -0
  136. package/src/contracts/addresses.ts +128 -0
  137. package/src/contracts/index.ts +14 -0
  138. package/src/dex/balance-delta.ts +52 -0
  139. package/src/dex/index.ts +7 -0
  140. package/src/dex/pool-key.ts +62 -0
  141. package/src/dex/types.ts +87 -0
  142. package/src/hooks/index.ts +10 -0
  143. package/src/hooks/use-pools.ts +116 -0
  144. package/src/hooks/use-positions.ts +90 -0
  145. package/src/hooks/use-swap-quote.ts +81 -0
  146. package/src/hooks/use-swap.ts +64 -0
  147. package/src/hooks/use-token-allowance.ts +74 -0
  148. package/src/hooks/use-token-balance.ts +71 -0
  149. package/src/index.ts +31 -0
  150. package/src/stores/index.ts +7 -0
  151. package/src/stores/settings-store.ts +54 -0
  152. package/src/stores/swap-store.ts +112 -0
  153. package/src/stores/token-store.ts +62 -0
  154. package/src/tokens/index.ts +220 -0
@@ -0,0 +1,137 @@
1
+ /**
2
+ * DEX SwapRouter Precompile ABI (0x0401)
3
+ * Optimized swap routing via native precompile
4
+ */
5
+ export declare const DEX_SWAP_ROUTER_ABI: readonly [{
6
+ readonly type: "function";
7
+ readonly name: "exactInputSingle";
8
+ readonly inputs: readonly [{
9
+ readonly name: "params";
10
+ readonly type: "tuple";
11
+ readonly components: readonly [{
12
+ readonly name: "poolKey";
13
+ readonly type: "tuple";
14
+ readonly components: readonly [{
15
+ readonly name: "currency0";
16
+ readonly type: "address";
17
+ }, {
18
+ readonly name: "currency1";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly name: "fee";
22
+ readonly type: "uint24";
23
+ }, {
24
+ readonly name: "tickSpacing";
25
+ readonly type: "int24";
26
+ }, {
27
+ readonly name: "hooks";
28
+ readonly type: "address";
29
+ }];
30
+ }, {
31
+ readonly name: "zeroForOne";
32
+ readonly type: "bool";
33
+ }, {
34
+ readonly name: "amountIn";
35
+ readonly type: "uint256";
36
+ }, {
37
+ readonly name: "amountOutMinimum";
38
+ readonly type: "uint256";
39
+ }, {
40
+ readonly name: "sqrtPriceLimitX96";
41
+ readonly type: "uint160";
42
+ }, {
43
+ readonly name: "hookData";
44
+ readonly type: "bytes";
45
+ }];
46
+ }];
47
+ readonly outputs: readonly [{
48
+ readonly name: "amountOut";
49
+ readonly type: "uint256";
50
+ }];
51
+ readonly stateMutability: "payable";
52
+ }, {
53
+ readonly type: "function";
54
+ readonly name: "exactOutputSingle";
55
+ readonly inputs: readonly [{
56
+ readonly name: "params";
57
+ readonly type: "tuple";
58
+ readonly components: readonly [{
59
+ readonly name: "poolKey";
60
+ readonly type: "tuple";
61
+ readonly components: readonly [{
62
+ readonly name: "currency0";
63
+ readonly type: "address";
64
+ }, {
65
+ readonly name: "currency1";
66
+ readonly type: "address";
67
+ }, {
68
+ readonly name: "fee";
69
+ readonly type: "uint24";
70
+ }, {
71
+ readonly name: "tickSpacing";
72
+ readonly type: "int24";
73
+ }, {
74
+ readonly name: "hooks";
75
+ readonly type: "address";
76
+ }];
77
+ }, {
78
+ readonly name: "zeroForOne";
79
+ readonly type: "bool";
80
+ }, {
81
+ readonly name: "amountOut";
82
+ readonly type: "uint256";
83
+ }, {
84
+ readonly name: "amountInMaximum";
85
+ readonly type: "uint256";
86
+ }, {
87
+ readonly name: "sqrtPriceLimitX96";
88
+ readonly type: "uint160";
89
+ }, {
90
+ readonly name: "hookData";
91
+ readonly type: "bytes";
92
+ }];
93
+ }];
94
+ readonly outputs: readonly [{
95
+ readonly name: "amountIn";
96
+ readonly type: "uint256";
97
+ }];
98
+ readonly stateMutability: "payable";
99
+ }, {
100
+ readonly type: "function";
101
+ readonly name: "exactInput";
102
+ readonly inputs: readonly [{
103
+ readonly name: "params";
104
+ readonly type: "tuple";
105
+ readonly components: readonly [{
106
+ readonly name: "path";
107
+ readonly type: "bytes";
108
+ }, {
109
+ readonly name: "recipient";
110
+ readonly type: "address";
111
+ }, {
112
+ readonly name: "amountIn";
113
+ readonly type: "uint256";
114
+ }, {
115
+ readonly name: "amountOutMinimum";
116
+ readonly type: "uint256";
117
+ }];
118
+ }];
119
+ readonly outputs: readonly [{
120
+ readonly name: "amountOut";
121
+ readonly type: "uint256";
122
+ }];
123
+ readonly stateMutability: "payable";
124
+ }, {
125
+ readonly type: "function";
126
+ readonly name: "lockAcquired";
127
+ readonly inputs: readonly [{
128
+ readonly name: "data";
129
+ readonly type: "bytes";
130
+ }];
131
+ readonly outputs: readonly [{
132
+ readonly name: "result";
133
+ readonly type: "bytes";
134
+ }];
135
+ readonly stateMutability: "nonpayable";
136
+ }];
137
+ //# sourceMappingURL=dex-swap-router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dex-swap-router.d.ts","sourceRoot":"","sources":["../../../src/contracts/abis/dex-swap-router.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6FtB,CAAA"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * DEX SwapRouter Precompile ABI (0x0401)
3
+ * Optimized swap routing via native precompile
4
+ */
5
+ export const DEX_SWAP_ROUTER_ABI = [
6
+ // Exact input single swap
7
+ {
8
+ type: 'function',
9
+ name: 'exactInputSingle',
10
+ inputs: [
11
+ {
12
+ name: 'params',
13
+ type: 'tuple',
14
+ components: [
15
+ {
16
+ name: 'poolKey',
17
+ type: 'tuple',
18
+ components: [
19
+ { name: 'currency0', type: 'address' },
20
+ { name: 'currency1', type: 'address' },
21
+ { name: 'fee', type: 'uint24' },
22
+ { name: 'tickSpacing', type: 'int24' },
23
+ { name: 'hooks', type: 'address' },
24
+ ],
25
+ },
26
+ { name: 'zeroForOne', type: 'bool' },
27
+ { name: 'amountIn', type: 'uint256' },
28
+ { name: 'amountOutMinimum', type: 'uint256' },
29
+ { name: 'sqrtPriceLimitX96', type: 'uint160' },
30
+ { name: 'hookData', type: 'bytes' },
31
+ ],
32
+ },
33
+ ],
34
+ outputs: [{ name: 'amountOut', type: 'uint256' }],
35
+ stateMutability: 'payable',
36
+ },
37
+ // Exact output single swap
38
+ {
39
+ type: 'function',
40
+ name: 'exactOutputSingle',
41
+ inputs: [
42
+ {
43
+ name: 'params',
44
+ type: 'tuple',
45
+ components: [
46
+ {
47
+ name: 'poolKey',
48
+ type: 'tuple',
49
+ components: [
50
+ { name: 'currency0', type: 'address' },
51
+ { name: 'currency1', type: 'address' },
52
+ { name: 'fee', type: 'uint24' },
53
+ { name: 'tickSpacing', type: 'int24' },
54
+ { name: 'hooks', type: 'address' },
55
+ ],
56
+ },
57
+ { name: 'zeroForOne', type: 'bool' },
58
+ { name: 'amountOut', type: 'uint256' },
59
+ { name: 'amountInMaximum', type: 'uint256' },
60
+ { name: 'sqrtPriceLimitX96', type: 'uint160' },
61
+ { name: 'hookData', type: 'bytes' },
62
+ ],
63
+ },
64
+ ],
65
+ outputs: [{ name: 'amountIn', type: 'uint256' }],
66
+ stateMutability: 'payable',
67
+ },
68
+ // Multi-hop exact input
69
+ {
70
+ type: 'function',
71
+ name: 'exactInput',
72
+ inputs: [
73
+ {
74
+ name: 'params',
75
+ type: 'tuple',
76
+ components: [
77
+ { name: 'path', type: 'bytes' },
78
+ { name: 'recipient', type: 'address' },
79
+ { name: 'amountIn', type: 'uint256' },
80
+ { name: 'amountOutMinimum', type: 'uint256' },
81
+ ],
82
+ },
83
+ ],
84
+ outputs: [{ name: 'amountOut', type: 'uint256' }],
85
+ stateMutability: 'payable',
86
+ },
87
+ // Swap callback (called by PoolManager)
88
+ {
89
+ type: 'function',
90
+ name: 'lockAcquired',
91
+ inputs: [{ name: 'data', type: 'bytes' }],
92
+ outputs: [{ name: 'result', type: 'bytes' }],
93
+ stateMutability: 'nonpayable',
94
+ },
95
+ ];
@@ -0,0 +1,136 @@
1
+ export declare const ERC20_ABI: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "name";
4
+ readonly inputs: readonly [];
5
+ readonly outputs: readonly [{
6
+ readonly type: "string";
7
+ }];
8
+ readonly stateMutability: "view";
9
+ }, {
10
+ readonly type: "function";
11
+ readonly name: "symbol";
12
+ readonly inputs: readonly [];
13
+ readonly outputs: readonly [{
14
+ readonly type: "string";
15
+ }];
16
+ readonly stateMutability: "view";
17
+ }, {
18
+ readonly type: "function";
19
+ readonly name: "decimals";
20
+ readonly inputs: readonly [];
21
+ readonly outputs: readonly [{
22
+ readonly type: "uint8";
23
+ }];
24
+ readonly stateMutability: "view";
25
+ }, {
26
+ readonly type: "function";
27
+ readonly name: "totalSupply";
28
+ readonly inputs: readonly [];
29
+ readonly outputs: readonly [{
30
+ readonly type: "uint256";
31
+ }];
32
+ readonly stateMutability: "view";
33
+ }, {
34
+ readonly type: "function";
35
+ readonly name: "balanceOf";
36
+ readonly inputs: readonly [{
37
+ readonly name: "account";
38
+ readonly type: "address";
39
+ }];
40
+ readonly outputs: readonly [{
41
+ readonly type: "uint256";
42
+ }];
43
+ readonly stateMutability: "view";
44
+ }, {
45
+ readonly type: "function";
46
+ readonly name: "allowance";
47
+ readonly inputs: readonly [{
48
+ readonly name: "owner";
49
+ readonly type: "address";
50
+ }, {
51
+ readonly name: "spender";
52
+ readonly type: "address";
53
+ }];
54
+ readonly outputs: readonly [{
55
+ readonly type: "uint256";
56
+ }];
57
+ readonly stateMutability: "view";
58
+ }, {
59
+ readonly type: "function";
60
+ readonly name: "approve";
61
+ readonly inputs: readonly [{
62
+ readonly name: "spender";
63
+ readonly type: "address";
64
+ }, {
65
+ readonly name: "amount";
66
+ readonly type: "uint256";
67
+ }];
68
+ readonly outputs: readonly [{
69
+ readonly type: "bool";
70
+ }];
71
+ readonly stateMutability: "nonpayable";
72
+ }, {
73
+ readonly type: "function";
74
+ readonly name: "transfer";
75
+ readonly inputs: readonly [{
76
+ readonly name: "to";
77
+ readonly type: "address";
78
+ }, {
79
+ readonly name: "amount";
80
+ readonly type: "uint256";
81
+ }];
82
+ readonly outputs: readonly [{
83
+ readonly type: "bool";
84
+ }];
85
+ readonly stateMutability: "nonpayable";
86
+ }, {
87
+ readonly type: "function";
88
+ readonly name: "transferFrom";
89
+ readonly inputs: readonly [{
90
+ readonly name: "from";
91
+ readonly type: "address";
92
+ }, {
93
+ readonly name: "to";
94
+ readonly type: "address";
95
+ }, {
96
+ readonly name: "amount";
97
+ readonly type: "uint256";
98
+ }];
99
+ readonly outputs: readonly [{
100
+ readonly type: "bool";
101
+ }];
102
+ readonly stateMutability: "nonpayable";
103
+ }, {
104
+ readonly type: "event";
105
+ readonly name: "Transfer";
106
+ readonly inputs: readonly [{
107
+ readonly name: "from";
108
+ readonly type: "address";
109
+ readonly indexed: true;
110
+ }, {
111
+ readonly name: "to";
112
+ readonly type: "address";
113
+ readonly indexed: true;
114
+ }, {
115
+ readonly name: "value";
116
+ readonly type: "uint256";
117
+ readonly indexed: false;
118
+ }];
119
+ }, {
120
+ readonly type: "event";
121
+ readonly name: "Approval";
122
+ readonly inputs: readonly [{
123
+ readonly name: "owner";
124
+ readonly type: "address";
125
+ readonly indexed: true;
126
+ }, {
127
+ readonly name: "spender";
128
+ readonly type: "address";
129
+ readonly indexed: true;
130
+ }, {
131
+ readonly name: "value";
132
+ readonly type: "uint256";
133
+ readonly indexed: false;
134
+ }];
135
+ }];
136
+ //# sourceMappingURL=erc20.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/contracts/abis/erc20.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+FZ,CAAA"}
@@ -0,0 +1,96 @@
1
+ export const ERC20_ABI = [
2
+ {
3
+ type: 'function',
4
+ name: 'name',
5
+ inputs: [],
6
+ outputs: [{ type: 'string' }],
7
+ stateMutability: 'view',
8
+ },
9
+ {
10
+ type: 'function',
11
+ name: 'symbol',
12
+ inputs: [],
13
+ outputs: [{ type: 'string' }],
14
+ stateMutability: 'view',
15
+ },
16
+ {
17
+ type: 'function',
18
+ name: 'decimals',
19
+ inputs: [],
20
+ outputs: [{ type: 'uint8' }],
21
+ stateMutability: 'view',
22
+ },
23
+ {
24
+ type: 'function',
25
+ name: 'totalSupply',
26
+ inputs: [],
27
+ outputs: [{ type: 'uint256' }],
28
+ stateMutability: 'view',
29
+ },
30
+ {
31
+ type: 'function',
32
+ name: 'balanceOf',
33
+ inputs: [{ name: 'account', type: 'address' }],
34
+ outputs: [{ type: 'uint256' }],
35
+ stateMutability: 'view',
36
+ },
37
+ {
38
+ type: 'function',
39
+ name: 'allowance',
40
+ inputs: [
41
+ { name: 'owner', type: 'address' },
42
+ { name: 'spender', type: 'address' },
43
+ ],
44
+ outputs: [{ type: 'uint256' }],
45
+ stateMutability: 'view',
46
+ },
47
+ {
48
+ type: 'function',
49
+ name: 'approve',
50
+ inputs: [
51
+ { name: 'spender', type: 'address' },
52
+ { name: 'amount', type: 'uint256' },
53
+ ],
54
+ outputs: [{ type: 'bool' }],
55
+ stateMutability: 'nonpayable',
56
+ },
57
+ {
58
+ type: 'function',
59
+ name: 'transfer',
60
+ inputs: [
61
+ { name: 'to', type: 'address' },
62
+ { name: 'amount', type: 'uint256' },
63
+ ],
64
+ outputs: [{ type: 'bool' }],
65
+ stateMutability: 'nonpayable',
66
+ },
67
+ {
68
+ type: 'function',
69
+ name: 'transferFrom',
70
+ inputs: [
71
+ { name: 'from', type: 'address' },
72
+ { name: 'to', type: 'address' },
73
+ { name: 'amount', type: 'uint256' },
74
+ ],
75
+ outputs: [{ type: 'bool' }],
76
+ stateMutability: 'nonpayable',
77
+ },
78
+ {
79
+ type: 'event',
80
+ name: 'Transfer',
81
+ inputs: [
82
+ { name: 'from', type: 'address', indexed: true },
83
+ { name: 'to', type: 'address', indexed: true },
84
+ { name: 'value', type: 'uint256', indexed: false },
85
+ ],
86
+ },
87
+ {
88
+ type: 'event',
89
+ name: 'Approval',
90
+ inputs: [
91
+ { name: 'owner', type: 'address', indexed: true },
92
+ { name: 'spender', type: 'address', indexed: true },
93
+ { name: 'value', type: 'uint256', indexed: false },
94
+ ],
95
+ },
96
+ ];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Contract ABIs for Lux Exchange
3
+ */
4
+ export { UNISWAP_V2_ROUTER_ABI } from './uniswap-v2-router';
5
+ export { UNISWAP_V2_FACTORY_ABI } from './uniswap-v2-factory';
6
+ export { UNISWAP_V2_PAIR_ABI } from './uniswap-v2-pair';
7
+ export { UNISWAP_V3_FACTORY_ABI } from './uniswap-v3-factory';
8
+ export { UNISWAP_V3_POOL_ABI } from './uniswap-v3-pool';
9
+ export { SWAP_ROUTER_ABI } from './swap-router';
10
+ export { QUOTER_V2_ABI } from './quoter-v2';
11
+ export { NFT_POSITION_MANAGER_ABI } from './nft-position-manager';
12
+ export { ERC20_ABI } from './erc20';
13
+ export { POOL_MANAGER_ABI } from './pool-manager';
14
+ export { DEX_SWAP_ROUTER_ABI } from './dex-swap-router';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contracts/abis/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Contract ABIs for Lux Exchange
3
+ */
4
+ export { UNISWAP_V2_ROUTER_ABI } from './uniswap-v2-router';
5
+ export { UNISWAP_V2_FACTORY_ABI } from './uniswap-v2-factory';
6
+ export { UNISWAP_V2_PAIR_ABI } from './uniswap-v2-pair';
7
+ export { UNISWAP_V3_FACTORY_ABI } from './uniswap-v3-factory';
8
+ export { UNISWAP_V3_POOL_ABI } from './uniswap-v3-pool';
9
+ export { SWAP_ROUTER_ABI } from './swap-router';
10
+ export { QUOTER_V2_ABI } from './quoter-v2';
11
+ export { NFT_POSITION_MANAGER_ABI } from './nft-position-manager';
12
+ export { ERC20_ABI } from './erc20';
13
+ // DEX Precompile ABIs
14
+ export { POOL_MANAGER_ABI } from './pool-manager';
15
+ export { DEX_SWAP_ROUTER_ABI } from './dex-swap-router';