@xccy/ts-sdk 0.1.2 → 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,286 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ EventFragment,
12
+ AddressLike,
13
+ ContractRunner,
14
+ ContractMethod,
15
+ Listener,
16
+ } from "ethers";
17
+ import type {
18
+ TypedContractEvent,
19
+ TypedDeferredTopicFilter,
20
+ TypedEventLog,
21
+ TypedLogDescription,
22
+ TypedListener,
23
+ TypedContractMethod,
24
+ } from "./common";
25
+
26
+ export interface IERC20MetadataInterface extends Interface {
27
+ getFunction(
28
+ nameOrSignature:
29
+ | "allowance"
30
+ | "approve"
31
+ | "balanceOf"
32
+ | "decimals"
33
+ | "name"
34
+ | "symbol"
35
+ | "totalSupply"
36
+ | "transfer"
37
+ | "transferFrom"
38
+ ): FunctionFragment;
39
+
40
+ getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
41
+
42
+ encodeFunctionData(
43
+ functionFragment: "allowance",
44
+ values: [AddressLike, AddressLike]
45
+ ): string;
46
+ encodeFunctionData(
47
+ functionFragment: "approve",
48
+ values: [AddressLike, BigNumberish]
49
+ ): string;
50
+ encodeFunctionData(
51
+ functionFragment: "balanceOf",
52
+ values: [AddressLike]
53
+ ): string;
54
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
55
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
56
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
57
+ encodeFunctionData(
58
+ functionFragment: "totalSupply",
59
+ values?: undefined
60
+ ): string;
61
+ encodeFunctionData(
62
+ functionFragment: "transfer",
63
+ values: [AddressLike, BigNumberish]
64
+ ): string;
65
+ encodeFunctionData(
66
+ functionFragment: "transferFrom",
67
+ values: [AddressLike, AddressLike, BigNumberish]
68
+ ): string;
69
+
70
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
71
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
72
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
73
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
74
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
75
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
76
+ decodeFunctionResult(
77
+ functionFragment: "totalSupply",
78
+ data: BytesLike
79
+ ): Result;
80
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
81
+ decodeFunctionResult(
82
+ functionFragment: "transferFrom",
83
+ data: BytesLike
84
+ ): Result;
85
+ }
86
+
87
+ export namespace ApprovalEvent {
88
+ export type InputTuple = [
89
+ owner: AddressLike,
90
+ spender: AddressLike,
91
+ value: BigNumberish
92
+ ];
93
+ export type OutputTuple = [owner: string, spender: string, value: bigint];
94
+ export interface OutputObject {
95
+ owner: string;
96
+ spender: string;
97
+ value: bigint;
98
+ }
99
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
100
+ export type Filter = TypedDeferredTopicFilter<Event>;
101
+ export type Log = TypedEventLog<Event>;
102
+ export type LogDescription = TypedLogDescription<Event>;
103
+ }
104
+
105
+ export namespace TransferEvent {
106
+ export type InputTuple = [
107
+ from: AddressLike,
108
+ to: AddressLike,
109
+ value: BigNumberish
110
+ ];
111
+ export type OutputTuple = [from: string, to: string, value: bigint];
112
+ export interface OutputObject {
113
+ from: string;
114
+ to: string;
115
+ value: bigint;
116
+ }
117
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
118
+ export type Filter = TypedDeferredTopicFilter<Event>;
119
+ export type Log = TypedEventLog<Event>;
120
+ export type LogDescription = TypedLogDescription<Event>;
121
+ }
122
+
123
+ export interface IERC20Metadata extends BaseContract {
124
+ connect(runner?: ContractRunner | null): IERC20Metadata;
125
+ waitForDeployment(): Promise<this>;
126
+
127
+ interface: IERC20MetadataInterface;
128
+
129
+ queryFilter<TCEvent extends TypedContractEvent>(
130
+ event: TCEvent,
131
+ fromBlockOrBlockhash?: string | number | undefined,
132
+ toBlock?: string | number | undefined
133
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
134
+ queryFilter<TCEvent extends TypedContractEvent>(
135
+ filter: TypedDeferredTopicFilter<TCEvent>,
136
+ fromBlockOrBlockhash?: string | number | undefined,
137
+ toBlock?: string | number | undefined
138
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
139
+
140
+ on<TCEvent extends TypedContractEvent>(
141
+ event: TCEvent,
142
+ listener: TypedListener<TCEvent>
143
+ ): Promise<this>;
144
+ on<TCEvent extends TypedContractEvent>(
145
+ filter: TypedDeferredTopicFilter<TCEvent>,
146
+ listener: TypedListener<TCEvent>
147
+ ): Promise<this>;
148
+
149
+ once<TCEvent extends TypedContractEvent>(
150
+ event: TCEvent,
151
+ listener: TypedListener<TCEvent>
152
+ ): Promise<this>;
153
+ once<TCEvent extends TypedContractEvent>(
154
+ filter: TypedDeferredTopicFilter<TCEvent>,
155
+ listener: TypedListener<TCEvent>
156
+ ): Promise<this>;
157
+
158
+ listeners<TCEvent extends TypedContractEvent>(
159
+ event: TCEvent
160
+ ): Promise<Array<TypedListener<TCEvent>>>;
161
+ listeners(eventName?: string): Promise<Array<Listener>>;
162
+ removeAllListeners<TCEvent extends TypedContractEvent>(
163
+ event?: TCEvent
164
+ ): Promise<this>;
165
+
166
+ allowance: TypedContractMethod<
167
+ [owner: AddressLike, spender: AddressLike],
168
+ [bigint],
169
+ "view"
170
+ >;
171
+
172
+ approve: TypedContractMethod<
173
+ [spender: AddressLike, amount: BigNumberish],
174
+ [boolean],
175
+ "nonpayable"
176
+ >;
177
+
178
+ balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
179
+
180
+ decimals: TypedContractMethod<[], [bigint], "view">;
181
+
182
+ name: TypedContractMethod<[], [string], "view">;
183
+
184
+ symbol: TypedContractMethod<[], [string], "view">;
185
+
186
+ totalSupply: TypedContractMethod<[], [bigint], "view">;
187
+
188
+ transfer: TypedContractMethod<
189
+ [to: AddressLike, amount: BigNumberish],
190
+ [boolean],
191
+ "nonpayable"
192
+ >;
193
+
194
+ transferFrom: TypedContractMethod<
195
+ [from: AddressLike, to: AddressLike, amount: BigNumberish],
196
+ [boolean],
197
+ "nonpayable"
198
+ >;
199
+
200
+ getFunction<T extends ContractMethod = ContractMethod>(
201
+ key: string | FunctionFragment
202
+ ): T;
203
+
204
+ getFunction(
205
+ nameOrSignature: "allowance"
206
+ ): TypedContractMethod<
207
+ [owner: AddressLike, spender: AddressLike],
208
+ [bigint],
209
+ "view"
210
+ >;
211
+ getFunction(
212
+ nameOrSignature: "approve"
213
+ ): TypedContractMethod<
214
+ [spender: AddressLike, amount: BigNumberish],
215
+ [boolean],
216
+ "nonpayable"
217
+ >;
218
+ getFunction(
219
+ nameOrSignature: "balanceOf"
220
+ ): TypedContractMethod<[account: AddressLike], [bigint], "view">;
221
+ getFunction(
222
+ nameOrSignature: "decimals"
223
+ ): TypedContractMethod<[], [bigint], "view">;
224
+ getFunction(
225
+ nameOrSignature: "name"
226
+ ): TypedContractMethod<[], [string], "view">;
227
+ getFunction(
228
+ nameOrSignature: "symbol"
229
+ ): TypedContractMethod<[], [string], "view">;
230
+ getFunction(
231
+ nameOrSignature: "totalSupply"
232
+ ): TypedContractMethod<[], [bigint], "view">;
233
+ getFunction(
234
+ nameOrSignature: "transfer"
235
+ ): TypedContractMethod<
236
+ [to: AddressLike, amount: BigNumberish],
237
+ [boolean],
238
+ "nonpayable"
239
+ >;
240
+ getFunction(
241
+ nameOrSignature: "transferFrom"
242
+ ): TypedContractMethod<
243
+ [from: AddressLike, to: AddressLike, amount: BigNumberish],
244
+ [boolean],
245
+ "nonpayable"
246
+ >;
247
+
248
+ getEvent(
249
+ key: "Approval"
250
+ ): TypedContractEvent<
251
+ ApprovalEvent.InputTuple,
252
+ ApprovalEvent.OutputTuple,
253
+ ApprovalEvent.OutputObject
254
+ >;
255
+ getEvent(
256
+ key: "Transfer"
257
+ ): TypedContractEvent<
258
+ TransferEvent.InputTuple,
259
+ TransferEvent.OutputTuple,
260
+ TransferEvent.OutputObject
261
+ >;
262
+
263
+ filters: {
264
+ "Approval(address,address,uint256)": TypedContractEvent<
265
+ ApprovalEvent.InputTuple,
266
+ ApprovalEvent.OutputTuple,
267
+ ApprovalEvent.OutputObject
268
+ >;
269
+ Approval: TypedContractEvent<
270
+ ApprovalEvent.InputTuple,
271
+ ApprovalEvent.OutputTuple,
272
+ ApprovalEvent.OutputObject
273
+ >;
274
+
275
+ "Transfer(address,address,uint256)": TypedContractEvent<
276
+ TransferEvent.InputTuple,
277
+ TransferEvent.OutputTuple,
278
+ TransferEvent.OutputObject
279
+ >;
280
+ Transfer: TypedContractEvent<
281
+ TransferEvent.InputTuple,
282
+ TransferEvent.OutputTuple,
283
+ TransferEvent.OutputObject
284
+ >;
285
+ };
286
+ }