@gitmyabi/ownbitmultisig 1.0.0

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 ADDED
@@ -0,0 +1,108 @@
1
+ # @gitmyabi/ownbitmultisig
2
+
3
+ Auto-generated TypeScript type bindings for **OwnbitMultiSig**
4
+
5
+ - **Build ID**: `etherscan-ownbitmultisig-d54b17bf-1789478578514`
6
+ - **Build Number**: 1
7
+ - **Commit**: `8c50d7a`
8
+ - **Branch**: `etherscan`
9
+ - **Target**: `ethers-v6`
10
+ - **Contracts**: 1
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install @gitmyabi/ownbitmultisig@1.0.0
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ### Class-based API (TypeChain-like)
21
+
22
+ ```typescript
23
+ import { createPublicClient, createWalletClient, http } from 'viem';
24
+ import { mainnet } from 'viem/chains';
25
+ import { YourContract } from '@gitmyabi/ownbitmultisig';
26
+
27
+ const publicClient = createPublicClient({ chain: mainnet, transport: http() });
28
+ const walletClient = createWalletClient({ chain: mainnet, transport: http() });
29
+
30
+ // Create contract instance
31
+ const contract = new YourContract('0x...', { publicClient, walletClient });
32
+
33
+ // Read functions - call directly like TypeChain!
34
+ const result = await contract.yourMethod(param1, param2);
35
+
36
+ // Write functions - also call directly!
37
+ const hash = await contract.transfer('0x...', 1000n);
38
+ ```
39
+
40
+ ### With viem directly
41
+
42
+ ```typescript
43
+ import { createPublicClient, http } from 'viem';
44
+ import { mainnet } from 'viem/chains';
45
+ import { YourContractAbi } from '@gitmyabi/ownbitmultisig';
46
+
47
+ const client = createPublicClient({
48
+ chain: mainnet,
49
+ transport: http(),
50
+ });
51
+
52
+ // Fully typed contract read
53
+ const result = await client.readContract({
54
+ address: '0x...',
55
+ abi: YourContractAbi,
56
+ functionName: 'yourMethod',
57
+ args: [param1, param2],
58
+ });
59
+
60
+ // Fully typed contract write
61
+ const hash = await client.writeContract({
62
+ address: '0x...',
63
+ abi: YourContractAbi,
64
+ functionName: 'yourMethod',
65
+ args: [param1, param2],
66
+ });
67
+ ```
68
+
69
+ ### With wagmi
70
+
71
+ ```typescript
72
+ import { useReadContract, useWriteContract } from 'wagmi';
73
+ import { YourContractAbi } from '@gitmyabi/ownbitmultisig';
74
+
75
+ function MyComponent() {
76
+ const { data } = useReadContract({
77
+ address: '0x...',
78
+ abi: YourContractAbi,
79
+ functionName: 'yourMethod',
80
+ args: [param1, param2],
81
+ });
82
+
83
+ const { writeContract } = useWriteContract();
84
+
85
+ const handleWrite = () => {
86
+ writeContract({
87
+ address: '0x...',
88
+ abi: YourContractAbi,
89
+ functionName: 'yourMethod',
90
+ args: [param1, param2],
91
+ });
92
+ };
93
+
94
+ return <button onClick={handleWrite}>Call Contract</button>;
95
+ }
96
+ ```
97
+
98
+ ## Type Safety
99
+
100
+ This package provides full TypeScript type safety for all contract methods, events, and parameters using viem's type system. All ABIs are exported as `const` assertions for maximum type inference.
101
+
102
+ ## Generated Contracts
103
+
104
+ This package includes type bindings for 1 contract(s) generated from ABI artifacts.
105
+
106
+ ## License
107
+
108
+ MIT
@@ -0,0 +1,106 @@
1
+ import type { Address, PublicClient, WalletClient } from 'viem';
2
+ /**
3
+ * OwnbitMultiSigProxy_json ABI
4
+ *
5
+ * This ABI is typed using viem's type system for full type safety.
6
+ */
7
+ export declare const OwnbitMultiSigProxy_jsonAbi: readonly [{
8
+ readonly inputs: readonly [{
9
+ readonly internalType: "address[]";
10
+ readonly name: "_owners";
11
+ readonly type: "address[]";
12
+ }, {
13
+ readonly internalType: "uint256";
14
+ readonly name: "_required";
15
+ readonly type: "uint256";
16
+ }];
17
+ readonly stateMutability: "nonpayable";
18
+ readonly type: "constructor";
19
+ }, {
20
+ readonly stateMutability: "payable";
21
+ readonly type: "fallback";
22
+ }, {
23
+ readonly inputs: readonly [];
24
+ readonly name: "implementation";
25
+ readonly outputs: readonly [{
26
+ readonly internalType: "address";
27
+ readonly name: "";
28
+ readonly type: "address";
29
+ }];
30
+ readonly stateMutability: "view";
31
+ readonly type: "function";
32
+ }];
33
+ /**
34
+ * Type-safe ABI for OwnbitMultiSigProxy_json
35
+ */
36
+ export type OwnbitMultiSigProxy_jsonAbi = typeof OwnbitMultiSigProxy_jsonAbi;
37
+ /**
38
+ * Contract instance type for OwnbitMultiSigProxy_json
39
+ */
40
+ export type OwnbitMultiSigProxy_jsonContract = any;
41
+ /**
42
+ * OwnbitMultiSigProxy_json Contract Class
43
+ *
44
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * import { createPublicClient, createWalletClient, http } from 'viem';
49
+ * import { mainnet } from 'viem/chains';
50
+ * import { OwnbitMultiSigProxy_json } from 'OwnbitMultiSigProxy_json';
51
+ *
52
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
53
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
54
+ *
55
+ * const contract = new OwnbitMultiSigProxy_json('0x...', { publicClient, walletClient });
56
+ *
57
+ * // Read functions
58
+ * const result = await contract.balanceOf('0x...');
59
+ *
60
+ * // Write functions
61
+ * const hash = await contract.transfer('0x...', 1000n);
62
+ *
63
+ * // Simulate transactions (dry-run)
64
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
65
+ * console.log('Gas estimate:', simulation.request.gas);
66
+ *
67
+ * // Watch events
68
+ * const unwatch = contract.watch.Transfer((event) => {
69
+ * console.log('Transfer event:', event);
70
+ * });
71
+ * ```
72
+ */
73
+ export declare class OwnbitMultiSigProxy_json {
74
+ private contract;
75
+ private contractAddress;
76
+ private publicClient;
77
+ constructor(address: Address, clients: {
78
+ publicClient: PublicClient;
79
+ walletClient?: WalletClient;
80
+ });
81
+ /**
82
+ * Get the contract address
83
+ */
84
+ get address(): Address;
85
+ /**
86
+ * Get the underlying viem contract instance
87
+ */
88
+ getContract(): OwnbitMultiSigProxy_jsonContract;
89
+ /**
90
+ * implementation
91
+ * view
92
+ */
93
+ implementation(): Promise<`0x${string}`>;
94
+ /**
95
+ * Simulate contract write operations (dry-run without sending transaction)
96
+ *
97
+ * Note: This contract has no write functions, so simulate returns an empty object.
98
+ */
99
+ get simulate(): {};
100
+ /**
101
+ * Watch contract events
102
+ *
103
+ * Note: This contract has no events, so watch returns an empty object.
104
+ */
105
+ get watch(): {};
106
+ }
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OwnbitMultiSigProxy_json = exports.OwnbitMultiSigProxy_jsonAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * OwnbitMultiSigProxy_json ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.OwnbitMultiSigProxy_jsonAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address[]",
15
+ "name": "_owners",
16
+ "type": "address[]"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "_required",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "stateMutability": "nonpayable",
25
+ "type": "constructor"
26
+ },
27
+ {
28
+ "stateMutability": "payable",
29
+ "type": "fallback"
30
+ },
31
+ {
32
+ "inputs": [],
33
+ "name": "implementation",
34
+ "outputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "",
38
+ "type": "address"
39
+ }
40
+ ],
41
+ "stateMutability": "view",
42
+ "type": "function"
43
+ }
44
+ ];
45
+ /**
46
+ * OwnbitMultiSigProxy_json Contract Class
47
+ *
48
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
49
+ *
50
+ * @example
51
+ * ```typescript
52
+ * import { createPublicClient, createWalletClient, http } from 'viem';
53
+ * import { mainnet } from 'viem/chains';
54
+ * import { OwnbitMultiSigProxy_json } from 'OwnbitMultiSigProxy_json';
55
+ *
56
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
57
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
58
+ *
59
+ * const contract = new OwnbitMultiSigProxy_json('0x...', { publicClient, walletClient });
60
+ *
61
+ * // Read functions
62
+ * const result = await contract.balanceOf('0x...');
63
+ *
64
+ * // Write functions
65
+ * const hash = await contract.transfer('0x...', 1000n);
66
+ *
67
+ * // Simulate transactions (dry-run)
68
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
69
+ * console.log('Gas estimate:', simulation.request.gas);
70
+ *
71
+ * // Watch events
72
+ * const unwatch = contract.watch.Transfer((event) => {
73
+ * console.log('Transfer event:', event);
74
+ * });
75
+ * ```
76
+ */
77
+ class OwnbitMultiSigProxy_json {
78
+ constructor(address, clients) {
79
+ this.contractAddress = address;
80
+ this.publicClient = clients.publicClient;
81
+ this.contract = (0, viem_1.getContract)({
82
+ address,
83
+ abi: exports.OwnbitMultiSigProxy_jsonAbi,
84
+ client: {
85
+ public: clients.publicClient,
86
+ wallet: clients.walletClient,
87
+ },
88
+ });
89
+ }
90
+ /**
91
+ * Get the contract address
92
+ */
93
+ get address() {
94
+ return this.contractAddress;
95
+ }
96
+ /**
97
+ * Get the underlying viem contract instance
98
+ */
99
+ getContract() {
100
+ return this.contract;
101
+ }
102
+ /**
103
+ * implementation
104
+ * view
105
+ */
106
+ async implementation() {
107
+ return this.contract.read.implementation();
108
+ }
109
+ // No write functions
110
+ /**
111
+ * Simulate contract write operations (dry-run without sending transaction)
112
+ *
113
+ * Note: This contract has no write functions, so simulate returns an empty object.
114
+ */
115
+ get simulate() {
116
+ return {};
117
+ }
118
+ /**
119
+ * Watch contract events
120
+ *
121
+ * Note: This contract has no events, so watch returns an empty object.
122
+ */
123
+ get watch() {
124
+ return {};
125
+ }
126
+ }
127
+ exports.OwnbitMultiSigProxy_json = OwnbitMultiSigProxy_json;
@@ -0,0 +1,156 @@
1
+ import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
2
+ import { getContract } from 'viem';
3
+
4
+ /**
5
+ * OwnbitMultiSigProxy_json ABI
6
+ *
7
+ * This ABI is typed using viem's type system for full type safety.
8
+ */
9
+ export const OwnbitMultiSigProxy_jsonAbi = [
10
+ {
11
+ "inputs": [
12
+ {
13
+ "internalType": "address[]",
14
+ "name": "_owners",
15
+ "type": "address[]"
16
+ },
17
+ {
18
+ "internalType": "uint256",
19
+ "name": "_required",
20
+ "type": "uint256"
21
+ }
22
+ ],
23
+ "stateMutability": "nonpayable",
24
+ "type": "constructor"
25
+ },
26
+ {
27
+ "stateMutability": "payable",
28
+ "type": "fallback"
29
+ },
30
+ {
31
+ "inputs": [],
32
+ "name": "implementation",
33
+ "outputs": [
34
+ {
35
+ "internalType": "address",
36
+ "name": "",
37
+ "type": "address"
38
+ }
39
+ ],
40
+ "stateMutability": "view",
41
+ "type": "function"
42
+ }
43
+ ] as const satisfies Abi;
44
+
45
+ /**
46
+ * Type-safe ABI for OwnbitMultiSigProxy_json
47
+ */
48
+ export type OwnbitMultiSigProxy_jsonAbi = typeof OwnbitMultiSigProxy_jsonAbi;
49
+
50
+ /**
51
+ * Contract instance type for OwnbitMultiSigProxy_json
52
+ */
53
+ // Use any for contract type to avoid complex viem type issues
54
+ // The runtime behavior is type-safe through viem's ABI typing
55
+ export type OwnbitMultiSigProxy_jsonContract = any;
56
+
57
+ /**
58
+ * OwnbitMultiSigProxy_json Contract Class
59
+ *
60
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
61
+ *
62
+ * @example
63
+ * ```typescript
64
+ * import { createPublicClient, createWalletClient, http } from 'viem';
65
+ * import { mainnet } from 'viem/chains';
66
+ * import { OwnbitMultiSigProxy_json } from 'OwnbitMultiSigProxy_json';
67
+ *
68
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
69
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
70
+ *
71
+ * const contract = new OwnbitMultiSigProxy_json('0x...', { publicClient, walletClient });
72
+ *
73
+ * // Read functions
74
+ * const result = await contract.balanceOf('0x...');
75
+ *
76
+ * // Write functions
77
+ * const hash = await contract.transfer('0x...', 1000n);
78
+ *
79
+ * // Simulate transactions (dry-run)
80
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
81
+ * console.log('Gas estimate:', simulation.request.gas);
82
+ *
83
+ * // Watch events
84
+ * const unwatch = contract.watch.Transfer((event) => {
85
+ * console.log('Transfer event:', event);
86
+ * });
87
+ * ```
88
+ */
89
+ export class OwnbitMultiSigProxy_json {
90
+ private contract: OwnbitMultiSigProxy_jsonContract;
91
+ private contractAddress: Address;
92
+ private publicClient: PublicClient;
93
+
94
+ constructor(
95
+ address: Address,
96
+ clients: {
97
+ publicClient: PublicClient;
98
+ walletClient?: WalletClient;
99
+ }
100
+ ) {
101
+ this.contractAddress = address;
102
+ this.publicClient = clients.publicClient;
103
+ this.contract = getContract({
104
+ address,
105
+ abi: OwnbitMultiSigProxy_jsonAbi,
106
+ client: {
107
+ public: clients.publicClient,
108
+ wallet: clients.walletClient,
109
+ },
110
+ });
111
+ }
112
+
113
+ /**
114
+ * Get the contract address
115
+ */
116
+ get address(): Address {
117
+ return this.contractAddress;
118
+ }
119
+
120
+ /**
121
+ * Get the underlying viem contract instance
122
+ */
123
+ getContract(): OwnbitMultiSigProxy_jsonContract {
124
+ return this.contract;
125
+ }
126
+
127
+ /**
128
+ * implementation
129
+ * view
130
+ */
131
+ async implementation(): Promise<`0x${string}`> {
132
+ return this.contract.read.implementation() as Promise<`0x${string}`>;
133
+ }
134
+
135
+ // No write functions
136
+
137
+
138
+
139
+ /**
140
+ * Simulate contract write operations (dry-run without sending transaction)
141
+ *
142
+ * Note: This contract has no write functions, so simulate returns an empty object.
143
+ */
144
+ get simulate() {
145
+ return {};
146
+ }
147
+
148
+ /**
149
+ * Watch contract events
150
+ *
151
+ * Note: This contract has no events, so watch returns an empty object.
152
+ */
153
+ get watch() {
154
+ return {};
155
+ }
156
+ }
@@ -0,0 +1,2 @@
1
+ export { OwnbitMultiSigProxy_jsonAbi, OwnbitMultiSigProxy_json } from './OwnbitMultiSigProxy_json';
2
+ export type { OwnbitMultiSigProxy_jsonAbi as OwnbitMultiSigProxy_jsonAbiType, OwnbitMultiSigProxy_jsonContract } from './OwnbitMultiSigProxy_json';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OwnbitMultiSigProxy_json = exports.OwnbitMultiSigProxy_jsonAbi = void 0;
4
+ // Auto-generated exports for all contracts
5
+ var OwnbitMultiSigProxy_json_1 = require("./OwnbitMultiSigProxy_json");
6
+ Object.defineProperty(exports, "OwnbitMultiSigProxy_jsonAbi", { enumerable: true, get: function () { return OwnbitMultiSigProxy_json_1.OwnbitMultiSigProxy_jsonAbi; } });
7
+ Object.defineProperty(exports, "OwnbitMultiSigProxy_json", { enumerable: true, get: function () { return OwnbitMultiSigProxy_json_1.OwnbitMultiSigProxy_json; } });
@@ -0,0 +1,3 @@
1
+ // Auto-generated exports for all contracts
2
+ export { OwnbitMultiSigProxy_jsonAbi, OwnbitMultiSigProxy_json } from './OwnbitMultiSigProxy_json';
3
+ export type { OwnbitMultiSigProxy_jsonAbi as OwnbitMultiSigProxy_jsonAbiType, OwnbitMultiSigProxy_jsonContract } from './OwnbitMultiSigProxy_json';
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './contracts';
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // Auto-generated TypeScript type bindings
3
+ // This file exports all generated contract types
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ __exportStar(require("./contracts"), exports);
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@gitmyabi/ownbitmultisig",
3
+ "version": "1.0.0",
4
+ "description": "Auto-generated TypeScript type bindings for OwnbitMultiSig (build etherscan-ownbitmultisig-d54b17bf-1789478578514, commit 8c50d7a, branch etherscan)",
5
+ "main": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./index.js",
10
+ "require": "./index.js",
11
+ "types": "./index.d.ts"
12
+ },
13
+ "./contracts": {
14
+ "import": "./contracts/index.js",
15
+ "require": "./contracts/index.js",
16
+ "types": "./contracts/index.d.ts"
17
+ }
18
+ },
19
+ "files": [
20
+ "index.js",
21
+ "index.d.ts",
22
+ "contracts"
23
+ ],
24
+ "keywords": [
25
+ "ethereum",
26
+ "smart-contracts",
27
+ "viem",
28
+ "wagmi",
29
+ "typescript",
30
+ "abi",
31
+ "ethers-v6"
32
+ ],
33
+ "license": "MIT",
34
+ "dependencies": {
35
+ "viem": "^2.0.0"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/etherscan/ownbitmultisig"
40
+ },
41
+ "branch": "etherscan",
42
+ "shortHash": "8c50d7a"
43
+ }