@xccy/ts-sdk 0.1.1 → 0.1.3

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.
@@ -0,0 +1,247 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type {
7
+ IERC20Metadata,
8
+ IERC20MetadataInterface,
9
+ } from "../IERC20Metadata";
10
+
11
+ const _abi = [
12
+ {
13
+ type: "function",
14
+ name: "allowance",
15
+ inputs: [
16
+ {
17
+ name: "owner",
18
+ type: "address",
19
+ internalType: "address",
20
+ },
21
+ {
22
+ name: "spender",
23
+ type: "address",
24
+ internalType: "address",
25
+ },
26
+ ],
27
+ outputs: [
28
+ {
29
+ name: "",
30
+ type: "uint256",
31
+ internalType: "uint256",
32
+ },
33
+ ],
34
+ stateMutability: "view",
35
+ },
36
+ {
37
+ type: "function",
38
+ name: "approve",
39
+ inputs: [
40
+ {
41
+ name: "spender",
42
+ type: "address",
43
+ internalType: "address",
44
+ },
45
+ {
46
+ name: "amount",
47
+ type: "uint256",
48
+ internalType: "uint256",
49
+ },
50
+ ],
51
+ outputs: [
52
+ {
53
+ name: "",
54
+ type: "bool",
55
+ internalType: "bool",
56
+ },
57
+ ],
58
+ stateMutability: "nonpayable",
59
+ },
60
+ {
61
+ type: "function",
62
+ name: "balanceOf",
63
+ inputs: [
64
+ {
65
+ name: "account",
66
+ type: "address",
67
+ internalType: "address",
68
+ },
69
+ ],
70
+ outputs: [
71
+ {
72
+ name: "",
73
+ type: "uint256",
74
+ internalType: "uint256",
75
+ },
76
+ ],
77
+ stateMutability: "view",
78
+ },
79
+ {
80
+ type: "function",
81
+ name: "decimals",
82
+ inputs: [],
83
+ outputs: [
84
+ {
85
+ name: "",
86
+ type: "uint8",
87
+ internalType: "uint8",
88
+ },
89
+ ],
90
+ stateMutability: "view",
91
+ },
92
+ {
93
+ type: "function",
94
+ name: "name",
95
+ inputs: [],
96
+ outputs: [
97
+ {
98
+ name: "",
99
+ type: "string",
100
+ internalType: "string",
101
+ },
102
+ ],
103
+ stateMutability: "view",
104
+ },
105
+ {
106
+ type: "function",
107
+ name: "symbol",
108
+ inputs: [],
109
+ outputs: [
110
+ {
111
+ name: "",
112
+ type: "string",
113
+ internalType: "string",
114
+ },
115
+ ],
116
+ stateMutability: "view",
117
+ },
118
+ {
119
+ type: "function",
120
+ name: "totalSupply",
121
+ inputs: [],
122
+ outputs: [
123
+ {
124
+ name: "",
125
+ type: "uint256",
126
+ internalType: "uint256",
127
+ },
128
+ ],
129
+ stateMutability: "view",
130
+ },
131
+ {
132
+ type: "function",
133
+ name: "transfer",
134
+ inputs: [
135
+ {
136
+ name: "to",
137
+ type: "address",
138
+ internalType: "address",
139
+ },
140
+ {
141
+ name: "amount",
142
+ type: "uint256",
143
+ internalType: "uint256",
144
+ },
145
+ ],
146
+ outputs: [
147
+ {
148
+ name: "",
149
+ type: "bool",
150
+ internalType: "bool",
151
+ },
152
+ ],
153
+ stateMutability: "nonpayable",
154
+ },
155
+ {
156
+ type: "function",
157
+ name: "transferFrom",
158
+ inputs: [
159
+ {
160
+ name: "from",
161
+ type: "address",
162
+ internalType: "address",
163
+ },
164
+ {
165
+ name: "to",
166
+ type: "address",
167
+ internalType: "address",
168
+ },
169
+ {
170
+ name: "amount",
171
+ type: "uint256",
172
+ internalType: "uint256",
173
+ },
174
+ ],
175
+ outputs: [
176
+ {
177
+ name: "",
178
+ type: "bool",
179
+ internalType: "bool",
180
+ },
181
+ ],
182
+ stateMutability: "nonpayable",
183
+ },
184
+ {
185
+ type: "event",
186
+ name: "Approval",
187
+ inputs: [
188
+ {
189
+ name: "owner",
190
+ type: "address",
191
+ indexed: true,
192
+ internalType: "address",
193
+ },
194
+ {
195
+ name: "spender",
196
+ type: "address",
197
+ indexed: true,
198
+ internalType: "address",
199
+ },
200
+ {
201
+ name: "value",
202
+ type: "uint256",
203
+ indexed: false,
204
+ internalType: "uint256",
205
+ },
206
+ ],
207
+ anonymous: false,
208
+ },
209
+ {
210
+ type: "event",
211
+ name: "Transfer",
212
+ inputs: [
213
+ {
214
+ name: "from",
215
+ type: "address",
216
+ indexed: true,
217
+ internalType: "address",
218
+ },
219
+ {
220
+ name: "to",
221
+ type: "address",
222
+ indexed: true,
223
+ internalType: "address",
224
+ },
225
+ {
226
+ name: "value",
227
+ type: "uint256",
228
+ indexed: false,
229
+ internalType: "uint256",
230
+ },
231
+ ],
232
+ anonymous: false,
233
+ },
234
+ ] as const;
235
+
236
+ export class IERC20Metadata__factory {
237
+ static readonly abi = _abi;
238
+ static createInterface(): IERC20MetadataInterface {
239
+ return new Interface(_abi) as IERC20MetadataInterface;
240
+ }
241
+ static connect(
242
+ address: string,
243
+ runner?: ContractRunner | null
244
+ ): IERC20Metadata {
245
+ return new Contract(address, _abi, runner) as unknown as IERC20Metadata;
246
+ }
247
+ }