@gitmyabi/kernel 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.
@@ -1,4 +1,2 @@
1
- export { KernelProxy_jsonAbi, KernelProxy_json } from './KernelProxy_json';
2
- export type { KernelProxy_jsonAbi as KernelProxy_jsonAbiType, KernelProxy_jsonContract } from './KernelProxy_json';
3
1
  export { Kernel_jsonAbi, Kernel_json } from './Kernel_json';
4
2
  export type { Kernel_jsonAbi as Kernel_jsonAbiType, Kernel_jsonContract } from './Kernel_json';
@@ -1,10 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Kernel_json = exports.Kernel_jsonAbi = exports.KernelProxy_json = exports.KernelProxy_jsonAbi = void 0;
3
+ exports.Kernel_json = exports.Kernel_jsonAbi = void 0;
4
4
  // Auto-generated exports for all contracts
5
- var KernelProxy_json_1 = require("./KernelProxy_json");
6
- Object.defineProperty(exports, "KernelProxy_jsonAbi", { enumerable: true, get: function () { return KernelProxy_json_1.KernelProxy_jsonAbi; } });
7
- Object.defineProperty(exports, "KernelProxy_json", { enumerable: true, get: function () { return KernelProxy_json_1.KernelProxy_json; } });
8
5
  var Kernel_json_1 = require("./Kernel_json");
9
6
  Object.defineProperty(exports, "Kernel_jsonAbi", { enumerable: true, get: function () { return Kernel_json_1.Kernel_jsonAbi; } });
10
7
  Object.defineProperty(exports, "Kernel_json", { enumerable: true, get: function () { return Kernel_json_1.Kernel_json; } });
@@ -1,5 +1,3 @@
1
1
  // Auto-generated exports for all contracts
2
- export { KernelProxy_jsonAbi, KernelProxy_json } from './KernelProxy_json';
3
- export type { KernelProxy_jsonAbi as KernelProxy_jsonAbiType, KernelProxy_jsonContract } from './KernelProxy_json';
4
2
  export { Kernel_jsonAbi, Kernel_json } from './Kernel_json';
5
3
  export type { Kernel_jsonAbi as Kernel_jsonAbiType, Kernel_jsonContract } from './Kernel_json';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/kernel",
3
- "version": "1.0.3",
4
- "description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-b8ffc3cd-1786794287343, commit 736085c, branch etherscan)",
3
+ "version": "1.0.4",
4
+ "description": "Auto-generated TypeScript type bindings for Kernel (build etherscan-kernel-af018223-1787873907218, commit d26626f, 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/kernel"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "736085c"
42
+ "shortHash": "d26626f"
43
43
  }
@@ -1,236 +0,0 @@
1
- import type { Address, PublicClient, WalletClient } from 'viem';
2
- /**
3
- * KernelProxy_json ABI
4
- *
5
- * This ABI is typed using viem's type system for full type safety.
6
- */
7
- export declare const KernelProxy_jsonAbi: readonly [{
8
- readonly constant: true;
9
- readonly inputs: readonly [];
10
- readonly name: "proxyType";
11
- readonly outputs: readonly [{
12
- readonly name: "proxyTypeId";
13
- readonly type: "uint256";
14
- }];
15
- readonly payable: false;
16
- readonly stateMutability: "pure";
17
- readonly type: "function";
18
- }, {
19
- readonly constant: true;
20
- readonly inputs: readonly [{
21
- readonly name: "";
22
- readonly type: "bytes32";
23
- }, {
24
- readonly name: "";
25
- readonly type: "bytes32";
26
- }];
27
- readonly name: "apps";
28
- readonly outputs: readonly [{
29
- readonly name: "";
30
- readonly type: "address";
31
- }];
32
- readonly payable: false;
33
- readonly stateMutability: "view";
34
- readonly type: "function";
35
- }, {
36
- readonly constant: true;
37
- readonly inputs: readonly [];
38
- readonly name: "isDepositable";
39
- readonly outputs: readonly [{
40
- readonly name: "";
41
- readonly type: "bool";
42
- }];
43
- readonly payable: false;
44
- readonly stateMutability: "view";
45
- readonly type: "function";
46
- }, {
47
- readonly constant: true;
48
- readonly inputs: readonly [];
49
- readonly name: "implementation";
50
- readonly outputs: readonly [{
51
- readonly name: "";
52
- readonly type: "address";
53
- }];
54
- readonly payable: false;
55
- readonly stateMutability: "view";
56
- readonly type: "function";
57
- }, {
58
- readonly constant: true;
59
- readonly inputs: readonly [];
60
- readonly name: "recoveryVaultAppId";
61
- readonly outputs: readonly [{
62
- readonly name: "";
63
- readonly type: "bytes32";
64
- }];
65
- readonly payable: false;
66
- readonly stateMutability: "view";
67
- readonly type: "function";
68
- }, {
69
- readonly inputs: readonly [{
70
- readonly name: "_kernelImpl";
71
- readonly type: "address";
72
- }];
73
- readonly payable: false;
74
- readonly stateMutability: "nonpayable";
75
- readonly type: "constructor";
76
- }, {
77
- readonly payable: true;
78
- readonly stateMutability: "payable";
79
- readonly type: "fallback";
80
- }, {
81
- readonly anonymous: false;
82
- readonly inputs: readonly [{
83
- readonly indexed: false;
84
- readonly name: "sender";
85
- readonly type: "address";
86
- }, {
87
- readonly indexed: false;
88
- readonly name: "value";
89
- readonly type: "uint256";
90
- }];
91
- readonly name: "ProxyDeposit";
92
- readonly type: "event";
93
- }, {
94
- readonly anonymous: false;
95
- readonly inputs: readonly [{
96
- readonly indexed: true;
97
- readonly name: "namespace";
98
- readonly type: "bytes32";
99
- }, {
100
- readonly indexed: true;
101
- readonly name: "appId";
102
- readonly type: "bytes32";
103
- }, {
104
- readonly indexed: false;
105
- readonly name: "app";
106
- readonly type: "address";
107
- }];
108
- readonly name: "SetApp";
109
- readonly type: "event";
110
- }];
111
- /**
112
- * Type-safe ABI for KernelProxy_json
113
- */
114
- export type KernelProxy_jsonAbi = typeof KernelProxy_jsonAbi;
115
- /**
116
- * Contract instance type for KernelProxy_json
117
- */
118
- export type KernelProxy_jsonContract = any;
119
- /**
120
- * KernelProxy_json Contract Class
121
- *
122
- * Provides a class-based API similar to TypeChain for interacting with the contract.
123
- *
124
- * @example
125
- * ```typescript
126
- * import { createPublicClient, createWalletClient, http } from 'viem';
127
- * import { mainnet } from 'viem/chains';
128
- * import { KernelProxy_json } from 'KernelProxy_json';
129
- *
130
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
131
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
132
- *
133
- * const contract = new KernelProxy_json('0x...', { publicClient, walletClient });
134
- *
135
- * // Read functions
136
- * const result = await contract.balanceOf('0x...');
137
- *
138
- * // Write functions
139
- * const hash = await contract.transfer('0x...', 1000n);
140
- *
141
- * // Simulate transactions (dry-run)
142
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
143
- * console.log('Gas estimate:', simulation.request.gas);
144
- *
145
- * // Watch events
146
- * const unwatch = contract.watch.Transfer((event) => {
147
- * console.log('Transfer event:', event);
148
- * });
149
- * ```
150
- */
151
- export declare class KernelProxy_json {
152
- private contract;
153
- private contractAddress;
154
- private publicClient;
155
- constructor(address: Address, clients: {
156
- publicClient: PublicClient;
157
- walletClient?: WalletClient;
158
- });
159
- /**
160
- * Get the contract address
161
- */
162
- get address(): Address;
163
- /**
164
- * Get the underlying viem contract instance
165
- */
166
- getContract(): KernelProxy_jsonContract;
167
- /**
168
- * proxyType
169
- * pure
170
- */
171
- proxyType(): Promise<bigint>;
172
- /**
173
- * apps
174
- * view
175
- */
176
- apps(arg0: `0x${string}`, arg1: `0x${string}`): Promise<`0x${string}`>;
177
- /**
178
- * isDepositable
179
- * view
180
- */
181
- isDepositable(): Promise<boolean>;
182
- /**
183
- * implementation
184
- * view
185
- */
186
- implementation(): Promise<`0x${string}`>;
187
- /**
188
- * recoveryVaultAppId
189
- * view
190
- */
191
- recoveryVaultAppId(): Promise<`0x${string}`>;
192
- /**
193
- * Simulate contract write operations (dry-run without sending transaction)
194
- *
195
- * Note: This contract has no write functions, so simulate returns an empty object.
196
- */
197
- get simulate(): {};
198
- /**
199
- * Watch contract events
200
- *
201
- * @example
202
- * // Watch all Transfer events
203
- * const unwatch = contract.watch.Transfer((event) => {
204
- * console.log('Transfer:', event);
205
- * });
206
- *
207
- * // Stop watching
208
- * unwatch();
209
- */
210
- get watch(): {
211
- /**
212
- * Watch ProxyDeposit events
213
- * @param callback Function to call when event is emitted
214
- * @param filter Optional filter for indexed parameters
215
- * @returns Unwatch function to stop listening
216
- */
217
- ProxyDeposit: (callback: (event: {
218
- sender: `0x${string}`;
219
- value: bigint;
220
- }) => void) => () => void;
221
- /**
222
- * Watch SetApp events
223
- * @param callback Function to call when event is emitted
224
- * @param filter Optional filter for indexed parameters
225
- * @returns Unwatch function to stop listening
226
- */
227
- SetApp: (callback: (event: {
228
- namespace: `0x${string}`;
229
- appId: `0x${string}`;
230
- app: `0x${string}`;
231
- }) => void, filter?: {
232
- namespace: `0x${string}`;
233
- appId: `0x${string}`;
234
- }) => () => void;
235
- };
236
- }
@@ -1,301 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KernelProxy_json = exports.KernelProxy_jsonAbi = void 0;
4
- const viem_1 = require("viem");
5
- /**
6
- * KernelProxy_json ABI
7
- *
8
- * This ABI is typed using viem's type system for full type safety.
9
- */
10
- exports.KernelProxy_jsonAbi = [
11
- {
12
- "constant": true,
13
- "inputs": [],
14
- "name": "proxyType",
15
- "outputs": [
16
- {
17
- "name": "proxyTypeId",
18
- "type": "uint256"
19
- }
20
- ],
21
- "payable": false,
22
- "stateMutability": "pure",
23
- "type": "function"
24
- },
25
- {
26
- "constant": true,
27
- "inputs": [
28
- {
29
- "name": "",
30
- "type": "bytes32"
31
- },
32
- {
33
- "name": "",
34
- "type": "bytes32"
35
- }
36
- ],
37
- "name": "apps",
38
- "outputs": [
39
- {
40
- "name": "",
41
- "type": "address"
42
- }
43
- ],
44
- "payable": false,
45
- "stateMutability": "view",
46
- "type": "function"
47
- },
48
- {
49
- "constant": true,
50
- "inputs": [],
51
- "name": "isDepositable",
52
- "outputs": [
53
- {
54
- "name": "",
55
- "type": "bool"
56
- }
57
- ],
58
- "payable": false,
59
- "stateMutability": "view",
60
- "type": "function"
61
- },
62
- {
63
- "constant": true,
64
- "inputs": [],
65
- "name": "implementation",
66
- "outputs": [
67
- {
68
- "name": "",
69
- "type": "address"
70
- }
71
- ],
72
- "payable": false,
73
- "stateMutability": "view",
74
- "type": "function"
75
- },
76
- {
77
- "constant": true,
78
- "inputs": [],
79
- "name": "recoveryVaultAppId",
80
- "outputs": [
81
- {
82
- "name": "",
83
- "type": "bytes32"
84
- }
85
- ],
86
- "payable": false,
87
- "stateMutability": "view",
88
- "type": "function"
89
- },
90
- {
91
- "inputs": [
92
- {
93
- "name": "_kernelImpl",
94
- "type": "address"
95
- }
96
- ],
97
- "payable": false,
98
- "stateMutability": "nonpayable",
99
- "type": "constructor"
100
- },
101
- {
102
- "payable": true,
103
- "stateMutability": "payable",
104
- "type": "fallback"
105
- },
106
- {
107
- "anonymous": false,
108
- "inputs": [
109
- {
110
- "indexed": false,
111
- "name": "sender",
112
- "type": "address"
113
- },
114
- {
115
- "indexed": false,
116
- "name": "value",
117
- "type": "uint256"
118
- }
119
- ],
120
- "name": "ProxyDeposit",
121
- "type": "event"
122
- },
123
- {
124
- "anonymous": false,
125
- "inputs": [
126
- {
127
- "indexed": true,
128
- "name": "namespace",
129
- "type": "bytes32"
130
- },
131
- {
132
- "indexed": true,
133
- "name": "appId",
134
- "type": "bytes32"
135
- },
136
- {
137
- "indexed": false,
138
- "name": "app",
139
- "type": "address"
140
- }
141
- ],
142
- "name": "SetApp",
143
- "type": "event"
144
- }
145
- ];
146
- /**
147
- * KernelProxy_json Contract Class
148
- *
149
- * Provides a class-based API similar to TypeChain for interacting with the contract.
150
- *
151
- * @example
152
- * ```typescript
153
- * import { createPublicClient, createWalletClient, http } from 'viem';
154
- * import { mainnet } from 'viem/chains';
155
- * import { KernelProxy_json } from 'KernelProxy_json';
156
- *
157
- * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
158
- * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
159
- *
160
- * const contract = new KernelProxy_json('0x...', { publicClient, walletClient });
161
- *
162
- * // Read functions
163
- * const result = await contract.balanceOf('0x...');
164
- *
165
- * // Write functions
166
- * const hash = await contract.transfer('0x...', 1000n);
167
- *
168
- * // Simulate transactions (dry-run)
169
- * const simulation = await contract.simulate.transfer('0x...', 1000n);
170
- * console.log('Gas estimate:', simulation.request.gas);
171
- *
172
- * // Watch events
173
- * const unwatch = contract.watch.Transfer((event) => {
174
- * console.log('Transfer event:', event);
175
- * });
176
- * ```
177
- */
178
- class KernelProxy_json {
179
- constructor(address, clients) {
180
- this.contractAddress = address;
181
- this.publicClient = clients.publicClient;
182
- this.contract = (0, viem_1.getContract)({
183
- address,
184
- abi: exports.KernelProxy_jsonAbi,
185
- client: {
186
- public: clients.publicClient,
187
- wallet: clients.walletClient,
188
- },
189
- });
190
- }
191
- /**
192
- * Get the contract address
193
- */
194
- get address() {
195
- return this.contractAddress;
196
- }
197
- /**
198
- * Get the underlying viem contract instance
199
- */
200
- getContract() {
201
- return this.contract;
202
- }
203
- /**
204
- * proxyType
205
- * pure
206
- */
207
- async proxyType() {
208
- return this.contract.read.proxyType();
209
- }
210
- /**
211
- * apps
212
- * view
213
- */
214
- async apps(arg0, arg1) {
215
- return this.contract.read.apps([arg0, arg1]);
216
- }
217
- /**
218
- * isDepositable
219
- * view
220
- */
221
- async isDepositable() {
222
- return this.contract.read.isDepositable();
223
- }
224
- /**
225
- * implementation
226
- * view
227
- */
228
- async implementation() {
229
- return this.contract.read.implementation();
230
- }
231
- /**
232
- * recoveryVaultAppId
233
- * view
234
- */
235
- async recoveryVaultAppId() {
236
- return this.contract.read.recoveryVaultAppId();
237
- }
238
- // No write functions
239
- /**
240
- * Simulate contract write operations (dry-run without sending transaction)
241
- *
242
- * Note: This contract has no write functions, so simulate returns an empty object.
243
- */
244
- get simulate() {
245
- return {};
246
- }
247
- /**
248
- * Watch contract events
249
- *
250
- * @example
251
- * // Watch all Transfer events
252
- * const unwatch = contract.watch.Transfer((event) => {
253
- * console.log('Transfer:', event);
254
- * });
255
- *
256
- * // Stop watching
257
- * unwatch();
258
- */
259
- get watch() {
260
- return {
261
- /**
262
- * Watch ProxyDeposit events
263
- * @param callback Function to call when event is emitted
264
- * @param filter Optional filter for indexed parameters
265
- * @returns Unwatch function to stop listening
266
- */
267
- ProxyDeposit: (callback) => {
268
- return this.publicClient.watchContractEvent({
269
- address: this.contractAddress,
270
- abi: exports.KernelProxy_jsonAbi,
271
- eventName: 'ProxyDeposit',
272
- onLogs: (logs) => {
273
- logs.forEach((log) => {
274
- callback(log.args);
275
- });
276
- },
277
- });
278
- },
279
- /**
280
- * Watch SetApp events
281
- * @param callback Function to call when event is emitted
282
- * @param filter Optional filter for indexed parameters
283
- * @returns Unwatch function to stop listening
284
- */
285
- SetApp: (callback, filter) => {
286
- return this.publicClient.watchContractEvent({
287
- address: this.contractAddress,
288
- abi: exports.KernelProxy_jsonAbi,
289
- eventName: 'SetApp',
290
- args: filter,
291
- onLogs: (logs) => {
292
- logs.forEach((log) => {
293
- callback(log.args);
294
- });
295
- },
296
- });
297
- }
298
- };
299
- }
300
- }
301
- exports.KernelProxy_json = KernelProxy_json;