@centurion_project/v3-sdk 3.30.0-ctn.0 → 3.30.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 (62) hide show
  1. package/README.md +5 -5
  2. package/dist/cjs/src/abis/IMulticall.json +30 -0
  3. package/dist/cjs/src/abis/IPeripheryPaymentsWithFee.json +120 -0
  4. package/dist/cjs/src/abis/ISelfPermit.json +163 -0
  5. package/dist/cjs/src/abis/NonfungiblePositionManager.json +1230 -0
  6. package/dist/cjs/src/abis/Quoter.json +202 -0
  7. package/dist/cjs/src/abis/QuoterV2.json +276 -0
  8. package/dist/cjs/src/abis/SwapRouter.json +574 -0
  9. package/dist/cjs/src/abis/UniswapV3Staker.json +715 -0
  10. package/dist/cjs/src/entities/position.d.ts +1 -1
  11. package/dist/cjs/src/entities/position.js +1 -1
  12. package/dist/cjs/src/multicall.js +1 -1
  13. package/dist/cjs/src/multicall.js.map +1 -1
  14. package/dist/cjs/src/nonfungiblePositionManager.js +2 -2
  15. package/dist/cjs/src/nonfungiblePositionManager.js.map +1 -1
  16. package/dist/cjs/src/payments.js +1 -1
  17. package/dist/cjs/src/payments.js.map +1 -1
  18. package/dist/cjs/src/quoter.d.ts +1 -1
  19. package/dist/cjs/src/quoter.js +3 -3
  20. package/dist/cjs/src/quoter.js.map +1 -1
  21. package/dist/cjs/src/selfPermit.js +1 -1
  22. package/dist/cjs/src/selfPermit.js.map +1 -1
  23. package/dist/cjs/src/staker.js +1 -1
  24. package/dist/cjs/src/staker.js.map +1 -1
  25. package/dist/cjs/src/swapRouter.d.ts +1 -1
  26. package/dist/cjs/src/swapRouter.js +2 -2
  27. package/dist/cjs/src/swapRouter.js.map +1 -1
  28. package/dist/cjs/src/utils/computePoolAddress.d.ts +1 -1
  29. package/dist/cjs/src/utils/computePoolAddress.js +1 -1
  30. package/dist/esm/src/abis/IMulticall.json +30 -0
  31. package/dist/esm/src/abis/IPeripheryPaymentsWithFee.json +120 -0
  32. package/dist/esm/src/abis/ISelfPermit.json +163 -0
  33. package/dist/esm/src/abis/NonfungiblePositionManager.json +1230 -0
  34. package/dist/esm/src/abis/Quoter.json +202 -0
  35. package/dist/esm/src/abis/QuoterV2.json +276 -0
  36. package/dist/esm/src/abis/SwapRouter.json +574 -0
  37. package/dist/esm/src/abis/UniswapV3Staker.json +715 -0
  38. package/dist/esm/src/entities/position.d.ts +1 -1
  39. package/dist/esm/src/entities/position.js +1 -1
  40. package/dist/esm/src/multicall.js +1 -1
  41. package/dist/esm/src/multicall.js.map +1 -1
  42. package/dist/esm/src/nonfungiblePositionManager.js +2 -2
  43. package/dist/esm/src/nonfungiblePositionManager.js.map +1 -1
  44. package/dist/esm/src/payments.js +1 -1
  45. package/dist/esm/src/payments.js.map +1 -1
  46. package/dist/esm/src/quoter.d.ts +1 -1
  47. package/dist/esm/src/quoter.js +3 -3
  48. package/dist/esm/src/quoter.js.map +1 -1
  49. package/dist/esm/src/selfPermit.js +1 -1
  50. package/dist/esm/src/selfPermit.js.map +1 -1
  51. package/dist/esm/src/staker.js +1 -1
  52. package/dist/esm/src/staker.js.map +1 -1
  53. package/dist/esm/src/swapRouter.d.ts +1 -1
  54. package/dist/esm/src/swapRouter.js +2 -2
  55. package/dist/esm/src/swapRouter.js.map +1 -1
  56. package/dist/esm/src/utils/computePoolAddress.d.ts +1 -1
  57. package/dist/esm/src/utils/computePoolAddress.js +1 -1
  58. package/dist/types/src/entities/position.d.ts +1 -1
  59. package/dist/types/src/quoter.d.ts +1 -1
  60. package/dist/types/src/swapRouter.d.ts +1 -1
  61. package/dist/types/src/utils/computePoolAddress.d.ts +1 -1
  62. package/package.json +6 -9
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Alpha software
2
2
 
3
- The latest version of the SDK is used in production in the Uniswap Interface,
3
+ The latest version of the SDK is used in production in the Centurion Interface,
4
4
  but it is considered Alpha software and may contain bugs or change significantly between patch versions.
5
5
  If you have questions about how to use the SDK, please reach out in the `#dev-chat` channel of the Discord.
6
6
  Pull requests welcome!
7
7
 
8
- # Uniswap V3 SDK
8
+ # Centurion V3 SDK
9
9
 
10
- [![npm version](https://img.shields.io/npm/v/@uniswap/v3-sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/v3-sdk/v/latest)
11
- [![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/v3-sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/v3-sdk@latest)
10
+ [![npm version](https://img.shields.io/npm/v/@centurion_project/v3-sdk/latest.svg)](https://www.npmjs.com/package/@centurion_project/v3-sdk/v/latest)
11
+ [![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@centurion_project/v3-sdk/latest.svg)](https://bundlephobia.com/result?p=@centurion_project/v3-sdk@latest)
12
12
 
13
- In-depth documentation on this SDK is available at [uniswap.org](https://docs.uniswap.org/).
13
+ In-depth documentation on this SDK is available in the [Centurion SDK repository](https://github.com/CenturionDEX/centurion-dex-sdks).
@@ -0,0 +1,30 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IMulticall",
4
+ "sourceName": "contracts/interfaces/IMulticall.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "bytes[]",
10
+ "name": "data",
11
+ "type": "bytes[]"
12
+ }
13
+ ],
14
+ "name": "multicall",
15
+ "outputs": [
16
+ {
17
+ "internalType": "bytes[]",
18
+ "name": "results",
19
+ "type": "bytes[]"
20
+ }
21
+ ],
22
+ "stateMutability": "payable",
23
+ "type": "function"
24
+ }
25
+ ],
26
+ "bytecode": "0x",
27
+ "deployedBytecode": "0x",
28
+ "linkReferences": {},
29
+ "deployedLinkReferences": {}
30
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IPeripheryPaymentsWithFee",
4
+ "sourceName": "contracts/interfaces/IPeripheryPaymentsWithFee.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "refundETH",
9
+ "outputs": [],
10
+ "stateMutability": "payable",
11
+ "type": "function"
12
+ },
13
+ {
14
+ "inputs": [
15
+ {
16
+ "internalType": "address",
17
+ "name": "token",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "internalType": "uint256",
22
+ "name": "amountMinimum",
23
+ "type": "uint256"
24
+ },
25
+ {
26
+ "internalType": "address",
27
+ "name": "recipient",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "sweepToken",
32
+ "outputs": [],
33
+ "stateMutability": "payable",
34
+ "type": "function"
35
+ },
36
+ {
37
+ "inputs": [
38
+ {
39
+ "internalType": "address",
40
+ "name": "token",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "internalType": "uint256",
45
+ "name": "amountMinimum",
46
+ "type": "uint256"
47
+ },
48
+ {
49
+ "internalType": "address",
50
+ "name": "recipient",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "internalType": "uint256",
55
+ "name": "feeBips",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "internalType": "address",
60
+ "name": "feeRecipient",
61
+ "type": "address"
62
+ }
63
+ ],
64
+ "name": "sweepTokenWithFee",
65
+ "outputs": [],
66
+ "stateMutability": "payable",
67
+ "type": "function"
68
+ },
69
+ {
70
+ "inputs": [
71
+ {
72
+ "internalType": "uint256",
73
+ "name": "amountMinimum",
74
+ "type": "uint256"
75
+ },
76
+ {
77
+ "internalType": "address",
78
+ "name": "recipient",
79
+ "type": "address"
80
+ }
81
+ ],
82
+ "name": "unwrapWETH9",
83
+ "outputs": [],
84
+ "stateMutability": "payable",
85
+ "type": "function"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "uint256",
91
+ "name": "amountMinimum",
92
+ "type": "uint256"
93
+ },
94
+ {
95
+ "internalType": "address",
96
+ "name": "recipient",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "feeBips",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "internalType": "address",
106
+ "name": "feeRecipient",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "name": "unwrapWETH9WithFee",
111
+ "outputs": [],
112
+ "stateMutability": "payable",
113
+ "type": "function"
114
+ }
115
+ ],
116
+ "bytecode": "0x",
117
+ "deployedBytecode": "0x",
118
+ "linkReferences": {},
119
+ "deployedLinkReferences": {}
120
+ }
@@ -0,0 +1,163 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ISelfPermit",
4
+ "sourceName": "contracts/interfaces/ISelfPermit.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "token",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "value",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "deadline",
21
+ "type": "uint256"
22
+ },
23
+ {
24
+ "internalType": "uint8",
25
+ "name": "v",
26
+ "type": "uint8"
27
+ },
28
+ {
29
+ "internalType": "bytes32",
30
+ "name": "r",
31
+ "type": "bytes32"
32
+ },
33
+ {
34
+ "internalType": "bytes32",
35
+ "name": "s",
36
+ "type": "bytes32"
37
+ }
38
+ ],
39
+ "name": "selfPermit",
40
+ "outputs": [],
41
+ "stateMutability": "payable",
42
+ "type": "function"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "address",
48
+ "name": "token",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "internalType": "uint256",
53
+ "name": "nonce",
54
+ "type": "uint256"
55
+ },
56
+ {
57
+ "internalType": "uint256",
58
+ "name": "expiry",
59
+ "type": "uint256"
60
+ },
61
+ {
62
+ "internalType": "uint8",
63
+ "name": "v",
64
+ "type": "uint8"
65
+ },
66
+ {
67
+ "internalType": "bytes32",
68
+ "name": "r",
69
+ "type": "bytes32"
70
+ },
71
+ {
72
+ "internalType": "bytes32",
73
+ "name": "s",
74
+ "type": "bytes32"
75
+ }
76
+ ],
77
+ "name": "selfPermitAllowed",
78
+ "outputs": [],
79
+ "stateMutability": "payable",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "inputs": [
84
+ {
85
+ "internalType": "address",
86
+ "name": "token",
87
+ "type": "address"
88
+ },
89
+ {
90
+ "internalType": "uint256",
91
+ "name": "nonce",
92
+ "type": "uint256"
93
+ },
94
+ {
95
+ "internalType": "uint256",
96
+ "name": "expiry",
97
+ "type": "uint256"
98
+ },
99
+ {
100
+ "internalType": "uint8",
101
+ "name": "v",
102
+ "type": "uint8"
103
+ },
104
+ {
105
+ "internalType": "bytes32",
106
+ "name": "r",
107
+ "type": "bytes32"
108
+ },
109
+ {
110
+ "internalType": "bytes32",
111
+ "name": "s",
112
+ "type": "bytes32"
113
+ }
114
+ ],
115
+ "name": "selfPermitAllowedIfNecessary",
116
+ "outputs": [],
117
+ "stateMutability": "payable",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "internalType": "address",
124
+ "name": "token",
125
+ "type": "address"
126
+ },
127
+ {
128
+ "internalType": "uint256",
129
+ "name": "value",
130
+ "type": "uint256"
131
+ },
132
+ {
133
+ "internalType": "uint256",
134
+ "name": "deadline",
135
+ "type": "uint256"
136
+ },
137
+ {
138
+ "internalType": "uint8",
139
+ "name": "v",
140
+ "type": "uint8"
141
+ },
142
+ {
143
+ "internalType": "bytes32",
144
+ "name": "r",
145
+ "type": "bytes32"
146
+ },
147
+ {
148
+ "internalType": "bytes32",
149
+ "name": "s",
150
+ "type": "bytes32"
151
+ }
152
+ ],
153
+ "name": "selfPermitIfNecessary",
154
+ "outputs": [],
155
+ "stateMutability": "payable",
156
+ "type": "function"
157
+ }
158
+ ],
159
+ "bytecode": "0x",
160
+ "deployedBytecode": "0x",
161
+ "linkReferences": {},
162
+ "deployedLinkReferences": {}
163
+ }