@flarenetwork/flare-periphery-contract-artifacts 0.1.22 → 0.1.24
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 +11 -10
- package/coston/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/coston/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/coston/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/coston/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/coston/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/coston2/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/coston2/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/coston2/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/coston2/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/coston2/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/dist/coston/abis.d.ts.map +1 -1
- package/dist/coston/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/dist/coston/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/dist/coston/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/dist/coston/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/dist/coston/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/dist/coston2/abis.d.ts.map +1 -1
- package/dist/coston2/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/dist/coston2/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/dist/coston2/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/dist/coston2/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/dist/coston2/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/dist/flare/abis.d.ts.map +1 -1
- package/dist/flare/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/dist/flare/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/dist/flare/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/dist/flare/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/dist/flare/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -1
- package/dist/songbird/abis.d.ts.map +1 -1
- package/dist/songbird/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/dist/songbird/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/dist/songbird/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/dist/songbird/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/dist/songbird/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/flare/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/flare/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/flare/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/flare/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/flare/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
- package/package.json +1 -1
- package/songbird/artifacts/contracts/IFdcVerification.sol/IFdcVerification.json +107 -0
- package/songbird/artifacts/contracts/IJsonApi.sol/IJsonApi.json +1 -0
- package/songbird/artifacts/contracts/IJsonApiVerification.sol/IJsonApiVerification.json +89 -0
- package/songbird/artifacts/contracts/IWeb2Json.sol/IWeb2Json.json +1 -0
- package/songbird/artifacts/contracts/IWeb2JsonVerification.sol/IWeb2JsonVerification.json +109 -0
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@ This package contains ABIs and addresses for smart contracts deployed on [Flare
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npm install @flarenetwork/flare-periphery-contract
|
|
13
|
+
npm install @flarenetwork/flare-periphery-contract-artifacts
|
|
14
14
|
# or
|
|
15
|
-
yarn add @flarenetwork/flare-periphery-contract
|
|
15
|
+
yarn add @flarenetwork/flare-periphery-contract-artifacts
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Features
|
|
@@ -21,8 +21,8 @@ yarn add @flarenetwork/flare-periphery-contract
|
|
|
21
21
|
|
|
22
22
|
#### ABI Access Functions
|
|
23
23
|
|
|
24
|
-
- `nameToAbi(name: string, network: string): any`
|
|
25
|
-
- `interfaceToAbi(name: string, network: string): any`
|
|
24
|
+
- `nameToAbi(name: string, network: string): any` - get full smart contract functionality;
|
|
25
|
+
- `interfaceToAbi(name: string, network: string): any` - interact with the contract's public API.
|
|
26
26
|
|
|
27
27
|
Both functions return an ABI array. The `network` parameter must be one of:
|
|
28
28
|
|
|
@@ -32,9 +32,10 @@ Both functions return an ABI array. The `network` parameter must be one of:
|
|
|
32
32
|
- `"flare"`
|
|
33
33
|
|
|
34
34
|
```typescript
|
|
35
|
-
import { nameToAbi } from "@flarenetwork/flare-periphery-contract";
|
|
35
|
+
import { nameToAbi, interfaceToAbi } from "@flarenetwork/flare-periphery-contract";
|
|
36
36
|
|
|
37
|
-
const
|
|
37
|
+
const fullAbi = nameToAbi("FtsoManager", "flare");
|
|
38
|
+
const interfaceAbi = interfaceToAbi("IFtsoManager", "flare");
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
#### Address Resolution
|
|
@@ -45,7 +46,7 @@ const abi = nameToAbi("FtsoManager", "flare");
|
|
|
45
46
|
These functions fetch contract addresses from the on-chain FlareContractRegistryLibrary.
|
|
46
47
|
|
|
47
48
|
```typescript
|
|
48
|
-
import { nameToAddress } from "@flarenetwork/flare-periphery-contract";
|
|
49
|
+
import { nameToAddress } from "@flarenetwork/flare-periphery-contract-artifacts";
|
|
49
50
|
import { ethers } from "ethers";
|
|
50
51
|
|
|
51
52
|
const provider = new ethers.JsonRpcProvider("https://flare-api.flare.network/ext/C/rpc");
|
|
@@ -65,7 +66,7 @@ Each network (`coston`, `coston2`, `flare`, `songbird`) exports:
|
|
|
65
66
|
Access contract information through `.ContractName` syntax:
|
|
66
67
|
|
|
67
68
|
```typescript
|
|
68
|
-
import { flare } from "@flarenetwork/flare-periphery-contract";
|
|
69
|
+
import { flare } from "@flarenetwork/flare-periphery-contract-artifacts";
|
|
69
70
|
|
|
70
71
|
const ftsoManager = flare.products.FtsoManager;
|
|
71
72
|
console.log(ftsoManager.name); // Contract name
|
|
@@ -81,7 +82,7 @@ const address = await ftsoManager.getAddress(provider);
|
|
|
81
82
|
Access interface ABIs using `.InterfaceName` syntax:
|
|
82
83
|
|
|
83
84
|
```typescript
|
|
84
|
-
import { flare } from "@flarenetwork/flare-periphery-contract";
|
|
85
|
+
import { flare } from "@flarenetwork/flare-periphery-contract-artifacts";
|
|
85
86
|
|
|
86
87
|
const abi = flare.interfaceAbis.IFtsoManager;
|
|
87
88
|
```
|
|
@@ -91,7 +92,7 @@ const abi = flare.interfaceAbis.IFtsoManager;
|
|
|
91
92
|
It is same as top-level functions but with the pre-set network:
|
|
92
93
|
|
|
93
94
|
```typescript
|
|
94
|
-
import { flare } from "@flarenetwork/flare-periphery-contract";
|
|
95
|
+
import { flare } from "@flarenetwork/flare-periphery-contract-artifacts";
|
|
95
96
|
|
|
96
97
|
const abi = flare.nameToAbi("FtsoManager"); // Network already known
|
|
97
98
|
const iAbi = flare.interfaceToAbi("IFtsoManager");
|
|
@@ -449,6 +449,113 @@
|
|
|
449
449
|
"stateMutability": "view",
|
|
450
450
|
"type": "function"
|
|
451
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"inputs": [
|
|
454
|
+
{
|
|
455
|
+
"components": [
|
|
456
|
+
{
|
|
457
|
+
"internalType": "bytes32[]",
|
|
458
|
+
"name": "merkleProof",
|
|
459
|
+
"type": "bytes32[]"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"components": [
|
|
463
|
+
{
|
|
464
|
+
"internalType": "bytes32",
|
|
465
|
+
"name": "attestationType",
|
|
466
|
+
"type": "bytes32"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"internalType": "bytes32",
|
|
470
|
+
"name": "sourceId",
|
|
471
|
+
"type": "bytes32"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"internalType": "uint64",
|
|
475
|
+
"name": "votingRound",
|
|
476
|
+
"type": "uint64"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"internalType": "uint64",
|
|
480
|
+
"name": "lowestUsedTimestamp",
|
|
481
|
+
"type": "uint64"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"components": [
|
|
485
|
+
{
|
|
486
|
+
"internalType": "string",
|
|
487
|
+
"name": "url",
|
|
488
|
+
"type": "string"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"internalType": "string",
|
|
492
|
+
"name": "httpMethod",
|
|
493
|
+
"type": "string"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"internalType": "string",
|
|
497
|
+
"name": "headers",
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"internalType": "string",
|
|
502
|
+
"name": "queryParams",
|
|
503
|
+
"type": "string"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"internalType": "string",
|
|
507
|
+
"name": "body",
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"internalType": "string",
|
|
512
|
+
"name": "postProcessJq",
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"internalType": "string",
|
|
517
|
+
"name": "abiSignature",
|
|
518
|
+
"type": "string"
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
"internalType": "struct IWeb2Json.RequestBody",
|
|
522
|
+
"name": "requestBody",
|
|
523
|
+
"type": "tuple"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"components": [
|
|
527
|
+
{
|
|
528
|
+
"internalType": "bytes",
|
|
529
|
+
"name": "abiEncodedData",
|
|
530
|
+
"type": "bytes"
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"internalType": "struct IWeb2Json.ResponseBody",
|
|
534
|
+
"name": "responseBody",
|
|
535
|
+
"type": "tuple"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"internalType": "struct IWeb2Json.Response",
|
|
539
|
+
"name": "data",
|
|
540
|
+
"type": "tuple"
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"internalType": "struct IWeb2Json.Proof",
|
|
544
|
+
"name": "_proof",
|
|
545
|
+
"type": "tuple"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
"name": "verifyJsonApi",
|
|
549
|
+
"outputs": [
|
|
550
|
+
{
|
|
551
|
+
"internalType": "bool",
|
|
552
|
+
"name": "_proved",
|
|
553
|
+
"type": "bool"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"stateMutability": "view",
|
|
557
|
+
"type": "function"
|
|
558
|
+
},
|
|
452
559
|
{
|
|
453
560
|
"inputs": [
|
|
454
561
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"components": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "bytes32[]",
|
|
8
|
+
"name": "merkleProof",
|
|
9
|
+
"type": "bytes32[]"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"components": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes32",
|
|
15
|
+
"name": "attestationType",
|
|
16
|
+
"type": "bytes32"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes32",
|
|
20
|
+
"name": "sourceId",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint64",
|
|
25
|
+
"name": "votingRound",
|
|
26
|
+
"type": "uint64"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint64",
|
|
30
|
+
"name": "lowestUsedTimestamp",
|
|
31
|
+
"type": "uint64"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"components": [
|
|
35
|
+
{
|
|
36
|
+
"internalType": "string",
|
|
37
|
+
"name": "url",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"internalType": "string",
|
|
42
|
+
"name": "postprocessJq",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "string",
|
|
47
|
+
"name": "abi_signature",
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"internalType": "struct IJsonApi.RequestBody",
|
|
52
|
+
"name": "requestBody",
|
|
53
|
+
"type": "tuple"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"components": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "bytes",
|
|
59
|
+
"name": "abi_encoded_data",
|
|
60
|
+
"type": "bytes"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"internalType": "struct IJsonApi.ResponseBody",
|
|
64
|
+
"name": "responseBody",
|
|
65
|
+
"type": "tuple"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"internalType": "struct IJsonApi.Response",
|
|
69
|
+
"name": "data",
|
|
70
|
+
"type": "tuple"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"internalType": "struct IJsonApi.Proof",
|
|
74
|
+
"name": "_proof",
|
|
75
|
+
"type": "tuple"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"name": "verifyJsonApi",
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"internalType": "bool",
|
|
82
|
+
"name": "_proved",
|
|
83
|
+
"type": "bool"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"stateMutability": "view",
|
|
87
|
+
"type": "function"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"components": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "bytes32[]",
|
|
8
|
+
"name": "merkleProof",
|
|
9
|
+
"type": "bytes32[]"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"components": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes32",
|
|
15
|
+
"name": "attestationType",
|
|
16
|
+
"type": "bytes32"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes32",
|
|
20
|
+
"name": "sourceId",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint64",
|
|
25
|
+
"name": "votingRound",
|
|
26
|
+
"type": "uint64"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint64",
|
|
30
|
+
"name": "lowestUsedTimestamp",
|
|
31
|
+
"type": "uint64"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"components": [
|
|
35
|
+
{
|
|
36
|
+
"internalType": "string",
|
|
37
|
+
"name": "url",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"internalType": "string",
|
|
42
|
+
"name": "httpMethod",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "string",
|
|
47
|
+
"name": "headers",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"internalType": "string",
|
|
52
|
+
"name": "queryParams",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"internalType": "string",
|
|
57
|
+
"name": "body",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"internalType": "string",
|
|
62
|
+
"name": "postProcessJq",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"internalType": "string",
|
|
67
|
+
"name": "abiSignature",
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"internalType": "struct IWeb2Json.RequestBody",
|
|
72
|
+
"name": "requestBody",
|
|
73
|
+
"type": "tuple"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"components": [
|
|
77
|
+
{
|
|
78
|
+
"internalType": "bytes",
|
|
79
|
+
"name": "abiEncodedData",
|
|
80
|
+
"type": "bytes"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"internalType": "struct IWeb2Json.ResponseBody",
|
|
84
|
+
"name": "responseBody",
|
|
85
|
+
"type": "tuple"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"internalType": "struct IWeb2Json.Response",
|
|
89
|
+
"name": "data",
|
|
90
|
+
"type": "tuple"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"internalType": "struct IWeb2Json.Proof",
|
|
94
|
+
"name": "_proof",
|
|
95
|
+
"type": "tuple"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "verifyJsonApi",
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "bool",
|
|
102
|
+
"name": "_proved",
|
|
103
|
+
"type": "bool"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "view",
|
|
107
|
+
"type": "function"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
@@ -449,6 +449,113 @@
|
|
|
449
449
|
"stateMutability": "view",
|
|
450
450
|
"type": "function"
|
|
451
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"inputs": [
|
|
454
|
+
{
|
|
455
|
+
"components": [
|
|
456
|
+
{
|
|
457
|
+
"internalType": "bytes32[]",
|
|
458
|
+
"name": "merkleProof",
|
|
459
|
+
"type": "bytes32[]"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"components": [
|
|
463
|
+
{
|
|
464
|
+
"internalType": "bytes32",
|
|
465
|
+
"name": "attestationType",
|
|
466
|
+
"type": "bytes32"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"internalType": "bytes32",
|
|
470
|
+
"name": "sourceId",
|
|
471
|
+
"type": "bytes32"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"internalType": "uint64",
|
|
475
|
+
"name": "votingRound",
|
|
476
|
+
"type": "uint64"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"internalType": "uint64",
|
|
480
|
+
"name": "lowestUsedTimestamp",
|
|
481
|
+
"type": "uint64"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"components": [
|
|
485
|
+
{
|
|
486
|
+
"internalType": "string",
|
|
487
|
+
"name": "url",
|
|
488
|
+
"type": "string"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"internalType": "string",
|
|
492
|
+
"name": "httpMethod",
|
|
493
|
+
"type": "string"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"internalType": "string",
|
|
497
|
+
"name": "headers",
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"internalType": "string",
|
|
502
|
+
"name": "queryParams",
|
|
503
|
+
"type": "string"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"internalType": "string",
|
|
507
|
+
"name": "body",
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"internalType": "string",
|
|
512
|
+
"name": "postProcessJq",
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"internalType": "string",
|
|
517
|
+
"name": "abiSignature",
|
|
518
|
+
"type": "string"
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
"internalType": "struct IWeb2Json.RequestBody",
|
|
522
|
+
"name": "requestBody",
|
|
523
|
+
"type": "tuple"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"components": [
|
|
527
|
+
{
|
|
528
|
+
"internalType": "bytes",
|
|
529
|
+
"name": "abiEncodedData",
|
|
530
|
+
"type": "bytes"
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"internalType": "struct IWeb2Json.ResponseBody",
|
|
534
|
+
"name": "responseBody",
|
|
535
|
+
"type": "tuple"
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"internalType": "struct IWeb2Json.Response",
|
|
539
|
+
"name": "data",
|
|
540
|
+
"type": "tuple"
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"internalType": "struct IWeb2Json.Proof",
|
|
544
|
+
"name": "_proof",
|
|
545
|
+
"type": "tuple"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
"name": "verifyJsonApi",
|
|
549
|
+
"outputs": [
|
|
550
|
+
{
|
|
551
|
+
"internalType": "bool",
|
|
552
|
+
"name": "_proved",
|
|
553
|
+
"type": "bool"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"stateMutability": "view",
|
|
557
|
+
"type": "function"
|
|
558
|
+
},
|
|
452
559
|
{
|
|
453
560
|
"inputs": [
|
|
454
561
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"components": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "bytes32[]",
|
|
8
|
+
"name": "merkleProof",
|
|
9
|
+
"type": "bytes32[]"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"components": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes32",
|
|
15
|
+
"name": "attestationType",
|
|
16
|
+
"type": "bytes32"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes32",
|
|
20
|
+
"name": "sourceId",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint64",
|
|
25
|
+
"name": "votingRound",
|
|
26
|
+
"type": "uint64"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint64",
|
|
30
|
+
"name": "lowestUsedTimestamp",
|
|
31
|
+
"type": "uint64"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"components": [
|
|
35
|
+
{
|
|
36
|
+
"internalType": "string",
|
|
37
|
+
"name": "url",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"internalType": "string",
|
|
42
|
+
"name": "postprocessJq",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"internalType": "string",
|
|
47
|
+
"name": "abi_signature",
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"internalType": "struct IJsonApi.RequestBody",
|
|
52
|
+
"name": "requestBody",
|
|
53
|
+
"type": "tuple"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"components": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "bytes",
|
|
59
|
+
"name": "abi_encoded_data",
|
|
60
|
+
"type": "bytes"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"internalType": "struct IJsonApi.ResponseBody",
|
|
64
|
+
"name": "responseBody",
|
|
65
|
+
"type": "tuple"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"internalType": "struct IJsonApi.Response",
|
|
69
|
+
"name": "data",
|
|
70
|
+
"type": "tuple"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"internalType": "struct IJsonApi.Proof",
|
|
74
|
+
"name": "_proof",
|
|
75
|
+
"type": "tuple"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"name": "verifyJsonApi",
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"internalType": "bool",
|
|
82
|
+
"name": "_proved",
|
|
83
|
+
"type": "bool"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"stateMutability": "view",
|
|
87
|
+
"type": "function"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|