@flarenetwork/flare-periphery-contract-artifacts 0.1.3 → 0.1.5
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/coston/artifacts/contracts/StateConnector/interface/AddressValidity.sol/AddressValidity.json +10 -0
- package/coston/artifacts/contracts/StateConnector/interface/BalanceDecreasingTransaction.sol/BalanceDecreasingTransaction.json +10 -0
- package/coston/artifacts/contracts/StateConnector/interface/ConfirmedBlockHeightExists.sol/ConfirmedBlockHeightExists.json +10 -0
- package/coston/artifacts/contracts/StateConnector/interface/EVMTransaction.sol/EVMTransaction.json +10 -0
- package/coston/artifacts/contracts/StateConnector/interface/IAddressValidityVerification.sol/IAddressValidityVerification.json +98 -0
- package/coston/artifacts/contracts/StateConnector/interface/IBalanceDecreasingTransactionVerification.sol/IBalanceDecreasingTransactionVerification.json +113 -0
- package/coston/artifacts/contracts/StateConnector/interface/IConfirmedBlockHeightExistsVerification.sol/IConfirmedBlockHeightExistsVerification.json +108 -0
- package/coston/artifacts/contracts/StateConnector/interface/IEVMTransactionVerification.sol/IEVMTransactionVerification.json +175 -0
- package/coston/artifacts/contracts/StateConnector/interface/IPaymentVerification.sol/IPaymentVerification.json +153 -0
- package/coston/artifacts/contracts/StateConnector/interface/IReferencedPaymentNonexistenceVerification.sol/IReferencedPaymentNonexistenceVerification.json +123 -0
- package/coston/artifacts/contracts/StateConnector/interface/IStateConnector.sol/IStateConnector.json +126 -0
- package/coston/artifacts/contracts/StateConnector/interface/ITypeTemplateVerification.sol/ITypeTemplateVerification.json +149 -0
- package/coston/artifacts/contracts/StateConnector/interface/Payment.sol/Payment.json +10 -0
- package/coston/artifacts/contracts/StateConnector/interface/ReferencedPaymentNonexistence.sol/ReferencedPaymentNonexistence.json +10 -0
- package/coston/artifacts/contracts/StateConnector/interface/TypeTemplate.sol/TypeTemplate.json +10 -0
- package/coston/deploys/contracts.json +31 -1
- package/dist/coston/abis.d.ts.map +1 -1
- package/dist/coston/abis.js +30 -0
- package/dist/coston/abis.js.map +1 -1
- package/dist/coston/artifacts/contracts/StateConnector/interface/AddressValidity.sol/AddressValidity.json +10 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/BalanceDecreasingTransaction.sol/BalanceDecreasingTransaction.json +10 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/ConfirmedBlockHeightExists.sol/ConfirmedBlockHeightExists.json +10 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/EVMTransaction.sol/EVMTransaction.json +10 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IAddressValidityVerification.sol/IAddressValidityVerification.json +98 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IBalanceDecreasingTransactionVerification.sol/IBalanceDecreasingTransactionVerification.json +113 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IConfirmedBlockHeightExistsVerification.sol/IConfirmedBlockHeightExistsVerification.json +108 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IEVMTransactionVerification.sol/IEVMTransactionVerification.json +175 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IPaymentVerification.sol/IPaymentVerification.json +153 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IReferencedPaymentNonexistenceVerification.sol/IReferencedPaymentNonexistenceVerification.json +123 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/IStateConnector.sol/IStateConnector.json +126 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/ITypeTemplateVerification.sol/ITypeTemplateVerification.json +149 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/Payment.sol/Payment.json +10 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/ReferencedPaymentNonexistence.sol/ReferencedPaymentNonexistence.json +10 -0
- package/dist/coston/artifacts/contracts/StateConnector/interface/TypeTemplate.sol/TypeTemplate.json +10 -0
- package/dist/coston/deploys/contracts.json +31 -1
- package/package.json +1 -1
- package/coston/StateConnector/configs/AddressValidity.json +0 -310
- package/coston/StateConnector/configs/BalanceDecreasingTransaction.json +0 -379
- package/coston/StateConnector/configs/ConfirmedBlockHeightExists.json +0 -363
- package/coston/StateConnector/configs/EVMTransaction.json +0 -600
- package/coston/StateConnector/configs/Payment.json +0 -512
- package/coston/StateConnector/configs/ReferencedPaymentNonexistence.json +0 -431
- package/coston/StateConnector/configs/TypeTemplate.json +0 -555
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts +0 -68
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js +0 -164
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js.map +0 -1
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts +0 -33
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.js +0 -30
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.js.map +0 -1
- package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts +0 -103
- package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/MerkleTree.js +0 -212
- package/dist/coston/StateConnector/libs/ts/MerkleTree.js.map +0 -1
- package/dist/coston/StateConnector/libs/ts/config-types.d.ts +0 -143
- package/dist/coston/StateConnector/libs/ts/config-types.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/config-types.js +0 -3
- package/dist/coston/StateConnector/libs/ts/config-types.js.map +0 -1
- package/dist/coston/StateConnector/libs/ts/interfaces.d.ts +0 -32
- package/dist/coston/StateConnector/libs/ts/interfaces.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/interfaces.js +0 -3
- package/dist/coston/StateConnector/libs/ts/interfaces.js.map +0 -1
- package/dist/coston/StateConnector/libs/ts/random.d.ts +0 -9
- package/dist/coston/StateConnector/libs/ts/random.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/random.js +0 -70
- package/dist/coston/StateConnector/libs/ts/random.js.map +0 -1
- package/dist/coston/StateConnector/libs/ts/utils.d.ts +0 -73
- package/dist/coston/StateConnector/libs/ts/utils.d.ts.map +0 -1
- package/dist/coston/StateConnector/libs/ts/utils.js +0 -282
- package/dist/coston/StateConnector/libs/ts/utils.js.map +0 -1
- package/dist/coston/StateConnector/typescript/AddressValidity.d.ts +0 -91
- package/dist/coston/StateConnector/typescript/AddressValidity.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/AddressValidity.js +0 -9
- package/dist/coston/StateConnector/typescript/AddressValidity.js.map +0 -1
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts +0 -107
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js +0 -9
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js.map +0 -1
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts +0 -103
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js +0 -9
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js.map +0 -1
- package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts +0 -160
- package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/EVMTransaction.js +0 -9
- package/dist/coston/StateConnector/typescript/EVMTransaction.js.map +0 -1
- package/dist/coston/StateConnector/typescript/Payment.d.ts +0 -139
- package/dist/coston/StateConnector/typescript/Payment.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/Payment.js +0 -9
- package/dist/coston/StateConnector/typescript/Payment.js.map +0 -1
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts +0 -115
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js +0 -9
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js.map +0 -1
- package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts +0 -146
- package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/TypeTemplate.js +0 -9
- package/dist/coston/StateConnector/typescript/TypeTemplate.js.map +0 -1
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts +0 -29
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.js +0 -33
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.js.map +0 -1
- package/dist/coston/StateConnector/typescript/index.d.ts +0 -9
- package/dist/coston/StateConnector/typescript/index.d.ts.map +0 -1
- package/dist/coston/StateConnector/typescript/index.js +0 -25
- package/dist/coston/StateConnector/typescript/index.js.map +0 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IPaymentVerification",
|
|
4
|
+
"sourceName": "contracts/StateConnector/interface/IPaymentVerification.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"components": [
|
|
10
|
+
{
|
|
11
|
+
"internalType": "bytes32[]",
|
|
12
|
+
"name": "merkleProof",
|
|
13
|
+
"type": "bytes32[]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"components": [
|
|
17
|
+
{
|
|
18
|
+
"internalType": "bytes32",
|
|
19
|
+
"name": "attestationType",
|
|
20
|
+
"type": "bytes32"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"internalType": "bytes32",
|
|
24
|
+
"name": "sourceId",
|
|
25
|
+
"type": "bytes32"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint64",
|
|
29
|
+
"name": "votingRound",
|
|
30
|
+
"type": "uint64"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "uint64",
|
|
34
|
+
"name": "lowestUsedTimestamp",
|
|
35
|
+
"type": "uint64"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"components": [
|
|
39
|
+
{
|
|
40
|
+
"internalType": "bytes32",
|
|
41
|
+
"name": "transactionId",
|
|
42
|
+
"type": "bytes32"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"internalType": "uint256",
|
|
46
|
+
"name": "inUtxo",
|
|
47
|
+
"type": "uint256"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"internalType": "uint256",
|
|
51
|
+
"name": "utxo",
|
|
52
|
+
"type": "uint256"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"internalType": "struct Payment.RequestBody",
|
|
56
|
+
"name": "requestBody",
|
|
57
|
+
"type": "tuple"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"components": [
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint64",
|
|
63
|
+
"name": "blockNumber",
|
|
64
|
+
"type": "uint64"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"internalType": "uint64",
|
|
68
|
+
"name": "blockTimestamp",
|
|
69
|
+
"type": "uint64"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "bytes32",
|
|
73
|
+
"name": "sourceAddressHash",
|
|
74
|
+
"type": "bytes32"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"internalType": "bytes32",
|
|
78
|
+
"name": "receivingAddressHash",
|
|
79
|
+
"type": "bytes32"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"internalType": "bytes32",
|
|
83
|
+
"name": "intendedReceivingAddressHash",
|
|
84
|
+
"type": "bytes32"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"internalType": "int256",
|
|
88
|
+
"name": "spentAmount",
|
|
89
|
+
"type": "int256"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"internalType": "int256",
|
|
93
|
+
"name": "intendedSpentAmount",
|
|
94
|
+
"type": "int256"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"internalType": "int256",
|
|
98
|
+
"name": "receivedAmount",
|
|
99
|
+
"type": "int256"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"internalType": "int256",
|
|
103
|
+
"name": "intendedReceivedAmount",
|
|
104
|
+
"type": "int256"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"internalType": "bytes32",
|
|
108
|
+
"name": "standardPaymentReference",
|
|
109
|
+
"type": "bytes32"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"internalType": "bool",
|
|
113
|
+
"name": "oneToOne",
|
|
114
|
+
"type": "bool"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"internalType": "uint8",
|
|
118
|
+
"name": "status",
|
|
119
|
+
"type": "uint8"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"internalType": "struct Payment.ResponseBody",
|
|
123
|
+
"name": "responseBody",
|
|
124
|
+
"type": "tuple"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"internalType": "struct Payment.Response",
|
|
128
|
+
"name": "data",
|
|
129
|
+
"type": "tuple"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"internalType": "struct Payment.Proof",
|
|
133
|
+
"name": "_proof",
|
|
134
|
+
"type": "tuple"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"name": "verifyPayment",
|
|
138
|
+
"outputs": [
|
|
139
|
+
{
|
|
140
|
+
"internalType": "bool",
|
|
141
|
+
"name": "_proved",
|
|
142
|
+
"type": "bool"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"stateMutability": "view",
|
|
146
|
+
"type": "function"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"bytecode": "0x",
|
|
150
|
+
"deployedBytecode": "0x",
|
|
151
|
+
"linkReferences": {},
|
|
152
|
+
"deployedLinkReferences": {}
|
|
153
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IReferencedPaymentNonexistenceVerification",
|
|
4
|
+
"sourceName": "contracts/StateConnector/interface/IReferencedPaymentNonexistenceVerification.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"components": [
|
|
10
|
+
{
|
|
11
|
+
"internalType": "bytes32[]",
|
|
12
|
+
"name": "merkleProof",
|
|
13
|
+
"type": "bytes32[]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"components": [
|
|
17
|
+
{
|
|
18
|
+
"internalType": "bytes32",
|
|
19
|
+
"name": "attestationType",
|
|
20
|
+
"type": "bytes32"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"internalType": "bytes32",
|
|
24
|
+
"name": "sourceId",
|
|
25
|
+
"type": "bytes32"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint64",
|
|
29
|
+
"name": "votingRound",
|
|
30
|
+
"type": "uint64"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "uint64",
|
|
34
|
+
"name": "lowestUsedTimestamp",
|
|
35
|
+
"type": "uint64"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"components": [
|
|
39
|
+
{
|
|
40
|
+
"internalType": "uint64",
|
|
41
|
+
"name": "minimalBlockNumber",
|
|
42
|
+
"type": "uint64"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"internalType": "uint64",
|
|
46
|
+
"name": "deadlineBlockNumber",
|
|
47
|
+
"type": "uint64"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"internalType": "uint64",
|
|
51
|
+
"name": "deadlineTimestamp",
|
|
52
|
+
"type": "uint64"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"internalType": "bytes32",
|
|
56
|
+
"name": "destinationAddressHash",
|
|
57
|
+
"type": "bytes32"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"internalType": "uint256",
|
|
61
|
+
"name": "amount",
|
|
62
|
+
"type": "uint256"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"internalType": "bytes32",
|
|
66
|
+
"name": "standardPaymentReference",
|
|
67
|
+
"type": "bytes32"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"internalType": "struct ReferencedPaymentNonexistence.RequestBody",
|
|
71
|
+
"name": "requestBody",
|
|
72
|
+
"type": "tuple"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"components": [
|
|
76
|
+
{
|
|
77
|
+
"internalType": "uint64",
|
|
78
|
+
"name": "minimalBlockTimestamp",
|
|
79
|
+
"type": "uint64"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint64",
|
|
83
|
+
"name": "firstOverflowBlockNumber",
|
|
84
|
+
"type": "uint64"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"internalType": "uint64",
|
|
88
|
+
"name": "firstOverflowBlockTimestamp",
|
|
89
|
+
"type": "uint64"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"internalType": "struct ReferencedPaymentNonexistence.ResponseBody",
|
|
93
|
+
"name": "responseBody",
|
|
94
|
+
"type": "tuple"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"internalType": "struct ReferencedPaymentNonexistence.Response",
|
|
98
|
+
"name": "data",
|
|
99
|
+
"type": "tuple"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"internalType": "struct ReferencedPaymentNonexistence.Proof",
|
|
103
|
+
"name": "_proof",
|
|
104
|
+
"type": "tuple"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"name": "verifyReferencedPaymentNonexistence",
|
|
108
|
+
"outputs": [
|
|
109
|
+
{
|
|
110
|
+
"internalType": "bool",
|
|
111
|
+
"name": "_proved",
|
|
112
|
+
"type": "bool"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"stateMutability": "view",
|
|
116
|
+
"type": "function"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"bytecode": "0x",
|
|
120
|
+
"deployedBytecode": "0x",
|
|
121
|
+
"linkReferences": {},
|
|
122
|
+
"deployedLinkReferences": {}
|
|
123
|
+
}
|
package/coston/artifacts/contracts/StateConnector/interface/IStateConnector.sol/IStateConnector.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IStateConnector",
|
|
4
|
+
"sourceName": "contracts/StateConnector/interface/IStateConnector.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": false,
|
|
11
|
+
"internalType": "address",
|
|
12
|
+
"name": "sender",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"indexed": false,
|
|
17
|
+
"internalType": "uint256",
|
|
18
|
+
"name": "timestamp",
|
|
19
|
+
"type": "uint256"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"indexed": false,
|
|
23
|
+
"internalType": "bytes",
|
|
24
|
+
"name": "data",
|
|
25
|
+
"type": "bytes"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"name": "AttestationRequest",
|
|
29
|
+
"type": "event"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"anonymous": false,
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"indexed": true,
|
|
36
|
+
"internalType": "uint256",
|
|
37
|
+
"name": "roundId",
|
|
38
|
+
"type": "uint256"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"indexed": false,
|
|
42
|
+
"internalType": "bytes32",
|
|
43
|
+
"name": "merkleRoot",
|
|
44
|
+
"type": "bytes32"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"name": "RoundFinalised",
|
|
48
|
+
"type": "event"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"inputs": [],
|
|
52
|
+
"name": "BUFFER_TIMESTAMP_OFFSET",
|
|
53
|
+
"outputs": [
|
|
54
|
+
{
|
|
55
|
+
"internalType": "uint256",
|
|
56
|
+
"name": "",
|
|
57
|
+
"type": "uint256"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"stateMutability": "view",
|
|
61
|
+
"type": "function"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"inputs": [],
|
|
65
|
+
"name": "BUFFER_WINDOW",
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"internalType": "uint256",
|
|
69
|
+
"name": "",
|
|
70
|
+
"type": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "view",
|
|
74
|
+
"type": "function"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "lastFinalizedRoundId",
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"internalType": "uint256",
|
|
82
|
+
"name": "_roundId",
|
|
83
|
+
"type": "uint256"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"stateMutability": "view",
|
|
87
|
+
"type": "function"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"inputs": [
|
|
91
|
+
{
|
|
92
|
+
"internalType": "uint256",
|
|
93
|
+
"name": "_roundId",
|
|
94
|
+
"type": "uint256"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"name": "merkleRoot",
|
|
98
|
+
"outputs": [
|
|
99
|
+
{
|
|
100
|
+
"internalType": "bytes32",
|
|
101
|
+
"name": "",
|
|
102
|
+
"type": "bytes32"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"stateMutability": "view",
|
|
106
|
+
"type": "function"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"inputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "bytes",
|
|
112
|
+
"name": "_data",
|
|
113
|
+
"type": "bytes"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"name": "requestAttestations",
|
|
117
|
+
"outputs": [],
|
|
118
|
+
"stateMutability": "nonpayable",
|
|
119
|
+
"type": "function"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"bytecode": "0x",
|
|
123
|
+
"deployedBytecode": "0x",
|
|
124
|
+
"linkReferences": {},
|
|
125
|
+
"deployedLinkReferences": {}
|
|
126
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ITypeTemplateVerification",
|
|
4
|
+
"sourceName": "contracts/StateConnector/interface/ITypeTemplateVerification.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"components": [
|
|
10
|
+
{
|
|
11
|
+
"internalType": "bytes32[]",
|
|
12
|
+
"name": "merkleProof",
|
|
13
|
+
"type": "bytes32[]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"components": [
|
|
17
|
+
{
|
|
18
|
+
"internalType": "bytes32",
|
|
19
|
+
"name": "attestationType",
|
|
20
|
+
"type": "bytes32"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"internalType": "bytes32",
|
|
24
|
+
"name": "sourceId",
|
|
25
|
+
"type": "bytes32"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint64",
|
|
29
|
+
"name": "votingRound",
|
|
30
|
+
"type": "uint64"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "uint64",
|
|
34
|
+
"name": "lowestUsedTimestamp",
|
|
35
|
+
"type": "uint64"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"components": [
|
|
39
|
+
{
|
|
40
|
+
"internalType": "bytes32",
|
|
41
|
+
"name": "bytes32Field",
|
|
42
|
+
"type": "bytes32"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"internalType": "bool",
|
|
46
|
+
"name": "boolField",
|
|
47
|
+
"type": "bool"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"components": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "bytes32",
|
|
53
|
+
"name": "templateStructField",
|
|
54
|
+
"type": "bytes32"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"internalType": "uint256[]",
|
|
58
|
+
"name": "uintArrayField",
|
|
59
|
+
"type": "uint256[]"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"internalType": "bool[]",
|
|
63
|
+
"name": "boolArrayField",
|
|
64
|
+
"type": "bool[]"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"internalType": "struct TypeTemplate.RequestSubstruct1",
|
|
68
|
+
"name": "requestSubstruct1",
|
|
69
|
+
"type": "tuple"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"components": [
|
|
73
|
+
{
|
|
74
|
+
"internalType": "bytes32",
|
|
75
|
+
"name": "templateStructField",
|
|
76
|
+
"type": "bytes32"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "int256[]",
|
|
80
|
+
"name": "intArrayField",
|
|
81
|
+
"type": "int256[]"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"internalType": "bool[]",
|
|
85
|
+
"name": "boolArrayField",
|
|
86
|
+
"type": "bool[]"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"internalType": "struct TypeTemplate.RequestSubstruct2[]",
|
|
90
|
+
"name": "requestSubstruct2Array",
|
|
91
|
+
"type": "tuple[]"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"internalType": "struct TypeTemplate.RequestBody",
|
|
95
|
+
"name": "requestBody",
|
|
96
|
+
"type": "tuple"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"components": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "bytes32",
|
|
102
|
+
"name": "templateResponseField",
|
|
103
|
+
"type": "bytes32"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"components": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "bytes32",
|
|
109
|
+
"name": "templateStructField",
|
|
110
|
+
"type": "bytes32"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"internalType": "struct TypeTemplate.ResponseSubstruct1[]",
|
|
114
|
+
"name": "responseSubstruct1Array",
|
|
115
|
+
"type": "tuple[]"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"internalType": "struct TypeTemplate.ResponseBody",
|
|
119
|
+
"name": "responseBody",
|
|
120
|
+
"type": "tuple"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"internalType": "struct TypeTemplate.Response",
|
|
124
|
+
"name": "data",
|
|
125
|
+
"type": "tuple"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"internalType": "struct TypeTemplate.Proof",
|
|
129
|
+
"name": "_proof",
|
|
130
|
+
"type": "tuple"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"name": "verifyTypeTemplate",
|
|
134
|
+
"outputs": [
|
|
135
|
+
{
|
|
136
|
+
"internalType": "bool",
|
|
137
|
+
"name": "_proved",
|
|
138
|
+
"type": "bool"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"stateMutability": "view",
|
|
142
|
+
"type": "function"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"bytecode": "0x",
|
|
146
|
+
"deployedBytecode": "0x",
|
|
147
|
+
"linkReferences": {},
|
|
148
|
+
"deployedLinkReferences": {}
|
|
149
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ReferencedPaymentNonexistence",
|
|
4
|
+
"sourceName": "contracts/StateConnector/interface/ReferencedPaymentNonexistence.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x",
|
|
7
|
+
"deployedBytecode": "0x",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|
package/coston/artifacts/contracts/StateConnector/interface/TypeTemplate.sol/TypeTemplate.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "TypeTemplate",
|
|
4
|
+
"sourceName": "contracts/StateConnector/interface/TypeTemplate.sol",
|
|
5
|
+
"abi": [],
|
|
6
|
+
"bytecode": "0x",
|
|
7
|
+
"deployedBytecode": "0x",
|
|
8
|
+
"linkReferences": {},
|
|
9
|
+
"deployedLinkReferences": {}
|
|
10
|
+
}
|
|
@@ -198,5 +198,35 @@
|
|
|
198
198
|
"name": "WNatRegistryProvider",
|
|
199
199
|
"contractName": "WNatRegistryProvider.sol",
|
|
200
200
|
"address": "0x9819645ab3E99a0A2c0ECF797Da4B9312b31121F"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "IEVMTransactionVerification",
|
|
204
|
+
"contractName": "IEVMTransactionVerification.sol",
|
|
205
|
+
"address": "0xC6B979a295aE1962045114392bc5BE7333840919"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "IAddressValidityVerification",
|
|
209
|
+
"contractName": "IAddressValidityVerification.sol",
|
|
210
|
+
"address": "0x6493D7c0e4d81a73873067d14dfBFfaade072c5a"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "IBalanceDecreasingTransactionVerification",
|
|
214
|
+
"contractName": "IBalanceDecreasingTransactionVerification.sol",
|
|
215
|
+
"address": "0x098088092EC01392609B1312c45F9E19b083888e"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "IConfirmedBlockHeightExistsVerification",
|
|
219
|
+
"contractName": "IConfirmedBlockHeightExistsVerification.sol",
|
|
220
|
+
"address": "0x559eAa22affbeAD84D2F5271C2D8931f27CC316b"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "IPaymentVerification",
|
|
224
|
+
"contractName": "IPaymentVerification.sol",
|
|
225
|
+
"address": "0x67aE5b59Bae06e61856e9Aff5605228a26D7b5bb"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "IReferencedPaymentNonexistenceVerification",
|
|
229
|
+
"contractName": "IReferencedPaymentNonexistenceVerification.sol",
|
|
230
|
+
"address": "0x870Cfd102c2C549866CA87dB800EDdaABac02452"
|
|
201
231
|
}
|
|
202
|
-
]
|
|
232
|
+
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../coston/abis.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../coston/abis.ts"],"names":[],"mappings":"AA8HA,eAAO,MAAM,IAAI,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CA8HvC,CAAC"}
|
package/dist/coston/abis.js
CHANGED
|
@@ -81,6 +81,21 @@ const GovernedBaseV2_json_1 = __importDefault(require("./artifacts/contracts/gov
|
|
|
81
81
|
const GovernorVotes_json_1 = __importDefault(require("./artifacts/contracts/governance/implementation/GovernorVotes.sol/GovernorVotes.json"));
|
|
82
82
|
const GovernedV2_json_1 = __importDefault(require("./artifacts/contracts/governance/implementation/GovernedV2.sol/GovernedV2.json"));
|
|
83
83
|
const PollingFoundation_json_1 = __importDefault(require("./artifacts/contracts/governance/implementation/PollingFoundation.sol/PollingFoundation.json"));
|
|
84
|
+
const IPaymentVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IPaymentVerification.sol/IPaymentVerification.json"));
|
|
85
|
+
const BalanceDecreasingTransaction_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/BalanceDecreasingTransaction.sol/BalanceDecreasingTransaction.json"));
|
|
86
|
+
const IEVMTransactionVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IEVMTransactionVerification.sol/IEVMTransactionVerification.json"));
|
|
87
|
+
const IStateConnector_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IStateConnector.sol/IStateConnector.json"));
|
|
88
|
+
const IAddressValidityVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IAddressValidityVerification.sol/IAddressValidityVerification.json"));
|
|
89
|
+
const Payment_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/Payment.sol/Payment.json"));
|
|
90
|
+
const EVMTransaction_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/EVMTransaction.sol/EVMTransaction.json"));
|
|
91
|
+
const ITypeTemplateVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/ITypeTemplateVerification.sol/ITypeTemplateVerification.json"));
|
|
92
|
+
const IBalanceDecreasingTransactionVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IBalanceDecreasingTransactionVerification.sol/IBalanceDecreasingTransactionVerification.json"));
|
|
93
|
+
const AddressValidity_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/AddressValidity.sol/AddressValidity.json"));
|
|
94
|
+
const IReferencedPaymentNonexistenceVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IReferencedPaymentNonexistenceVerification.sol/IReferencedPaymentNonexistenceVerification.json"));
|
|
95
|
+
const ReferencedPaymentNonexistence_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/ReferencedPaymentNonexistence.sol/ReferencedPaymentNonexistence.json"));
|
|
96
|
+
const TypeTemplate_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/TypeTemplate.sol/TypeTemplate.json"));
|
|
97
|
+
const ConfirmedBlockHeightExists_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/ConfirmedBlockHeightExists.sol/ConfirmedBlockHeightExists.json"));
|
|
98
|
+
const IConfirmedBlockHeightExistsVerification_json_1 = __importDefault(require("./artifacts/contracts/StateConnector/interface/IConfirmedBlockHeightExistsVerification.sol/IConfirmedBlockHeightExistsVerification.json"));
|
|
84
99
|
const IIPreInflationCalculation_json_1 = __importDefault(require("./artifacts/contracts/inflation/interface/IIPreInflationCalculation.sol/IIPreInflationCalculation.json"));
|
|
85
100
|
const IIInflationReceiver_json_1 = __importDefault(require("./artifacts/contracts/inflation/interface/IIInflationReceiver.sol/IIInflationReceiver.json"));
|
|
86
101
|
const IIInflationV1_json_1 = __importDefault(require("./artifacts/contracts/inflation/interface/IIInflationV1.sol/IIInflationV1.json"));
|
|
@@ -192,6 +207,21 @@ exports.abis = {
|
|
|
192
207
|
GovernorVotes: GovernorVotes_json_1.default.abi,
|
|
193
208
|
GovernedV2: GovernedV2_json_1.default.abi,
|
|
194
209
|
PollingFoundation: PollingFoundation_json_1.default.abi,
|
|
210
|
+
IPaymentVerification: IPaymentVerification_json_1.default.abi,
|
|
211
|
+
BalanceDecreasingTransaction: BalanceDecreasingTransaction_json_1.default.abi,
|
|
212
|
+
IEVMTransactionVerification: IEVMTransactionVerification_json_1.default.abi,
|
|
213
|
+
IStateConnector: IStateConnector_json_1.default.abi,
|
|
214
|
+
IAddressValidityVerification: IAddressValidityVerification_json_1.default.abi,
|
|
215
|
+
Payment: Payment_json_1.default.abi,
|
|
216
|
+
EVMTransaction: EVMTransaction_json_1.default.abi,
|
|
217
|
+
ITypeTemplateVerification: ITypeTemplateVerification_json_1.default.abi,
|
|
218
|
+
IBalanceDecreasingTransactionVerification: IBalanceDecreasingTransactionVerification_json_1.default.abi,
|
|
219
|
+
AddressValidity: AddressValidity_json_1.default.abi,
|
|
220
|
+
IReferencedPaymentNonexistenceVerification: IReferencedPaymentNonexistenceVerification_json_1.default.abi,
|
|
221
|
+
ReferencedPaymentNonexistence: ReferencedPaymentNonexistence_json_1.default.abi,
|
|
222
|
+
TypeTemplate: TypeTemplate_json_1.default.abi,
|
|
223
|
+
ConfirmedBlockHeightExists: ConfirmedBlockHeightExists_json_1.default.abi,
|
|
224
|
+
IConfirmedBlockHeightExistsVerification: IConfirmedBlockHeightExistsVerification_json_1.default.abi,
|
|
195
225
|
IIPreInflationCalculation: IIPreInflationCalculation_json_1.default.abi,
|
|
196
226
|
IIInflationReceiver: IIInflationReceiver_json_1.default.abi,
|
|
197
227
|
IIInflationV1: IIInflationV1_json_1.default.abi,
|