@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,280 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../common";
4
+ import type { Token, TokenInterface } from "../Token";
5
+ type TokenConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class Token__factory extends ContractFactory {
7
+ constructor(...args: TokenConstructorParams);
8
+ getDeployTransaction(overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<Token & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): Token__factory;
17
+ static readonly bytecode = "0x608034620003fb5760406001600160401b0382820181811184821017620003e5578252600f835260206e21b0b932102a32b9ba102a37b5b2b760891b8185015282519383850185811084821117620003e55784526004928386526321aa25a760e11b83870152815195818711620003d057600390815497600194858a811c9a168015620003c5575b878b1014620003b0578190601f9a8b81116200035a575b5087908b8311600114620002f357600092620002e7575b505060001982851b1c191690851b1782555b8051928311620002d25785548481811c91168015620002c7575b86821014620002b25788811162000267575b5084978311600114620001fe5796829394959697600093620001f2575b505082841b92600019911b1c19161783555b600580546001600160a81b03191633600890811b610100600160a81b0316919091179290921790819055901c6001600160a01b0316918215620001db576002546a0422ca8b0a00a42500000091828201809211620001c6575060025560008381528083528481208054830190558451918252917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a3516107669081620004018239f35b601190634e487b7160e01b6000525260246000fd5b602490600085519163ec442f0560e01b8352820152fd5b01519150388062000110565b90601f1983169786600052856000209260005b8a811062000251575084869798999a1062000236575b50505050811b01835562000122565b01519060f884600019921b161c191690553880808062000227565b8183015185559386019391870191870162000211565b86600052856000208980860160051c820192888710620002a8575b0160051c019085905b8281106200029b575050620000f3565b600081550185906200028b565b9250819262000282565b602287634e487b7160e01b6000525260246000fd5b90607f1690620000e1565b604186634e487b7160e01b6000525260246000fd5b015190503880620000b5565b90879350601f1983169186600052896000209260005b8b8282106200034357505084116200032a575b505050811b018255620000c7565b015160001983871b60f8161c191690553880806200031c565b8385015186558b9790950194938401930162000309565b90915084600052876000208b80850160051c8201928a8610620003a6575b918991869594930160051c01915b828110620003965750506200009e565b6000815585945089910162000386565b9250819262000378565b602288634e487b7160e01b6000525260246000fd5b99607f169962000087565b604185634e487b7160e01b6000525260246000fd5b634e487b7160e01b600052604160045260246000fd5b600080fdfe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde03146104b557508163075461721461048a578163095ea7b3146103de57816318160ddd146103bf5781631f2698ab1461039b57816323b872dd1461028c578163313ce5671461027057816370a082311461023a57816395d89b411461011957508063a9059cbb146100e95763dd62ed3e1461009e57600080fd5b346100e557806003193601126100e557806020926100ba6105d8565b6100c26105f3565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5080fd5b50346100e557806003193601126100e5576020906101126101086105d8565b6024359033610609565b5160018152f35b8383346100e557816003193601126100e55780519082845460018160011c9060018316928315610230575b602093848410811461021d5783885290811561020157506001146101ac575b505050829003601f01601f191682019267ffffffffffffffff841183851017610199575082918261019592528261058f565b0390f35b80604186634e487b7160e01b6024945252fd5b8787529192508591837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8385106101ed5750505050830101858080610163565b8054888601830152930192849082016101d7565b60ff1916878501525050151560051b8401019050858080610163565b60248960228c634e487b7160e01b835252fd5b91607f1691610144565b5050346100e55760203660031901126100e557806020926001600160a01b036102616105d8565b16815280845220549051908152f35b5050346100e557816003193601126100e5576020905160128152f35b90508234610398576060366003190112610398576102a86105d8565b6102b06105f3565b91604435936001600160a01b0383168083526001602052868320338452602052868320549160001983036102ed575b602088610112898989610609565b86831061035357811561033d57331561032757508252600160209081528683203384528152918690209085900390558290610112876102df565b60249084895191634a1406b160e11b8352820152fd5b6024908489519163e602df0560e01b8352820152fd5b87517ffb8f41b2000000000000000000000000000000000000000000000000000000008152339181019182526020820193909352604081018790528291506060010390fd5b80fd5b5050346100e557816003193601126100e55760209060ff6005541690519015158152f35b5050346100e557816003193601126100e5576020906002549051908152f35b9050346104865781600319360112610486576103f86105d8565b602435903315610470576001600160a01b031691821561045a57508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b60249085855191634a1406b160e11b8352820152fd5b6024838686519163e602df0560e01b8352820152fd5b8280fd5b5050346100e557816003193601126100e5576020906001600160a01b0360055460081c169051908152f35b849084346104865782600319360112610486578260035460018160011c9060018316928315610585575b602093848410811461021d57838852908115610201575060011461052f57505050829003601f01601f191682019267ffffffffffffffff841183851017610199575082918261019592528261058f565b600387529192508591837fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8385106105715750505050830101858080610163565b80548886018301529301928490820161055b565b91607f16916104df565b6020808252825181830181905290939260005b8281106105c457505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016105a2565b600435906001600160a01b03821682036105ee57565b600080fd5b602435906001600160a01b03821682036105ee57565b916001600160a01b038084169283156106ff57169283156106ce5760009083825281602052604082205490838210610683575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b6040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60246040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152fd5b60246040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152fdfea2646970667358221220a895ef5f3cf026b48a9ffb4320764182cae42330f3d36a62637bec75ffa74e3c64736f6c63430008180033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [];
20
+ readonly stateMutability: "nonpayable";
21
+ readonly type: "constructor";
22
+ }, {
23
+ readonly inputs: readonly [{
24
+ readonly internalType: "address";
25
+ readonly name: "spender";
26
+ readonly type: "address";
27
+ }, {
28
+ readonly internalType: "uint256";
29
+ readonly name: "allowance";
30
+ readonly type: "uint256";
31
+ }, {
32
+ readonly internalType: "uint256";
33
+ readonly name: "needed";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly name: "ERC20InsufficientAllowance";
37
+ readonly type: "error";
38
+ }, {
39
+ readonly inputs: readonly [{
40
+ readonly internalType: "address";
41
+ readonly name: "sender";
42
+ readonly type: "address";
43
+ }, {
44
+ readonly internalType: "uint256";
45
+ readonly name: "balance";
46
+ readonly type: "uint256";
47
+ }, {
48
+ readonly internalType: "uint256";
49
+ readonly name: "needed";
50
+ readonly type: "uint256";
51
+ }];
52
+ readonly name: "ERC20InsufficientBalance";
53
+ readonly type: "error";
54
+ }, {
55
+ readonly inputs: readonly [{
56
+ readonly internalType: "address";
57
+ readonly name: "approver";
58
+ readonly type: "address";
59
+ }];
60
+ readonly name: "ERC20InvalidApprover";
61
+ readonly type: "error";
62
+ }, {
63
+ readonly inputs: readonly [{
64
+ readonly internalType: "address";
65
+ readonly name: "receiver";
66
+ readonly type: "address";
67
+ }];
68
+ readonly name: "ERC20InvalidReceiver";
69
+ readonly type: "error";
70
+ }, {
71
+ readonly inputs: readonly [{
72
+ readonly internalType: "address";
73
+ readonly name: "sender";
74
+ readonly type: "address";
75
+ }];
76
+ readonly name: "ERC20InvalidSender";
77
+ readonly type: "error";
78
+ }, {
79
+ readonly inputs: readonly [{
80
+ readonly internalType: "address";
81
+ readonly name: "spender";
82
+ readonly type: "address";
83
+ }];
84
+ readonly name: "ERC20InvalidSpender";
85
+ readonly type: "error";
86
+ }, {
87
+ readonly anonymous: false;
88
+ readonly inputs: readonly [{
89
+ readonly indexed: true;
90
+ readonly internalType: "address";
91
+ readonly name: "owner";
92
+ readonly type: "address";
93
+ }, {
94
+ readonly indexed: true;
95
+ readonly internalType: "address";
96
+ readonly name: "spender";
97
+ readonly type: "address";
98
+ }, {
99
+ readonly indexed: false;
100
+ readonly internalType: "uint256";
101
+ readonly name: "value";
102
+ readonly type: "uint256";
103
+ }];
104
+ readonly name: "Approval";
105
+ readonly type: "event";
106
+ }, {
107
+ readonly anonymous: false;
108
+ readonly inputs: readonly [{
109
+ readonly indexed: true;
110
+ readonly internalType: "address";
111
+ readonly name: "from";
112
+ readonly type: "address";
113
+ }, {
114
+ readonly indexed: true;
115
+ readonly internalType: "address";
116
+ readonly name: "to";
117
+ readonly type: "address";
118
+ }, {
119
+ readonly indexed: false;
120
+ readonly internalType: "uint256";
121
+ readonly name: "value";
122
+ readonly type: "uint256";
123
+ }];
124
+ readonly name: "Transfer";
125
+ readonly type: "event";
126
+ }, {
127
+ readonly inputs: readonly [{
128
+ readonly internalType: "address";
129
+ readonly name: "owner";
130
+ readonly type: "address";
131
+ }, {
132
+ readonly internalType: "address";
133
+ readonly name: "spender";
134
+ readonly type: "address";
135
+ }];
136
+ readonly name: "allowance";
137
+ readonly outputs: readonly [{
138
+ readonly internalType: "uint256";
139
+ readonly name: "";
140
+ readonly type: "uint256";
141
+ }];
142
+ readonly stateMutability: "view";
143
+ readonly type: "function";
144
+ }, {
145
+ readonly inputs: readonly [{
146
+ readonly internalType: "address";
147
+ readonly name: "spender";
148
+ readonly type: "address";
149
+ }, {
150
+ readonly internalType: "uint256";
151
+ readonly name: "value";
152
+ readonly type: "uint256";
153
+ }];
154
+ readonly name: "approve";
155
+ readonly outputs: readonly [{
156
+ readonly internalType: "bool";
157
+ readonly name: "";
158
+ readonly type: "bool";
159
+ }];
160
+ readonly stateMutability: "nonpayable";
161
+ readonly type: "function";
162
+ }, {
163
+ readonly inputs: readonly [{
164
+ readonly internalType: "address";
165
+ readonly name: "account";
166
+ readonly type: "address";
167
+ }];
168
+ readonly name: "balanceOf";
169
+ readonly outputs: readonly [{
170
+ readonly internalType: "uint256";
171
+ readonly name: "";
172
+ readonly type: "uint256";
173
+ }];
174
+ readonly stateMutability: "view";
175
+ readonly type: "function";
176
+ }, {
177
+ readonly inputs: readonly [];
178
+ readonly name: "decimals";
179
+ readonly outputs: readonly [{
180
+ readonly internalType: "uint8";
181
+ readonly name: "";
182
+ readonly type: "uint8";
183
+ }];
184
+ readonly stateMutability: "view";
185
+ readonly type: "function";
186
+ }, {
187
+ readonly inputs: readonly [];
188
+ readonly name: "minter";
189
+ readonly outputs: readonly [{
190
+ readonly internalType: "address";
191
+ readonly name: "";
192
+ readonly type: "address";
193
+ }];
194
+ readonly stateMutability: "view";
195
+ readonly type: "function";
196
+ }, {
197
+ readonly inputs: readonly [];
198
+ readonly name: "name";
199
+ readonly outputs: readonly [{
200
+ readonly internalType: "string";
201
+ readonly name: "";
202
+ readonly type: "string";
203
+ }];
204
+ readonly stateMutability: "view";
205
+ readonly type: "function";
206
+ }, {
207
+ readonly inputs: readonly [];
208
+ readonly name: "started";
209
+ readonly outputs: readonly [{
210
+ readonly internalType: "bool";
211
+ readonly name: "";
212
+ readonly type: "bool";
213
+ }];
214
+ readonly stateMutability: "view";
215
+ readonly type: "function";
216
+ }, {
217
+ readonly inputs: readonly [];
218
+ readonly name: "symbol";
219
+ readonly outputs: readonly [{
220
+ readonly internalType: "string";
221
+ readonly name: "";
222
+ readonly type: "string";
223
+ }];
224
+ readonly stateMutability: "view";
225
+ readonly type: "function";
226
+ }, {
227
+ readonly inputs: readonly [];
228
+ readonly name: "totalSupply";
229
+ readonly outputs: readonly [{
230
+ readonly internalType: "uint256";
231
+ readonly name: "";
232
+ readonly type: "uint256";
233
+ }];
234
+ readonly stateMutability: "view";
235
+ readonly type: "function";
236
+ }, {
237
+ readonly inputs: readonly [{
238
+ readonly internalType: "address";
239
+ readonly name: "to";
240
+ readonly type: "address";
241
+ }, {
242
+ readonly internalType: "uint256";
243
+ readonly name: "value";
244
+ readonly type: "uint256";
245
+ }];
246
+ readonly name: "transfer";
247
+ readonly outputs: readonly [{
248
+ readonly internalType: "bool";
249
+ readonly name: "";
250
+ readonly type: "bool";
251
+ }];
252
+ readonly stateMutability: "nonpayable";
253
+ readonly type: "function";
254
+ }, {
255
+ readonly inputs: readonly [{
256
+ readonly internalType: "address";
257
+ readonly name: "from";
258
+ readonly type: "address";
259
+ }, {
260
+ readonly internalType: "address";
261
+ readonly name: "to";
262
+ readonly type: "address";
263
+ }, {
264
+ readonly internalType: "uint256";
265
+ readonly name: "value";
266
+ readonly type: "uint256";
267
+ }];
268
+ readonly name: "transferFrom";
269
+ readonly outputs: readonly [{
270
+ readonly internalType: "bool";
271
+ readonly name: "";
272
+ readonly type: "bool";
273
+ }];
274
+ readonly stateMutability: "nonpayable";
275
+ readonly type: "function";
276
+ }];
277
+ static createInterface(): TokenInterface;
278
+ static connect(address: string, runner?: ContractRunner | null): Token;
279
+ }
280
+ export {};
@@ -0,0 +1,374 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, ContractFactory, Interface, } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [],
8
+ stateMutability: "nonpayable",
9
+ type: "constructor",
10
+ },
11
+ {
12
+ inputs: [
13
+ {
14
+ internalType: "address",
15
+ name: "spender",
16
+ type: "address",
17
+ },
18
+ {
19
+ internalType: "uint256",
20
+ name: "allowance",
21
+ type: "uint256",
22
+ },
23
+ {
24
+ internalType: "uint256",
25
+ name: "needed",
26
+ type: "uint256",
27
+ },
28
+ ],
29
+ name: "ERC20InsufficientAllowance",
30
+ type: "error",
31
+ },
32
+ {
33
+ inputs: [
34
+ {
35
+ internalType: "address",
36
+ name: "sender",
37
+ type: "address",
38
+ },
39
+ {
40
+ internalType: "uint256",
41
+ name: "balance",
42
+ type: "uint256",
43
+ },
44
+ {
45
+ internalType: "uint256",
46
+ name: "needed",
47
+ type: "uint256",
48
+ },
49
+ ],
50
+ name: "ERC20InsufficientBalance",
51
+ type: "error",
52
+ },
53
+ {
54
+ inputs: [
55
+ {
56
+ internalType: "address",
57
+ name: "approver",
58
+ type: "address",
59
+ },
60
+ ],
61
+ name: "ERC20InvalidApprover",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [
66
+ {
67
+ internalType: "address",
68
+ name: "receiver",
69
+ type: "address",
70
+ },
71
+ ],
72
+ name: "ERC20InvalidReceiver",
73
+ type: "error",
74
+ },
75
+ {
76
+ inputs: [
77
+ {
78
+ internalType: "address",
79
+ name: "sender",
80
+ type: "address",
81
+ },
82
+ ],
83
+ name: "ERC20InvalidSender",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ internalType: "address",
90
+ name: "spender",
91
+ type: "address",
92
+ },
93
+ ],
94
+ name: "ERC20InvalidSpender",
95
+ type: "error",
96
+ },
97
+ {
98
+ anonymous: false,
99
+ inputs: [
100
+ {
101
+ indexed: true,
102
+ internalType: "address",
103
+ name: "owner",
104
+ type: "address",
105
+ },
106
+ {
107
+ indexed: true,
108
+ internalType: "address",
109
+ name: "spender",
110
+ type: "address",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "uint256",
115
+ name: "value",
116
+ type: "uint256",
117
+ },
118
+ ],
119
+ name: "Approval",
120
+ type: "event",
121
+ },
122
+ {
123
+ anonymous: false,
124
+ inputs: [
125
+ {
126
+ indexed: true,
127
+ internalType: "address",
128
+ name: "from",
129
+ type: "address",
130
+ },
131
+ {
132
+ indexed: true,
133
+ internalType: "address",
134
+ name: "to",
135
+ type: "address",
136
+ },
137
+ {
138
+ indexed: false,
139
+ internalType: "uint256",
140
+ name: "value",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ name: "Transfer",
145
+ type: "event",
146
+ },
147
+ {
148
+ inputs: [
149
+ {
150
+ internalType: "address",
151
+ name: "owner",
152
+ type: "address",
153
+ },
154
+ {
155
+ internalType: "address",
156
+ name: "spender",
157
+ type: "address",
158
+ },
159
+ ],
160
+ name: "allowance",
161
+ outputs: [
162
+ {
163
+ internalType: "uint256",
164
+ name: "",
165
+ type: "uint256",
166
+ },
167
+ ],
168
+ stateMutability: "view",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [
173
+ {
174
+ internalType: "address",
175
+ name: "spender",
176
+ type: "address",
177
+ },
178
+ {
179
+ internalType: "uint256",
180
+ name: "value",
181
+ type: "uint256",
182
+ },
183
+ ],
184
+ name: "approve",
185
+ outputs: [
186
+ {
187
+ internalType: "bool",
188
+ name: "",
189
+ type: "bool",
190
+ },
191
+ ],
192
+ stateMutability: "nonpayable",
193
+ type: "function",
194
+ },
195
+ {
196
+ inputs: [
197
+ {
198
+ internalType: "address",
199
+ name: "account",
200
+ type: "address",
201
+ },
202
+ ],
203
+ name: "balanceOf",
204
+ outputs: [
205
+ {
206
+ internalType: "uint256",
207
+ name: "",
208
+ type: "uint256",
209
+ },
210
+ ],
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ inputs: [],
216
+ name: "decimals",
217
+ outputs: [
218
+ {
219
+ internalType: "uint8",
220
+ name: "",
221
+ type: "uint8",
222
+ },
223
+ ],
224
+ stateMutability: "view",
225
+ type: "function",
226
+ },
227
+ {
228
+ inputs: [],
229
+ name: "minter",
230
+ outputs: [
231
+ {
232
+ internalType: "address",
233
+ name: "",
234
+ type: "address",
235
+ },
236
+ ],
237
+ stateMutability: "view",
238
+ type: "function",
239
+ },
240
+ {
241
+ inputs: [],
242
+ name: "name",
243
+ outputs: [
244
+ {
245
+ internalType: "string",
246
+ name: "",
247
+ type: "string",
248
+ },
249
+ ],
250
+ stateMutability: "view",
251
+ type: "function",
252
+ },
253
+ {
254
+ inputs: [],
255
+ name: "started",
256
+ outputs: [
257
+ {
258
+ internalType: "bool",
259
+ name: "",
260
+ type: "bool",
261
+ },
262
+ ],
263
+ stateMutability: "view",
264
+ type: "function",
265
+ },
266
+ {
267
+ inputs: [],
268
+ name: "symbol",
269
+ outputs: [
270
+ {
271
+ internalType: "string",
272
+ name: "",
273
+ type: "string",
274
+ },
275
+ ],
276
+ stateMutability: "view",
277
+ type: "function",
278
+ },
279
+ {
280
+ inputs: [],
281
+ name: "totalSupply",
282
+ outputs: [
283
+ {
284
+ internalType: "uint256",
285
+ name: "",
286
+ type: "uint256",
287
+ },
288
+ ],
289
+ stateMutability: "view",
290
+ type: "function",
291
+ },
292
+ {
293
+ inputs: [
294
+ {
295
+ internalType: "address",
296
+ name: "to",
297
+ type: "address",
298
+ },
299
+ {
300
+ internalType: "uint256",
301
+ name: "value",
302
+ type: "uint256",
303
+ },
304
+ ],
305
+ name: "transfer",
306
+ outputs: [
307
+ {
308
+ internalType: "bool",
309
+ name: "",
310
+ type: "bool",
311
+ },
312
+ ],
313
+ stateMutability: "nonpayable",
314
+ type: "function",
315
+ },
316
+ {
317
+ inputs: [
318
+ {
319
+ internalType: "address",
320
+ name: "from",
321
+ type: "address",
322
+ },
323
+ {
324
+ internalType: "address",
325
+ name: "to",
326
+ type: "address",
327
+ },
328
+ {
329
+ internalType: "uint256",
330
+ name: "value",
331
+ type: "uint256",
332
+ },
333
+ ],
334
+ name: "transferFrom",
335
+ outputs: [
336
+ {
337
+ internalType: "bool",
338
+ name: "",
339
+ type: "bool",
340
+ },
341
+ ],
342
+ stateMutability: "nonpayable",
343
+ type: "function",
344
+ },
345
+ ];
346
+ const _bytecode = "0x608034620003fb5760406001600160401b0382820181811184821017620003e5578252600f835260206e21b0b932102a32b9ba102a37b5b2b760891b8185015282519383850185811084821117620003e55784526004928386526321aa25a760e11b83870152815195818711620003d057600390815497600194858a811c9a168015620003c5575b878b1014620003b0578190601f9a8b81116200035a575b5087908b8311600114620002f357600092620002e7575b505060001982851b1c191690851b1782555b8051928311620002d25785548481811c91168015620002c7575b86821014620002b25788811162000267575b5084978311600114620001fe5796829394959697600093620001f2575b505082841b92600019911b1c19161783555b600580546001600160a81b03191633600890811b610100600160a81b0316919091179290921790819055901c6001600160a01b0316918215620001db576002546a0422ca8b0a00a42500000091828201809211620001c6575060025560008381528083528481208054830190558451918252917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a3516107669081620004018239f35b601190634e487b7160e01b6000525260246000fd5b602490600085519163ec442f0560e01b8352820152fd5b01519150388062000110565b90601f1983169786600052856000209260005b8a811062000251575084869798999a1062000236575b50505050811b01835562000122565b01519060f884600019921b161c191690553880808062000227565b8183015185559386019391870191870162000211565b86600052856000208980860160051c820192888710620002a8575b0160051c019085905b8281106200029b575050620000f3565b600081550185906200028b565b9250819262000282565b602287634e487b7160e01b6000525260246000fd5b90607f1690620000e1565b604186634e487b7160e01b6000525260246000fd5b015190503880620000b5565b90879350601f1983169186600052896000209260005b8b8282106200034357505084116200032a575b505050811b018255620000c7565b015160001983871b60f8161c191690553880806200031c565b8385015186558b9790950194938401930162000309565b90915084600052876000208b80850160051c8201928a8610620003a6575b918991869594930160051c01915b828110620003965750506200009e565b6000815585945089910162000386565b9250819262000378565b602288634e487b7160e01b6000525260246000fd5b99607f169962000087565b604185634e487b7160e01b6000525260246000fd5b634e487b7160e01b600052604160045260246000fd5b600080fdfe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde03146104b557508163075461721461048a578163095ea7b3146103de57816318160ddd146103bf5781631f2698ab1461039b57816323b872dd1461028c578163313ce5671461027057816370a082311461023a57816395d89b411461011957508063a9059cbb146100e95763dd62ed3e1461009e57600080fd5b346100e557806003193601126100e557806020926100ba6105d8565b6100c26105f3565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5080fd5b50346100e557806003193601126100e5576020906101126101086105d8565b6024359033610609565b5160018152f35b8383346100e557816003193601126100e55780519082845460018160011c9060018316928315610230575b602093848410811461021d5783885290811561020157506001146101ac575b505050829003601f01601f191682019267ffffffffffffffff841183851017610199575082918261019592528261058f565b0390f35b80604186634e487b7160e01b6024945252fd5b8787529192508591837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8385106101ed5750505050830101858080610163565b8054888601830152930192849082016101d7565b60ff1916878501525050151560051b8401019050858080610163565b60248960228c634e487b7160e01b835252fd5b91607f1691610144565b5050346100e55760203660031901126100e557806020926001600160a01b036102616105d8565b16815280845220549051908152f35b5050346100e557816003193601126100e5576020905160128152f35b90508234610398576060366003190112610398576102a86105d8565b6102b06105f3565b91604435936001600160a01b0383168083526001602052868320338452602052868320549160001983036102ed575b602088610112898989610609565b86831061035357811561033d57331561032757508252600160209081528683203384528152918690209085900390558290610112876102df565b60249084895191634a1406b160e11b8352820152fd5b6024908489519163e602df0560e01b8352820152fd5b87517ffb8f41b2000000000000000000000000000000000000000000000000000000008152339181019182526020820193909352604081018790528291506060010390fd5b80fd5b5050346100e557816003193601126100e55760209060ff6005541690519015158152f35b5050346100e557816003193601126100e5576020906002549051908152f35b9050346104865781600319360112610486576103f86105d8565b602435903315610470576001600160a01b031691821561045a57508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b60249085855191634a1406b160e11b8352820152fd5b6024838686519163e602df0560e01b8352820152fd5b8280fd5b5050346100e557816003193601126100e5576020906001600160a01b0360055460081c169051908152f35b849084346104865782600319360112610486578260035460018160011c9060018316928315610585575b602093848410811461021d57838852908115610201575060011461052f57505050829003601f01601f191682019267ffffffffffffffff841183851017610199575082918261019592528261058f565b600387529192508591837fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8385106105715750505050830101858080610163565b80548886018301529301928490820161055b565b91607f16916104df565b6020808252825181830181905290939260005b8281106105c457505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016105a2565b600435906001600160a01b03821682036105ee57565b600080fd5b602435906001600160a01b03821682036105ee57565b916001600160a01b038084169283156106ff57169283156106ce5760009083825281602052604082205490838210610683575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b6040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60246040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152fd5b60246040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152fdfea2646970667358221220a895ef5f3cf026b48a9ffb4320764182cae42330f3d36a62637bec75ffa74e3c64736f6c63430008180033";
347
+ const isSuperArgs = (xs) => xs.length > 1;
348
+ export class Token__factory extends ContractFactory {
349
+ constructor(...args) {
350
+ if (isSuperArgs(args)) {
351
+ super(...args);
352
+ }
353
+ else {
354
+ super(_abi, _bytecode, args[0]);
355
+ }
356
+ }
357
+ getDeployTransaction(overrides) {
358
+ return super.getDeployTransaction(overrides || {});
359
+ }
360
+ deploy(overrides) {
361
+ return super.deploy(overrides || {});
362
+ }
363
+ connect(runner) {
364
+ return super.connect(runner);
365
+ }
366
+ static bytecode = _bytecode;
367
+ static abi = _abi;
368
+ static createInterface() {
369
+ return new Interface(_abi);
370
+ }
371
+ static connect(address, runner) {
372
+ return new Contract(address, _abi, runner);
373
+ }
374
+ }