@gitmyabi/usdc 1.0.0 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
- export { FiatTokenProxy_jsonAbi, FiatTokenProxy_json } from './FiatTokenProxy_json';
2
- export type { FiatTokenProxy_jsonAbi as FiatTokenProxy_jsonAbiType, FiatTokenProxy_jsonContract } from './FiatTokenProxy_json';
3
- export { FiatTokenV2_2_jsonAbi, FiatTokenV2_2_json } from './FiatTokenV2_2_json';
4
- export type { FiatTokenV2_2_jsonAbi as FiatTokenV2_2_jsonAbiType, FiatTokenV2_2_jsonContract } from './FiatTokenV2_2_json';
1
+ export { BridgeToken_jsonAbi, BridgeToken_json } from './BridgeToken_json';
2
+ export type { BridgeToken_jsonAbi as BridgeToken_jsonAbiType, BridgeToken_jsonContract } from './BridgeToken_json';
3
+ export { TokenImplementation_jsonAbi, TokenImplementation_json } from './TokenImplementation_json';
4
+ export type { TokenImplementation_jsonAbi as TokenImplementation_jsonAbiType, TokenImplementation_jsonContract } from './TokenImplementation_json';
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FiatTokenV2_2_json = exports.FiatTokenV2_2_jsonAbi = exports.FiatTokenProxy_json = exports.FiatTokenProxy_jsonAbi = void 0;
3
+ exports.TokenImplementation_json = exports.TokenImplementation_jsonAbi = exports.BridgeToken_json = exports.BridgeToken_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var FiatTokenProxy_json_1 = require("./FiatTokenProxy_json");
6
- Object.defineProperty(exports, "FiatTokenProxy_jsonAbi", { enumerable: true, get: function () { return FiatTokenProxy_json_1.FiatTokenProxy_jsonAbi; } });
7
- Object.defineProperty(exports, "FiatTokenProxy_json", { enumerable: true, get: function () { return FiatTokenProxy_json_1.FiatTokenProxy_json; } });
8
- var FiatTokenV2_2_json_1 = require("./FiatTokenV2_2_json");
9
- Object.defineProperty(exports, "FiatTokenV2_2_jsonAbi", { enumerable: true, get: function () { return FiatTokenV2_2_json_1.FiatTokenV2_2_jsonAbi; } });
10
- Object.defineProperty(exports, "FiatTokenV2_2_json", { enumerable: true, get: function () { return FiatTokenV2_2_json_1.FiatTokenV2_2_json; } });
5
+ var BridgeToken_json_1 = require("./BridgeToken_json");
6
+ Object.defineProperty(exports, "BridgeToken_jsonAbi", { enumerable: true, get: function () { return BridgeToken_json_1.BridgeToken_jsonAbi; } });
7
+ Object.defineProperty(exports, "BridgeToken_json", { enumerable: true, get: function () { return BridgeToken_json_1.BridgeToken_json; } });
8
+ var TokenImplementation_json_1 = require("./TokenImplementation_json");
9
+ Object.defineProperty(exports, "TokenImplementation_jsonAbi", { enumerable: true, get: function () { return TokenImplementation_json_1.TokenImplementation_jsonAbi; } });
10
+ Object.defineProperty(exports, "TokenImplementation_json", { enumerable: true, get: function () { return TokenImplementation_json_1.TokenImplementation_json; } });
@@ -1,5 +1,5 @@
1
1
  // Auto-generated exports for all contracts
2
- export { FiatTokenProxy_jsonAbi, FiatTokenProxy_json } from './FiatTokenProxy_json';
3
- export type { FiatTokenProxy_jsonAbi as FiatTokenProxy_jsonAbiType, FiatTokenProxy_jsonContract } from './FiatTokenProxy_json';
4
- export { FiatTokenV2_2_jsonAbi, FiatTokenV2_2_json } from './FiatTokenV2_2_json';
5
- export type { FiatTokenV2_2_jsonAbi as FiatTokenV2_2_jsonAbiType, FiatTokenV2_2_jsonContract } from './FiatTokenV2_2_json';
2
+ export { BridgeToken_jsonAbi, BridgeToken_json } from './BridgeToken_json';
3
+ export type { BridgeToken_jsonAbi as BridgeToken_jsonAbiType, BridgeToken_jsonContract } from './BridgeToken_json';
4
+ export { TokenImplementation_jsonAbi, TokenImplementation_json } from './TokenImplementation_json';
5
+ export type { TokenImplementation_jsonAbi as TokenImplementation_jsonAbiType, TokenImplementation_jsonContract } from './TokenImplementation_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/usdc",
3
- "version": "1.0.0",
4
- "description": "Auto-generated TypeScript type bindings for USDC (build etherscan-usdc-a0b86991-1784033639766, commit 2ac629f, branch etherscan)",
3
+ "version": "1.0.1",
4
+ "description": "Auto-generated TypeScript type bindings for USDC (build etherscan-usdc-566957ef-1785870768111, commit 4b8e2a9, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/usdc"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "2ac629f"
42
+ "shortHash": "4b8e2a9"
43
43
  }
@@ -1,311 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * FiatTokenProxy_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const FiatTokenProxy_jsonAbi: readonly [{
8
- readonly constant: false;
9
- readonly inputs: readonly [{
10
- readonly name: "newImplementation";
11
- readonly type: "address";
12
- }];
13
- readonly name: "upgradeTo";
14
- readonly outputs: readonly [];
15
- readonly payable: false;
16
- readonly stateMutability: "nonpayable";
17
- readonly type: "function";
18
- }, {
19
- readonly constant: false;
20
- readonly inputs: readonly [{
21
- readonly name: "newImplementation";
22
- readonly type: "address";
23
- }, {
24
- readonly name: "data";
25
- readonly type: "bytes";
26
- }];
27
- readonly name: "upgradeToAndCall";
28
- readonly outputs: readonly [];
29
- readonly payable: true;
30
- readonly stateMutability: "payable";
31
- readonly type: "function";
32
- }, {
33
- readonly constant: true;
34
- readonly inputs: readonly [];
35
- readonly name: "implementation";
36
- readonly outputs: readonly [{
37
- readonly name: "";
38
- readonly type: "address";
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: "newAdmin";
47
- readonly type: "address";
48
- }];
49
- readonly name: "changeAdmin";
50
- readonly outputs: readonly [];
51
- readonly payable: false;
52
- readonly stateMutability: "nonpayable";
53
- readonly type: "function";
54
- }, {
55
- readonly constant: true;
56
- readonly inputs: readonly [];
57
- readonly name: "admin";
58
- readonly outputs: readonly [{
59
- readonly name: "";
60
- readonly type: "address";
61
- }];
62
- readonly payable: false;
63
- readonly stateMutability: "view";
64
- readonly type: "function";
65
- }, {
66
- readonly inputs: readonly [{
67
- readonly name: "_implementation";
68
- readonly type: "address";
69
- }];
70
- readonly payable: false;
71
- readonly stateMutability: "nonpayable";
72
- readonly type: "constructor";
73
- }, {
74
- readonly payable: true;
75
- readonly stateMutability: "payable";
76
- readonly type: "fallback";
77
- }, {
78
- readonly anonymous: false;
79
- readonly inputs: readonly [{
80
- readonly indexed: false;
81
- readonly name: "previousAdmin";
82
- readonly type: "address";
83
- }, {
84
- readonly indexed: false;
85
- readonly name: "newAdmin";
86
- readonly type: "address";
87
- }];
88
- readonly name: "AdminChanged";
89
- readonly type: "event";
90
- }, {
91
- readonly anonymous: false;
92
- readonly inputs: readonly [{
93
- readonly indexed: false;
94
- readonly name: "implementation";
95
- readonly type: "address";
96
- }];
97
- readonly name: "Upgraded";
98
- readonly type: "event";
99
- }];
100
- /**
101
- * Type-safe ABI for FiatTokenProxy_json
102
- */
103
- export type FiatTokenProxy_jsonAbi = typeof FiatTokenProxy_jsonAbi;
104
- /**
105
- * Contract instance type for FiatTokenProxy_json
106
- */
107
- export type FiatTokenProxy_jsonContract = any;
108
- /**
109
- * FiatTokenProxy_json Contract Class
110
- *
111
- * Provides a class-based API similar to TypeChain for interacting with the contract.
112
- *
113
- * @example
114
- * ```typescript
115
- * import { createPublicClient, createWalletClient, http } from 'viem';
116
- * import { mainnet } from 'viem/chains';
117
- * import { FiatTokenProxy_json } from 'FiatTokenProxy_json';
118
- *
119
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
120
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
121
- *
122
- * const contract = new FiatTokenProxy_json('0x...', { publicClient, walletClient });
123
- *
124
- * // Read functions
125
- * const result = await contract.balanceOf('0x...');
126
- *
127
- * // Write functions
128
- * const hash = await contract.transfer('0x...', 1000n);
129
- *
130
- * // Simulate transactions (dry-run)
131
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
132
- * console.log('Gas estimate:', simulation.request.gas);
133
- *
134
- * // Watch events
135
- * const unwatch = contract.watch.Transfer((event) => {
136
- * console.log('Transfer event:', event);
137
- * });
138
- * ```
139
- */
140
- export declare class FiatTokenProxy_json {
141
- private contract;
142
- private contractAddress;
143
- private publicClient;
144
- constructor(address: Address, clients: {
145
- publicClient: PublicClient;
146
- walletClient?: WalletClient;
147
- });
148
- /**
149
- * Get the contract address
150
- */
151
- get address(): Address;
152
- /**
153
- * Get the underlying viem contract instance
154
- */
155
- getContract(): FiatTokenProxy_jsonContract;
156
- /**
157
- * implementation
158
- * view
159
- */
160
- implementation(): Promise<`0x${string}`>;
161
- /**
162
- * admin
163
- * view
164
- */
165
- admin(): Promise<`0x${string}`>;
166
- /**
167
- * upgradeTo
168
- * nonpayable
169
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
170
- */
171
- upgradeTo(newImplementation: `0x${string}`, options?: {
172
- accessList?: import('viem').AccessList;
173
- authorizationList?: import('viem').AuthorizationList;
174
- chain?: import('viem').Chain | null;
175
- dataSuffix?: `0x${string}`;
176
- gas?: bigint;
177
- gasPrice?: bigint;
178
- maxFeePerGas?: bigint;
179
- maxPriorityFeePerGas?: bigint;
180
- nonce?: number;
181
- value?: bigint;
182
- }): Promise<`0x${string}`>;
183
- /**
184
- * upgradeToAndCall
185
- * payable
186
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
187
- */
188
- upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
189
- accessList?: import('viem').AccessList;
190
- authorizationList?: import('viem').AuthorizationList;
191
- chain?: import('viem').Chain | null;
192
- dataSuffix?: `0x${string}`;
193
- gas?: bigint;
194
- gasPrice?: bigint;
195
- maxFeePerGas?: bigint;
196
- maxPriorityFeePerGas?: bigint;
197
- nonce?: number;
198
- value?: bigint;
199
- }): Promise<`0x${string}`>;
200
- /**
201
- * changeAdmin
202
- * nonpayable
203
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
204
- */
205
- changeAdmin(newAdmin: `0x${string}`, options?: {
206
- accessList?: import('viem').AccessList;
207
- authorizationList?: import('viem').AuthorizationList;
208
- chain?: import('viem').Chain | null;
209
- dataSuffix?: `0x${string}`;
210
- gas?: bigint;
211
- gasPrice?: bigint;
212
- maxFeePerGas?: bigint;
213
- maxPriorityFeePerGas?: bigint;
214
- nonce?: number;
215
- value?: bigint;
216
- }): Promise<`0x${string}`>;
217
- /**
218
- * Simulate contract write operations (dry-run without sending transaction)
219
- *
220
- * @example
221
- * const result = await contract.simulate.transfer('0x...', 1000n);
222
- * console.log('Gas estimate:', result.request.gas);
223
- * console.log('Would succeed:', result.result);
224
- */
225
- get simulate(): {
226
- /**
227
- * Simulate upgradeTo
228
- * Returns gas estimate and result without sending transaction
229
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
230
- */
231
- upgradeTo(newImplementation: `0x${string}`, options?: {
232
- accessList?: import("viem").AccessList;
233
- authorizationList?: import("viem").AuthorizationList;
234
- chain?: import("viem").Chain | null;
235
- dataSuffix?: `0x${string}`;
236
- gas?: bigint;
237
- gasPrice?: bigint;
238
- maxFeePerGas?: bigint;
239
- maxPriorityFeePerGas?: bigint;
240
- nonce?: number;
241
- value?: bigint;
242
- }): Promise<void>;
243
- /**
244
- * Simulate upgradeToAndCall
245
- * Returns gas estimate and result without sending transaction
246
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
247
- */
248
- upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
249
- accessList?: import("viem").AccessList;
250
- authorizationList?: import("viem").AuthorizationList;
251
- chain?: import("viem").Chain | null;
252
- dataSuffix?: `0x${string}`;
253
- gas?: bigint;
254
- gasPrice?: bigint;
255
- maxFeePerGas?: bigint;
256
- maxPriorityFeePerGas?: bigint;
257
- nonce?: number;
258
- value?: bigint;
259
- }): Promise<void>;
260
- /**
261
- * Simulate changeAdmin
262
- * Returns gas estimate and result without sending transaction
263
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
264
- */
265
- changeAdmin(newAdmin: `0x${string}`, options?: {
266
- accessList?: import("viem").AccessList;
267
- authorizationList?: import("viem").AuthorizationList;
268
- chain?: import("viem").Chain | null;
269
- dataSuffix?: `0x${string}`;
270
- gas?: bigint;
271
- gasPrice?: bigint;
272
- maxFeePerGas?: bigint;
273
- maxPriorityFeePerGas?: bigint;
274
- nonce?: number;
275
- value?: bigint;
276
- }): Promise<void>;
277
- };
278
- /**
279
- * Watch contract events
280
- *
281
- * @example
282
- * // Watch all Transfer events
283
- * const unwatch = contract.watch.Transfer((event) => {
284
- * console.log('Transfer:', event);
285
- * });
286
- *
287
- * // Stop watching
288
- * unwatch();
289
- */
290
- get watch(): {
291
- /**
292
- * Watch AdminChanged events
293
- * @param callback Function to call when event is emitted
294
- * @param filter Optional filter for indexed parameters
295
- * @returns Unwatch function to stop listening
296
- */
297
- AdminChanged: (callback: (event: {
298
- previousAdmin: `0x${string}`;
299
- newAdmin: `0x${string}`;
300
- }) => void) => () => void;
301
- /**
302
- * Watch Upgraded events
303
- * @param callback Function to call when event is emitted
304
- * @param filter Optional filter for indexed parameters
305
- * @returns Unwatch function to stop listening
306
- */
307
- Upgraded: (callback: (event: {
308
- implementation: `0x${string}`;
309
- }) => void) => () => void;
310
- };
311
- }
@@ -1,328 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FiatTokenProxy_json = exports.FiatTokenProxy_jsonAbi = void 0;
4
- const viem_1 = require("viem");
5
- /**
6
- * FiatTokenProxy_json ABI
7
- *
8
- * This ABI is typed using viem's type system for full type safety.
9
- */
10
- exports.FiatTokenProxy_jsonAbi = [
11
- {
12
- "constant": false,
13
- "inputs": [
14
- {
15
- "name": "newImplementation",
16
- "type": "address"
17
- }
18
- ],
19
- "name": "upgradeTo",
20
- "outputs": [],
21
- "payable": false,
22
- "stateMutability": "nonpayable",
23
- "type": "function"
24
- },
25
- {
26
- "constant": false,
27
- "inputs": [
28
- {
29
- "name": "newImplementation",
30
- "type": "address"
31
- },
32
- {
33
- "name": "data",
34
- "type": "bytes"
35
- }
36
- ],
37
- "name": "upgradeToAndCall",
38
- "outputs": [],
39
- "payable": true,
40
- "stateMutability": "payable",
41
- "type": "function"
42
- },
43
- {
44
- "constant": true,
45
- "inputs": [],
46
- "name": "implementation",
47
- "outputs": [
48
- {
49
- "name": "",
50
- "type": "address"
51
- }
52
- ],
53
- "payable": false,
54
- "stateMutability": "view",
55
- "type": "function"
56
- },
57
- {
58
- "constant": false,
59
- "inputs": [
60
- {
61
- "name": "newAdmin",
62
- "type": "address"
63
- }
64
- ],
65
- "name": "changeAdmin",
66
- "outputs": [],
67
- "payable": false,
68
- "stateMutability": "nonpayable",
69
- "type": "function"
70
- },
71
- {
72
- "constant": true,
73
- "inputs": [],
74
- "name": "admin",
75
- "outputs": [
76
- {
77
- "name": "",
78
- "type": "address"
79
- }
80
- ],
81
- "payable": false,
82
- "stateMutability": "view",
83
- "type": "function"
84
- },
85
- {
86
- "inputs": [
87
- {
88
- "name": "_implementation",
89
- "type": "address"
90
- }
91
- ],
92
- "payable": false,
93
- "stateMutability": "nonpayable",
94
- "type": "constructor"
95
- },
96
- {
97
- "payable": true,
98
- "stateMutability": "payable",
99
- "type": "fallback"
100
- },
101
- {
102
- "anonymous": false,
103
- "inputs": [
104
- {
105
- "indexed": false,
106
- "name": "previousAdmin",
107
- "type": "address"
108
- },
109
- {
110
- "indexed": false,
111
- "name": "newAdmin",
112
- "type": "address"
113
- }
114
- ],
115
- "name": "AdminChanged",
116
- "type": "event"
117
- },
118
- {
119
- "anonymous": false,
120
- "inputs": [
121
- {
122
- "indexed": false,
123
- "name": "implementation",
124
- "type": "address"
125
- }
126
- ],
127
- "name": "Upgraded",
128
- "type": "event"
129
- }
130
- ];
131
- /**
132
- * FiatTokenProxy_json Contract Class
133
- *
134
- * Provides a class-based API similar to TypeChain for interacting with the contract.
135
- *
136
- * @example
137
- * ```typescript
138
- * import { createPublicClient, createWalletClient, http } from 'viem';
139
- * import { mainnet } from 'viem/chains';
140
- * import { FiatTokenProxy_json } from 'FiatTokenProxy_json';
141
- *
142
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
143
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
144
- *
145
- * const contract = new FiatTokenProxy_json('0x...', { publicClient, walletClient });
146
- *
147
- * // Read functions
148
- * const result = await contract.balanceOf('0x...');
149
- *
150
- * // Write functions
151
- * const hash = await contract.transfer('0x...', 1000n);
152
- *
153
- * // Simulate transactions (dry-run)
154
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
155
- * console.log('Gas estimate:', simulation.request.gas);
156
- *
157
- * // Watch events
158
- * const unwatch = contract.watch.Transfer((event) => {
159
- * console.log('Transfer event:', event);
160
- * });
161
- * ```
162
- */
163
- class FiatTokenProxy_json {
164
- constructor(address, clients) {
165
- this.contractAddress = address;
166
- this.publicClient = clients.publicClient;
167
- this.contract = (0, viem_1.getContract)({
168
- address,
169
- abi: exports.FiatTokenProxy_jsonAbi,
170
- client: {
171
- public: clients.publicClient,
172
- wallet: clients.walletClient,
173
- },
174
- });
175
- }
176
- /**
177
- * Get the contract address
178
- */
179
- get address() {
180
- return this.contractAddress;
181
- }
182
- /**
183
- * Get the underlying viem contract instance
184
- */
185
- getContract() {
186
- return this.contract;
187
- }
188
- /**
189
- * implementation
190
- * view
191
- */
192
- async implementation() {
193
- return this.contract.read.implementation();
194
- }
195
- /**
196
- * admin
197
- * view
198
- */
199
- async admin() {
200
- return this.contract.read.admin();
201
- }
202
- /**
203
- * upgradeTo
204
- * nonpayable
205
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
206
- */
207
- async upgradeTo(newImplementation, options) {
208
- if (!this.contract.write) {
209
- throw new Error('Wallet client is required for write operations');
210
- }
211
- return this.contract.write.upgradeTo([newImplementation], options);
212
- }
213
- /**
214
- * upgradeToAndCall
215
- * payable
216
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
217
- */
218
- async upgradeToAndCall(newImplementation, data, options) {
219
- if (!this.contract.write) {
220
- throw new Error('Wallet client is required for write operations');
221
- }
222
- return this.contract.write.upgradeToAndCall([newImplementation, data], options);
223
- }
224
- /**
225
- * changeAdmin
226
- * nonpayable
227
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
228
- */
229
- async changeAdmin(newAdmin, options) {
230
- if (!this.contract.write) {
231
- throw new Error('Wallet client is required for write operations');
232
- }
233
- return this.contract.write.changeAdmin([newAdmin], options);
234
- }
235
- /**
236
- * Simulate contract write operations (dry-run without sending transaction)
237
- *
238
- * @example
239
- * const result = await contract.simulate.transfer('0x...', 1000n);
240
- * console.log('Gas estimate:', result.request.gas);
241
- * console.log('Would succeed:', result.result);
242
- */
243
- get simulate() {
244
- const contract = this.contract;
245
- if (!contract.simulate) {
246
- throw new Error('Public client is required for simulation');
247
- }
248
- return {
249
- /**
250
- * Simulate upgradeTo
251
- * Returns gas estimate and result without sending transaction
252
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
253
- */
254
- async upgradeTo(newImplementation, options) {
255
- return contract.simulate.upgradeTo([newImplementation], options);
256
- },
257
- /**
258
- * Simulate upgradeToAndCall
259
- * Returns gas estimate and result without sending transaction
260
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
261
- */
262
- async upgradeToAndCall(newImplementation, data, options) {
263
- return contract.simulate.upgradeToAndCall([newImplementation, data], options);
264
- },
265
- /**
266
- * Simulate changeAdmin
267
- * Returns gas estimate and result without sending transaction
268
- * @param options Optional transaction parameters (value, gas, nonce, etc.)
269
- */
270
- async changeAdmin(newAdmin, options) {
271
- return contract.simulate.changeAdmin([newAdmin], options);
272
- }
273
- };
274
- }
275
- /**
276
- * Watch contract events
277
- *
278
- * @example
279
- * // Watch all Transfer events
280
- * const unwatch = contract.watch.Transfer((event) => {
281
- * console.log('Transfer:', event);
282
- * });
283
- *
284
- * // Stop watching
285
- * unwatch();
286
- */
287
- get watch() {
288
- return {
289
- /**
290
- * Watch AdminChanged events
291
- * @param callback Function to call when event is emitted
292
- * @param filter Optional filter for indexed parameters
293
- * @returns Unwatch function to stop listening
294
- */
295
- AdminChanged: (callback) => {
296
- return this.publicClient.watchContractEvent({
297
- address: this.contractAddress,
298
- abi: exports.FiatTokenProxy_jsonAbi,
299
- eventName: 'AdminChanged',
300
- onLogs: (logs) => {
301
- logs.forEach((log) => {
302
- callback(log.args);
303
- });
304
- },
305
- });
306
- },
307
- /**
308
- * Watch Upgraded events
309
- * @param callback Function to call when event is emitted
310
- * @param filter Optional filter for indexed parameters
311
- * @returns Unwatch function to stop listening
312
- */
313
- Upgraded: (callback) => {
314
- return this.publicClient.watchContractEvent({
315
- address: this.contractAddress,
316
- abi: exports.FiatTokenProxy_jsonAbi,
317
- eventName: 'Upgraded',
318
- onLogs: (logs) => {
319
- logs.forEach((log) => {
320
- callback(log.args);
321
- });
322
- },
323
- });
324
- }
325
- };
326
- }
327
- }
328
- exports.FiatTokenProxy_json = FiatTokenProxy_json;