@gitmyabi/instaaccountv2 1.0.3 → 1.0.5

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 **InstaAccountV2**
4
4
 
5
- - **Build ID**: `etherscan-instaaccountv2-8daac37d-1791361103695`
5
+ - **Build ID**: `etherscan-instaaccountv2-52a871f8-1795654156569`
6
6
  - **Build Number**: 1
7
- - **Commit**: `1bcabfb`
7
+ - **Commit**: `73a1a2c`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **InstaAccountV2**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/instaaccountv2@1.0.3
15
+ npm install @gitmyabi/instaaccountv2@1.0.5
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -105,4 +105,4 @@ This package includes type bindings for 1 contract(s) generated from ABI artifac
105
105
 
106
106
  ## License
107
107
 
108
- MIT
108
+ Apache License 2.0
@@ -1,10 +1,10 @@
1
1
  import type { Address, PublicClient, WalletClient } from 'viem';
2
2
  /**
3
- * InstaAccountV2_json ABI
3
+ * InstaAccountV2 ABI
4
4
  *
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
- export declare const InstaAccountV2_jsonAbi: readonly [{
7
+ export declare const InstaAccountV2Abi: readonly [{
8
8
  readonly inputs: readonly [{
9
9
  readonly internalType: "address";
10
10
  readonly name: "_implementations";
@@ -30,15 +30,15 @@ export declare const InstaAccountV2_jsonAbi: readonly [{
30
30
  readonly type: "receive";
31
31
  }];
32
32
  /**
33
- * Type-safe ABI for InstaAccountV2_json
33
+ * Type-safe ABI for InstaAccountV2
34
34
  */
35
- export type InstaAccountV2_jsonAbi = typeof InstaAccountV2_jsonAbi;
35
+ export type InstaAccountV2Abi = typeof InstaAccountV2Abi;
36
36
  /**
37
- * Contract instance type for InstaAccountV2_json
37
+ * Contract instance type for InstaAccountV2
38
38
  */
39
- export type InstaAccountV2_jsonContract = any;
39
+ export type InstaAccountV2Contract = any;
40
40
  /**
41
- * InstaAccountV2_json Contract Class
41
+ * InstaAccountV2 Contract Class
42
42
  *
43
43
  * Provides a class-based API similar to TypeChain for interacting with the contract.
44
44
  *
@@ -46,12 +46,12 @@ export type InstaAccountV2_jsonContract = any;
46
46
  * ```typescript
47
47
  * import { createPublicClient, createWalletClient, http } from 'viem';
48
48
  * import { mainnet } from 'viem/chains';
49
- * import { InstaAccountV2_json } from 'InstaAccountV2_json';
49
+ * import { InstaAccountV2 } from 'InstaAccountV2';
50
50
  *
51
51
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
52
52
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
53
53
  *
54
- * const contract = new InstaAccountV2_json('0x...', { publicClient, walletClient });
54
+ * const contract = new InstaAccountV2('0x...', { publicClient, walletClient });
55
55
  *
56
56
  * // Read functions
57
57
  * const result = await contract.balanceOf('0x...');
@@ -69,7 +69,7 @@ export type InstaAccountV2_jsonContract = any;
69
69
  * });
70
70
  * ```
71
71
  */
72
- export declare class InstaAccountV2_json {
72
+ export declare class InstaAccountV2 {
73
73
  private contract;
74
74
  private contractAddress;
75
75
  private publicClient;
@@ -82,9 +82,9 @@ export declare class InstaAccountV2_json {
82
82
  */
83
83
  get address(): Address;
84
84
  /**
85
- * Get the underlying viem contract instance
85
+ * Get the underlying viem contract instance.
86
86
  */
87
- getContract(): InstaAccountV2_jsonContract;
87
+ getContract(): InstaAccountV2Contract;
88
88
  /**
89
89
  * implementations
90
90
  * view
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstaAccountV2_json = exports.InstaAccountV2_jsonAbi = void 0;
3
+ exports.InstaAccountV2 = exports.InstaAccountV2Abi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * InstaAccountV2_json ABI
6
+ * InstaAccountV2 ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.InstaAccountV2_jsonAbi = [
10
+ exports.InstaAccountV2Abi = [
11
11
  {
12
12
  "inputs": [
13
13
  {
@@ -42,7 +42,7 @@ exports.InstaAccountV2_jsonAbi = [
42
42
  }
43
43
  ];
44
44
  /**
45
- * InstaAccountV2_json Contract Class
45
+ * InstaAccountV2 Contract Class
46
46
  *
47
47
  * Provides a class-based API similar to TypeChain for interacting with the contract.
48
48
  *
@@ -50,12 +50,12 @@ exports.InstaAccountV2_jsonAbi = [
50
50
  * ```typescript
51
51
  * import { createPublicClient, createWalletClient, http } from 'viem';
52
52
  * import { mainnet } from 'viem/chains';
53
- * import { InstaAccountV2_json } from 'InstaAccountV2_json';
53
+ * import { InstaAccountV2 } from 'InstaAccountV2';
54
54
  *
55
55
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
56
56
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
57
57
  *
58
- * const contract = new InstaAccountV2_json('0x...', { publicClient, walletClient });
58
+ * const contract = new InstaAccountV2('0x...', { publicClient, walletClient });
59
59
  *
60
60
  * // Read functions
61
61
  * const result = await contract.balanceOf('0x...');
@@ -73,13 +73,13 @@ exports.InstaAccountV2_jsonAbi = [
73
73
  * });
74
74
  * ```
75
75
  */
76
- class InstaAccountV2_json {
76
+ class InstaAccountV2 {
77
77
  constructor(address, clients) {
78
78
  this.contractAddress = address;
79
79
  this.publicClient = clients.publicClient;
80
80
  this.contract = (0, viem_1.getContract)({
81
81
  address,
82
- abi: exports.InstaAccountV2_jsonAbi,
82
+ abi: exports.InstaAccountV2Abi,
83
83
  client: {
84
84
  public: clients.publicClient,
85
85
  wallet: clients.walletClient,
@@ -93,7 +93,7 @@ class InstaAccountV2_json {
93
93
  return this.contractAddress;
94
94
  }
95
95
  /**
96
- * Get the underlying viem contract instance
96
+ * Get the underlying viem contract instance.
97
97
  */
98
98
  getContract() {
99
99
  return this.contract;
@@ -123,4 +123,4 @@ class InstaAccountV2_json {
123
123
  return {};
124
124
  }
125
125
  }
126
- exports.InstaAccountV2_json = InstaAccountV2_json;
126
+ exports.InstaAccountV2 = InstaAccountV2;
@@ -2,11 +2,11 @@ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType }
2
2
  import { getContract } from 'viem';
3
3
 
4
4
  /**
5
- * InstaAccountV2_json ABI
5
+ * InstaAccountV2 ABI
6
6
  *
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
- export const InstaAccountV2_jsonAbi = [
9
+ export const InstaAccountV2Abi = [
10
10
  {
11
11
  "inputs": [
12
12
  {
@@ -42,19 +42,19 @@ export const InstaAccountV2_jsonAbi = [
42
42
  ] as const satisfies Abi;
43
43
 
44
44
  /**
45
- * Type-safe ABI for InstaAccountV2_json
45
+ * Type-safe ABI for InstaAccountV2
46
46
  */
47
- export type InstaAccountV2_jsonAbi = typeof InstaAccountV2_jsonAbi;
47
+ export type InstaAccountV2Abi = typeof InstaAccountV2Abi;
48
48
 
49
49
  /**
50
- * Contract instance type for InstaAccountV2_json
50
+ * Contract instance type for InstaAccountV2
51
51
  */
52
52
  // Use any for contract type to avoid complex viem type issues
53
53
  // The runtime behavior is type-safe through viem's ABI typing
54
- export type InstaAccountV2_jsonContract = any;
54
+ export type InstaAccountV2Contract = any;
55
55
 
56
56
  /**
57
- * InstaAccountV2_json Contract Class
57
+ * InstaAccountV2 Contract Class
58
58
  *
59
59
  * Provides a class-based API similar to TypeChain for interacting with the contract.
60
60
  *
@@ -62,12 +62,12 @@ export type InstaAccountV2_jsonContract = any;
62
62
  * ```typescript
63
63
  * import { createPublicClient, createWalletClient, http } from 'viem';
64
64
  * import { mainnet } from 'viem/chains';
65
- * import { InstaAccountV2_json } from 'InstaAccountV2_json';
65
+ * import { InstaAccountV2 } from 'InstaAccountV2';
66
66
  *
67
67
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
68
68
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
69
69
  *
70
- * const contract = new InstaAccountV2_json('0x...', { publicClient, walletClient });
70
+ * const contract = new InstaAccountV2('0x...', { publicClient, walletClient });
71
71
  *
72
72
  * // Read functions
73
73
  * const result = await contract.balanceOf('0x...');
@@ -85,8 +85,8 @@ export type InstaAccountV2_jsonContract = any;
85
85
  * });
86
86
  * ```
87
87
  */
88
- export class InstaAccountV2_json {
89
- private contract: InstaAccountV2_jsonContract;
88
+ export class InstaAccountV2 {
89
+ private contract: InstaAccountV2Contract;
90
90
  private contractAddress: Address;
91
91
  private publicClient: PublicClient;
92
92
 
@@ -101,7 +101,7 @@ export class InstaAccountV2_json {
101
101
  this.publicClient = clients.publicClient;
102
102
  this.contract = getContract({
103
103
  address,
104
- abi: InstaAccountV2_jsonAbi,
104
+ abi: InstaAccountV2Abi,
105
105
  client: {
106
106
  public: clients.publicClient,
107
107
  wallet: clients.walletClient,
@@ -117,9 +117,9 @@ export class InstaAccountV2_json {
117
117
  }
118
118
 
119
119
  /**
120
- * Get the underlying viem contract instance
120
+ * Get the underlying viem contract instance.
121
121
  */
122
- getContract(): InstaAccountV2_jsonContract {
122
+ getContract(): InstaAccountV2Contract {
123
123
  return this.contract;
124
124
  }
125
125
 
@@ -1,2 +1,2 @@
1
- export { InstaAccountV2_jsonAbi, InstaAccountV2_json } from './InstaAccountV2_json';
2
- export type { InstaAccountV2_jsonAbi as InstaAccountV2_jsonAbiType, InstaAccountV2_jsonContract } from './InstaAccountV2_json';
1
+ export { InstaAccountV2Abi, InstaAccountV2 } from './InstaAccountV2';
2
+ export type { InstaAccountV2Abi as InstaAccountV2AbiType, InstaAccountV2Contract } from './InstaAccountV2';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InstaAccountV2_json = exports.InstaAccountV2_jsonAbi = void 0;
3
+ exports.InstaAccountV2 = exports.InstaAccountV2Abi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var InstaAccountV2_json_1 = require("./InstaAccountV2_json");
6
- Object.defineProperty(exports, "InstaAccountV2_jsonAbi", { enumerable: true, get: function () { return InstaAccountV2_json_1.InstaAccountV2_jsonAbi; } });
7
- Object.defineProperty(exports, "InstaAccountV2_json", { enumerable: true, get: function () { return InstaAccountV2_json_1.InstaAccountV2_json; } });
5
+ var InstaAccountV2_1 = require("./InstaAccountV2");
6
+ Object.defineProperty(exports, "InstaAccountV2Abi", { enumerable: true, get: function () { return InstaAccountV2_1.InstaAccountV2Abi; } });
7
+ Object.defineProperty(exports, "InstaAccountV2", { enumerable: true, get: function () { return InstaAccountV2_1.InstaAccountV2; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { InstaAccountV2_jsonAbi, InstaAccountV2_json } from './InstaAccountV2_json';
3
- export type { InstaAccountV2_jsonAbi as InstaAccountV2_jsonAbiType, InstaAccountV2_jsonContract } from './InstaAccountV2_json';
2
+ export { InstaAccountV2Abi, InstaAccountV2 } from './InstaAccountV2';
3
+ export type { InstaAccountV2Abi as InstaAccountV2AbiType, InstaAccountV2Contract } from './InstaAccountV2';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/instaaccountv2",
3
- "version": "1.0.3",
4
- "description": "Auto-generated TypeScript type bindings for InstaAccountV2 (build etherscan-instaaccountv2-8daac37d-1791361103695, commit 1bcabfb, branch etherscan)",
3
+ "version": "1.0.5",
4
+ "description": "Auto-generated TypeScript type bindings for InstaAccountV2 (build etherscan-instaaccountv2-52a871f8-1795654156569, commit 73a1a2c, branch etherscan)",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
7
7
  "exports": {
@@ -30,7 +30,7 @@
30
30
  "abi",
31
31
  "ethers-v6"
32
32
  ],
33
- "license": "MIT",
33
+ "license": "Apache-2.0",
34
34
  "dependencies": {
35
35
  "viem": "^2.0.0"
36
36
  },
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/etherscan/instaaccountv2"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "1bcabfb"
42
+ "shortHash": "73a1a2c"
43
43
  }