@gitmyabi/weth 1.0.5 → 1.0.6

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.
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * Name_json ABI
5
+ * WETH9_json ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const Name_jsonAbi = [
9
+ export const WETH9_jsonAbi = [
10
10
  {
11
11
  "constant": true,
12
12
  "inputs": [],
@@ -287,19 +287,19 @@ export const Name_jsonAbi = [
287
287
  ] as const satisfies Abi;
288
288
 
289
289
  /**
290
- * Type-safe ABI for Name_json
290
+ * Type-safe ABI for WETH9_json
291
291
  */
292
- export type Name_jsonAbi = typeof Name_jsonAbi;
292
+ export type WETH9_jsonAbi = typeof WETH9_jsonAbi;
293
293
 
294
294
  /**
295
- * Contract instance type for Name_json
295
+ * Contract instance type for WETH9_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 Name_jsonContract = any;
299
+ export type WETH9_jsonContract = any;
300
300
 
301
301
  /**
302
- * Name_json Contract Class
302
+ * WETH9_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 Name_jsonContract = any;
307
307
  * ```typescript
308
308
  * import { createPublicClient, createWalletClient, http } from 'viem';
309
309
  * import { mainnet } from 'viem/chains';
310
- * import { Name_json } from 'Name_json';
310
+ * import { WETH9_json } from 'WETH9_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 Name_json('0x...', { publicClient, walletClient });
315
+ * const contract = new WETH9_json('0x...', { publicClient, walletClient });
316
316
  *
317
317
  * // Read functions
318
318
  * const result = await contract.balanceOf('0x...');
@@ -330,8 +330,8 @@ export type Name_jsonContract = any;
330
330
  * });
331
331
  * ```
332
332
  */
333
- export class Name_json {
334
- private contract: Name_jsonContract;
333
+ export class WETH9_json {
334
+ private contract: WETH9_jsonContract;
335
335
  private contractAddress: Address;
336
336
  private publicClient: PublicClient;
337
337
 
@@ -346,7 +346,7 @@ export class Name_json {
346
346
  this.publicClient = clients.publicClient;
347
347
  this.contract = getContract({
348
348
  address,
349
- abi: Name_jsonAbi,
349
+ abi: WETH9_jsonAbi,
350
350
  client: {
351
351
  public: clients.publicClient,
352
352
  wallet: clients.walletClient,
@@ -364,7 +364,7 @@ export class Name_json {
364
364
  /**
365
365
  * Get the underlying viem contract instance
366
366
  */
367
- getContract(): Name_jsonContract {
367
+ getContract(): WETH9_jsonContract {
368
368
  return this.contract;
369
369
  }
370
370
 
@@ -668,7 +668,7 @@ export class Name_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: Name_jsonAbi,
671
+ abi: WETH9_jsonAbi,
672
672
  eventName: 'Approval',
673
673
  args: filter,
674
674
  onLogs: (logs: any[]) => {
@@ -687,7 +687,7 @@ export class Name_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: Name_jsonAbi,
690
+ abi: WETH9_jsonAbi,
691
691
  eventName: 'Transfer',
692
692
  args: filter,
693
693
  onLogs: (logs: any[]) => {
@@ -706,7 +706,7 @@ export class Name_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: Name_jsonAbi,
709
+ abi: WETH9_jsonAbi,
710
710
  eventName: 'Deposit',
711
711
  args: filter,
712
712
  onLogs: (logs: any[]) => {
@@ -725,7 +725,7 @@ export class Name_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: Name_jsonAbi,
728
+ abi: WETH9_jsonAbi,
729
729
  eventName: 'Withdrawal',
730
730
  args: filter,
731
731
  onLogs: (logs: any[]) => {
@@ -1,2 +1,4 @@
1
- export { Name_jsonAbi, Name_json } from './Name_json';
2
- export type { Name_jsonAbi as Name_jsonAbiType, Name_jsonContract } from './Name_json';
1
+ export { AdminUpgradeabilityProxy_jsonAbi, AdminUpgradeabilityProxy_json } from './AdminUpgradeabilityProxy_json';
2
+ export type { AdminUpgradeabilityProxy_jsonAbi as AdminUpgradeabilityProxy_jsonAbiType, AdminUpgradeabilityProxy_jsonContract } from './AdminUpgradeabilityProxy_json';
3
+ export { WETH9_jsonAbi, WETH9_json } from './WETH9_json';
4
+ export type { WETH9_jsonAbi as WETH9_jsonAbiType, WETH9_jsonContract } from './WETH9_json';
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Name_json = exports.Name_jsonAbi = void 0;
3
+ exports.WETH9_json = exports.WETH9_jsonAbi = exports.AdminUpgradeabilityProxy_json = exports.AdminUpgradeabilityProxy_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var Name_json_1 = require("./Name_json");
6
- Object.defineProperty(exports, "Name_jsonAbi", { enumerable: true, get: function () { return Name_json_1.Name_jsonAbi; } });
7
- Object.defineProperty(exports, "Name_json", { enumerable: true, get: function () { return Name_json_1.Name_json; } });
5
+ var AdminUpgradeabilityProxy_json_1 = require("./AdminUpgradeabilityProxy_json");
6
+ Object.defineProperty(exports, "AdminUpgradeabilityProxy_jsonAbi", { enumerable: true, get: function () { return AdminUpgradeabilityProxy_json_1.AdminUpgradeabilityProxy_jsonAbi; } });
7
+ Object.defineProperty(exports, "AdminUpgradeabilityProxy_json", { enumerable: true, get: function () { return AdminUpgradeabilityProxy_json_1.AdminUpgradeabilityProxy_json; } });
8
+ var WETH9_json_1 = require("./WETH9_json");
9
+ Object.defineProperty(exports, "WETH9_jsonAbi", { enumerable: true, get: function () { return WETH9_json_1.WETH9_jsonAbi; } });
10
+ Object.defineProperty(exports, "WETH9_json", { enumerable: true, get: function () { return WETH9_json_1.WETH9_json; } });
@@ -1,3 +1,5 @@
1
1
  // Auto-generated exports for all contracts
2
- export { Name_jsonAbi, Name_json } from './Name_json';
3
- export type { Name_jsonAbi as Name_jsonAbiType, Name_jsonContract } from './Name_json';
2
+ export { AdminUpgradeabilityProxy_jsonAbi, AdminUpgradeabilityProxy_json } from './AdminUpgradeabilityProxy_json';
3
+ export type { AdminUpgradeabilityProxy_jsonAbi as AdminUpgradeabilityProxy_jsonAbiType, AdminUpgradeabilityProxy_jsonContract } from './AdminUpgradeabilityProxy_json';
4
+ export { WETH9_jsonAbi, WETH9_json } from './WETH9_json';
5
+ export type { WETH9_jsonAbi as WETH9_jsonAbiType, WETH9_jsonContract } from './WETH9_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/weth",
3
- "version": "1.0.5",
4
- "description": "Auto-generated TypeScript type bindings for WETH (build etherscan-weth-fcea26d0-1790327388081, commit e29c6de, branch etherscan)",
3
+ "version": "1.0.6",
4
+ "description": "Auto-generated TypeScript type bindings for WETH (build etherscan-weth-0acf809f-1790392753101, commit 43d5b56, 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": "e29c6de"
42
+ "shortHash": "43d5b56"
43
43
  }