@flarenetwork/flare-periphery-contract-artifacts 0.1.3 → 0.1.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/coston/StateConnector/configs/AddressValidity.json +28 -12
- package/coston/StateConnector/configs/BalanceDecreasingTransaction.json +14 -14
- package/coston/StateConnector/configs/ConfirmedBlockHeightExists.json +13 -13
- package/coston/StateConnector/configs/EVMTransaction.json +19 -19
- package/coston/StateConnector/configs/Payment.json +21 -21
- package/coston/StateConnector/configs/ReferencedPaymentNonexistence.json +13 -13
- package/coston/StateConnector/configs/TypeTemplate.json +7 -7
- 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/StateConnector/typescript/AddressValidity.d.ts +9 -5
- package/dist/coston/StateConnector/typescript/AddressValidity.d.ts.map +1 -1
- package/dist/coston/StateConnector/typescript/AddressValidity.js.map +1 -1
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts +6 -6
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts +6 -6
- package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts +9 -9
- package/dist/coston/StateConnector/typescript/Payment.d.ts +14 -14
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts +4 -4
- package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts +4 -4
- 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
|
@@ -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
|
+
]
|
|
@@ -6,7 +6,7 @@ export declare namespace AddressValidity {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
@@ -14,7 +14,7 @@ export declare namespace AddressValidity {
|
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace AddressValidity {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -78,11 +78,15 @@ export declare namespace AddressValidity {
|
|
|
78
78
|
*/
|
|
79
79
|
interface ResponseBody {
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
81
|
+
* Boolean indicator of the address validity.
|
|
82
|
+
*/
|
|
83
|
+
isValid: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* If `isValid`, standard form of the validated address. Otherwise an empty string.
|
|
82
86
|
*/
|
|
83
87
|
standardAddress: string;
|
|
84
88
|
/**
|
|
85
|
-
*
|
|
89
|
+
* If `isValid`, standard address hash of the validated address. Otherwise a zero bytes32 string.
|
|
86
90
|
*/
|
|
87
91
|
standardAddressHash: string;
|
|
88
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressValidity.d.ts","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/AddressValidity.ts"],"names":[],"mappings":"AAAA,yBAAiB,eAAe,CAAC;IACtB,MAAM,IAAI,oBAAoB,CAAC;IAC/B,MAAM,IAAI,uEAAuE,CAAC;IAEzF;;OAEG;IACH,UAAiB,OAAO;QACpB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAE7B;;WAEG;QACH,WAAW,EAAE,WAAW,CAAC;KAC5B;IAED;;OAEG;IACH,UAAiB,QAAQ;QACrB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,WAAW,EAAE,WAAW,CAAC;QAEzB;;WAEG;QACH,YAAY,EAAE,YAAY,CAAC;KAC9B;IAED;;OAEG;IACH,UAAiB,KAAK;QAClB;;WAEG;QACH,WAAW,EAAE,MAAM,EAAE,CAAC;QAEtB;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAClB;IAED;;OAEG;IACH,UAAiB,WAAW;QACxB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,YAAY;QACzB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;KAC/B;IAED,KAAY,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;CACpE"}
|
|
1
|
+
{"version":3,"file":"AddressValidity.d.ts","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/AddressValidity.ts"],"names":[],"mappings":"AAAA,yBAAiB,eAAe,CAAC;IACtB,MAAM,IAAI,oBAAoB,CAAC;IAC/B,MAAM,IAAI,uEAAuE,CAAC;IAEzF;;OAEG;IACH,UAAiB,OAAO;QACpB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAE7B;;WAEG;QACH,WAAW,EAAE,WAAW,CAAC;KAC5B;IAED;;OAEG;IACH,UAAiB,QAAQ;QACrB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,WAAW,EAAE,WAAW,CAAC;QAEzB;;WAEG;QACH,YAAY,EAAE,YAAY,CAAC;KAC9B;IAED;;OAEG;IACH,UAAiB,KAAK;QAClB;;WAEG;QACH,WAAW,EAAE,MAAM,EAAE,CAAC;QAEtB;;WAEG;QACH,IAAI,EAAE,QAAQ,CAAC;KAClB;IAED;;OAEG;IACH,UAAiB,WAAW;QACxB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,YAAY;QACzB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,eAAe,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,mBAAmB,EAAE,MAAM,CAAC;KAC/B;IAED,KAAY,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;CACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressValidity.js","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/AddressValidity.ts"],"names":[],"mappings":";;;AAAA,IAAiB,eAAe,
|
|
1
|
+
{"version":3,"file":"AddressValidity.js","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/AddressValidity.ts"],"names":[],"mappings":";;;AAAA,IAAiB,eAAe,CA8G/B;AA9GD,WAAiB,eAAe;IACf,oBAAI,GAAG,iBAAiB,CAAC;IACzB,oBAAI,GAAG,oEAAoE,CAAC;AA4G7F,CAAC,EA9GgB,eAAe,+BAAf,eAAe,QA8G/B"}
|
|
@@ -6,15 +6,15 @@ export declare namespace BalanceDecreasingTransaction {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ID of the data source.
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace BalanceDecreasingTransaction {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered. This is a security measure to prevent a collision of attestation hashes.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -69,7 +69,7 @@ export declare namespace BalanceDecreasingTransaction {
|
|
|
69
69
|
*/
|
|
70
70
|
interface RequestBody {
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* ID of the payment transaction.
|
|
73
73
|
*/
|
|
74
74
|
transactionId: string;
|
|
75
75
|
/**
|
|
@@ -86,7 +86,7 @@ export declare namespace BalanceDecreasingTransaction {
|
|
|
86
86
|
*/
|
|
87
87
|
blockNumber: string;
|
|
88
88
|
/**
|
|
89
|
-
* The
|
|
89
|
+
* The timestamp of the block in which the transaction is included.
|
|
90
90
|
*/
|
|
91
91
|
blockTimestamp: string;
|
|
92
92
|
/**
|
|
@@ -6,15 +6,15 @@ export declare namespace ConfirmedBlockHeightExists {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ID of the data source.
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response as defined
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response as defined.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace ConfirmedBlockHeightExists {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -73,7 +73,7 @@ export declare namespace ConfirmedBlockHeightExists {
|
|
|
73
73
|
*/
|
|
74
74
|
blockNumber: string;
|
|
75
75
|
/**
|
|
76
|
-
* The
|
|
76
|
+
* The length of the period in which the block production rate is to be computed.
|
|
77
77
|
*/
|
|
78
78
|
queryWindow: string;
|
|
79
79
|
}
|
|
@@ -86,7 +86,7 @@ export declare namespace ConfirmedBlockHeightExists {
|
|
|
86
86
|
*/
|
|
87
87
|
blockTimestamp: string;
|
|
88
88
|
/**
|
|
89
|
-
* The depth at which a block is considered confirmed depending on the chain. All attestation
|
|
89
|
+
* The depth at which a block is considered confirmed depending on the chain. All attestation providers must agree on this number.
|
|
90
90
|
*/
|
|
91
91
|
numberOfConfirmations: string;
|
|
92
92
|
/**
|
|
@@ -6,15 +6,15 @@ export declare namespace EVMTransaction {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ID of the data source.
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace EVMTransaction {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -85,7 +85,7 @@ export declare namespace EVMTransaction {
|
|
|
85
85
|
*/
|
|
86
86
|
listEvents: boolean;
|
|
87
87
|
/**
|
|
88
|
-
* If listEvents is false
|
|
88
|
+
* If `listEvents` is `false`, this should be an empty list, otherwise, the request is rejected. If `listEvents` is `true`, this is the list of indices (logIndex) of the events to be relayed (sorted by the requestor). The array should contain at most 50 indices. If empty, it indicates all events in order capped by 50.
|
|
89
89
|
*/
|
|
90
90
|
logIndices: string[];
|
|
91
91
|
}
|
|
@@ -110,7 +110,7 @@ export declare namespace EVMTransaction {
|
|
|
110
110
|
*/
|
|
111
111
|
isDeployment: boolean;
|
|
112
112
|
/**
|
|
113
|
-
* The address (to) of the receiver of the initial transaction. Zero address if `isDeployment` is true
|
|
113
|
+
* The address (to) of the receiver of the initial transaction. Zero address if `isDeployment` is `true`.
|
|
114
114
|
*/
|
|
115
115
|
receivingAddress: string;
|
|
116
116
|
/**
|
|
@@ -126,7 +126,7 @@ export declare namespace EVMTransaction {
|
|
|
126
126
|
*/
|
|
127
127
|
status: string;
|
|
128
128
|
/**
|
|
129
|
-
* If `listEvents` is true
|
|
129
|
+
* If `listEvents` is `true`, an array of the requested events. Sorted by the logIndex in the same order as `logIndices`. Otherwise, an empty array.
|
|
130
130
|
*/
|
|
131
131
|
events: Event[];
|
|
132
132
|
}
|
|
@@ -143,7 +143,7 @@ export declare namespace EVMTransaction {
|
|
|
143
143
|
*/
|
|
144
144
|
emitterAddress: string;
|
|
145
145
|
/**
|
|
146
|
-
* An array of up to
|
|
146
|
+
* An array of up to four 32-byte strings of indexed log arguments.
|
|
147
147
|
*/
|
|
148
148
|
topics: string[];
|
|
149
149
|
/**
|
|
@@ -151,7 +151,7 @@ export declare namespace EVMTransaction {
|
|
|
151
151
|
*/
|
|
152
152
|
data: string;
|
|
153
153
|
/**
|
|
154
|
-
* It is true if log was removed due to a chain reorganization and false if it is a valid log.
|
|
154
|
+
* It is `true` if the log was removed due to a chain reorganization and `false` if it is a valid log.
|
|
155
155
|
*/
|
|
156
156
|
removed: boolean;
|
|
157
157
|
}
|
|
@@ -6,15 +6,15 @@ export declare namespace Payment {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ID of the data source.
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace Payment {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -69,15 +69,15 @@ export declare namespace Payment {
|
|
|
69
69
|
*/
|
|
70
70
|
interface RequestBody {
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* ID of the payment transaction.
|
|
73
73
|
*/
|
|
74
74
|
transactionId: string;
|
|
75
75
|
/**
|
|
76
|
-
* For UTXO, this is the index of the transaction input with source address. Always 0 for the non-utxo chains.
|
|
76
|
+
* For UTXO chains, this is the index of the transaction input with source address. Always 0 for the non-utxo chains.
|
|
77
77
|
*/
|
|
78
78
|
inUtxo: string;
|
|
79
79
|
/**
|
|
80
|
-
* For UTXO, this is the index of the transaction output with receiving address. Always 0 for the non-utxo chains.
|
|
80
|
+
* For UTXO chains, this is the index of the transaction output with receiving address. Always 0 for the non-utxo chains.
|
|
81
81
|
*/
|
|
82
82
|
utxo: string;
|
|
83
83
|
}
|
|
@@ -90,7 +90,7 @@ export declare namespace Payment {
|
|
|
90
90
|
*/
|
|
91
91
|
blockNumber: string;
|
|
92
92
|
/**
|
|
93
|
-
* The
|
|
93
|
+
* The timestamp of the block in which the transaction is included.
|
|
94
94
|
*/
|
|
95
95
|
blockTimestamp: string;
|
|
96
96
|
/**
|
|
@@ -98,11 +98,11 @@ export declare namespace Payment {
|
|
|
98
98
|
*/
|
|
99
99
|
sourceAddressHash: string;
|
|
100
100
|
/**
|
|
101
|
-
* Standard address hash of the receiving address.
|
|
101
|
+
* Standard address hash of the receiving address. The zero 32-byte string if there is no receivingAddress (if `status` is not success).
|
|
102
102
|
*/
|
|
103
103
|
receivingAddressHash: string;
|
|
104
104
|
/**
|
|
105
|
-
* Standard address hash of the intended receiving address. Relevant if the transaction
|
|
105
|
+
* Standard address hash of the intended receiving address. Relevant if the transaction is unsuccessful.
|
|
106
106
|
*/
|
|
107
107
|
intendedReceivingAddressHash: string;
|
|
108
108
|
/**
|
|
@@ -110,7 +110,7 @@ export declare namespace Payment {
|
|
|
110
110
|
*/
|
|
111
111
|
spentAmount: string;
|
|
112
112
|
/**
|
|
113
|
-
* Amount in minimal units to be spent by the source address. Relevant if the transaction status is
|
|
113
|
+
* Amount in minimal units to be spent by the source address. Relevant if the transaction status is unsuccessful.
|
|
114
114
|
*/
|
|
115
115
|
intendedSpentAmount: string;
|
|
116
116
|
/**
|
|
@@ -118,11 +118,11 @@ export declare namespace Payment {
|
|
|
118
118
|
*/
|
|
119
119
|
receivedAmount: string;
|
|
120
120
|
/**
|
|
121
|
-
* Amount in minimal units intended to be received by the receiving address. Relevant if the transaction
|
|
121
|
+
* Amount in minimal units intended to be received by the receiving address. Relevant if the transaction is unsuccessful.
|
|
122
122
|
*/
|
|
123
123
|
intendedReceivedAmount: string;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* [Standard payment reference](/specs/attestations/external-chains/standardPaymentReference.md) of the transaction.
|
|
126
126
|
*/
|
|
127
127
|
standardPaymentReference: string;
|
|
128
128
|
/**
|
|
@@ -130,7 +130,7 @@ export declare namespace Payment {
|
|
|
130
130
|
*/
|
|
131
131
|
oneToOne: boolean;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* [Succes status](/specs/attestations/external-chains/transactions.md#transaction-success-status) of the transaction: 0 - success, 1 - failed by sender's fault,x 2 - failed by receiver's fault.
|
|
134
134
|
*/
|
|
135
135
|
status: string;
|
|
136
136
|
}
|
|
@@ -6,15 +6,15 @@ export declare namespace ReferencedPaymentNonexistence {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ID of the data source.
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response as defined
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response as defined.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace ReferencedPaymentNonexistence {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -6,15 +6,15 @@ export declare namespace TypeTemplate {
|
|
|
6
6
|
*/
|
|
7
7
|
interface Request {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ID of the attestation type.
|
|
10
10
|
*/
|
|
11
11
|
attestationType: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ID of the data source.
|
|
14
14
|
*/
|
|
15
15
|
sourceId: string;
|
|
16
16
|
/**
|
|
17
|
-
* `MessageIntegrityCode` that is derived from the expected response
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response.
|
|
18
18
|
*/
|
|
19
19
|
messageIntegrityCode: string;
|
|
20
20
|
/**
|
|
@@ -35,7 +35,7 @@ export declare namespace TypeTemplate {
|
|
|
35
35
|
*/
|
|
36
36
|
sourceId: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the State Connector round in which the request was considered.
|
|
39
39
|
*/
|
|
40
40
|
votingRound: string;
|
|
41
41
|
/**
|
|
@@ -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,
|