@gitmyabi/coinbasesmartwallet 1.0.71 → 1.0.72

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 **CoinbaseSmartWallet**
4
4
 
5
- - **Build ID**: `etherscan-coinbasesmartwallet-7c79bf8e-1793689236002`
5
+ - **Build ID**: `etherscan-coinbasesmartwallet-bdd78927-1793859262668`
6
6
  - **Build Number**: 1
7
- - **Commit**: `abde938`
7
+ - **Commit**: `415efbb`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **CoinbaseSmartWallet**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/coinbasesmartwallet@1.0.71
15
+ npm install @gitmyabi/coinbasesmartwallet@1.0.72
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
@@ -24,11 +24,11 @@ export type UserOperation = {
24
24
  signature: `0x${string}`;
25
25
  };
26
26
  /**
27
- * CoinbaseSmartWallet_json ABI
27
+ * CoinbaseSmartWallet ABI
28
28
  *
29
29
  * This ABI is typed using viem's type system for full type safety.
30
30
  */
31
- export declare const CoinbaseSmartWallet_jsonAbi: readonly [{
31
+ export declare const CoinbaseSmartWalletAbi: readonly [{
32
32
  readonly inputs: readonly [];
33
33
  readonly stateMutability: "nonpayable";
34
34
  readonly type: "constructor";
@@ -52,6 +52,14 @@ export declare const CoinbaseSmartWallet_jsonAbi: readonly [{
52
52
  }];
53
53
  readonly name: "InvalidEthereumAddressOwner";
54
54
  readonly type: "error";
55
+ }, {
56
+ readonly inputs: readonly [{
57
+ readonly internalType: "address";
58
+ readonly name: "implementation";
59
+ readonly type: "address";
60
+ }];
61
+ readonly name: "InvalidImplementation";
62
+ readonly type: "error";
55
63
  }, {
56
64
  readonly inputs: readonly [{
57
65
  readonly internalType: "uint256";
@@ -645,15 +653,15 @@ export declare const CoinbaseSmartWallet_jsonAbi: readonly [{
645
653
  readonly type: "receive";
646
654
  }];
647
655
  /**
648
- * Type-safe ABI for CoinbaseSmartWallet_json
656
+ * Type-safe ABI for CoinbaseSmartWallet
649
657
  */
650
- export type CoinbaseSmartWallet_jsonAbi = typeof CoinbaseSmartWallet_jsonAbi;
658
+ export type CoinbaseSmartWalletAbi = typeof CoinbaseSmartWalletAbi;
651
659
  /**
652
- * Contract instance type for CoinbaseSmartWallet_json
660
+ * Contract instance type for CoinbaseSmartWallet
653
661
  */
654
- export type CoinbaseSmartWallet_jsonContract = any;
662
+ export type CoinbaseSmartWalletContract = any;
655
663
  /**
656
- * CoinbaseSmartWallet_json Contract Class
664
+ * CoinbaseSmartWallet Contract Class
657
665
  *
658
666
  * Provides a class-based API similar to TypeChain for interacting with the contract.
659
667
  *
@@ -661,12 +669,12 @@ export type CoinbaseSmartWallet_jsonContract = any;
661
669
  * ```typescript
662
670
  * import { createPublicClient, createWalletClient, http } from 'viem';
663
671
  * import { mainnet } from 'viem/chains';
664
- * import { CoinbaseSmartWallet_json } from 'CoinbaseSmartWallet_json';
672
+ * import { CoinbaseSmartWallet } from 'CoinbaseSmartWallet';
665
673
  *
666
674
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
667
675
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
668
676
  *
669
- * const contract = new CoinbaseSmartWallet_json('0x...', { publicClient, walletClient });
677
+ * const contract = new CoinbaseSmartWallet('0x...', { publicClient, walletClient });
670
678
  *
671
679
  * // Read functions
672
680
  * const result = await contract.balanceOf('0x...');
@@ -684,7 +692,7 @@ export type CoinbaseSmartWallet_jsonContract = any;
684
692
  * });
685
693
  * ```
686
694
  */
687
- export declare class CoinbaseSmartWallet_json {
695
+ export declare class CoinbaseSmartWallet {
688
696
  private contract;
689
697
  private contractAddress;
690
698
  private publicClient;
@@ -697,9 +705,9 @@ export declare class CoinbaseSmartWallet_json {
697
705
  */
698
706
  get address(): Address;
699
707
  /**
700
- * Get the underlying viem contract instance
708
+ * Get the underlying viem contract instance.
701
709
  */
702
- getContract(): CoinbaseSmartWallet_jsonContract;
710
+ getContract(): CoinbaseSmartWalletContract;
703
711
  /**
704
712
  * REPLAYABLE_NONCE_KEY
705
713
  * view
@@ -1158,7 +1166,7 @@ export declare class CoinbaseSmartWallet_json {
1158
1166
  index: bigint;
1159
1167
  owner: `0x${string}`;
1160
1168
  }) => void, filter?: {
1161
- index: bigint;
1169
+ index?: bigint | bigint[] | null;
1162
1170
  }) => () => void;
1163
1171
  /**
1164
1172
  * Watch RemoveOwner events
@@ -1170,7 +1178,7 @@ export declare class CoinbaseSmartWallet_json {
1170
1178
  index: bigint;
1171
1179
  owner: `0x${string}`;
1172
1180
  }) => void, filter?: {
1173
- index: bigint;
1181
+ index?: bigint | bigint[] | null;
1174
1182
  }) => () => void;
1175
1183
  /**
1176
1184
  * Watch Upgraded events
@@ -1181,7 +1189,7 @@ export declare class CoinbaseSmartWallet_json {
1181
1189
  Upgraded: (callback: (event: {
1182
1190
  implementation: `0x${string}`;
1183
1191
  }) => void, filter?: {
1184
- implementation: `0x${string}`;
1192
+ implementation?: `0x${string}` | `0x${string}`[] | null;
1185
1193
  }) => () => void;
1186
1194
  };
1187
1195
  }
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoinbaseSmartWallet_json = exports.CoinbaseSmartWallet_jsonAbi = void 0;
3
+ exports.CoinbaseSmartWallet = exports.CoinbaseSmartWalletAbi = void 0;
4
4
  const viem_1 = require("viem");
5
5
  /**
6
- * CoinbaseSmartWallet_json ABI
6
+ * CoinbaseSmartWallet ABI
7
7
  *
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
- exports.CoinbaseSmartWallet_jsonAbi = [
10
+ exports.CoinbaseSmartWalletAbi = [
11
11
  {
12
12
  "inputs": [],
13
13
  "stateMutability": "nonpayable",
@@ -40,6 +40,17 @@ exports.CoinbaseSmartWallet_jsonAbi = [
40
40
  "name": "InvalidEthereumAddressOwner",
41
41
  "type": "error"
42
42
  },
43
+ {
44
+ "inputs": [
45
+ {
46
+ "internalType": "address",
47
+ "name": "implementation",
48
+ "type": "address"
49
+ }
50
+ ],
51
+ "name": "InvalidImplementation",
52
+ "type": "error"
53
+ },
43
54
  {
44
55
  "inputs": [
45
56
  {
@@ -813,7 +824,7 @@ exports.CoinbaseSmartWallet_jsonAbi = [
813
824
  }
814
825
  ];
815
826
  /**
816
- * CoinbaseSmartWallet_json Contract Class
827
+ * CoinbaseSmartWallet Contract Class
817
828
  *
818
829
  * Provides a class-based API similar to TypeChain for interacting with the contract.
819
830
  *
@@ -821,12 +832,12 @@ exports.CoinbaseSmartWallet_jsonAbi = [
821
832
  * ```typescript
822
833
  * import { createPublicClient, createWalletClient, http } from 'viem';
823
834
  * import { mainnet } from 'viem/chains';
824
- * import { CoinbaseSmartWallet_json } from 'CoinbaseSmartWallet_json';
835
+ * import { CoinbaseSmartWallet } from 'CoinbaseSmartWallet';
825
836
  *
826
837
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
827
838
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
828
839
  *
829
- * const contract = new CoinbaseSmartWallet_json('0x...', { publicClient, walletClient });
840
+ * const contract = new CoinbaseSmartWallet('0x...', { publicClient, walletClient });
830
841
  *
831
842
  * // Read functions
832
843
  * const result = await contract.balanceOf('0x...');
@@ -844,13 +855,13 @@ exports.CoinbaseSmartWallet_jsonAbi = [
844
855
  * });
845
856
  * ```
846
857
  */
847
- class CoinbaseSmartWallet_json {
858
+ class CoinbaseSmartWallet {
848
859
  constructor(address, clients) {
849
860
  this.contractAddress = address;
850
861
  this.publicClient = clients.publicClient;
851
862
  this.contract = (0, viem_1.getContract)({
852
863
  address,
853
- abi: exports.CoinbaseSmartWallet_jsonAbi,
864
+ abi: exports.CoinbaseSmartWalletAbi,
854
865
  client: {
855
866
  public: clients.publicClient,
856
867
  wallet: clients.walletClient,
@@ -864,7 +875,7 @@ class CoinbaseSmartWallet_json {
864
875
  return this.contractAddress;
865
876
  }
866
877
  /**
867
- * Get the underlying viem contract instance
878
+ * Get the underlying viem contract instance.
868
879
  */
869
880
  getContract() {
870
881
  return this.contract;
@@ -1217,7 +1228,7 @@ class CoinbaseSmartWallet_json {
1217
1228
  AddOwner: (callback, filter) => {
1218
1229
  return this.publicClient.watchContractEvent({
1219
1230
  address: this.contractAddress,
1220
- abi: exports.CoinbaseSmartWallet_jsonAbi,
1231
+ abi: exports.CoinbaseSmartWalletAbi,
1221
1232
  eventName: 'AddOwner',
1222
1233
  args: filter,
1223
1234
  onLogs: (logs) => {
@@ -1236,7 +1247,7 @@ class CoinbaseSmartWallet_json {
1236
1247
  RemoveOwner: (callback, filter) => {
1237
1248
  return this.publicClient.watchContractEvent({
1238
1249
  address: this.contractAddress,
1239
- abi: exports.CoinbaseSmartWallet_jsonAbi,
1250
+ abi: exports.CoinbaseSmartWalletAbi,
1240
1251
  eventName: 'RemoveOwner',
1241
1252
  args: filter,
1242
1253
  onLogs: (logs) => {
@@ -1255,7 +1266,7 @@ class CoinbaseSmartWallet_json {
1255
1266
  Upgraded: (callback, filter) => {
1256
1267
  return this.publicClient.watchContractEvent({
1257
1268
  address: this.contractAddress,
1258
- abi: exports.CoinbaseSmartWallet_jsonAbi,
1269
+ abi: exports.CoinbaseSmartWalletAbi,
1259
1270
  eventName: 'Upgraded',
1260
1271
  args: filter,
1261
1272
  onLogs: (logs) => {
@@ -1268,4 +1279,4 @@ class CoinbaseSmartWallet_json {
1268
1279
  };
1269
1280
  }
1270
1281
  }
1271
- exports.CoinbaseSmartWallet_json = CoinbaseSmartWallet_json;
1282
+ exports.CoinbaseSmartWallet = CoinbaseSmartWallet;
@@ -28,11 +28,11 @@ export type UserOperation = {
28
28
  signature: `0x${string}`;
29
29
  };
30
30
  /**
31
- * CoinbaseSmartWallet_json ABI
31
+ * CoinbaseSmartWallet ABI
32
32
  *
33
33
  * This ABI is typed using viem's type system for full type safety.
34
34
  */
35
- export const CoinbaseSmartWallet_jsonAbi = [
35
+ export const CoinbaseSmartWalletAbi = [
36
36
  {
37
37
  "inputs": [],
38
38
  "stateMutability": "nonpayable",
@@ -65,6 +65,17 @@ export const CoinbaseSmartWallet_jsonAbi = [
65
65
  "name": "InvalidEthereumAddressOwner",
66
66
  "type": "error"
67
67
  },
68
+ {
69
+ "inputs": [
70
+ {
71
+ "internalType": "address",
72
+ "name": "implementation",
73
+ "type": "address"
74
+ }
75
+ ],
76
+ "name": "InvalidImplementation",
77
+ "type": "error"
78
+ },
68
79
  {
69
80
  "inputs": [
70
81
  {
@@ -839,19 +850,19 @@ export const CoinbaseSmartWallet_jsonAbi = [
839
850
  ] as const satisfies Abi;
840
851
 
841
852
  /**
842
- * Type-safe ABI for CoinbaseSmartWallet_json
853
+ * Type-safe ABI for CoinbaseSmartWallet
843
854
  */
844
- export type CoinbaseSmartWallet_jsonAbi = typeof CoinbaseSmartWallet_jsonAbi;
855
+ export type CoinbaseSmartWalletAbi = typeof CoinbaseSmartWalletAbi;
845
856
 
846
857
  /**
847
- * Contract instance type for CoinbaseSmartWallet_json
858
+ * Contract instance type for CoinbaseSmartWallet
848
859
  */
849
860
  // Use any for contract type to avoid complex viem type issues
850
861
  // The runtime behavior is type-safe through viem's ABI typing
851
- export type CoinbaseSmartWallet_jsonContract = any;
862
+ export type CoinbaseSmartWalletContract = any;
852
863
 
853
864
  /**
854
- * CoinbaseSmartWallet_json Contract Class
865
+ * CoinbaseSmartWallet Contract Class
855
866
  *
856
867
  * Provides a class-based API similar to TypeChain for interacting with the contract.
857
868
  *
@@ -859,12 +870,12 @@ export type CoinbaseSmartWallet_jsonContract = any;
859
870
  * ```typescript
860
871
  * import { createPublicClient, createWalletClient, http } from 'viem';
861
872
  * import { mainnet } from 'viem/chains';
862
- * import { CoinbaseSmartWallet_json } from 'CoinbaseSmartWallet_json';
873
+ * import { CoinbaseSmartWallet } from 'CoinbaseSmartWallet';
863
874
  *
864
875
  * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
865
876
  * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
866
877
  *
867
- * const contract = new CoinbaseSmartWallet_json('0x...', { publicClient, walletClient });
878
+ * const contract = new CoinbaseSmartWallet('0x...', { publicClient, walletClient });
868
879
  *
869
880
  * // Read functions
870
881
  * const result = await contract.balanceOf('0x...');
@@ -882,8 +893,8 @@ export type CoinbaseSmartWallet_jsonContract = any;
882
893
  * });
883
894
  * ```
884
895
  */
885
- export class CoinbaseSmartWallet_json {
886
- private contract: CoinbaseSmartWallet_jsonContract;
896
+ export class CoinbaseSmartWallet {
897
+ private contract: CoinbaseSmartWalletContract;
887
898
  private contractAddress: Address;
888
899
  private publicClient: PublicClient;
889
900
 
@@ -898,7 +909,7 @@ export class CoinbaseSmartWallet_json {
898
909
  this.publicClient = clients.publicClient;
899
910
  this.contract = getContract({
900
911
  address,
901
- abi: CoinbaseSmartWallet_jsonAbi,
912
+ abi: CoinbaseSmartWalletAbi,
902
913
  client: {
903
914
  public: clients.publicClient,
904
915
  wallet: clients.walletClient,
@@ -914,9 +925,9 @@ export class CoinbaseSmartWallet_json {
914
925
  }
915
926
 
916
927
  /**
917
- * Get the underlying viem contract instance
928
+ * Get the underlying viem contract instance.
918
929
  */
919
- getContract(): CoinbaseSmartWallet_jsonContract {
930
+ getContract(): CoinbaseSmartWalletContract {
920
931
  return this.contract;
921
932
  }
922
933
 
@@ -1515,12 +1526,12 @@ export class CoinbaseSmartWallet_json {
1515
1526
  * @param filter Optional filter for indexed parameters
1516
1527
  * @returns Unwatch function to stop listening
1517
1528
  */
1518
- AddOwner: (callback: (event: { index: bigint; owner: `0x${string}` }) => void, filter?: { index: bigint }) => {
1529
+ AddOwner: (callback: (event: { index: bigint; owner: `0x${string}` }) => void, filter?: { index?: bigint | bigint[] | null }) => {
1519
1530
  return this.publicClient.watchContractEvent({
1520
1531
  address: this.contractAddress,
1521
- abi: CoinbaseSmartWallet_jsonAbi,
1532
+ abi: CoinbaseSmartWalletAbi,
1522
1533
  eventName: 'AddOwner',
1523
- args: filter,
1534
+ args: filter as any,
1524
1535
  onLogs: (logs: any[]) => {
1525
1536
  logs.forEach((log: any) => {
1526
1537
  callback(log.args as any);
@@ -1534,12 +1545,12 @@ export class CoinbaseSmartWallet_json {
1534
1545
  * @param filter Optional filter for indexed parameters
1535
1546
  * @returns Unwatch function to stop listening
1536
1547
  */
1537
- RemoveOwner: (callback: (event: { index: bigint; owner: `0x${string}` }) => void, filter?: { index: bigint }) => {
1548
+ RemoveOwner: (callback: (event: { index: bigint; owner: `0x${string}` }) => void, filter?: { index?: bigint | bigint[] | null }) => {
1538
1549
  return this.publicClient.watchContractEvent({
1539
1550
  address: this.contractAddress,
1540
- abi: CoinbaseSmartWallet_jsonAbi,
1551
+ abi: CoinbaseSmartWalletAbi,
1541
1552
  eventName: 'RemoveOwner',
1542
- args: filter,
1553
+ args: filter as any,
1543
1554
  onLogs: (logs: any[]) => {
1544
1555
  logs.forEach((log: any) => {
1545
1556
  callback(log.args as any);
@@ -1553,12 +1564,12 @@ export class CoinbaseSmartWallet_json {
1553
1564
  * @param filter Optional filter for indexed parameters
1554
1565
  * @returns Unwatch function to stop listening
1555
1566
  */
1556
- Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation: `0x${string}` }) => {
1567
+ Upgraded: (callback: (event: { implementation: `0x${string}` }) => void, filter?: { implementation?: `0x${string}` | `0x${string}`[] | null }) => {
1557
1568
  return this.publicClient.watchContractEvent({
1558
1569
  address: this.contractAddress,
1559
- abi: CoinbaseSmartWallet_jsonAbi,
1570
+ abi: CoinbaseSmartWalletAbi,
1560
1571
  eventName: 'Upgraded',
1561
- args: filter,
1572
+ args: filter as any,
1562
1573
  onLogs: (logs: any[]) => {
1563
1574
  logs.forEach((log: any) => {
1564
1575
  callback(log.args as any);
@@ -1,2 +1,2 @@
1
- export { CoinbaseSmartWallet_jsonAbi, CoinbaseSmartWallet_json } from './CoinbaseSmartWallet_json';
2
- export type { CoinbaseSmartWallet_jsonAbi as CoinbaseSmartWallet_jsonAbiType, CoinbaseSmartWallet_jsonContract } from './CoinbaseSmartWallet_json';
1
+ export { CoinbaseSmartWalletAbi, CoinbaseSmartWallet } from './CoinbaseSmartWallet';
2
+ export type { CoinbaseSmartWalletAbi as CoinbaseSmartWalletAbiType, CoinbaseSmartWalletContract } from './CoinbaseSmartWallet';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CoinbaseSmartWallet_json = exports.CoinbaseSmartWallet_jsonAbi = void 0;
3
+ exports.CoinbaseSmartWallet = exports.CoinbaseSmartWalletAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var CoinbaseSmartWallet_json_1 = require("./CoinbaseSmartWallet_json");
6
- Object.defineProperty(exports, "CoinbaseSmartWallet_jsonAbi", { enumerable: true, get: function () { return CoinbaseSmartWallet_json_1.CoinbaseSmartWallet_jsonAbi; } });
7
- Object.defineProperty(exports, "CoinbaseSmartWallet_json", { enumerable: true, get: function () { return CoinbaseSmartWallet_json_1.CoinbaseSmartWallet_json; } });
5
+ var CoinbaseSmartWallet_1 = require("./CoinbaseSmartWallet");
6
+ Object.defineProperty(exports, "CoinbaseSmartWalletAbi", { enumerable: true, get: function () { return CoinbaseSmartWallet_1.CoinbaseSmartWalletAbi; } });
7
+ Object.defineProperty(exports, "CoinbaseSmartWallet", { enumerable: true, get: function () { return CoinbaseSmartWallet_1.CoinbaseSmartWallet; } });
@@ -1,3 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { CoinbaseSmartWallet_jsonAbi, CoinbaseSmartWallet_json } from './CoinbaseSmartWallet_json';
3
- export type { CoinbaseSmartWallet_jsonAbi as CoinbaseSmartWallet_jsonAbiType, CoinbaseSmartWallet_jsonContract } from './CoinbaseSmartWallet_json';
2
+ export { CoinbaseSmartWalletAbi, CoinbaseSmartWallet } from './CoinbaseSmartWallet';
3
+ export type { CoinbaseSmartWalletAbi as CoinbaseSmartWalletAbiType, CoinbaseSmartWalletContract } from './CoinbaseSmartWallet';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/coinbasesmartwallet",
3
- "version": "1.0.71",
4
- "description": "Auto-generated TypeScript type bindings for CoinbaseSmartWallet (build etherscan-coinbasesmartwallet-7c79bf8e-1793689236002, commit abde938, branch etherscan)",
3
+ "version": "1.0.72",
4
+ "description": "Auto-generated TypeScript type bindings for CoinbaseSmartWallet (build etherscan-coinbasesmartwallet-bdd78927-1793859262668, commit 415efbb, 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/coinbasesmartwallet"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "abde938"
42
+ "shortHash": "415efbb"
43
43
  }