@gitmyabi/teikhosbounty 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.
- package/README.md +3 -3
- package/contracts/TeikhosBounty_json.d.ts +27 -48
- package/contracts/TeikhosBounty_json.js +33 -60
- package/contracts/TeikhosBounty_json.ts +35 -64
- package/package.json +3 -3
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-
|
|
5
|
+
- **Build ID**: `etherscan-teikhosbounty-735ba26f-1793596393114`
|
|
6
6
|
- **Build Number**: 1
|
|
7
|
-
- **Commit**: `
|
|
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.
|
|
15
|
+
npm install @gitmyabi/teikhosbounty@1.0.4
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -5,17 +5,6 @@ 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: true;
|
|
9
|
-
readonly inputs: readonly [];
|
|
10
|
-
readonly name: "proof_of_public_key1";
|
|
11
|
-
readonly outputs: readonly [{
|
|
12
|
-
readonly name: "";
|
|
13
|
-
readonly type: "bytes32";
|
|
14
|
-
}];
|
|
15
|
-
readonly payable: false;
|
|
16
|
-
readonly stateMutability: "view";
|
|
17
|
-
readonly type: "function";
|
|
18
|
-
}, {
|
|
19
8
|
readonly constant: false;
|
|
20
9
|
readonly inputs: readonly [];
|
|
21
10
|
readonly name: "reward";
|
|
@@ -66,33 +55,22 @@ export declare const TeikhosBounty_jsonAbi: readonly [{
|
|
|
66
55
|
readonly constant: false;
|
|
67
56
|
readonly inputs: readonly [];
|
|
68
57
|
readonly name: "reveal";
|
|
69
|
-
readonly outputs: readonly [];
|
|
70
|
-
readonly payable: false;
|
|
71
|
-
readonly stateMutability: "nonpayable";
|
|
72
|
-
readonly type: "function";
|
|
73
|
-
}, {
|
|
74
|
-
readonly constant: true;
|
|
75
|
-
readonly inputs: readonly [{
|
|
76
|
-
readonly name: "";
|
|
77
|
-
readonly type: "address";
|
|
78
|
-
}];
|
|
79
|
-
readonly name: "commitment";
|
|
80
58
|
readonly outputs: readonly [{
|
|
81
|
-
readonly name: "
|
|
82
|
-
readonly type: "
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "signature";
|
|
85
|
-
readonly type: "bytes";
|
|
59
|
+
readonly name: "success";
|
|
60
|
+
readonly type: "bool";
|
|
86
61
|
}];
|
|
87
62
|
readonly payable: false;
|
|
88
|
-
readonly stateMutability: "
|
|
63
|
+
readonly stateMutability: "nonpayable";
|
|
89
64
|
readonly type: "function";
|
|
90
65
|
}, {
|
|
91
66
|
readonly constant: true;
|
|
92
67
|
readonly inputs: readonly [];
|
|
93
|
-
readonly name: "
|
|
68
|
+
readonly name: "proof_of_public_key";
|
|
94
69
|
readonly outputs: readonly [{
|
|
95
|
-
readonly name: "";
|
|
70
|
+
readonly name: "half1";
|
|
71
|
+
readonly type: "bytes32";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "half2";
|
|
96
74
|
readonly type: "bytes32";
|
|
97
75
|
}];
|
|
98
76
|
readonly payable: false;
|
|
@@ -100,12 +78,18 @@ export declare const TeikhosBounty_jsonAbi: readonly [{
|
|
|
100
78
|
readonly type: "function";
|
|
101
79
|
}, {
|
|
102
80
|
readonly constant: true;
|
|
103
|
-
readonly inputs: readonly [
|
|
104
|
-
readonly name: "bipedaljoe";
|
|
105
|
-
readonly outputs: readonly [{
|
|
81
|
+
readonly inputs: readonly [{
|
|
106
82
|
readonly name: "";
|
|
107
83
|
readonly type: "address";
|
|
108
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
|
+
}];
|
|
109
93
|
readonly payable: false;
|
|
110
94
|
readonly stateMutability: "view";
|
|
111
95
|
readonly type: "function";
|
|
@@ -134,6 +118,11 @@ export declare const TeikhosBounty_jsonAbi: readonly [{
|
|
|
134
118
|
readonly payable: false;
|
|
135
119
|
readonly stateMutability: "nonpayable";
|
|
136
120
|
readonly type: "function";
|
|
121
|
+
}, {
|
|
122
|
+
readonly inputs: readonly [];
|
|
123
|
+
readonly payable: false;
|
|
124
|
+
readonly stateMutability: "nonpayable";
|
|
125
|
+
readonly type: "constructor";
|
|
137
126
|
}, {
|
|
138
127
|
readonly payable: true;
|
|
139
128
|
readonly stateMutability: "payable";
|
|
@@ -195,11 +184,6 @@ export declare class TeikhosBounty_json {
|
|
|
195
184
|
* Get the underlying viem contract instance
|
|
196
185
|
*/
|
|
197
186
|
getContract(): TeikhosBounty_jsonContract;
|
|
198
|
-
/**
|
|
199
|
-
* proof_of_public_key1
|
|
200
|
-
* view
|
|
201
|
-
*/
|
|
202
|
-
proof_of_public_key1(): Promise<`0x${string}`>;
|
|
203
187
|
/**
|
|
204
188
|
* isSolved
|
|
205
189
|
* view
|
|
@@ -211,20 +195,15 @@ export declare class TeikhosBounty_json {
|
|
|
211
195
|
*/
|
|
212
196
|
sha3_512(): Promise<`0x${string}`>;
|
|
213
197
|
/**
|
|
214
|
-
*
|
|
215
|
-
* view
|
|
216
|
-
*/
|
|
217
|
-
commitment(arg0: `0x${string}`): Promise<[bigint, `0x${string}`]>;
|
|
218
|
-
/**
|
|
219
|
-
* proof_of_public_key2
|
|
198
|
+
* proof_of_public_key
|
|
220
199
|
* view
|
|
221
200
|
*/
|
|
222
|
-
|
|
201
|
+
proof_of_public_key(): Promise<[`0x${string}`, `0x${string}`]>;
|
|
223
202
|
/**
|
|
224
|
-
*
|
|
203
|
+
* commitment
|
|
225
204
|
* view
|
|
226
205
|
*/
|
|
227
|
-
|
|
206
|
+
commitment(arg0: `0x${string}`): Promise<[bigint, `0x${string}`]>;
|
|
228
207
|
/**
|
|
229
208
|
* winner
|
|
230
209
|
* view
|
|
@@ -357,7 +336,7 @@ export declare class TeikhosBounty_json {
|
|
|
357
336
|
maxPriorityFeePerGas?: bigint;
|
|
358
337
|
nonce?: number;
|
|
359
338
|
value?: bigint;
|
|
360
|
-
}): Promise<
|
|
339
|
+
}): Promise<boolean>;
|
|
361
340
|
/**
|
|
362
341
|
* Simulate authenticate
|
|
363
342
|
* Returns gas estimate and result without sending transaction
|
|
@@ -8,20 +8,6 @@ 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": true,
|
|
13
|
-
"inputs": [],
|
|
14
|
-
"name": "proof_of_public_key1",
|
|
15
|
-
"outputs": [
|
|
16
|
-
{
|
|
17
|
-
"name": "",
|
|
18
|
-
"type": "bytes32"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"payable": false,
|
|
22
|
-
"stateMutability": "view",
|
|
23
|
-
"type": "function"
|
|
24
|
-
},
|
|
25
11
|
{
|
|
26
12
|
"constant": false,
|
|
27
13
|
"inputs": [],
|
|
@@ -85,41 +71,27 @@ exports.TeikhosBounty_jsonAbi = [
|
|
|
85
71
|
"constant": false,
|
|
86
72
|
"inputs": [],
|
|
87
73
|
"name": "reveal",
|
|
88
|
-
"outputs": [],
|
|
89
|
-
"payable": false,
|
|
90
|
-
"stateMutability": "nonpayable",
|
|
91
|
-
"type": "function"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"constant": true,
|
|
95
|
-
"inputs": [
|
|
96
|
-
{
|
|
97
|
-
"name": "",
|
|
98
|
-
"type": "address"
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
"name": "commitment",
|
|
102
74
|
"outputs": [
|
|
103
75
|
{
|
|
104
|
-
"name": "
|
|
105
|
-
"type": "
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "signature",
|
|
109
|
-
"type": "bytes"
|
|
76
|
+
"name": "success",
|
|
77
|
+
"type": "bool"
|
|
110
78
|
}
|
|
111
79
|
],
|
|
112
80
|
"payable": false,
|
|
113
|
-
"stateMutability": "
|
|
81
|
+
"stateMutability": "nonpayable",
|
|
114
82
|
"type": "function"
|
|
115
83
|
},
|
|
116
84
|
{
|
|
117
85
|
"constant": true,
|
|
118
86
|
"inputs": [],
|
|
119
|
-
"name": "
|
|
87
|
+
"name": "proof_of_public_key",
|
|
120
88
|
"outputs": [
|
|
121
89
|
{
|
|
122
|
-
"name": "",
|
|
90
|
+
"name": "half1",
|
|
91
|
+
"type": "bytes32"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "half2",
|
|
123
95
|
"type": "bytes32"
|
|
124
96
|
}
|
|
125
97
|
],
|
|
@@ -129,14 +101,23 @@ exports.TeikhosBounty_jsonAbi = [
|
|
|
129
101
|
},
|
|
130
102
|
{
|
|
131
103
|
"constant": true,
|
|
132
|
-
"inputs": [
|
|
133
|
-
"name": "bipedaljoe",
|
|
134
|
-
"outputs": [
|
|
104
|
+
"inputs": [
|
|
135
105
|
{
|
|
136
106
|
"name": "",
|
|
137
107
|
"type": "address"
|
|
138
108
|
}
|
|
139
109
|
],
|
|
110
|
+
"name": "commitment",
|
|
111
|
+
"outputs": [
|
|
112
|
+
{
|
|
113
|
+
"name": "timestamp",
|
|
114
|
+
"type": "uint256"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "signature",
|
|
118
|
+
"type": "bytes"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
140
121
|
"payable": false,
|
|
141
122
|
"stateMutability": "view",
|
|
142
123
|
"type": "function"
|
|
@@ -173,6 +154,12 @@ exports.TeikhosBounty_jsonAbi = [
|
|
|
173
154
|
"stateMutability": "nonpayable",
|
|
174
155
|
"type": "function"
|
|
175
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"inputs": [],
|
|
159
|
+
"payable": false,
|
|
160
|
+
"stateMutability": "nonpayable",
|
|
161
|
+
"type": "constructor"
|
|
162
|
+
},
|
|
176
163
|
{
|
|
177
164
|
"payable": true,
|
|
178
165
|
"stateMutability": "payable",
|
|
@@ -236,13 +223,6 @@ class TeikhosBounty_json {
|
|
|
236
223
|
getContract() {
|
|
237
224
|
return this.contract;
|
|
238
225
|
}
|
|
239
|
-
/**
|
|
240
|
-
* proof_of_public_key1
|
|
241
|
-
* view
|
|
242
|
-
*/
|
|
243
|
-
async proof_of_public_key1() {
|
|
244
|
-
return this.contract.read.proof_of_public_key1();
|
|
245
|
-
}
|
|
246
226
|
/**
|
|
247
227
|
* isSolved
|
|
248
228
|
* view
|
|
@@ -258,25 +238,18 @@ class TeikhosBounty_json {
|
|
|
258
238
|
return this.contract.read.sha3_512();
|
|
259
239
|
}
|
|
260
240
|
/**
|
|
261
|
-
*
|
|
262
|
-
* view
|
|
263
|
-
*/
|
|
264
|
-
async commitment(arg0) {
|
|
265
|
-
return this.contract.read.commitment([arg0]);
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* proof_of_public_key2
|
|
241
|
+
* proof_of_public_key
|
|
269
242
|
* view
|
|
270
243
|
*/
|
|
271
|
-
async
|
|
272
|
-
return this.contract.read.
|
|
244
|
+
async proof_of_public_key() {
|
|
245
|
+
return this.contract.read.proof_of_public_key();
|
|
273
246
|
}
|
|
274
247
|
/**
|
|
275
|
-
*
|
|
248
|
+
* commitment
|
|
276
249
|
* view
|
|
277
250
|
*/
|
|
278
|
-
async
|
|
279
|
-
return this.contract.read.
|
|
251
|
+
async commitment(arg0) {
|
|
252
|
+
return this.contract.read.commitment([arg0]);
|
|
280
253
|
}
|
|
281
254
|
/**
|
|
282
255
|
* winner
|
|
@@ -7,20 +7,6 @@ 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": true,
|
|
12
|
-
"inputs": [],
|
|
13
|
-
"name": "proof_of_public_key1",
|
|
14
|
-
"outputs": [
|
|
15
|
-
{
|
|
16
|
-
"name": "",
|
|
17
|
-
"type": "bytes32"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"payable": false,
|
|
21
|
-
"stateMutability": "view",
|
|
22
|
-
"type": "function"
|
|
23
|
-
},
|
|
24
10
|
{
|
|
25
11
|
"constant": false,
|
|
26
12
|
"inputs": [],
|
|
@@ -84,41 +70,27 @@ export const TeikhosBounty_jsonAbi = [
|
|
|
84
70
|
"constant": false,
|
|
85
71
|
"inputs": [],
|
|
86
72
|
"name": "reveal",
|
|
87
|
-
"outputs": [],
|
|
88
|
-
"payable": false,
|
|
89
|
-
"stateMutability": "nonpayable",
|
|
90
|
-
"type": "function"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"constant": true,
|
|
94
|
-
"inputs": [
|
|
95
|
-
{
|
|
96
|
-
"name": "",
|
|
97
|
-
"type": "address"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"name": "commitment",
|
|
101
73
|
"outputs": [
|
|
102
74
|
{
|
|
103
|
-
"name": "
|
|
104
|
-
"type": "
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"name": "signature",
|
|
108
|
-
"type": "bytes"
|
|
75
|
+
"name": "success",
|
|
76
|
+
"type": "bool"
|
|
109
77
|
}
|
|
110
78
|
],
|
|
111
79
|
"payable": false,
|
|
112
|
-
"stateMutability": "
|
|
80
|
+
"stateMutability": "nonpayable",
|
|
113
81
|
"type": "function"
|
|
114
82
|
},
|
|
115
83
|
{
|
|
116
84
|
"constant": true,
|
|
117
85
|
"inputs": [],
|
|
118
|
-
"name": "
|
|
86
|
+
"name": "proof_of_public_key",
|
|
119
87
|
"outputs": [
|
|
120
88
|
{
|
|
121
|
-
"name": "",
|
|
89
|
+
"name": "half1",
|
|
90
|
+
"type": "bytes32"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "half2",
|
|
122
94
|
"type": "bytes32"
|
|
123
95
|
}
|
|
124
96
|
],
|
|
@@ -128,14 +100,23 @@ export const TeikhosBounty_jsonAbi = [
|
|
|
128
100
|
},
|
|
129
101
|
{
|
|
130
102
|
"constant": true,
|
|
131
|
-
"inputs": [
|
|
132
|
-
"name": "bipedaljoe",
|
|
133
|
-
"outputs": [
|
|
103
|
+
"inputs": [
|
|
134
104
|
{
|
|
135
105
|
"name": "",
|
|
136
106
|
"type": "address"
|
|
137
107
|
}
|
|
138
108
|
],
|
|
109
|
+
"name": "commitment",
|
|
110
|
+
"outputs": [
|
|
111
|
+
{
|
|
112
|
+
"name": "timestamp",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "signature",
|
|
117
|
+
"type": "bytes"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
139
120
|
"payable": false,
|
|
140
121
|
"stateMutability": "view",
|
|
141
122
|
"type": "function"
|
|
@@ -172,6 +153,12 @@ export const TeikhosBounty_jsonAbi = [
|
|
|
172
153
|
"stateMutability": "nonpayable",
|
|
173
154
|
"type": "function"
|
|
174
155
|
},
|
|
156
|
+
{
|
|
157
|
+
"inputs": [],
|
|
158
|
+
"payable": false,
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"type": "constructor"
|
|
161
|
+
},
|
|
175
162
|
{
|
|
176
163
|
"payable": true,
|
|
177
164
|
"stateMutability": "payable",
|
|
@@ -261,14 +248,6 @@ export class TeikhosBounty_json {
|
|
|
261
248
|
return this.contract;
|
|
262
249
|
}
|
|
263
250
|
|
|
264
|
-
/**
|
|
265
|
-
* proof_of_public_key1
|
|
266
|
-
* view
|
|
267
|
-
*/
|
|
268
|
-
async proof_of_public_key1(): Promise<`0x${string}`> {
|
|
269
|
-
return this.contract.read.proof_of_public_key1() as Promise<`0x${string}`>;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
251
|
/**
|
|
273
252
|
* isSolved
|
|
274
253
|
* view
|
|
@@ -286,27 +265,19 @@ export class TeikhosBounty_json {
|
|
|
286
265
|
}
|
|
287
266
|
|
|
288
267
|
/**
|
|
289
|
-
*
|
|
290
|
-
* view
|
|
291
|
-
*/
|
|
292
|
-
async commitment(arg0: `0x${string}`): Promise<[bigint, `0x${string}`]> {
|
|
293
|
-
return this.contract.read.commitment([arg0] as const) as Promise<[bigint, `0x${string}`]>;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* proof_of_public_key2
|
|
268
|
+
* proof_of_public_key
|
|
298
269
|
* view
|
|
299
270
|
*/
|
|
300
|
-
async
|
|
301
|
-
return this.contract.read.
|
|
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}`]>;
|
|
302
273
|
}
|
|
303
274
|
|
|
304
275
|
/**
|
|
305
|
-
*
|
|
276
|
+
* commitment
|
|
306
277
|
* view
|
|
307
278
|
*/
|
|
308
|
-
async
|
|
309
|
-
return this.contract.read.
|
|
279
|
+
async commitment(arg0: `0x${string}`): Promise<[bigint, `0x${string}`]> {
|
|
280
|
+
return this.contract.read.commitment([arg0] as const) as Promise<[bigint, `0x${string}`]>;
|
|
310
281
|
}
|
|
311
282
|
|
|
312
283
|
/**
|
|
@@ -479,8 +450,8 @@ export class TeikhosBounty_json {
|
|
|
479
450
|
maxPriorityFeePerGas?: bigint;
|
|
480
451
|
nonce?: number;
|
|
481
452
|
value?: bigint;
|
|
482
|
-
}): Promise<
|
|
483
|
-
return contract.simulate.reveal(options) as Promise<
|
|
453
|
+
}): Promise<boolean> {
|
|
454
|
+
return contract.simulate.reveal(options) as Promise<boolean>;
|
|
484
455
|
},
|
|
485
456
|
/**
|
|
486
457
|
* Simulate authenticate
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitmyabi/teikhosbounty",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Auto-generated TypeScript type bindings for TeikhosBounty (build etherscan-teikhosbounty-
|
|
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": "
|
|
42
|
+
"shortHash": "c0d6861"
|
|
43
43
|
}
|