@gitmyabi/weth 1.0.3 → 1.0.4

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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **WETH**
4
4
 
5
- - **Build ID**: `etherscan-weth-07380128-1787885645805`
5
+ - **Build ID**: `etherscan-weth-8fffcdbe-1788214587842`
6
6
  - **Build Number**: 1
7
- - **Commit**: `eda8f65`
7
+ - **Commit**: `5d9bbee`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **WETH**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/weth@1.0.3
15
+ npm install @gitmyabi/weth@1.0.4
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * WETH9_json ABI
3
+ * WBNB_json ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const WETH9_jsonAbi: readonly [{
7
+ export declare const WBNB_jsonAbi: readonly [{
8
8
  readonly constant: true;
9
9
  readonly inputs: readonly [];
10
10
  readonly name: "name";
@@ -218,15 +218,15 @@ export declare const WETH9_jsonAbi: readonly [{
218
218
  readonly type: "event";
219
219
  }];
220
220
  /**
221
- * Type-safe ABI for WETH9_json
221
+ * Type-safe ABI for WBNB_json
222
222
  */
223
- export type WETH9_jsonAbi = typeof WETH9_jsonAbi;
223
+ export type WBNB_jsonAbi = typeof WBNB_jsonAbi;
224
224
  /**
225
- * Contract instance type for WETH9_json
225
+ * Contract instance type for WBNB_json
226
226
  */
227
- export type WETH9_jsonContract = any;
227
+ export type WBNB_jsonContract = any;
228
228
  /**
229
- * WETH9_json Contract Class
229
+ * WBNB_json Contract Class
230
230
  *
231
231
  * Provides a class-based API similar to TypeChain for interacting with the contract.
232
232
  *
@@ -234,12 +234,12 @@ export type WETH9_jsonContract = any;
234
234
  * ```typescript
235
235
  * import { createPublicClient, createWalletClient, http } from 'viem';
236
236
  * import { mainnet } from 'viem/chains';
237
- * import { WETH9_json } from 'WETH9_json';
237
+ * import { WBNB_json } from 'WBNB_json';
238
238
  *
239
239
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
240
240
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
241
241
  *
242
- * const contract = new WETH9_json('0x...', { publicClient, walletClient });
242
+ * const contract = new WBNB_json('0x...', { publicClient, walletClient });
243
243
  *
244
244
  * // Read functions
245
245
  * const result = await contract.balanceOf('0x...');
@@ -257,7 +257,7 @@ export type WETH9_jsonContract = any;
257
257
  * });
258
258
  * ```
259
259
  */
260
- export declare class WETH9_json {
260
+ export declare class WBNB_json {
261
261
  private contract;
262
262
  private contractAddress;
263
263
  private publicClient;
@@ -272,7 +272,7 @@ export declare class WETH9_json {
272
272
  /**
273
273
  * Get the underlying viem contract instance
274
274
  */
275
- getContract(): WETH9_jsonContract;
275
+ getContract(): WBNB_jsonContract;
276
276
  /**
277
277
  * name
278
278
  * view
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WETH9_json = exports.WETH9_jsonAbi = void 0;
3
+ exports.WBNB_json = exports.WBNB_jsonAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * WETH9_json ABI
6
+ * WBNB_json ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.WETH9_jsonAbi = [
10
+ exports.WBNB_jsonAbi = [
11
11
  {
12
12
  "constant": true,
13
13
  "inputs": [],
@@ -287,7 +287,7 @@ exports.WETH9_jsonAbi = [
287
287
  }
288
288
  ];
289
289
  /**
290
- * WETH9_json Contract Class
290
+ * WBNB_json Contract Class
291
291
  *
292
292
  * Provides a class-based API similar to TypeChain for interacting with the contract.
293
293
  *
@@ -295,12 +295,12 @@ exports.WETH9_jsonAbi = [
295
295
  * ```typescript
296
296
  * import { createPublicClient, createWalletClient, http } from 'viem';
297
297
  * import { mainnet } from 'viem/chains';
298
- * import { WETH9_json } from 'WETH9_json';
298
+ * import { WBNB_json } from 'WBNB_json';
299
299
  *
300
300
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
301
301
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
302
302
  *
303
- * const contract = new WETH9_json('0x...', { publicClient, walletClient });
303
+ * const contract = new WBNB_json('0x...', { publicClient, walletClient });
304
304
  *
305
305
  * // Read functions
306
306
  * const result = await contract.balanceOf('0x...');
@@ -318,13 +318,13 @@ exports.WETH9_jsonAbi = [
318
318
  * });
319
319
  * ```
320
320
  */
321
- class WETH9_json {
321
+ class WBNB_json {
322
322
  constructor(address, clients) {
323
323
  this.contractAddress = address;
324
324
  this.publicClient = clients.publicClient;
325
325
  this.contract = (0, viem_1.getContract)({
326
326
  address,
327
- abi: exports.WETH9_jsonAbi,
327
+ abi: exports.WBNB_jsonAbi,
328
328
  client: {
329
329
  public: clients.publicClient,
330
330
  wallet: clients.walletClient,
@@ -519,7 +519,7 @@ class WETH9_json {
519
519
  Approval: (callback, filter) => {
520
520
  return this.publicClient.watchContractEvent({
521
521
  address: this.contractAddress,
522
- abi: exports.WETH9_jsonAbi,
522
+ abi: exports.WBNB_jsonAbi,
523
523
  eventName: 'Approval',
524
524
  args: filter,
525
525
  onLogs: (logs) => {
@@ -538,7 +538,7 @@ class WETH9_json {
538
538
  Transfer: (callback, filter) => {
539
539
  return this.publicClient.watchContractEvent({
540
540
  address: this.contractAddress,
541
- abi: exports.WETH9_jsonAbi,
541
+ abi: exports.WBNB_jsonAbi,
542
542
  eventName: 'Transfer',
543
543
  args: filter,
544
544
  onLogs: (logs) => {
@@ -557,7 +557,7 @@ class WETH9_json {
557
557
  Deposit: (callback, filter) => {
558
558
  return this.publicClient.watchContractEvent({
559
559
  address: this.contractAddress,
560
- abi: exports.WETH9_jsonAbi,
560
+ abi: exports.WBNB_jsonAbi,
561
561
  eventName: 'Deposit',
562
562
  args: filter,
563
563
  onLogs: (logs) => {
@@ -576,7 +576,7 @@ class WETH9_json {
576
576
  Withdrawal: (callback, filter) => {
577
577
  return this.publicClient.watchContractEvent({
578
578
  address: this.contractAddress,
579
- abi: exports.WETH9_jsonAbi,
579
+ abi: exports.WBNB_jsonAbi,
580
580
  eventName: 'Withdrawal',
581
581
  args: filter,
582
582
  onLogs: (logs) => {
@@ -589,4 +589,4 @@ class WETH9_json {
589
589
  };
590
590
  }
591
591
  }
592
- exports.WETH9_json = WETH9_json;
592
+ exports.WBNB_json = WBNB_json;
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * WETH9_json ABI
5
+ * WBNB_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const WETH9_jsonAbi = [
9
+ export const WBNB_jsonAbi = [
10
10
  {
11
11
  "constant": true,
12
12
  "inputs": [],
@@ -287,19 +287,19 @@ export const WETH9_jsonAbi = [
287
287
  ] as const satisfies Abi;
288
288
 
289
289
  /**
290
- * Type-safe ABI for WETH9_json
290
+ * Type-safe ABI for WBNB_json
291
291
  */
292
- export type WETH9_jsonAbi = typeof WETH9_jsonAbi;
292
+ export type WBNB_jsonAbi = typeof WBNB_jsonAbi;
293
293
 
294
294
  /**
295
- * Contract instance type for WETH9_json
295
+ * Contract instance type for WBNB_json
296
296
  */
297
297
  // Use any for contract type to avoid complex viem type issues
298
298
  // The runtime behavior is type-safe through viem's ABI typing
299
- export type WETH9_jsonContract = any;
299
+ export type WBNB_jsonContract = any;
300
300
 
301
301
  /**
302
- * WETH9_json Contract Class
302
+ * WBNB_json Contract Class
303
303
  *
304
304
  * Provides a class-based API similar to TypeChain for interacting with the contract.
305
305
  *
@@ -307,12 +307,12 @@ export type WETH9_jsonContract = any;
307
307
  * ```typescript
308
308
  * import { createPublicClient, createWalletClient, http } from 'viem';
309
309
  * import { mainnet } from 'viem/chains';
310
- * import { WETH9_json } from 'WETH9_json';
310
+ * import { WBNB_json } from 'WBNB_json';
311
311
  *
312
312
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
313
313
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
314
314
  *
315
- * const contract = new WETH9_json('0x...', { publicClient, walletClient });
315
+ * const contract = new WBNB_json('0x...', { publicClient, walletClient });
316
316
  *
317
317
  * // Read functions
318
318
  * const result = await contract.balanceOf('0x...');
@@ -330,8 +330,8 @@ export type WETH9_jsonContract = any;
330
330
  * });
331
331
  * ```
332
332
  */
333
- export class WETH9_json {
334
- private contract: WETH9_jsonContract;
333
+ export class WBNB_json {
334
+ private contract: WBNB_jsonContract;
335
335
  private contractAddress: Address;
336
336
  private publicClient: PublicClient;
337
337
 
@@ -346,7 +346,7 @@ export class WETH9_json {
346
346
  this.publicClient = clients.publicClient;
347
347
  this.contract = getContract({
348
348
  address,
349
- abi: WETH9_jsonAbi,
349
+ abi: WBNB_jsonAbi,
350
350
  client: {
351
351
  public: clients.publicClient,
352
352
  wallet: clients.walletClient,
@@ -364,7 +364,7 @@ export class WETH9_json {
364
364
  /**
365
365
  * Get the underlying viem contract instance
366
366
  */
367
- getContract(): WETH9_jsonContract {
367
+ getContract(): WBNB_jsonContract {
368
368
  return this.contract;
369
369
  }
370
370
 
@@ -668,7 +668,7 @@ export class WETH9_json {
668
668
  Approval: (callback: (event: { src: `0x${string}`; guy: `0x${string}`; wad: bigint }) => void, filter?: { src: `0x${string}`; guy: `0x${string}` }) => {
669
669
  return this.publicClient.watchContractEvent({
670
670
  address: this.contractAddress,
671
- abi: WETH9_jsonAbi,
671
+ abi: WBNB_jsonAbi,
672
672
  eventName: 'Approval',
673
673
  args: filter,
674
674
  onLogs: (logs: any[]) => {
@@ -687,7 +687,7 @@ export class WETH9_json {
687
687
  Transfer: (callback: (event: { src: `0x${string}`; dst: `0x${string}`; wad: bigint }) => void, filter?: { src: `0x${string}`; dst: `0x${string}` }) => {
688
688
  return this.publicClient.watchContractEvent({
689
689
  address: this.contractAddress,
690
- abi: WETH9_jsonAbi,
690
+ abi: WBNB_jsonAbi,
691
691
  eventName: 'Transfer',
692
692
  args: filter,
693
693
  onLogs: (logs: any[]) => {
@@ -706,7 +706,7 @@ export class WETH9_json {
706
706
  Deposit: (callback: (event: { dst: `0x${string}`; wad: bigint }) => void, filter?: { dst: `0x${string}` }) => {
707
707
  return this.publicClient.watchContractEvent({
708
708
  address: this.contractAddress,
709
- abi: WETH9_jsonAbi,
709
+ abi: WBNB_jsonAbi,
710
710
  eventName: 'Deposit',
711
711
  args: filter,
712
712
  onLogs: (logs: any[]) => {
@@ -725,7 +725,7 @@ export class WETH9_json {
725
725
  Withdrawal: (callback: (event: { src: `0x${string}`; wad: bigint }) => void, filter?: { src: `0x${string}` }) => {
726
726
  return this.publicClient.watchContractEvent({
727
727
  address: this.contractAddress,
728
- abi: WETH9_jsonAbi,
728
+ abi: WBNB_jsonAbi,
729
729
  eventName: 'Withdrawal',
730
730
  args: filter,
731
731
  onLogs: (logs: any[]) => {
@@ -1,2 +1,2 @@
1
- export { WETH9_jsonAbi, WETH9_json } from './WETH9_json';
2
- export type { WETH9_jsonAbi as WETH9_jsonAbiType, WETH9_jsonContract } from './WETH9_json';
1
+ export { WBNB_jsonAbi, WBNB_json } from './WBNB_json';
2
+ export type { WBNB_jsonAbi as WBNB_jsonAbiType, WBNB_jsonContract } from './WBNB_json';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WETH9_json = exports.WETH9_jsonAbi = void 0;
3
+ exports.WBNB_json = exports.WBNB_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var WETH9_json_1 = require("./WETH9_json");
6
- Object.defineProperty(exports, "WETH9_jsonAbi", { enumerable: true, get: function () { return WETH9_json_1.WETH9_jsonAbi; } });
7
- Object.defineProperty(exports, "WETH9_json", { enumerable: true, get: function () { return WETH9_json_1.WETH9_json; } });
5
+ var WBNB_json_1 = require("./WBNB_json");
6
+ Object.defineProperty(exports, "WBNB_jsonAbi", { enumerable: true, get: function () { return WBNB_json_1.WBNB_jsonAbi; } });
7
+ Object.defineProperty(exports, "WBNB_json", { enumerable: true, get: function () { return WBNB_json_1.WBNB_json; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { WETH9_jsonAbi, WETH9_json } from './WETH9_json';
3
- export type { WETH9_jsonAbi as WETH9_jsonAbiType, WETH9_jsonContract } from './WETH9_json';
2
+ export { WBNB_jsonAbi, WBNB_json } from './WBNB_json';
3
+ export type { WBNB_jsonAbi as WBNB_jsonAbiType, WBNB_jsonContract } from './WBNB_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/weth",
3
- "version": "1.0.3",
4
- "description": "Auto-generated TypeScript type bindings for WETH (build etherscan-weth-07380128-1787885645805, commit eda8f65, branch etherscan)",
3
+ "version": "1.0.4",
4
+ "description": "Auto-generated TypeScript type bindings for WETH (build etherscan-weth-8fffcdbe-1788214587842, commit 5d9bbee, 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/weth"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "eda8f65"
42
+ "shortHash": "5d9bbee"
43
43
  }