@gitmyabi/teikhosbounty 1.0.2 → 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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Auto-generated TypeScript type bindings for **TeikhosBounty**
4
4
 
5
- - **Build ID**: `etherscan-teikhosbounty-ed877a73-1788184628952`
5
+ - **Build ID**: `etherscan-teikhosbounty-735ba26f-1793596393114`
6
6
  - **Build Number**: 1
7
- - **Commit**: `1036adc`
7
+ - **Commit**: `c0d6861`
8
8
  - **Branch**: `etherscan`
9
9
  - **Target**: `ethers-v6`
10
10
  - **Contracts**: 1
@@ -12,7 +12,7 @@ Auto-generated TypeScript type bindings for **TeikhosBounty**
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- npm install @gitmyabi/teikhosbounty@1.0.2
15
+ npm install @gitmyabi/teikhosbounty@1.0.4
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -5,19 +5,124 @@ import type { Address, PublicClient, WalletClient } from 'viem';
5
5
  * This ABI is typed using viem's type system for full type safety.
6
6
  */
7
7
  export declare const TeikhosBounty_jsonAbi: readonly [{
8
+ readonly constant: false;
9
+ readonly inputs: readonly [];
10
+ readonly name: "reward";
11
+ readonly outputs: readonly [];
12
+ readonly payable: false;
13
+ readonly stateMutability: "nonpayable";
14
+ readonly type: "function";
15
+ }, {
16
+ readonly constant: true;
17
+ readonly inputs: readonly [];
18
+ readonly name: "isSolved";
19
+ readonly outputs: readonly [{
20
+ readonly name: "timestamp";
21
+ readonly type: "uint256";
22
+ }, {
23
+ readonly name: "publicKey";
24
+ readonly type: "bytes";
25
+ }, {
26
+ readonly name: "msgHash";
27
+ readonly type: "bytes32";
28
+ }];
29
+ readonly payable: false;
30
+ readonly stateMutability: "view";
31
+ readonly type: "function";
32
+ }, {
8
33
  readonly constant: false;
9
34
  readonly inputs: readonly [{
10
- readonly name: "_publicKey";
35
+ readonly name: "_signature";
11
36
  readonly type: "bytes";
12
37
  }];
13
- readonly name: "authenticate";
38
+ readonly name: "commit";
39
+ readonly outputs: readonly [];
40
+ readonly payable: false;
41
+ readonly stateMutability: "nonpayable";
42
+ readonly type: "function";
43
+ }, {
44
+ readonly constant: true;
45
+ readonly inputs: readonly [];
46
+ readonly name: "sha3_512";
14
47
  readonly outputs: readonly [{
15
48
  readonly name: "";
49
+ readonly type: "address";
50
+ }];
51
+ readonly payable: false;
52
+ readonly stateMutability: "view";
53
+ readonly type: "function";
54
+ }, {
55
+ readonly constant: false;
56
+ readonly inputs: readonly [];
57
+ readonly name: "reveal";
58
+ readonly outputs: readonly [{
59
+ readonly name: "success";
16
60
  readonly type: "bool";
17
61
  }];
18
62
  readonly payable: false;
19
63
  readonly stateMutability: "nonpayable";
20
64
  readonly type: "function";
65
+ }, {
66
+ readonly constant: true;
67
+ readonly inputs: readonly [];
68
+ readonly name: "proof_of_public_key";
69
+ readonly outputs: readonly [{
70
+ readonly name: "half1";
71
+ readonly type: "bytes32";
72
+ }, {
73
+ readonly name: "half2";
74
+ readonly type: "bytes32";
75
+ }];
76
+ readonly payable: false;
77
+ readonly stateMutability: "view";
78
+ readonly type: "function";
79
+ }, {
80
+ readonly constant: true;
81
+ readonly inputs: readonly [{
82
+ readonly name: "";
83
+ readonly type: "address";
84
+ }];
85
+ readonly name: "commitment";
86
+ readonly outputs: readonly [{
87
+ readonly name: "timestamp";
88
+ readonly type: "uint256";
89
+ }, {
90
+ readonly name: "signature";
91
+ readonly type: "bytes";
92
+ }];
93
+ readonly payable: false;
94
+ readonly stateMutability: "view";
95
+ readonly type: "function";
96
+ }, {
97
+ readonly constant: true;
98
+ readonly inputs: readonly [];
99
+ readonly name: "winner";
100
+ readonly outputs: readonly [{
101
+ readonly name: "timestamp";
102
+ readonly type: "uint256";
103
+ }, {
104
+ readonly name: "winner";
105
+ readonly type: "address";
106
+ }];
107
+ readonly payable: false;
108
+ readonly stateMutability: "view";
109
+ readonly type: "function";
110
+ }, {
111
+ readonly constant: false;
112
+ readonly inputs: readonly [{
113
+ readonly name: "_publicKey";
114
+ readonly type: "bytes";
115
+ }];
116
+ readonly name: "authenticate";
117
+ readonly outputs: readonly [];
118
+ readonly payable: false;
119
+ readonly stateMutability: "nonpayable";
120
+ readonly type: "function";
121
+ }, {
122
+ readonly inputs: readonly [];
123
+ readonly payable: false;
124
+ readonly stateMutability: "nonpayable";
125
+ readonly type: "constructor";
21
126
  }, {
22
127
  readonly payable: true;
23
128
  readonly stateMutability: "payable";
@@ -79,6 +184,82 @@ export declare class TeikhosBounty_json {
79
184
  * Get the underlying viem contract instance
80
185
  */
81
186
  getContract(): TeikhosBounty_jsonContract;
187
+ /**
188
+ * isSolved
189
+ * view
190
+ */
191
+ isSolved(): Promise<[bigint, `0x${string}`, `0x${string}`]>;
192
+ /**
193
+ * sha3_512
194
+ * view
195
+ */
196
+ sha3_512(): Promise<`0x${string}`>;
197
+ /**
198
+ * proof_of_public_key
199
+ * view
200
+ */
201
+ proof_of_public_key(): Promise<[`0x${string}`, `0x${string}`]>;
202
+ /**
203
+ * commitment
204
+ * view
205
+ */
206
+ commitment(arg0: `0x${string}`): Promise<[bigint, `0x${string}`]>;
207
+ /**
208
+ * winner
209
+ * view
210
+ */
211
+ winner(): Promise<[bigint, `0x${string}`]>;
212
+ /**
213
+ * reward
214
+ * nonpayable
215
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
216
+ */
217
+ reward(options?: {
218
+ accessList?: import('viem').AccessList;
219
+ authorizationList?: import('viem').AuthorizationList;
220
+ chain?: import('viem').Chain | null;
221
+ dataSuffix?: `0x${string}`;
222
+ gas?: bigint;
223
+ gasPrice?: bigint;
224
+ maxFeePerGas?: bigint;
225
+ maxPriorityFeePerGas?: bigint;
226
+ nonce?: number;
227
+ value?: bigint;
228
+ }): Promise<`0x${string}`>;
229
+ /**
230
+ * commit
231
+ * nonpayable
232
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
233
+ */
234
+ commit(_signature: `0x${string}`, options?: {
235
+ accessList?: import('viem').AccessList;
236
+ authorizationList?: import('viem').AuthorizationList;
237
+ chain?: import('viem').Chain | null;
238
+ dataSuffix?: `0x${string}`;
239
+ gas?: bigint;
240
+ gasPrice?: bigint;
241
+ maxFeePerGas?: bigint;
242
+ maxPriorityFeePerGas?: bigint;
243
+ nonce?: number;
244
+ value?: bigint;
245
+ }): Promise<`0x${string}`>;
246
+ /**
247
+ * reveal
248
+ * nonpayable
249
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
250
+ */
251
+ reveal(options?: {
252
+ accessList?: import('viem').AccessList;
253
+ authorizationList?: import('viem').AuthorizationList;
254
+ chain?: import('viem').Chain | null;
255
+ dataSuffix?: `0x${string}`;
256
+ gas?: bigint;
257
+ gasPrice?: bigint;
258
+ maxFeePerGas?: bigint;
259
+ maxPriorityFeePerGas?: bigint;
260
+ nonce?: number;
261
+ value?: bigint;
262
+ }): Promise<`0x${string}`>;
82
263
  /**
83
264
  * authenticate
84
265
  * nonpayable
@@ -105,6 +286,57 @@ export declare class TeikhosBounty_json {
105
286
  * console.log('Would succeed:', result.result);
106
287
  */
107
288
  get simulate(): {
289
+ /**
290
+ * Simulate reward
291
+ * Returns gas estimate and result without sending transaction
292
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
293
+ */
294
+ reward(options?: {
295
+ accessList?: import("viem").AccessList;
296
+ authorizationList?: import("viem").AuthorizationList;
297
+ chain?: import("viem").Chain | null;
298
+ dataSuffix?: `0x${string}`;
299
+ gas?: bigint;
300
+ gasPrice?: bigint;
301
+ maxFeePerGas?: bigint;
302
+ maxPriorityFeePerGas?: bigint;
303
+ nonce?: number;
304
+ value?: bigint;
305
+ }): Promise<void>;
306
+ /**
307
+ * Simulate commit
308
+ * Returns gas estimate and result without sending transaction
309
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
310
+ */
311
+ commit(_signature: `0x${string}`, options?: {
312
+ accessList?: import("viem").AccessList;
313
+ authorizationList?: import("viem").AuthorizationList;
314
+ chain?: import("viem").Chain | null;
315
+ dataSuffix?: `0x${string}`;
316
+ gas?: bigint;
317
+ gasPrice?: bigint;
318
+ maxFeePerGas?: bigint;
319
+ maxPriorityFeePerGas?: bigint;
320
+ nonce?: number;
321
+ value?: bigint;
322
+ }): Promise<void>;
323
+ /**
324
+ * Simulate reveal
325
+ * Returns gas estimate and result without sending transaction
326
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
327
+ */
328
+ reveal(options?: {
329
+ accessList?: import("viem").AccessList;
330
+ authorizationList?: import("viem").AuthorizationList;
331
+ chain?: import("viem").Chain | null;
332
+ dataSuffix?: `0x${string}`;
333
+ gas?: bigint;
334
+ gasPrice?: bigint;
335
+ maxFeePerGas?: bigint;
336
+ maxPriorityFeePerGas?: bigint;
337
+ nonce?: number;
338
+ value?: bigint;
339
+ }): Promise<boolean>;
108
340
  /**
109
341
  * Simulate authenticate
110
342
  * Returns gas estimate and result without sending transaction
@@ -121,7 +353,7 @@ export declare class TeikhosBounty_json {
121
353
  maxPriorityFeePerGas?: bigint;
122
354
  nonce?: number;
123
355
  value?: bigint;
124
- }): Promise<boolean>;
356
+ }): Promise<void>;
125
357
  };
126
358
  /**
127
359
  * Watch contract events
@@ -8,18 +8,72 @@ const viem_1 = require("viem");
8
8
  * This ABI is typed using viem's type system for full type safety.
9
9
  */
10
10
  exports.TeikhosBounty_jsonAbi = [
11
+ {
12
+ "constant": false,
13
+ "inputs": [],
14
+ "name": "reward",
15
+ "outputs": [],
16
+ "payable": false,
17
+ "stateMutability": "nonpayable",
18
+ "type": "function"
19
+ },
20
+ {
21
+ "constant": true,
22
+ "inputs": [],
23
+ "name": "isSolved",
24
+ "outputs": [
25
+ {
26
+ "name": "timestamp",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "name": "publicKey",
31
+ "type": "bytes"
32
+ },
33
+ {
34
+ "name": "msgHash",
35
+ "type": "bytes32"
36
+ }
37
+ ],
38
+ "payable": false,
39
+ "stateMutability": "view",
40
+ "type": "function"
41
+ },
11
42
  {
12
43
  "constant": false,
13
44
  "inputs": [
14
45
  {
15
- "name": "_publicKey",
46
+ "name": "_signature",
16
47
  "type": "bytes"
17
48
  }
18
49
  ],
19
- "name": "authenticate",
50
+ "name": "commit",
51
+ "outputs": [],
52
+ "payable": false,
53
+ "stateMutability": "nonpayable",
54
+ "type": "function"
55
+ },
56
+ {
57
+ "constant": true,
58
+ "inputs": [],
59
+ "name": "sha3_512",
20
60
  "outputs": [
21
61
  {
22
62
  "name": "",
63
+ "type": "address"
64
+ }
65
+ ],
66
+ "payable": false,
67
+ "stateMutability": "view",
68
+ "type": "function"
69
+ },
70
+ {
71
+ "constant": false,
72
+ "inputs": [],
73
+ "name": "reveal",
74
+ "outputs": [
75
+ {
76
+ "name": "success",
23
77
  "type": "bool"
24
78
  }
25
79
  ],
@@ -27,6 +81,85 @@ exports.TeikhosBounty_jsonAbi = [
27
81
  "stateMutability": "nonpayable",
28
82
  "type": "function"
29
83
  },
84
+ {
85
+ "constant": true,
86
+ "inputs": [],
87
+ "name": "proof_of_public_key",
88
+ "outputs": [
89
+ {
90
+ "name": "half1",
91
+ "type": "bytes32"
92
+ },
93
+ {
94
+ "name": "half2",
95
+ "type": "bytes32"
96
+ }
97
+ ],
98
+ "payable": false,
99
+ "stateMutability": "view",
100
+ "type": "function"
101
+ },
102
+ {
103
+ "constant": true,
104
+ "inputs": [
105
+ {
106
+ "name": "",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "name": "commitment",
111
+ "outputs": [
112
+ {
113
+ "name": "timestamp",
114
+ "type": "uint256"
115
+ },
116
+ {
117
+ "name": "signature",
118
+ "type": "bytes"
119
+ }
120
+ ],
121
+ "payable": false,
122
+ "stateMutability": "view",
123
+ "type": "function"
124
+ },
125
+ {
126
+ "constant": true,
127
+ "inputs": [],
128
+ "name": "winner",
129
+ "outputs": [
130
+ {
131
+ "name": "timestamp",
132
+ "type": "uint256"
133
+ },
134
+ {
135
+ "name": "winner",
136
+ "type": "address"
137
+ }
138
+ ],
139
+ "payable": false,
140
+ "stateMutability": "view",
141
+ "type": "function"
142
+ },
143
+ {
144
+ "constant": false,
145
+ "inputs": [
146
+ {
147
+ "name": "_publicKey",
148
+ "type": "bytes"
149
+ }
150
+ ],
151
+ "name": "authenticate",
152
+ "outputs": [],
153
+ "payable": false,
154
+ "stateMutability": "nonpayable",
155
+ "type": "function"
156
+ },
157
+ {
158
+ "inputs": [],
159
+ "payable": false,
160
+ "stateMutability": "nonpayable",
161
+ "type": "constructor"
162
+ },
30
163
  {
31
164
  "payable": true,
32
165
  "stateMutability": "payable",
@@ -90,7 +223,74 @@ class TeikhosBounty_json {
90
223
  getContract() {
91
224
  return this.contract;
92
225
  }
93
- // No read functions
226
+ /**
227
+ * isSolved
228
+ * view
229
+ */
230
+ async isSolved() {
231
+ return this.contract.read.isSolved();
232
+ }
233
+ /**
234
+ * sha3_512
235
+ * view
236
+ */
237
+ async sha3_512() {
238
+ return this.contract.read.sha3_512();
239
+ }
240
+ /**
241
+ * proof_of_public_key
242
+ * view
243
+ */
244
+ async proof_of_public_key() {
245
+ return this.contract.read.proof_of_public_key();
246
+ }
247
+ /**
248
+ * commitment
249
+ * view
250
+ */
251
+ async commitment(arg0) {
252
+ return this.contract.read.commitment([arg0]);
253
+ }
254
+ /**
255
+ * winner
256
+ * view
257
+ */
258
+ async winner() {
259
+ return this.contract.read.winner();
260
+ }
261
+ /**
262
+ * reward
263
+ * nonpayable
264
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
265
+ */
266
+ async reward(options) {
267
+ if (!this.contract.write) {
268
+ throw new Error('Wallet client is required for write operations');
269
+ }
270
+ return this.contract.write.reward(options);
271
+ }
272
+ /**
273
+ * commit
274
+ * nonpayable
275
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
276
+ */
277
+ async commit(_signature, options) {
278
+ if (!this.contract.write) {
279
+ throw new Error('Wallet client is required for write operations');
280
+ }
281
+ return this.contract.write.commit([_signature], options);
282
+ }
283
+ /**
284
+ * reveal
285
+ * nonpayable
286
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
287
+ */
288
+ async reveal(options) {
289
+ if (!this.contract.write) {
290
+ throw new Error('Wallet client is required for write operations');
291
+ }
292
+ return this.contract.write.reveal(options);
293
+ }
94
294
  /**
95
295
  * authenticate
96
296
  * nonpayable
@@ -116,6 +316,30 @@ class TeikhosBounty_json {
116
316
  throw new Error('Public client is required for simulation');
117
317
  }
118
318
  return {
319
+ /**
320
+ * Simulate reward
321
+ * Returns gas estimate and result without sending transaction
322
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
323
+ */
324
+ async reward(options) {
325
+ return contract.simulate.reward(options);
326
+ },
327
+ /**
328
+ * Simulate commit
329
+ * Returns gas estimate and result without sending transaction
330
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
331
+ */
332
+ async commit(_signature, options) {
333
+ return contract.simulate.commit([_signature], options);
334
+ },
335
+ /**
336
+ * Simulate reveal
337
+ * Returns gas estimate and result without sending transaction
338
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
339
+ */
340
+ async reveal(options) {
341
+ return contract.simulate.reveal(options);
342
+ },
119
343
  /**
120
344
  * Simulate authenticate
121
345
  * Returns gas estimate and result without sending transaction
@@ -7,18 +7,72 @@ import { getContract } from 'viem';
7
7
  * This ABI is typed using viem's type system for full type safety.
8
8
  */
9
9
  export const TeikhosBounty_jsonAbi = [
10
+ {
11
+ "constant": false,
12
+ "inputs": [],
13
+ "name": "reward",
14
+ "outputs": [],
15
+ "payable": false,
16
+ "stateMutability": "nonpayable",
17
+ "type": "function"
18
+ },
19
+ {
20
+ "constant": true,
21
+ "inputs": [],
22
+ "name": "isSolved",
23
+ "outputs": [
24
+ {
25
+ "name": "timestamp",
26
+ "type": "uint256"
27
+ },
28
+ {
29
+ "name": "publicKey",
30
+ "type": "bytes"
31
+ },
32
+ {
33
+ "name": "msgHash",
34
+ "type": "bytes32"
35
+ }
36
+ ],
37
+ "payable": false,
38
+ "stateMutability": "view",
39
+ "type": "function"
40
+ },
10
41
  {
11
42
  "constant": false,
12
43
  "inputs": [
13
44
  {
14
- "name": "_publicKey",
45
+ "name": "_signature",
15
46
  "type": "bytes"
16
47
  }
17
48
  ],
18
- "name": "authenticate",
49
+ "name": "commit",
50
+ "outputs": [],
51
+ "payable": false,
52
+ "stateMutability": "nonpayable",
53
+ "type": "function"
54
+ },
55
+ {
56
+ "constant": true,
57
+ "inputs": [],
58
+ "name": "sha3_512",
19
59
  "outputs": [
20
60
  {
21
61
  "name": "",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "payable": false,
66
+ "stateMutability": "view",
67
+ "type": "function"
68
+ },
69
+ {
70
+ "constant": false,
71
+ "inputs": [],
72
+ "name": "reveal",
73
+ "outputs": [
74
+ {
75
+ "name": "success",
22
76
  "type": "bool"
23
77
  }
24
78
  ],
@@ -26,6 +80,85 @@ export const TeikhosBounty_jsonAbi = [
26
80
  "stateMutability": "nonpayable",
27
81
  "type": "function"
28
82
  },
83
+ {
84
+ "constant": true,
85
+ "inputs": [],
86
+ "name": "proof_of_public_key",
87
+ "outputs": [
88
+ {
89
+ "name": "half1",
90
+ "type": "bytes32"
91
+ },
92
+ {
93
+ "name": "half2",
94
+ "type": "bytes32"
95
+ }
96
+ ],
97
+ "payable": false,
98
+ "stateMutability": "view",
99
+ "type": "function"
100
+ },
101
+ {
102
+ "constant": true,
103
+ "inputs": [
104
+ {
105
+ "name": "",
106
+ "type": "address"
107
+ }
108
+ ],
109
+ "name": "commitment",
110
+ "outputs": [
111
+ {
112
+ "name": "timestamp",
113
+ "type": "uint256"
114
+ },
115
+ {
116
+ "name": "signature",
117
+ "type": "bytes"
118
+ }
119
+ ],
120
+ "payable": false,
121
+ "stateMutability": "view",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "constant": true,
126
+ "inputs": [],
127
+ "name": "winner",
128
+ "outputs": [
129
+ {
130
+ "name": "timestamp",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "name": "winner",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "payable": false,
139
+ "stateMutability": "view",
140
+ "type": "function"
141
+ },
142
+ {
143
+ "constant": false,
144
+ "inputs": [
145
+ {
146
+ "name": "_publicKey",
147
+ "type": "bytes"
148
+ }
149
+ ],
150
+ "name": "authenticate",
151
+ "outputs": [],
152
+ "payable": false,
153
+ "stateMutability": "nonpayable",
154
+ "type": "function"
155
+ },
156
+ {
157
+ "inputs": [],
158
+ "payable": false,
159
+ "stateMutability": "nonpayable",
160
+ "type": "constructor"
161
+ },
29
162
  {
30
163
  "payable": true,
31
164
  "stateMutability": "payable",
@@ -115,7 +248,114 @@ export class TeikhosBounty_json {
115
248
  return this.contract;
116
249
  }
117
250
 
118
- // No read functions
251
+ /**
252
+ * isSolved
253
+ * view
254
+ */
255
+ async isSolved(): Promise<[bigint, `0x${string}`, `0x${string}`]> {
256
+ return this.contract.read.isSolved() as Promise<[bigint, `0x${string}`, `0x${string}`]>;
257
+ }
258
+
259
+ /**
260
+ * sha3_512
261
+ * view
262
+ */
263
+ async sha3_512(): Promise<`0x${string}`> {
264
+ return this.contract.read.sha3_512() as Promise<`0x${string}`>;
265
+ }
266
+
267
+ /**
268
+ * proof_of_public_key
269
+ * view
270
+ */
271
+ async proof_of_public_key(): Promise<[`0x${string}`, `0x${string}`]> {
272
+ return this.contract.read.proof_of_public_key() as Promise<[`0x${string}`, `0x${string}`]>;
273
+ }
274
+
275
+ /**
276
+ * commitment
277
+ * view
278
+ */
279
+ async commitment(arg0: `0x${string}`): Promise<[bigint, `0x${string}`]> {
280
+ return this.contract.read.commitment([arg0] as const) as Promise<[bigint, `0x${string}`]>;
281
+ }
282
+
283
+ /**
284
+ * winner
285
+ * view
286
+ */
287
+ async winner(): Promise<[bigint, `0x${string}`]> {
288
+ return this.contract.read.winner() as Promise<[bigint, `0x${string}`]>;
289
+ }
290
+
291
+ /**
292
+ * reward
293
+ * nonpayable
294
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
295
+ */
296
+ async reward(options?: {
297
+ accessList?: import('viem').AccessList;
298
+ authorizationList?: import('viem').AuthorizationList;
299
+ chain?: import('viem').Chain | null;
300
+ dataSuffix?: `0x${string}`;
301
+ gas?: bigint;
302
+ gasPrice?: bigint;
303
+ maxFeePerGas?: bigint;
304
+ maxPriorityFeePerGas?: bigint;
305
+ nonce?: number;
306
+ value?: bigint;
307
+ }): Promise<`0x${string}`> {
308
+ if (!this.contract.write) {
309
+ throw new Error('Wallet client is required for write operations');
310
+ }
311
+ return this.contract.write.reward(options) as Promise<`0x${string}`>;
312
+ }
313
+
314
+ /**
315
+ * commit
316
+ * nonpayable
317
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
318
+ */
319
+ async commit(_signature: `0x${string}`, options?: {
320
+ accessList?: import('viem').AccessList;
321
+ authorizationList?: import('viem').AuthorizationList;
322
+ chain?: import('viem').Chain | null;
323
+ dataSuffix?: `0x${string}`;
324
+ gas?: bigint;
325
+ gasPrice?: bigint;
326
+ maxFeePerGas?: bigint;
327
+ maxPriorityFeePerGas?: bigint;
328
+ nonce?: number;
329
+ value?: bigint;
330
+ }): Promise<`0x${string}`> {
331
+ if (!this.contract.write) {
332
+ throw new Error('Wallet client is required for write operations');
333
+ }
334
+ return this.contract.write.commit([_signature] as const, options) as Promise<`0x${string}`>;
335
+ }
336
+
337
+ /**
338
+ * reveal
339
+ * nonpayable
340
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
341
+ */
342
+ async reveal(options?: {
343
+ accessList?: import('viem').AccessList;
344
+ authorizationList?: import('viem').AuthorizationList;
345
+ chain?: import('viem').Chain | null;
346
+ dataSuffix?: `0x${string}`;
347
+ gas?: bigint;
348
+ gasPrice?: bigint;
349
+ maxFeePerGas?: bigint;
350
+ maxPriorityFeePerGas?: bigint;
351
+ nonce?: number;
352
+ value?: bigint;
353
+ }): Promise<`0x${string}`> {
354
+ if (!this.contract.write) {
355
+ throw new Error('Wallet client is required for write operations');
356
+ }
357
+ return this.contract.write.reveal(options) as Promise<`0x${string}`>;
358
+ }
119
359
 
120
360
  /**
121
361
  * authenticate
@@ -156,6 +396,63 @@ export class TeikhosBounty_json {
156
396
  throw new Error('Public client is required for simulation');
157
397
  }
158
398
  return {
399
+ /**
400
+ * Simulate reward
401
+ * Returns gas estimate and result without sending transaction
402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
403
+ */
404
+ async reward(options?: {
405
+ accessList?: import('viem').AccessList;
406
+ authorizationList?: import('viem').AuthorizationList;
407
+ chain?: import('viem').Chain | null;
408
+ dataSuffix?: `0x${string}`;
409
+ gas?: bigint;
410
+ gasPrice?: bigint;
411
+ maxFeePerGas?: bigint;
412
+ maxPriorityFeePerGas?: bigint;
413
+ nonce?: number;
414
+ value?: bigint;
415
+ }): Promise<void> {
416
+ return contract.simulate.reward(options) as Promise<void>;
417
+ },
418
+ /**
419
+ * Simulate commit
420
+ * Returns gas estimate and result without sending transaction
421
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
422
+ */
423
+ async commit(_signature: `0x${string}`, options?: {
424
+ accessList?: import('viem').AccessList;
425
+ authorizationList?: import('viem').AuthorizationList;
426
+ chain?: import('viem').Chain | null;
427
+ dataSuffix?: `0x${string}`;
428
+ gas?: bigint;
429
+ gasPrice?: bigint;
430
+ maxFeePerGas?: bigint;
431
+ maxPriorityFeePerGas?: bigint;
432
+ nonce?: number;
433
+ value?: bigint;
434
+ }): Promise<void> {
435
+ return contract.simulate.commit([_signature] as const, options) as Promise<void>;
436
+ },
437
+ /**
438
+ * Simulate reveal
439
+ * Returns gas estimate and result without sending transaction
440
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
441
+ */
442
+ async reveal(options?: {
443
+ accessList?: import('viem').AccessList;
444
+ authorizationList?: import('viem').AuthorizationList;
445
+ chain?: import('viem').Chain | null;
446
+ dataSuffix?: `0x${string}`;
447
+ gas?: bigint;
448
+ gasPrice?: bigint;
449
+ maxFeePerGas?: bigint;
450
+ maxPriorityFeePerGas?: bigint;
451
+ nonce?: number;
452
+ value?: bigint;
453
+ }): Promise<boolean> {
454
+ return contract.simulate.reveal(options) as Promise<boolean>;
455
+ },
159
456
  /**
160
457
  * Simulate authenticate
161
458
  * Returns gas estimate and result without sending transaction
@@ -172,8 +469,8 @@ export class TeikhosBounty_json {
172
469
  maxPriorityFeePerGas?: bigint;
173
470
  nonce?: number;
174
471
  value?: bigint;
175
- }): Promise<boolean> {
176
- return contract.simulate.authenticate([_publicKey] as const, options) as Promise<boolean>;
472
+ }): Promise<void> {
473
+ return contract.simulate.authenticate([_publicKey] as const, options) as Promise<void>;
177
474
  }
178
475
  };
179
476
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitmyabi/teikhosbounty",
3
- "version": "1.0.2",
4
- "description": "Auto-generated TypeScript type bindings for TeikhosBounty (build etherscan-teikhosbounty-ed877a73-1788184628952, commit 1036adc, branch etherscan)",
3
+ "version": "1.0.4",
4
+ "description": "Auto-generated TypeScript type bindings for TeikhosBounty (build etherscan-teikhosbounty-735ba26f-1793596393114, commit c0d6861, 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/teikhosbounty"
40
40
  },
41
41
  "branch": "etherscan",
42
- "shortHash": "1036adc"
42
+ "shortHash": "c0d6861"
43
43
  }