@zebec-network/admin-sdk 1.0.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 (68) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +730 -0
  3. package/dist/artifacts/abi/index.d.ts +161 -0
  4. package/dist/artifacts/abi/index.js +7 -0
  5. package/dist/artifacts/abi/token.json +350 -0
  6. package/dist/artifacts/abi/weth.json +153 -0
  7. package/dist/artifacts/abi/zebecCard.json +1229 -0
  8. package/dist/artifacts/index.d.ts +11 -0
  9. package/dist/artifacts/index.js +11 -0
  10. package/dist/artifacts/typechain-types/OdysseyZebecCard.d.ts +559 -0
  11. package/dist/artifacts/typechain-types/OdysseyZebecCard.js +1 -0
  12. package/dist/artifacts/typechain-types/Token.d.ts +149 -0
  13. package/dist/artifacts/typechain-types/Token.js +1 -0
  14. package/dist/artifacts/typechain-types/Weth.d.ts +179 -0
  15. package/dist/artifacts/typechain-types/Weth.js +1 -0
  16. package/dist/artifacts/typechain-types/ZebecCard.d.ts +723 -0
  17. package/dist/artifacts/typechain-types/ZebecCard.js +1 -0
  18. package/dist/artifacts/typechain-types/common.d.ts +50 -0
  19. package/dist/artifacts/typechain-types/common.js +1 -0
  20. package/dist/artifacts/typechain-types/factories/OdysseyZebecCard__factory.d.ts +735 -0
  21. package/dist/artifacts/typechain-types/factories/OdysseyZebecCard__factory.js +959 -0
  22. package/dist/artifacts/typechain-types/factories/Token__factory.d.ts +280 -0
  23. package/dist/artifacts/typechain-types/factories/Token__factory.js +374 -0
  24. package/dist/artifacts/typechain-types/factories/Weth__factory.d.ts +219 -0
  25. package/dist/artifacts/typechain-types/factories/Weth__factory.js +292 -0
  26. package/dist/artifacts/typechain-types/factories/ZebecCard__factory.d.ts +966 -0
  27. package/dist/artifacts/typechain-types/factories/ZebecCard__factory.js +1253 -0
  28. package/dist/artifacts/typechain-types/factories/index.d.ts +4 -0
  29. package/dist/artifacts/typechain-types/factories/index.js +7 -0
  30. package/dist/artifacts/typechain-types/index.d.ts +9 -0
  31. package/dist/artifacts/typechain-types/index.js +8 -0
  32. package/dist/artifacts/zebec_instant_card.d.ts +3683 -0
  33. package/dist/artifacts/zebec_instant_card.js +1 -0
  34. package/dist/artifacts/zebec_instant_card.json +2801 -0
  35. package/dist/artifacts/zebec_proxy_stream.d.ts +1933 -0
  36. package/dist/artifacts/zebec_proxy_stream.js +1 -0
  37. package/dist/artifacts/zebec_proxy_stream.json +1497 -0
  38. package/dist/artifacts/zebec_stake_v1.d.ts +1679 -0
  39. package/dist/artifacts/zebec_stake_v1.js +1 -0
  40. package/dist/artifacts/zebec_stake_v1.json +1255 -0
  41. package/dist/artifacts/zebec_stream.d.ts +1481 -0
  42. package/dist/artifacts/zebec_stream.js +1 -0
  43. package/dist/artifacts/zebec_stream.json +1243 -0
  44. package/dist/constants.d.ts +32 -0
  45. package/dist/constants.js +115 -0
  46. package/dist/index.d.ts +6 -0
  47. package/dist/index.js +6 -0
  48. package/dist/pda.d.ts +23 -0
  49. package/dist/pda.js +125 -0
  50. package/dist/services/evmCardService.d.ts +189 -0
  51. package/dist/services/evmCardService.js +322 -0
  52. package/dist/services/index.d.ts +6 -0
  53. package/dist/services/index.js +6 -0
  54. package/dist/services/proxyStreamService.d.ts +72 -0
  55. package/dist/services/proxyStreamService.js +302 -0
  56. package/dist/services/solanaCardV2Service.d.ts +50 -0
  57. package/dist/services/solanaCardV2Service.js +717 -0
  58. package/dist/services/stakingService.d.ts +39 -0
  59. package/dist/services/stakingService.js +265 -0
  60. package/dist/services/streamServices.d.ts +50 -0
  61. package/dist/services/streamServices.js +322 -0
  62. package/dist/services/suiCardService.d.ts +91 -0
  63. package/dist/services/suiCardService.js +487 -0
  64. package/dist/types.d.ts +433 -0
  65. package/dist/types.js +1 -0
  66. package/dist/utils.d.ts +5 -0
  67. package/dist/utils.js +39 -0
  68. package/package.json +57 -0
@@ -0,0 +1,219 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { Weth, WethInterface } from "../Weth";
3
+ export declare class Weth__factory {
4
+ static readonly abi: readonly [{
5
+ readonly constant: true;
6
+ readonly inputs: readonly [];
7
+ readonly name: "name";
8
+ readonly outputs: readonly [{
9
+ readonly name: "";
10
+ readonly type: "string";
11
+ }];
12
+ readonly payable: false;
13
+ readonly stateMutability: "view";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly constant: false;
17
+ readonly inputs: readonly [{
18
+ readonly name: "guy";
19
+ readonly type: "address";
20
+ }, {
21
+ readonly name: "wad";
22
+ readonly type: "uint256";
23
+ }];
24
+ readonly name: "approve";
25
+ readonly outputs: readonly [{
26
+ readonly name: "";
27
+ readonly type: "bool";
28
+ }];
29
+ readonly payable: false;
30
+ readonly stateMutability: "nonpayable";
31
+ readonly type: "function";
32
+ }, {
33
+ readonly constant: true;
34
+ readonly inputs: readonly [];
35
+ readonly name: "totalSupply";
36
+ readonly outputs: readonly [{
37
+ readonly name: "";
38
+ readonly type: "uint256";
39
+ }];
40
+ readonly payable: false;
41
+ readonly stateMutability: "view";
42
+ readonly type: "function";
43
+ }, {
44
+ readonly constant: false;
45
+ readonly inputs: readonly [{
46
+ readonly name: "src";
47
+ readonly type: "address";
48
+ }, {
49
+ readonly name: "dst";
50
+ readonly type: "address";
51
+ }, {
52
+ readonly name: "wad";
53
+ readonly type: "uint256";
54
+ }];
55
+ readonly name: "transferFrom";
56
+ readonly outputs: readonly [{
57
+ readonly name: "";
58
+ readonly type: "bool";
59
+ }];
60
+ readonly payable: false;
61
+ readonly stateMutability: "nonpayable";
62
+ readonly type: "function";
63
+ }, {
64
+ readonly constant: false;
65
+ readonly inputs: readonly [{
66
+ readonly name: "wad";
67
+ readonly type: "uint256";
68
+ }];
69
+ readonly name: "withdraw";
70
+ readonly outputs: readonly [];
71
+ readonly payable: false;
72
+ readonly stateMutability: "nonpayable";
73
+ readonly type: "function";
74
+ }, {
75
+ readonly constant: true;
76
+ readonly inputs: readonly [];
77
+ readonly name: "decimals";
78
+ readonly outputs: readonly [{
79
+ readonly name: "";
80
+ readonly type: "uint8";
81
+ }];
82
+ readonly payable: false;
83
+ readonly stateMutability: "view";
84
+ readonly type: "function";
85
+ }, {
86
+ readonly constant: true;
87
+ readonly inputs: readonly [{
88
+ readonly name: "";
89
+ readonly type: "address";
90
+ }];
91
+ readonly name: "balanceOf";
92
+ readonly outputs: readonly [{
93
+ readonly name: "";
94
+ readonly type: "uint256";
95
+ }];
96
+ readonly payable: false;
97
+ readonly stateMutability: "view";
98
+ readonly type: "function";
99
+ }, {
100
+ readonly constant: true;
101
+ readonly inputs: readonly [];
102
+ readonly name: "symbol";
103
+ readonly outputs: readonly [{
104
+ readonly name: "";
105
+ readonly type: "string";
106
+ }];
107
+ readonly payable: false;
108
+ readonly stateMutability: "view";
109
+ readonly type: "function";
110
+ }, {
111
+ readonly constant: false;
112
+ readonly inputs: readonly [{
113
+ readonly name: "dst";
114
+ readonly type: "address";
115
+ }, {
116
+ readonly name: "wad";
117
+ readonly type: "uint256";
118
+ }];
119
+ readonly name: "transfer";
120
+ readonly outputs: readonly [{
121
+ readonly name: "";
122
+ readonly type: "bool";
123
+ }];
124
+ readonly payable: false;
125
+ readonly stateMutability: "nonpayable";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly constant: false;
129
+ readonly inputs: readonly [];
130
+ readonly name: "deposit";
131
+ readonly outputs: readonly [];
132
+ readonly payable: true;
133
+ readonly stateMutability: "payable";
134
+ readonly type: "function";
135
+ }, {
136
+ readonly constant: true;
137
+ readonly inputs: readonly [{
138
+ readonly name: "";
139
+ readonly type: "address";
140
+ }, {
141
+ readonly name: "";
142
+ readonly type: "address";
143
+ }];
144
+ readonly name: "allowance";
145
+ readonly outputs: readonly [{
146
+ readonly name: "";
147
+ readonly type: "uint256";
148
+ }];
149
+ readonly payable: false;
150
+ readonly stateMutability: "view";
151
+ readonly type: "function";
152
+ }, {
153
+ readonly payable: true;
154
+ readonly stateMutability: "payable";
155
+ readonly type: "fallback";
156
+ }, {
157
+ readonly anonymous: false;
158
+ readonly inputs: readonly [{
159
+ readonly indexed: true;
160
+ readonly name: "src";
161
+ readonly type: "address";
162
+ }, {
163
+ readonly indexed: true;
164
+ readonly name: "guy";
165
+ readonly type: "address";
166
+ }, {
167
+ readonly indexed: false;
168
+ readonly name: "wad";
169
+ readonly type: "uint256";
170
+ }];
171
+ readonly name: "Approval";
172
+ readonly type: "event";
173
+ }, {
174
+ readonly anonymous: false;
175
+ readonly inputs: readonly [{
176
+ readonly indexed: true;
177
+ readonly name: "src";
178
+ readonly type: "address";
179
+ }, {
180
+ readonly indexed: true;
181
+ readonly name: "dst";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly indexed: false;
185
+ readonly name: "wad";
186
+ readonly type: "uint256";
187
+ }];
188
+ readonly name: "Transfer";
189
+ readonly type: "event";
190
+ }, {
191
+ readonly anonymous: false;
192
+ readonly inputs: readonly [{
193
+ readonly indexed: true;
194
+ readonly name: "dst";
195
+ readonly type: "address";
196
+ }, {
197
+ readonly indexed: false;
198
+ readonly name: "wad";
199
+ readonly type: "uint256";
200
+ }];
201
+ readonly name: "Deposit";
202
+ readonly type: "event";
203
+ }, {
204
+ readonly anonymous: false;
205
+ readonly inputs: readonly [{
206
+ readonly indexed: true;
207
+ readonly name: "src";
208
+ readonly type: "address";
209
+ }, {
210
+ readonly indexed: false;
211
+ readonly name: "wad";
212
+ readonly type: "uint256";
213
+ }];
214
+ readonly name: "Withdrawal";
215
+ readonly type: "event";
216
+ }];
217
+ static createInterface(): WethInterface;
218
+ static connect(address: string, runner?: ContractRunner | null): Weth;
219
+ }
@@ -0,0 +1,292 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, Interface } from "ethers";
5
+ const _abi = [
6
+ {
7
+ constant: true,
8
+ inputs: [],
9
+ name: "name",
10
+ outputs: [
11
+ {
12
+ name: "",
13
+ type: "string",
14
+ },
15
+ ],
16
+ payable: false,
17
+ stateMutability: "view",
18
+ type: "function",
19
+ },
20
+ {
21
+ constant: false,
22
+ inputs: [
23
+ {
24
+ name: "guy",
25
+ type: "address",
26
+ },
27
+ {
28
+ name: "wad",
29
+ type: "uint256",
30
+ },
31
+ ],
32
+ name: "approve",
33
+ outputs: [
34
+ {
35
+ name: "",
36
+ type: "bool",
37
+ },
38
+ ],
39
+ payable: false,
40
+ stateMutability: "nonpayable",
41
+ type: "function",
42
+ },
43
+ {
44
+ constant: true,
45
+ inputs: [],
46
+ name: "totalSupply",
47
+ outputs: [
48
+ {
49
+ name: "",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ payable: false,
54
+ stateMutability: "view",
55
+ type: "function",
56
+ },
57
+ {
58
+ constant: false,
59
+ inputs: [
60
+ {
61
+ name: "src",
62
+ type: "address",
63
+ },
64
+ {
65
+ name: "dst",
66
+ type: "address",
67
+ },
68
+ {
69
+ name: "wad",
70
+ type: "uint256",
71
+ },
72
+ ],
73
+ name: "transferFrom",
74
+ outputs: [
75
+ {
76
+ name: "",
77
+ type: "bool",
78
+ },
79
+ ],
80
+ payable: false,
81
+ stateMutability: "nonpayable",
82
+ type: "function",
83
+ },
84
+ {
85
+ constant: false,
86
+ inputs: [
87
+ {
88
+ name: "wad",
89
+ type: "uint256",
90
+ },
91
+ ],
92
+ name: "withdraw",
93
+ outputs: [],
94
+ payable: false,
95
+ stateMutability: "nonpayable",
96
+ type: "function",
97
+ },
98
+ {
99
+ constant: true,
100
+ inputs: [],
101
+ name: "decimals",
102
+ outputs: [
103
+ {
104
+ name: "",
105
+ type: "uint8",
106
+ },
107
+ ],
108
+ payable: false,
109
+ stateMutability: "view",
110
+ type: "function",
111
+ },
112
+ {
113
+ constant: true,
114
+ inputs: [
115
+ {
116
+ name: "",
117
+ type: "address",
118
+ },
119
+ ],
120
+ name: "balanceOf",
121
+ outputs: [
122
+ {
123
+ name: "",
124
+ type: "uint256",
125
+ },
126
+ ],
127
+ payable: false,
128
+ stateMutability: "view",
129
+ type: "function",
130
+ },
131
+ {
132
+ constant: true,
133
+ inputs: [],
134
+ name: "symbol",
135
+ outputs: [
136
+ {
137
+ name: "",
138
+ type: "string",
139
+ },
140
+ ],
141
+ payable: false,
142
+ stateMutability: "view",
143
+ type: "function",
144
+ },
145
+ {
146
+ constant: false,
147
+ inputs: [
148
+ {
149
+ name: "dst",
150
+ type: "address",
151
+ },
152
+ {
153
+ name: "wad",
154
+ type: "uint256",
155
+ },
156
+ ],
157
+ name: "transfer",
158
+ outputs: [
159
+ {
160
+ name: "",
161
+ type: "bool",
162
+ },
163
+ ],
164
+ payable: false,
165
+ stateMutability: "nonpayable",
166
+ type: "function",
167
+ },
168
+ {
169
+ constant: false,
170
+ inputs: [],
171
+ name: "deposit",
172
+ outputs: [],
173
+ payable: true,
174
+ stateMutability: "payable",
175
+ type: "function",
176
+ },
177
+ {
178
+ constant: true,
179
+ inputs: [
180
+ {
181
+ name: "",
182
+ type: "address",
183
+ },
184
+ {
185
+ name: "",
186
+ type: "address",
187
+ },
188
+ ],
189
+ name: "allowance",
190
+ outputs: [
191
+ {
192
+ name: "",
193
+ type: "uint256",
194
+ },
195
+ ],
196
+ payable: false,
197
+ stateMutability: "view",
198
+ type: "function",
199
+ },
200
+ {
201
+ payable: true,
202
+ stateMutability: "payable",
203
+ type: "fallback",
204
+ },
205
+ {
206
+ anonymous: false,
207
+ inputs: [
208
+ {
209
+ indexed: true,
210
+ name: "src",
211
+ type: "address",
212
+ },
213
+ {
214
+ indexed: true,
215
+ name: "guy",
216
+ type: "address",
217
+ },
218
+ {
219
+ indexed: false,
220
+ name: "wad",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ name: "Approval",
225
+ type: "event",
226
+ },
227
+ {
228
+ anonymous: false,
229
+ inputs: [
230
+ {
231
+ indexed: true,
232
+ name: "src",
233
+ type: "address",
234
+ },
235
+ {
236
+ indexed: true,
237
+ name: "dst",
238
+ type: "address",
239
+ },
240
+ {
241
+ indexed: false,
242
+ name: "wad",
243
+ type: "uint256",
244
+ },
245
+ ],
246
+ name: "Transfer",
247
+ type: "event",
248
+ },
249
+ {
250
+ anonymous: false,
251
+ inputs: [
252
+ {
253
+ indexed: true,
254
+ name: "dst",
255
+ type: "address",
256
+ },
257
+ {
258
+ indexed: false,
259
+ name: "wad",
260
+ type: "uint256",
261
+ },
262
+ ],
263
+ name: "Deposit",
264
+ type: "event",
265
+ },
266
+ {
267
+ anonymous: false,
268
+ inputs: [
269
+ {
270
+ indexed: true,
271
+ name: "src",
272
+ type: "address",
273
+ },
274
+ {
275
+ indexed: false,
276
+ name: "wad",
277
+ type: "uint256",
278
+ },
279
+ ],
280
+ name: "Withdrawal",
281
+ type: "event",
282
+ },
283
+ ];
284
+ export class Weth__factory {
285
+ static abi = _abi;
286
+ static createInterface() {
287
+ return new Interface(_abi);
288
+ }
289
+ static connect(address, runner) {
290
+ return new Contract(address, _abi, runner);
291
+ }
292
+ }