@flarenetwork/flare-periphery-contract-artifacts 0.1.1 → 0.1.2
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/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts +68 -0
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js +164 -0
- package/dist/coston/StateConnector/libs/ts/AttestationDefinitionStore.js.map +1 -0
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts +33 -0
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.js +30 -0
- package/dist/coston/StateConnector/libs/ts/AttestationResponse.js.map +1 -0
- package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts +103 -0
- package/dist/coston/StateConnector/libs/ts/MerkleTree.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/MerkleTree.js +212 -0
- package/dist/coston/StateConnector/libs/ts/MerkleTree.js.map +1 -0
- package/dist/coston/StateConnector/libs/ts/config-types.d.ts +143 -0
- package/dist/coston/StateConnector/libs/ts/config-types.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/config-types.js +3 -0
- package/dist/coston/StateConnector/libs/ts/config-types.js.map +1 -0
- package/dist/coston/StateConnector/libs/ts/interfaces.d.ts +32 -0
- package/dist/coston/StateConnector/libs/ts/interfaces.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/interfaces.js +3 -0
- package/dist/coston/StateConnector/libs/ts/interfaces.js.map +1 -0
- package/dist/coston/StateConnector/libs/ts/random.d.ts +9 -0
- package/dist/coston/StateConnector/libs/ts/random.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/random.js +70 -0
- package/dist/coston/StateConnector/libs/ts/random.js.map +1 -0
- package/dist/coston/StateConnector/libs/ts/utils.d.ts +73 -0
- package/dist/coston/StateConnector/libs/ts/utils.d.ts.map +1 -0
- package/dist/coston/StateConnector/libs/ts/utils.js +282 -0
- package/dist/coston/StateConnector/libs/ts/utils.js.map +1 -0
- package/dist/coston/StateConnector/typescript/AddressValidity.d.ts +91 -0
- package/dist/coston/StateConnector/typescript/AddressValidity.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/AddressValidity.js +9 -0
- package/dist/coston/StateConnector/typescript/AddressValidity.js.map +1 -0
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts +107 -0
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js +9 -0
- package/dist/coston/StateConnector/typescript/BalanceDecreasingTransaction.js.map +1 -0
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts +103 -0
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js +9 -0
- package/dist/coston/StateConnector/typescript/ConfirmedBlockHeightExists.js.map +1 -0
- package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts +160 -0
- package/dist/coston/StateConnector/typescript/EVMTransaction.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/EVMTransaction.js +9 -0
- package/dist/coston/StateConnector/typescript/EVMTransaction.js.map +1 -0
- package/dist/coston/StateConnector/typescript/Payment.d.ts +139 -0
- package/dist/coston/StateConnector/typescript/Payment.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/Payment.js +9 -0
- package/dist/coston/StateConnector/typescript/Payment.js.map +1 -0
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts +115 -0
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js +9 -0
- package/dist/coston/StateConnector/typescript/ReferencedPaymentNonexistence.js.map +1 -0
- package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts +146 -0
- package/dist/coston/StateConnector/typescript/TypeTemplate.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/TypeTemplate.js +9 -0
- package/dist/coston/StateConnector/typescript/TypeTemplate.js.map +1 -0
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts +29 -0
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.js +33 -0
- package/dist/coston/StateConnector/typescript/data-sources/data-sources.js.map +1 -0
- package/dist/coston/StateConnector/typescript/index.d.ts +9 -0
- package/dist/coston/StateConnector/typescript/index.d.ts.map +1 -0
- package/dist/coston/StateConnector/typescript/index.js +25 -0
- package/dist/coston/StateConnector/typescript/index.js.map +1 -0
- package/dist/coston/deploys/mapper.js.map +1 -1
- package/dist/coston2/deploys/mapper.js.map +1 -1
- package/dist/flare/deploys/mapper.js.map +1 -1
- package/dist/songbird/deploys/mapper.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../coston/StateConnector/libs/ts/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAgC;AAChC,2BAAqE;AACrE,2CAA6B;AAahB,QAAA,qCAAqC,GAAG,gGAAgG,CAAA;AACxI,QAAA,QAAQ,GAAG,OAAO,CAAC;AACnB,QAAA,aAAa,GAAG,eAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC9C,QAAA,aAAa,GAAG,eAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAE3D;;;;;;;GAOG;AACH,SAAS,sBAAsB,CAAC,IAAS,EAAE,IAAS,EAAE,IAAY;IAC9D,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;QAC3B,4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;YACnC,OAAO,GAAG,CAAC;QACf,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC;YAC5B,0DAA0D;YAC1D,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAChD,CAAC;QACD,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;AACL,CAAC;AAjBD,0CAiBC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare namespace AddressValidity {
|
|
2
|
+
const NAME = "AddressValidity";
|
|
3
|
+
const TYPE = "0x4164647265737356616c69646974790000000000000000000000000000000000";
|
|
4
|
+
/**
|
|
5
|
+
* Toplevel request
|
|
6
|
+
*/
|
|
7
|
+
interface Request {
|
|
8
|
+
/**
|
|
9
|
+
* Attestation type id as defined for each attestation type on [this repo](https://gitlab.com/flarenetwork/state-connector-protocol/)
|
|
10
|
+
*/
|
|
11
|
+
attestationType: string;
|
|
12
|
+
/**
|
|
13
|
+
* Id of the data source.
|
|
14
|
+
*/
|
|
15
|
+
sourceId: string;
|
|
16
|
+
/**
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response as defined [here](/specs/attestations/hash-MIC.md#message-integrity-code).
|
|
18
|
+
*/
|
|
19
|
+
messageIntegrityCode: string;
|
|
20
|
+
/**
|
|
21
|
+
* Data defining the request. Type (struct) and interpretation is determined by the `attestationType`.
|
|
22
|
+
*/
|
|
23
|
+
requestBody: RequestBody;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Toplevel response
|
|
27
|
+
*/
|
|
28
|
+
interface Response {
|
|
29
|
+
/**
|
|
30
|
+
* Extracted from the request.
|
|
31
|
+
*/
|
|
32
|
+
attestationType: string;
|
|
33
|
+
/**
|
|
34
|
+
* Extracted from the request.
|
|
35
|
+
*/
|
|
36
|
+
sourceId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The id of the state connector round in which the request was considered.
|
|
39
|
+
*/
|
|
40
|
+
votingRound: string;
|
|
41
|
+
/**
|
|
42
|
+
* The lowest timestamp used to generate the response.
|
|
43
|
+
*/
|
|
44
|
+
lowestUsedTimestamp: string;
|
|
45
|
+
/**
|
|
46
|
+
* Extracted from the request.
|
|
47
|
+
*/
|
|
48
|
+
requestBody: RequestBody;
|
|
49
|
+
/**
|
|
50
|
+
* Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`.
|
|
51
|
+
*/
|
|
52
|
+
responseBody: ResponseBody;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Toplevel proof
|
|
56
|
+
*/
|
|
57
|
+
interface Proof {
|
|
58
|
+
/**
|
|
59
|
+
* Merkle proof corresponding to the attestation response.
|
|
60
|
+
*/
|
|
61
|
+
merkleProof: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Attestation response.
|
|
64
|
+
*/
|
|
65
|
+
data: Response;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Request body for AddressValidity attestation type
|
|
69
|
+
*/
|
|
70
|
+
interface RequestBody {
|
|
71
|
+
/**
|
|
72
|
+
* Address to be verified.
|
|
73
|
+
*/
|
|
74
|
+
addressStr: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Response body for AddressValidity attestation type
|
|
78
|
+
*/
|
|
79
|
+
interface ResponseBody {
|
|
80
|
+
/**
|
|
81
|
+
* Standard form of the validated address.
|
|
82
|
+
*/
|
|
83
|
+
standardAddress: string;
|
|
84
|
+
/**
|
|
85
|
+
* Standard address hash of the validated address.
|
|
86
|
+
*/
|
|
87
|
+
standardAddressHash: string;
|
|
88
|
+
}
|
|
89
|
+
type RequestNoMic = Omit<Request, "messageIntegrityCode">;
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=AddressValidity.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressValidity = void 0;
|
|
4
|
+
var AddressValidity;
|
|
5
|
+
(function (AddressValidity) {
|
|
6
|
+
AddressValidity.NAME = "AddressValidity";
|
|
7
|
+
AddressValidity.TYPE = "0x4164647265737356616c69646974790000000000000000000000000000000000";
|
|
8
|
+
})(AddressValidity || (exports.AddressValidity = AddressValidity = {}));
|
|
9
|
+
//# sourceMappingURL=AddressValidity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddressValidity.js","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/AddressValidity.ts"],"names":[],"mappings":";;;AAAA,IAAiB,eAAe,CAyG/B;AAzGD,WAAiB,eAAe;IACf,oBAAI,GAAG,iBAAiB,CAAC;IACzB,oBAAI,GAAG,oEAAoE,CAAC;AAuG7F,CAAC,EAzGgB,eAAe,+BAAf,eAAe,QAyG/B"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare namespace BalanceDecreasingTransaction {
|
|
2
|
+
const NAME = "BalanceDecreasingTransaction";
|
|
3
|
+
const TYPE = "0x42616c616e636544656372656173696e675472616e73616374696f6e00000000";
|
|
4
|
+
/**
|
|
5
|
+
* Toplevel request
|
|
6
|
+
*/
|
|
7
|
+
interface Request {
|
|
8
|
+
/**
|
|
9
|
+
* Id of the attestation type.
|
|
10
|
+
*/
|
|
11
|
+
attestationType: string;
|
|
12
|
+
/**
|
|
13
|
+
* Id of the data source.
|
|
14
|
+
*/
|
|
15
|
+
sourceId: string;
|
|
16
|
+
/**
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response as defined [here](/specs/attestations/hash-MIC.md#message-integrity-code).
|
|
18
|
+
*/
|
|
19
|
+
messageIntegrityCode: string;
|
|
20
|
+
/**
|
|
21
|
+
* Data defining the request. Type (struct) and interpretation is determined by the `attestationType`.
|
|
22
|
+
*/
|
|
23
|
+
requestBody: RequestBody;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Toplevel response
|
|
27
|
+
*/
|
|
28
|
+
interface Response {
|
|
29
|
+
/**
|
|
30
|
+
* Extracted from the request.
|
|
31
|
+
*/
|
|
32
|
+
attestationType: string;
|
|
33
|
+
/**
|
|
34
|
+
* Extracted from the request.
|
|
35
|
+
*/
|
|
36
|
+
sourceId: string;
|
|
37
|
+
/**
|
|
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
|
+
*/
|
|
40
|
+
votingRound: string;
|
|
41
|
+
/**
|
|
42
|
+
* The lowest timestamp used to generate the response.
|
|
43
|
+
*/
|
|
44
|
+
lowestUsedTimestamp: string;
|
|
45
|
+
/**
|
|
46
|
+
* Extracted from the request.
|
|
47
|
+
*/
|
|
48
|
+
requestBody: RequestBody;
|
|
49
|
+
/**
|
|
50
|
+
* Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`.
|
|
51
|
+
*/
|
|
52
|
+
responseBody: ResponseBody;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Toplevel proof
|
|
56
|
+
*/
|
|
57
|
+
interface Proof {
|
|
58
|
+
/**
|
|
59
|
+
* Merkle proof corresponding to the attestation response.
|
|
60
|
+
*/
|
|
61
|
+
merkleProof: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Attestation response.
|
|
64
|
+
*/
|
|
65
|
+
data: Response;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Request body for BalanceDecreasingTransaction attestation type
|
|
69
|
+
*/
|
|
70
|
+
interface RequestBody {
|
|
71
|
+
/**
|
|
72
|
+
* Id of the payment transaction.
|
|
73
|
+
*/
|
|
74
|
+
transactionId: string;
|
|
75
|
+
/**
|
|
76
|
+
* The indicator of the address whose balance has been decreased.
|
|
77
|
+
*/
|
|
78
|
+
sourceAddressIndicator: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Response body for BalanceDecreasingTransaction attestation type.
|
|
82
|
+
*/
|
|
83
|
+
interface ResponseBody {
|
|
84
|
+
/**
|
|
85
|
+
* The number of the block in which the transaction is included.
|
|
86
|
+
*/
|
|
87
|
+
blockNumber: string;
|
|
88
|
+
/**
|
|
89
|
+
* The timestamps of the block in which the transaction is included.
|
|
90
|
+
*/
|
|
91
|
+
blockTimestamp: string;
|
|
92
|
+
/**
|
|
93
|
+
* Standard address hash of the address indicated by the `sourceAddressIndicator`.
|
|
94
|
+
*/
|
|
95
|
+
sourceAddressHash: string;
|
|
96
|
+
/**
|
|
97
|
+
* Amount spent by the source address in minimal units.
|
|
98
|
+
*/
|
|
99
|
+
spentAmount: string;
|
|
100
|
+
/**
|
|
101
|
+
* Standard payment reference of the transaction.
|
|
102
|
+
*/
|
|
103
|
+
standardPaymentReference: string;
|
|
104
|
+
}
|
|
105
|
+
type RequestNoMic = Omit<Request, "messageIntegrityCode">;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=BalanceDecreasingTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BalanceDecreasingTransaction.d.ts","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/BalanceDecreasingTransaction.ts"],"names":[],"mappings":"AAAA,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,IAAI,iCAAiC,CAAC;IAC5C,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,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;KAClC;IAED;;OAEG;IACH,UAAiB,YAAY;QACzB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,wBAAwB,EAAE,MAAM,CAAC;KACpC;IAED,KAAY,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BalanceDecreasingTransaction = void 0;
|
|
4
|
+
var BalanceDecreasingTransaction;
|
|
5
|
+
(function (BalanceDecreasingTransaction) {
|
|
6
|
+
BalanceDecreasingTransaction.NAME = "BalanceDecreasingTransaction";
|
|
7
|
+
BalanceDecreasingTransaction.TYPE = "0x42616c616e636544656372656173696e675472616e73616374696f6e00000000";
|
|
8
|
+
})(BalanceDecreasingTransaction || (exports.BalanceDecreasingTransaction = BalanceDecreasingTransaction = {}));
|
|
9
|
+
//# sourceMappingURL=BalanceDecreasingTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BalanceDecreasingTransaction.js","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/BalanceDecreasingTransaction.ts"],"names":[],"mappings":";;;AAAA,IAAiB,4BAA4B,CA6H5C;AA7HD,WAAiB,4BAA4B;IAC5B,iCAAI,GAAG,8BAA8B,CAAC;IACtC,iCAAI,GAAG,oEAAoE,CAAC;AA2H7F,CAAC,EA7HgB,4BAA4B,4CAA5B,4BAA4B,QA6H5C"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare namespace ConfirmedBlockHeightExists {
|
|
2
|
+
const NAME = "ConfirmedBlockHeightExists";
|
|
3
|
+
const TYPE = "0x436f6e6669726d6564426c6f636b486569676874457869737473000000000000";
|
|
4
|
+
/**
|
|
5
|
+
* Toplevel request
|
|
6
|
+
*/
|
|
7
|
+
interface Request {
|
|
8
|
+
/**
|
|
9
|
+
* Id of the attestation type.
|
|
10
|
+
*/
|
|
11
|
+
attestationType: string;
|
|
12
|
+
/**
|
|
13
|
+
* Id of the data source.
|
|
14
|
+
*/
|
|
15
|
+
sourceId: string;
|
|
16
|
+
/**
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response as defined [here](/specs/attestations/hash-MIC.md#message-integrity-code).
|
|
18
|
+
*/
|
|
19
|
+
messageIntegrityCode: string;
|
|
20
|
+
/**
|
|
21
|
+
* Data defining the request. Type (struct) and interpretation is determined by the `attestationType`.
|
|
22
|
+
*/
|
|
23
|
+
requestBody: RequestBody;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Toplevel response
|
|
27
|
+
*/
|
|
28
|
+
interface Response {
|
|
29
|
+
/**
|
|
30
|
+
* Extracted from the request.
|
|
31
|
+
*/
|
|
32
|
+
attestationType: string;
|
|
33
|
+
/**
|
|
34
|
+
* Extracted from the request.
|
|
35
|
+
*/
|
|
36
|
+
sourceId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The id of the state connector round in which the request was considered.
|
|
39
|
+
*/
|
|
40
|
+
votingRound: string;
|
|
41
|
+
/**
|
|
42
|
+
* The lowest timestamp used to generate the response.
|
|
43
|
+
*/
|
|
44
|
+
lowestUsedTimestamp: string;
|
|
45
|
+
/**
|
|
46
|
+
* Extracted from the request.
|
|
47
|
+
*/
|
|
48
|
+
requestBody: RequestBody;
|
|
49
|
+
/**
|
|
50
|
+
* Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`.
|
|
51
|
+
*/
|
|
52
|
+
responseBody: ResponseBody;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Toplevel proof
|
|
56
|
+
*/
|
|
57
|
+
interface Proof {
|
|
58
|
+
/**
|
|
59
|
+
* Merkle proof corresponding to the attestation response.
|
|
60
|
+
*/
|
|
61
|
+
merkleProof: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Attestation response.
|
|
64
|
+
*/
|
|
65
|
+
data: Response;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Request body for ConfirmedBlockHeightExistsType attestation type
|
|
69
|
+
*/
|
|
70
|
+
interface RequestBody {
|
|
71
|
+
/**
|
|
72
|
+
* The number of the block the request wants a confirmation of.
|
|
73
|
+
*/
|
|
74
|
+
blockNumber: string;
|
|
75
|
+
/**
|
|
76
|
+
* The period in seconds for sampling. The range is from `blockNumber` to the blockNumber of the first block more than queryWindow before the `blockNumber`.
|
|
77
|
+
*/
|
|
78
|
+
queryWindow: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Response body for ConfirmedBlockHeightExistsType attestation type
|
|
82
|
+
*/
|
|
83
|
+
interface ResponseBody {
|
|
84
|
+
/**
|
|
85
|
+
* The timestamp of the block with `blockNumber`.
|
|
86
|
+
*/
|
|
87
|
+
blockTimestamp: string;
|
|
88
|
+
/**
|
|
89
|
+
* The depth at which a block is considered confirmed depending on the chain. All attestation clients must agree on this number.
|
|
90
|
+
*/
|
|
91
|
+
numberOfConfirmations: string;
|
|
92
|
+
/**
|
|
93
|
+
* The block number of the latest block that has a timestamp strictly smaller than `blockTimestamp` - `queryWindow`.
|
|
94
|
+
*/
|
|
95
|
+
lowestQueryWindowBlockNumber: string;
|
|
96
|
+
/**
|
|
97
|
+
* The timestamp of the block at height `lowestQueryWindowBlockNumber`.
|
|
98
|
+
*/
|
|
99
|
+
lowestQueryWindowBlockTimestamp: string;
|
|
100
|
+
}
|
|
101
|
+
type RequestNoMic = Omit<Request, "messageIntegrityCode">;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=ConfirmedBlockHeightExists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmedBlockHeightExists.d.ts","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/ConfirmedBlockHeightExists.ts"],"names":[],"mappings":"AAAA,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,IAAI,+BAA+B,CAAC;IAC1C,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,WAAW,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACvB;IAED;;OAEG;IACH,UAAiB,YAAY;QACzB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,4BAA4B,EAAE,MAAM,CAAC;QAErC;;WAEG;QACH,+BAA+B,EAAE,MAAM,CAAC;KAC3C;IAED,KAAY,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfirmedBlockHeightExists = void 0;
|
|
4
|
+
var ConfirmedBlockHeightExists;
|
|
5
|
+
(function (ConfirmedBlockHeightExists) {
|
|
6
|
+
ConfirmedBlockHeightExists.NAME = "ConfirmedBlockHeightExists";
|
|
7
|
+
ConfirmedBlockHeightExists.TYPE = "0x436f6e6669726d6564426c6f636b486569676874457869737473000000000000";
|
|
8
|
+
})(ConfirmedBlockHeightExists || (exports.ConfirmedBlockHeightExists = ConfirmedBlockHeightExists = {}));
|
|
9
|
+
//# sourceMappingURL=ConfirmedBlockHeightExists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmedBlockHeightExists.js","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/ConfirmedBlockHeightExists.ts"],"names":[],"mappings":";;;AAAA,IAAiB,0BAA0B,CAwH1C;AAxHD,WAAiB,0BAA0B;IAC1B,+BAAI,GAAG,4BAA4B,CAAC;IACpC,+BAAI,GAAG,oEAAoE,CAAC;AAsH7F,CAAC,EAxHgB,0BAA0B,0CAA1B,0BAA0B,QAwH1C"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export declare namespace EVMTransaction {
|
|
2
|
+
const NAME = "EVMTransaction";
|
|
3
|
+
const TYPE = "0x45564d5472616e73616374696f6e000000000000000000000000000000000000";
|
|
4
|
+
/**
|
|
5
|
+
* Toplevel request
|
|
6
|
+
*/
|
|
7
|
+
interface Request {
|
|
8
|
+
/**
|
|
9
|
+
* Attestation type id as defined for each attestation type on [this repo](https://gitlab.com/flarenetwork/state-connector-protocol/)
|
|
10
|
+
*/
|
|
11
|
+
attestationType: string;
|
|
12
|
+
/**
|
|
13
|
+
* Id of the data source.
|
|
14
|
+
*/
|
|
15
|
+
sourceId: string;
|
|
16
|
+
/**
|
|
17
|
+
* `MessageIntegrityCode` that is derived from the expected response as defined [here](/specs/attestations/hash-MIC.md#message-integrity-code).
|
|
18
|
+
*/
|
|
19
|
+
messageIntegrityCode: string;
|
|
20
|
+
/**
|
|
21
|
+
* Data defining the request. Type (struct) and interpretation is determined by the `attestationType`.
|
|
22
|
+
*/
|
|
23
|
+
requestBody: RequestBody;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Toplevel response
|
|
27
|
+
*/
|
|
28
|
+
interface Response {
|
|
29
|
+
/**
|
|
30
|
+
* Extracted from the request.
|
|
31
|
+
*/
|
|
32
|
+
attestationType: string;
|
|
33
|
+
/**
|
|
34
|
+
* Extracted from the request.
|
|
35
|
+
*/
|
|
36
|
+
sourceId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The id of the state connector round in which the request was considered.
|
|
39
|
+
*/
|
|
40
|
+
votingRound: string;
|
|
41
|
+
/**
|
|
42
|
+
* The lowest timestamp used to generate the response.
|
|
43
|
+
*/
|
|
44
|
+
lowestUsedTimestamp: string;
|
|
45
|
+
/**
|
|
46
|
+
* Extracted from the request.
|
|
47
|
+
*/
|
|
48
|
+
requestBody: RequestBody;
|
|
49
|
+
/**
|
|
50
|
+
* Data defining the response. The verification rules for the construction of the response body and the type are defined per specific `attestationType`.
|
|
51
|
+
*/
|
|
52
|
+
responseBody: ResponseBody;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Toplevel proof
|
|
56
|
+
*/
|
|
57
|
+
interface Proof {
|
|
58
|
+
/**
|
|
59
|
+
* Merkle proof corresponding to the attestation response.
|
|
60
|
+
*/
|
|
61
|
+
merkleProof: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Attestation response.
|
|
64
|
+
*/
|
|
65
|
+
data: Response;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Request body for EVM transaction attestation type
|
|
69
|
+
*/
|
|
70
|
+
interface RequestBody {
|
|
71
|
+
/**
|
|
72
|
+
* Hash of the transaction(transactionHash).
|
|
73
|
+
*/
|
|
74
|
+
transactionHash: string;
|
|
75
|
+
/**
|
|
76
|
+
* The height at which a block is considered confirmed by the requestor.
|
|
77
|
+
*/
|
|
78
|
+
requiredConfirmations: string;
|
|
79
|
+
/**
|
|
80
|
+
* If true, "input" field is included in the response.
|
|
81
|
+
*/
|
|
82
|
+
provideInput: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* If true, events indicated by `logIndices` are included in the response. Otherwise, no events are included in the response.
|
|
85
|
+
*/
|
|
86
|
+
listEvents: boolean;
|
|
87
|
+
/**
|
|
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
|
+
*/
|
|
90
|
+
logIndices: string[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Response body for EVM transaction attestation type
|
|
94
|
+
*/
|
|
95
|
+
interface ResponseBody {
|
|
96
|
+
/**
|
|
97
|
+
* Number of the block in which the transaction is included.
|
|
98
|
+
*/
|
|
99
|
+
blockNumber: string;
|
|
100
|
+
/**
|
|
101
|
+
* Timestamp of the block in which the transaction is included.
|
|
102
|
+
*/
|
|
103
|
+
timestamp: string;
|
|
104
|
+
/**
|
|
105
|
+
* The address (from) that signed the transaction.
|
|
106
|
+
*/
|
|
107
|
+
sourceAddress: string;
|
|
108
|
+
/**
|
|
109
|
+
* Indicate whether it is a contract creation transaction.
|
|
110
|
+
*/
|
|
111
|
+
isDeployment: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* The address (to) of the receiver of the initial transaction. Zero address if `isDeployment` is true.
|
|
114
|
+
*/
|
|
115
|
+
receivingAddress: string;
|
|
116
|
+
/**
|
|
117
|
+
* The value transferred by the initial transaction in wei.
|
|
118
|
+
*/
|
|
119
|
+
value: string;
|
|
120
|
+
/**
|
|
121
|
+
* If `provideInput`, this is the data send along with the initial transaction. Otherwise it is the default value `0x00`.
|
|
122
|
+
*/
|
|
123
|
+
input: string;
|
|
124
|
+
/**
|
|
125
|
+
* Status of the transaction 1 - success, 0 - failure.
|
|
126
|
+
*/
|
|
127
|
+
status: string;
|
|
128
|
+
/**
|
|
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
|
+
*/
|
|
131
|
+
events: Event[];
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Event log record
|
|
135
|
+
*/
|
|
136
|
+
interface Event {
|
|
137
|
+
/**
|
|
138
|
+
* The consecutive number of the event in block.
|
|
139
|
+
*/
|
|
140
|
+
logIndex: string;
|
|
141
|
+
/**
|
|
142
|
+
* The address of the contract that emitted the event.
|
|
143
|
+
*/
|
|
144
|
+
emitterAddress: string;
|
|
145
|
+
/**
|
|
146
|
+
* An array of up to 4 32-byte strings of indexed log arguments. The first string is the signature of the event.
|
|
147
|
+
*/
|
|
148
|
+
topics: string[];
|
|
149
|
+
/**
|
|
150
|
+
* Concatenated 32-byte strings of non-indexed log arguments. At least 32 bytes long.
|
|
151
|
+
*/
|
|
152
|
+
data: string;
|
|
153
|
+
/**
|
|
154
|
+
* It is true if log was removed due to a chain reorganization and false if it is a valid log.
|
|
155
|
+
*/
|
|
156
|
+
removed: boolean;
|
|
157
|
+
}
|
|
158
|
+
type RequestNoMic = Omit<Request, "messageIntegrityCode">;
|
|
159
|
+
}
|
|
160
|
+
//# sourceMappingURL=EVMTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EVMTransaction.d.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;QACH,YAAY,EAAE,OAAO,CAAC;QAEtB;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,MAAM,EAAE,KAAK,EAAE,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,KAAK;QAClB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,MAAM,EAAE,MAAM,EAAE,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;KACpB;IAED,KAAY,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;CACpE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EVMTransaction = void 0;
|
|
4
|
+
var EVMTransaction;
|
|
5
|
+
(function (EVMTransaction) {
|
|
6
|
+
EVMTransaction.NAME = "EVMTransaction";
|
|
7
|
+
EVMTransaction.TYPE = "0x45564d5472616e73616374696f6e000000000000000000000000000000000000";
|
|
8
|
+
})(EVMTransaction || (exports.EVMTransaction = EVMTransaction = {}));
|
|
9
|
+
//# sourceMappingURL=EVMTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EVMTransaction.js","sourceRoot":"","sources":["../../../../coston/StateConnector/typescript/EVMTransaction.ts"],"names":[],"mappings":";;;AAAA,IAAiB,cAAc,CA8L9B;AA9LD,WAAiB,cAAc;IACd,mBAAI,GAAG,gBAAgB,CAAC;IACxB,mBAAI,GAAG,oEAAoE,CAAC;AA4L7F,CAAC,EA9LgB,cAAc,8BAAd,cAAc,QA8L9B"}
|