@augustdigital/sdk 4.0.9-alpha → 4.0.9-beta

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 (259) hide show
  1. package/README.md +169 -11
  2. package/lib/abis/AddressResolver.d.ts +28 -0
  3. package/lib/abis/AddressResolver.js +23 -0
  4. package/lib/abis/AddressResolver.js.map +1 -0
  5. package/lib/abis/ChainlinkV3.d.ts +87 -0
  6. package/lib/abis/ChainlinkV3.js +117 -0
  7. package/lib/abis/ChainlinkV3.js.map +1 -0
  8. package/lib/abis/ERC20.d.ts +168 -0
  9. package/lib/abis/ERC20.js +226 -0
  10. package/lib/abis/ERC20.js.map +1 -0
  11. package/lib/abis/ERC20_Bytes32.d.ts +135 -0
  12. package/lib/abis/ERC20_Bytes32.js +192 -0
  13. package/lib/abis/ERC20_Bytes32.js.map +1 -0
  14. package/lib/abis/ERC4626.d.ts +363 -0
  15. package/lib/abis/ERC4626.js +506 -0
  16. package/lib/abis/ERC4626.js.map +1 -0
  17. package/lib/abis/ERC721.d.ts +230 -0
  18. package/lib/abis/ERC721.js +320 -0
  19. package/lib/abis/ERC721.js.map +1 -0
  20. package/lib/abis/FeeOracle.d.ts +120 -0
  21. package/lib/abis/FeeOracle.js +161 -0
  22. package/lib/abis/FeeOracle.js.map +1 -0
  23. package/lib/abis/LendingPool.d.ts +1393 -0
  24. package/lib/abis/LendingPool.js +1806 -0
  25. package/lib/abis/LendingPool.js.map +1 -0
  26. package/lib/abis/LendingPoolV2.d.ts +55 -0
  27. package/lib/abis/LendingPoolV2.js +1832 -0
  28. package/lib/abis/LendingPoolV2.js.map +1 -0
  29. package/lib/abis/LendingPoolV3.d.ts +35 -0
  30. package/lib/abis/LendingPoolV3.js +1160 -0
  31. package/lib/abis/LendingPoolV3.js.map +1 -0
  32. package/lib/abis/Loan.d.ts +837 -0
  33. package/lib/abis/Loan.js +1080 -0
  34. package/lib/abis/Loan.js.map +1 -0
  35. package/lib/abis/Multicall3.d.ts +30 -0
  36. package/lib/abis/Multicall3.js +94 -0
  37. package/lib/abis/Multicall3.js.map +1 -0
  38. package/lib/abis/PoolAdapter.d.ts +76 -0
  39. package/lib/abis/PoolAdapter.js +412 -0
  40. package/lib/abis/PoolAdapter.js.map +1 -0
  41. package/lib/abis/RewardDistributor.d.ts +46 -0
  42. package/lib/abis/RewardDistributor.js +352 -0
  43. package/lib/abis/RewardDistributor.js.map +1 -0
  44. package/lib/abis/SmartAccount.d.ts +16 -0
  45. package/lib/abis/SmartAccount.js +16 -0
  46. package/lib/abis/SmartAccount.js.map +1 -0
  47. package/lib/abis/TextResolver.d.ts +16 -0
  48. package/lib/abis/TextResolver.js +16 -0
  49. package/lib/abis/TextResolver.js.map +1 -0
  50. package/lib/abis/TokenizedVaultV2.d.ts +1354 -0
  51. package/lib/abis/TokenizedVaultV2.js +1028 -0
  52. package/lib/abis/TokenizedVaultV2.js.map +1 -0
  53. package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
  54. package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
  55. package/lib/abis/TokenizedVaultV2Receipt.js.map +1 -0
  56. package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
  57. package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
  58. package/lib/abis/TokenizedVaultV2WhitelistedAssets.js.map +1 -0
  59. package/lib/abis/UniversalResolverResolve.d.ts +69 -0
  60. package/lib/abis/UniversalResolverResolve.js +35 -0
  61. package/lib/abis/UniversalResolverResolve.js.map +1 -0
  62. package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
  63. package/lib/abis/UniversalSignatureValidator.js +27 -0
  64. package/lib/abis/UniversalSignatureValidator.js.map +1 -0
  65. package/lib/abis/WrapperAdapter.d.ts +60 -0
  66. package/lib/abis/WrapperAdapter.js +150 -0
  67. package/lib/abis/WrapperAdapter.js.map +1 -0
  68. package/lib/abis/index.d.ts +22 -0
  69. package/lib/abis/index.js +39 -0
  70. package/lib/abis/index.js.map +1 -0
  71. package/lib/adapters/evm/getters.d.ts +4 -0
  72. package/lib/adapters/evm/getters.js +152 -0
  73. package/lib/adapters/evm/getters.js.map +1 -0
  74. package/lib/adapters/evm/index.d.ts +19 -0
  75. package/lib/adapters/evm/index.js +54 -0
  76. package/lib/adapters/evm/index.js.map +1 -0
  77. package/lib/adapters/evm/utils.d.ts +2 -0
  78. package/lib/adapters/evm/utils.js +43 -0
  79. package/lib/adapters/evm/utils.js.map +1 -0
  80. package/lib/adapters/solana/constants.d.ts +25 -0
  81. package/lib/adapters/solana/constants.js +32 -0
  82. package/lib/adapters/solana/constants.js.map +1 -0
  83. package/lib/adapters/solana/getters.d.ts +3 -0
  84. package/lib/adapters/solana/getters.js +133 -0
  85. package/lib/adapters/solana/getters.js.map +1 -0
  86. package/lib/adapters/solana/idl/vault-idl.d.ts +338 -0
  87. package/lib/adapters/solana/idl/vault-idl.js +1075 -0
  88. package/lib/adapters/solana/idl/vault-idl.js.map +1 -0
  89. package/lib/adapters/solana/index.d.ts +160 -0
  90. package/lib/adapters/solana/index.js +174 -0
  91. package/lib/adapters/solana/index.js.map +1 -0
  92. package/lib/adapters/solana/types.d.ts +58 -0
  93. package/lib/adapters/solana/types.js +3 -0
  94. package/lib/adapters/solana/types.js.map +1 -0
  95. package/lib/adapters/solana/utils.d.ts +116 -0
  96. package/lib/adapters/solana/utils.js +435 -0
  97. package/lib/adapters/solana/utils.js.map +1 -0
  98. package/lib/adapters/solana/vault.actions.d.ts +18 -0
  99. package/lib/adapters/solana/vault.actions.js +235 -0
  100. package/lib/adapters/solana/vault.actions.js.map +1 -0
  101. package/lib/adapters/sui/constants.d.ts +20 -0
  102. package/lib/adapters/sui/constants.js +24 -0
  103. package/lib/adapters/sui/constants.js.map +1 -0
  104. package/lib/adapters/sui/getters.d.ts +3 -0
  105. package/lib/adapters/sui/getters.js +52 -0
  106. package/lib/adapters/sui/getters.js.map +1 -0
  107. package/lib/adapters/sui/index.d.ts +31 -0
  108. package/lib/adapters/sui/index.js +87 -0
  109. package/lib/adapters/sui/index.js.map +1 -0
  110. package/lib/adapters/sui/transformer.d.ts +4 -0
  111. package/lib/adapters/sui/transformer.js +92 -0
  112. package/lib/adapters/sui/transformer.js.map +1 -0
  113. package/lib/adapters/sui/types.d.ts +62 -0
  114. package/lib/adapters/sui/types.js +3 -0
  115. package/lib/adapters/sui/types.js.map +1 -0
  116. package/lib/adapters/sui/utils.d.ts +6 -0
  117. package/lib/adapters/sui/utils.js +35 -0
  118. package/lib/adapters/sui/utils.js.map +1 -0
  119. package/lib/core/auth/index.d.ts +1 -0
  120. package/lib/core/auth/index.js +18 -0
  121. package/lib/core/auth/index.js.map +1 -0
  122. package/lib/core/auth/verify.d.ts +2 -0
  123. package/lib/core/auth/verify.js +21 -0
  124. package/lib/core/auth/verify.js.map +1 -0
  125. package/lib/core/base.class.d.ts +33 -0
  126. package/lib/core/base.class.js +66 -0
  127. package/lib/core/base.class.js.map +1 -0
  128. package/lib/core/constants.core.d.ts +59 -0
  129. package/lib/core/constants.core.js +63 -0
  130. package/lib/core/constants.core.js.map +1 -0
  131. package/lib/core/constants.d.ts +88 -0
  132. package/lib/core/constants.js +148 -0
  133. package/lib/core/constants.js.map +1 -0
  134. package/lib/core/constants.vaults.d.ts +19 -0
  135. package/lib/core/constants.vaults.js +130 -0
  136. package/lib/core/constants.vaults.js.map +1 -0
  137. package/lib/core/constants.web3.d.ts +30 -0
  138. package/lib/core/constants.web3.js +89 -0
  139. package/lib/core/constants.web3.js.map +1 -0
  140. package/lib/core/core.helpers.d.ts +23 -0
  141. package/lib/core/core.helpers.js +210 -0
  142. package/lib/core/core.helpers.js.map +1 -0
  143. package/lib/core/fetcher.d.ts +22 -0
  144. package/lib/core/fetcher.js +372 -0
  145. package/lib/core/fetcher.js.map +1 -0
  146. package/lib/core/helpers.core.d.ts +23 -0
  147. package/lib/core/helpers.core.js +210 -0
  148. package/lib/core/helpers.core.js.map +1 -0
  149. package/lib/core/helpers.vaults.d.ts +15 -0
  150. package/lib/core/helpers.vaults.js +123 -0
  151. package/lib/core/helpers.vaults.js.map +1 -0
  152. package/lib/core/helpers.web3.d.ts +29 -0
  153. package/lib/core/helpers.web3.js +365 -0
  154. package/lib/core/helpers.web3.js.map +1 -0
  155. package/lib/core/index.d.ts +10 -0
  156. package/lib/core/index.js +27 -0
  157. package/lib/core/index.js.map +1 -0
  158. package/lib/core/logger/index.d.ts +21 -0
  159. package/lib/core/logger/index.js +80 -0
  160. package/lib/core/logger/index.js.map +1 -0
  161. package/lib/core/logger/slack.d.ts +12 -0
  162. package/lib/core/logger/slack.js +49 -0
  163. package/lib/core/logger/slack.js.map +1 -0
  164. package/lib/core/read.actions.d.ts +3 -0
  165. package/lib/core/read.actions.js +39 -0
  166. package/lib/core/read.actions.js.map +1 -0
  167. package/lib/core/web3.helpers.d.ts +29 -0
  168. package/lib/core/web3.helpers.js +356 -0
  169. package/lib/core/web3.helpers.js.map +1 -0
  170. package/lib/core/write.actions.d.ts +9 -0
  171. package/lib/core/write.actions.js +51 -0
  172. package/lib/core/write.actions.js.map +1 -0
  173. package/lib/index.d.ts +6 -6
  174. package/lib/index.js +14 -7
  175. package/lib/index.js.map +1 -1
  176. package/lib/main.d.ts +88 -14
  177. package/lib/main.js +54 -17
  178. package/lib/main.js.map +1 -1
  179. package/lib/modules/vaults/constants.d.ts +65 -0
  180. package/lib/modules/vaults/constants.js +194 -0
  181. package/lib/modules/vaults/constants.js.map +1 -0
  182. package/lib/modules/vaults/fetcher.d.ts +101 -0
  183. package/lib/modules/vaults/fetcher.js +257 -0
  184. package/lib/modules/vaults/fetcher.js.map +1 -0
  185. package/lib/modules/vaults/getters.d.ts +67 -0
  186. package/lib/modules/vaults/getters.js +932 -0
  187. package/lib/modules/vaults/getters.js.map +1 -0
  188. package/lib/modules/vaults/index.d.ts +3 -0
  189. package/lib/modules/vaults/index.js +20 -0
  190. package/lib/modules/vaults/index.js.map +1 -0
  191. package/lib/modules/vaults/main.d.ts +100 -0
  192. package/lib/modules/vaults/main.js +532 -0
  193. package/lib/modules/vaults/main.js.map +1 -0
  194. package/lib/modules/vaults/read.actions.d.ts +3 -0
  195. package/lib/modules/vaults/read.actions.js +39 -0
  196. package/lib/modules/vaults/read.actions.js.map +1 -0
  197. package/lib/modules/vaults/utils.d.ts +12 -0
  198. package/lib/modules/vaults/utils.js +170 -0
  199. package/lib/modules/vaults/utils.js.map +1 -0
  200. package/lib/modules/vaults/vault.actions.d.ts +10 -0
  201. package/lib/modules/vaults/vault.actions.js +95 -0
  202. package/lib/modules/vaults/vault.actions.js.map +1 -0
  203. package/lib/modules/vaults/write.actions.d.ts +17 -0
  204. package/lib/modules/vaults/write.actions.js +143 -0
  205. package/lib/modules/vaults/write.actions.js.map +1 -0
  206. package/lib/services/coingecko/fetcher.d.ts +1 -0
  207. package/lib/services/coingecko/fetcher.js +36 -0
  208. package/lib/services/coingecko/fetcher.js.map +1 -0
  209. package/lib/services/coingecko/index.d.ts +2 -0
  210. package/lib/services/coingecko/index.js +19 -0
  211. package/lib/services/coingecko/index.js.map +1 -0
  212. package/lib/services/coingecko/utils.d.ts +1 -0
  213. package/lib/services/coingecko/utils.js +24 -0
  214. package/lib/services/coingecko/utils.js.map +1 -0
  215. package/lib/services/debank/fetcher.d.ts +2 -0
  216. package/lib/services/debank/fetcher.js +16 -0
  217. package/lib/services/debank/fetcher.js.map +1 -0
  218. package/lib/services/debank/index.d.ts +2 -0
  219. package/lib/services/debank/index.js +19 -0
  220. package/lib/services/debank/index.js.map +1 -0
  221. package/lib/services/debank/utils.d.ts +32 -0
  222. package/lib/services/debank/utils.js +229 -0
  223. package/lib/services/debank/utils.js.map +1 -0
  224. package/lib/services/subgraph/fetcher.d.ts +2 -0
  225. package/lib/services/subgraph/fetcher.js +59 -0
  226. package/lib/services/subgraph/fetcher.js.map +1 -0
  227. package/lib/services/subgraph/index.d.ts +2 -0
  228. package/lib/services/subgraph/index.js +19 -0
  229. package/lib/services/subgraph/index.js.map +1 -0
  230. package/lib/services/subgraph/vaults.d.ts +10 -0
  231. package/lib/services/subgraph/vaults.js +471 -0
  232. package/lib/services/subgraph/vaults.js.map +1 -0
  233. package/lib/types/index.d.ts +8 -0
  234. package/lib/types/index.js +24 -0
  235. package/lib/types/index.js.map +1 -0
  236. package/lib/types/pools.d.ts +141 -0
  237. package/lib/types/pools.js +3 -0
  238. package/lib/types/pools.js.map +1 -0
  239. package/lib/types/staking.d.ts +28 -0
  240. package/lib/types/staking.js +3 -0
  241. package/lib/types/staking.js.map +1 -0
  242. package/lib/types/subgraph.d.ts +45 -0
  243. package/lib/types/subgraph.js +3 -0
  244. package/lib/types/subgraph.js.map +1 -0
  245. package/lib/types/user.d.ts +1 -0
  246. package/lib/types/user.js +3 -0
  247. package/lib/types/user.js.map +1 -0
  248. package/lib/types/vaults.d.ts +171 -0
  249. package/lib/types/vaults.js +3 -0
  250. package/lib/types/vaults.js.map +1 -0
  251. package/lib/types/web3.d.ts +24 -0
  252. package/lib/types/web3.js +3 -0
  253. package/lib/types/web3.js.map +1 -0
  254. package/lib/types/webserver.d.ts +489 -0
  255. package/lib/types/webserver.js +3 -0
  256. package/lib/types/webserver.js.map +1 -0
  257. package/lib/verify.js +25 -12
  258. package/lib/verify.js.map +1 -1
  259. package/package.json +16 -10
@@ -0,0 +1,230 @@
1
+ export declare const ABI_ERC721: readonly [{
2
+ readonly type: "event";
3
+ readonly name: "Approval";
4
+ readonly inputs: readonly [{
5
+ readonly indexed: true;
6
+ readonly name: "owner";
7
+ readonly type: "address";
8
+ }, {
9
+ readonly indexed: true;
10
+ readonly name: "spender";
11
+ readonly type: "address";
12
+ }, {
13
+ readonly indexed: true;
14
+ readonly name: "tokenId";
15
+ readonly type: "uint256";
16
+ }];
17
+ }, {
18
+ readonly type: "event";
19
+ readonly name: "ApprovalForAll";
20
+ readonly inputs: readonly [{
21
+ readonly indexed: true;
22
+ readonly name: "owner";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly indexed: true;
26
+ readonly name: "operator";
27
+ readonly type: "address";
28
+ }, {
29
+ readonly indexed: false;
30
+ readonly name: "approved";
31
+ readonly type: "bool";
32
+ }];
33
+ }, {
34
+ readonly type: "event";
35
+ readonly name: "Transfer";
36
+ readonly inputs: readonly [{
37
+ readonly indexed: true;
38
+ readonly name: "from";
39
+ readonly type: "address";
40
+ }, {
41
+ readonly indexed: true;
42
+ readonly name: "to";
43
+ readonly type: "address";
44
+ }, {
45
+ readonly indexed: true;
46
+ readonly name: "tokenId";
47
+ readonly type: "uint256";
48
+ }];
49
+ }, {
50
+ readonly type: "function";
51
+ readonly name: "approve";
52
+ readonly stateMutability: "payable";
53
+ readonly inputs: readonly [{
54
+ readonly name: "spender";
55
+ readonly type: "address";
56
+ }, {
57
+ readonly name: "tokenId";
58
+ readonly type: "uint256";
59
+ }];
60
+ readonly outputs: readonly [];
61
+ }, {
62
+ readonly type: "function";
63
+ readonly name: "balanceOf";
64
+ readonly stateMutability: "view";
65
+ readonly inputs: readonly [{
66
+ readonly name: "account";
67
+ readonly type: "address";
68
+ }];
69
+ readonly outputs: readonly [{
70
+ readonly type: "uint256";
71
+ }];
72
+ }, {
73
+ readonly type: "function";
74
+ readonly name: "getApproved";
75
+ readonly stateMutability: "view";
76
+ readonly inputs: readonly [{
77
+ readonly name: "tokenId";
78
+ readonly type: "uint256";
79
+ }];
80
+ readonly outputs: readonly [{
81
+ readonly type: "address";
82
+ }];
83
+ }, {
84
+ readonly type: "function";
85
+ readonly name: "isApprovedForAll";
86
+ readonly stateMutability: "view";
87
+ readonly inputs: readonly [{
88
+ readonly name: "owner";
89
+ readonly type: "address";
90
+ }, {
91
+ readonly name: "operator";
92
+ readonly type: "address";
93
+ }];
94
+ readonly outputs: readonly [{
95
+ readonly type: "bool";
96
+ }];
97
+ }, {
98
+ readonly type: "function";
99
+ readonly name: "name";
100
+ readonly stateMutability: "view";
101
+ readonly inputs: readonly [];
102
+ readonly outputs: readonly [{
103
+ readonly type: "string";
104
+ }];
105
+ }, {
106
+ readonly type: "function";
107
+ readonly name: "ownerOf";
108
+ readonly stateMutability: "view";
109
+ readonly inputs: readonly [{
110
+ readonly name: "tokenId";
111
+ readonly type: "uint256";
112
+ }];
113
+ readonly outputs: readonly [{
114
+ readonly name: "owner";
115
+ readonly type: "address";
116
+ }];
117
+ }, {
118
+ readonly type: "function";
119
+ readonly name: "safeTransferFrom";
120
+ readonly stateMutability: "payable";
121
+ readonly inputs: readonly [{
122
+ readonly name: "from";
123
+ readonly type: "address";
124
+ }, {
125
+ readonly name: "to";
126
+ readonly type: "address";
127
+ }, {
128
+ readonly name: "tokenId";
129
+ readonly type: "uint256";
130
+ }];
131
+ readonly outputs: readonly [];
132
+ }, {
133
+ readonly type: "function";
134
+ readonly name: "safeTransferFrom";
135
+ readonly stateMutability: "nonpayable";
136
+ readonly inputs: readonly [{
137
+ readonly name: "from";
138
+ readonly type: "address";
139
+ }, {
140
+ readonly name: "to";
141
+ readonly type: "address";
142
+ }, {
143
+ readonly name: "id";
144
+ readonly type: "uint256";
145
+ }, {
146
+ readonly name: "data";
147
+ readonly type: "bytes";
148
+ }];
149
+ readonly outputs: readonly [];
150
+ }, {
151
+ readonly type: "function";
152
+ readonly name: "setApprovalForAll";
153
+ readonly stateMutability: "nonpayable";
154
+ readonly inputs: readonly [{
155
+ readonly name: "operator";
156
+ readonly type: "address";
157
+ }, {
158
+ readonly name: "approved";
159
+ readonly type: "bool";
160
+ }];
161
+ readonly outputs: readonly [];
162
+ }, {
163
+ readonly type: "function";
164
+ readonly name: "symbol";
165
+ readonly stateMutability: "view";
166
+ readonly inputs: readonly [];
167
+ readonly outputs: readonly [{
168
+ readonly type: "string";
169
+ }];
170
+ }, {
171
+ readonly type: "function";
172
+ readonly name: "tokenByIndex";
173
+ readonly stateMutability: "view";
174
+ readonly inputs: readonly [{
175
+ readonly name: "index";
176
+ readonly type: "uint256";
177
+ }];
178
+ readonly outputs: readonly [{
179
+ readonly type: "uint256";
180
+ }];
181
+ }, {
182
+ readonly type: "function";
183
+ readonly name: "tokenByIndex";
184
+ readonly stateMutability: "view";
185
+ readonly inputs: readonly [{
186
+ readonly name: "owner";
187
+ readonly type: "address";
188
+ }, {
189
+ readonly name: "index";
190
+ readonly type: "uint256";
191
+ }];
192
+ readonly outputs: readonly [{
193
+ readonly name: "tokenId";
194
+ readonly type: "uint256";
195
+ }];
196
+ }, {
197
+ readonly type: "function";
198
+ readonly name: "tokenURI";
199
+ readonly stateMutability: "view";
200
+ readonly inputs: readonly [{
201
+ readonly name: "tokenId";
202
+ readonly type: "uint256";
203
+ }];
204
+ readonly outputs: readonly [{
205
+ readonly type: "string";
206
+ }];
207
+ }, {
208
+ readonly type: "function";
209
+ readonly name: "totalSupply";
210
+ readonly stateMutability: "view";
211
+ readonly inputs: readonly [];
212
+ readonly outputs: readonly [{
213
+ readonly type: "uint256";
214
+ }];
215
+ }, {
216
+ readonly type: "function";
217
+ readonly name: "transferFrom";
218
+ readonly stateMutability: "payable";
219
+ readonly inputs: readonly [{
220
+ readonly name: "sender";
221
+ readonly type: "address";
222
+ }, {
223
+ readonly name: "recipient";
224
+ readonly type: "address";
225
+ }, {
226
+ readonly name: "tokeId";
227
+ readonly type: "uint256";
228
+ }];
229
+ readonly outputs: readonly [];
230
+ }];
@@ -0,0 +1,320 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ABI_ERC721 = void 0;
4
+ exports.ABI_ERC721 = [
5
+ {
6
+ type: 'event',
7
+ name: 'Approval',
8
+ inputs: [
9
+ {
10
+ indexed: true,
11
+ name: 'owner',
12
+ type: 'address',
13
+ },
14
+ {
15
+ indexed: true,
16
+ name: 'spender',
17
+ type: 'address',
18
+ },
19
+ {
20
+ indexed: true,
21
+ name: 'tokenId',
22
+ type: 'uint256',
23
+ },
24
+ ],
25
+ },
26
+ {
27
+ type: 'event',
28
+ name: 'ApprovalForAll',
29
+ inputs: [
30
+ {
31
+ indexed: true,
32
+ name: 'owner',
33
+ type: 'address',
34
+ },
35
+ {
36
+ indexed: true,
37
+ name: 'operator',
38
+ type: 'address',
39
+ },
40
+ {
41
+ indexed: false,
42
+ name: 'approved',
43
+ type: 'bool',
44
+ },
45
+ ],
46
+ },
47
+ {
48
+ type: 'event',
49
+ name: 'Transfer',
50
+ inputs: [
51
+ {
52
+ indexed: true,
53
+ name: 'from',
54
+ type: 'address',
55
+ },
56
+ {
57
+ indexed: true,
58
+ name: 'to',
59
+ type: 'address',
60
+ },
61
+ {
62
+ indexed: true,
63
+ name: 'tokenId',
64
+ type: 'uint256',
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ type: 'function',
70
+ name: 'approve',
71
+ stateMutability: 'payable',
72
+ inputs: [
73
+ {
74
+ name: 'spender',
75
+ type: 'address',
76
+ },
77
+ {
78
+ name: 'tokenId',
79
+ type: 'uint256',
80
+ },
81
+ ],
82
+ outputs: [],
83
+ },
84
+ {
85
+ type: 'function',
86
+ name: 'balanceOf',
87
+ stateMutability: 'view',
88
+ inputs: [
89
+ {
90
+ name: 'account',
91
+ type: 'address',
92
+ },
93
+ ],
94
+ outputs: [
95
+ {
96
+ type: 'uint256',
97
+ },
98
+ ],
99
+ },
100
+ {
101
+ type: 'function',
102
+ name: 'getApproved',
103
+ stateMutability: 'view',
104
+ inputs: [
105
+ {
106
+ name: 'tokenId',
107
+ type: 'uint256',
108
+ },
109
+ ],
110
+ outputs: [
111
+ {
112
+ type: 'address',
113
+ },
114
+ ],
115
+ },
116
+ {
117
+ type: 'function',
118
+ name: 'isApprovedForAll',
119
+ stateMutability: 'view',
120
+ inputs: [
121
+ {
122
+ name: 'owner',
123
+ type: 'address',
124
+ },
125
+ {
126
+ name: 'operator',
127
+ type: 'address',
128
+ },
129
+ ],
130
+ outputs: [
131
+ {
132
+ type: 'bool',
133
+ },
134
+ ],
135
+ },
136
+ {
137
+ type: 'function',
138
+ name: 'name',
139
+ stateMutability: 'view',
140
+ inputs: [],
141
+ outputs: [
142
+ {
143
+ type: 'string',
144
+ },
145
+ ],
146
+ },
147
+ {
148
+ type: 'function',
149
+ name: 'ownerOf',
150
+ stateMutability: 'view',
151
+ inputs: [
152
+ {
153
+ name: 'tokenId',
154
+ type: 'uint256',
155
+ },
156
+ ],
157
+ outputs: [
158
+ {
159
+ name: 'owner',
160
+ type: 'address',
161
+ },
162
+ ],
163
+ },
164
+ {
165
+ type: 'function',
166
+ name: 'safeTransferFrom',
167
+ stateMutability: 'payable',
168
+ inputs: [
169
+ {
170
+ name: 'from',
171
+ type: 'address',
172
+ },
173
+ {
174
+ name: 'to',
175
+ type: 'address',
176
+ },
177
+ {
178
+ name: 'tokenId',
179
+ type: 'uint256',
180
+ },
181
+ ],
182
+ outputs: [],
183
+ },
184
+ {
185
+ type: 'function',
186
+ name: 'safeTransferFrom',
187
+ stateMutability: 'nonpayable',
188
+ inputs: [
189
+ {
190
+ name: 'from',
191
+ type: 'address',
192
+ },
193
+ {
194
+ name: 'to',
195
+ type: 'address',
196
+ },
197
+ {
198
+ name: 'id',
199
+ type: 'uint256',
200
+ },
201
+ {
202
+ name: 'data',
203
+ type: 'bytes',
204
+ },
205
+ ],
206
+ outputs: [],
207
+ },
208
+ {
209
+ type: 'function',
210
+ name: 'setApprovalForAll',
211
+ stateMutability: 'nonpayable',
212
+ inputs: [
213
+ {
214
+ name: 'operator',
215
+ type: 'address',
216
+ },
217
+ {
218
+ name: 'approved',
219
+ type: 'bool',
220
+ },
221
+ ],
222
+ outputs: [],
223
+ },
224
+ {
225
+ type: 'function',
226
+ name: 'symbol',
227
+ stateMutability: 'view',
228
+ inputs: [],
229
+ outputs: [
230
+ {
231
+ type: 'string',
232
+ },
233
+ ],
234
+ },
235
+ {
236
+ type: 'function',
237
+ name: 'tokenByIndex',
238
+ stateMutability: 'view',
239
+ inputs: [
240
+ {
241
+ name: 'index',
242
+ type: 'uint256',
243
+ },
244
+ ],
245
+ outputs: [
246
+ {
247
+ type: 'uint256',
248
+ },
249
+ ],
250
+ },
251
+ {
252
+ type: 'function',
253
+ name: 'tokenByIndex',
254
+ stateMutability: 'view',
255
+ inputs: [
256
+ {
257
+ name: 'owner',
258
+ type: 'address',
259
+ },
260
+ {
261
+ name: 'index',
262
+ type: 'uint256',
263
+ },
264
+ ],
265
+ outputs: [
266
+ {
267
+ name: 'tokenId',
268
+ type: 'uint256',
269
+ },
270
+ ],
271
+ },
272
+ {
273
+ type: 'function',
274
+ name: 'tokenURI',
275
+ stateMutability: 'view',
276
+ inputs: [
277
+ {
278
+ name: 'tokenId',
279
+ type: 'uint256',
280
+ },
281
+ ],
282
+ outputs: [
283
+ {
284
+ type: 'string',
285
+ },
286
+ ],
287
+ },
288
+ {
289
+ type: 'function',
290
+ name: 'totalSupply',
291
+ stateMutability: 'view',
292
+ inputs: [],
293
+ outputs: [
294
+ {
295
+ type: 'uint256',
296
+ },
297
+ ],
298
+ },
299
+ {
300
+ type: 'function',
301
+ name: 'transferFrom',
302
+ stateMutability: 'payable',
303
+ inputs: [
304
+ {
305
+ name: 'sender',
306
+ type: 'address',
307
+ },
308
+ {
309
+ name: 'recipient',
310
+ type: 'address',
311
+ },
312
+ {
313
+ name: 'tokeId',
314
+ type: 'uint256',
315
+ },
316
+ ],
317
+ outputs: [],
318
+ },
319
+ ];
320
+ //# sourceMappingURL=ERC721.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ERC721.js","sourceRoot":"","sources":["../../src.ts/abis/ERC721.ts"],"names":[],"mappings":";;;AACa,QAAA,UAAU,GAAG;IACxB;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aA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AAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,QAAQ;aACf;SACF;KACF;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,aAAa;QACnB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,SAAS;aAChB;SACF;KACF;IACD;QACE,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,cAAc;QACpB,eAAe,EAAE,SAAS;QAC1B,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,EAAE;KACZ;CACO,CAAC"}
@@ -0,0 +1,120 @@
1
+ export declare const ABI_FEE_ORACLE: readonly [{
2
+ readonly inputs: readonly [{
3
+ readonly internalType: "address";
4
+ readonly name: "ownerAddr";
5
+ readonly type: "address";
6
+ }];
7
+ readonly stateMutability: "nonpayable";
8
+ readonly type: "constructor";
9
+ }, {
10
+ readonly inputs: readonly [];
11
+ readonly name: "OwnerOnly";
12
+ readonly type: "error";
13
+ }, {
14
+ readonly anonymous: false;
15
+ readonly inputs: readonly [{
16
+ readonly indexed: true;
17
+ readonly internalType: "address";
18
+ readonly name: "previousOwner";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly indexed: true;
22
+ readonly internalType: "address";
23
+ readonly name: "newOwner";
24
+ readonly type: "address";
25
+ }];
26
+ readonly name: "OwnershipTransferred";
27
+ readonly type: "event";
28
+ }, {
29
+ readonly inputs: readonly [];
30
+ readonly name: "FEES_DIVISOR";
31
+ readonly outputs: readonly [{
32
+ readonly internalType: "uint256";
33
+ readonly name: "";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly stateMutability: "view";
37
+ readonly type: "function";
38
+ }, {
39
+ readonly inputs: readonly [{
40
+ readonly internalType: "uint256";
41
+ readonly name: "amount";
42
+ readonly type: "uint256";
43
+ }, {
44
+ readonly internalType: "bytes32";
45
+ readonly name: "categoryId";
46
+ readonly type: "bytes32";
47
+ }, {
48
+ readonly internalType: "address";
49
+ readonly name: "specificAddr";
50
+ readonly type: "address";
51
+ }];
52
+ readonly name: "getContextFeeAmount";
53
+ readonly outputs: readonly [{
54
+ readonly internalType: "uint256";
55
+ readonly name: "feePercent";
56
+ readonly type: "uint256";
57
+ }, {
58
+ readonly internalType: "uint256";
59
+ readonly name: "feeAmount";
60
+ readonly type: "uint256";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ readonly type: "function";
64
+ }, {
65
+ readonly inputs: readonly [{
66
+ readonly internalType: "bytes32";
67
+ readonly name: "categoryId";
68
+ readonly type: "bytes32";
69
+ }, {
70
+ readonly internalType: "address";
71
+ readonly name: "specificAddr";
72
+ readonly type: "address";
73
+ }];
74
+ readonly name: "getContextFeeRate";
75
+ readonly outputs: readonly [{
76
+ readonly internalType: "uint256";
77
+ readonly name: "";
78
+ readonly type: "uint256";
79
+ }];
80
+ readonly stateMutability: "view";
81
+ readonly type: "function";
82
+ }, {
83
+ readonly inputs: readonly [];
84
+ readonly name: "owner";
85
+ readonly outputs: readonly [{
86
+ readonly internalType: "address";
87
+ readonly name: "";
88
+ readonly type: "address";
89
+ }];
90
+ readonly stateMutability: "view";
91
+ readonly type: "function";
92
+ }, {
93
+ readonly inputs: readonly [{
94
+ readonly internalType: "uint256";
95
+ readonly name: "feePercent";
96
+ readonly type: "uint256";
97
+ }, {
98
+ readonly internalType: "bytes32";
99
+ readonly name: "categoryId";
100
+ readonly type: "bytes32";
101
+ }, {
102
+ readonly internalType: "address";
103
+ readonly name: "specificAddr";
104
+ readonly type: "address";
105
+ }];
106
+ readonly name: "setContextFeeRate";
107
+ readonly outputs: readonly [];
108
+ readonly stateMutability: "nonpayable";
109
+ readonly type: "function";
110
+ }, {
111
+ readonly inputs: readonly [{
112
+ readonly internalType: "address";
113
+ readonly name: "newOwner";
114
+ readonly type: "address";
115
+ }];
116
+ readonly name: "transferOwnership";
117
+ readonly outputs: readonly [];
118
+ readonly stateMutability: "nonpayable";
119
+ readonly type: "function";
120
+ }];