@flarenetwork/flare-periphery-contract-artifacts 0.1.13 → 0.1.15
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/utils/interface/IRelay.sol/IRelay.json +263 -0
- package/coston/deploys/contracts.json +5 -0
- package/dist/coston/abis.js +2 -0
- package/dist/coston/artifacts/contracts/utils/interface/IRelay.sol/IRelay.json +263 -0
- package/dist/coston/deploys/addresses.js +1 -0
- package/dist/coston/utils/utils.js +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IRelay",
|
|
4
|
+
"sourceName": "contracts/userInterfaces/IRelay.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": true,
|
|
11
|
+
"internalType": "uint8",
|
|
12
|
+
"name": "protocolId",
|
|
13
|
+
"type": "uint8"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"indexed": true,
|
|
17
|
+
"internalType": "uint32",
|
|
18
|
+
"name": "votingRoundId",
|
|
19
|
+
"type": "uint32"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"indexed": false,
|
|
23
|
+
"internalType": "bool",
|
|
24
|
+
"name": "isSecureRandom",
|
|
25
|
+
"type": "bool"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"indexed": false,
|
|
29
|
+
"internalType": "bytes32",
|
|
30
|
+
"name": "merkleRoot",
|
|
31
|
+
"type": "bytes32"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "ProtocolMessageRelayed",
|
|
35
|
+
"type": "event"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"anonymous": false,
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"indexed": true,
|
|
42
|
+
"internalType": "uint24",
|
|
43
|
+
"name": "rewardEpochId",
|
|
44
|
+
"type": "uint24"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"indexed": false,
|
|
48
|
+
"internalType": "uint32",
|
|
49
|
+
"name": "startVotingRoundId",
|
|
50
|
+
"type": "uint32"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"indexed": false,
|
|
54
|
+
"internalType": "uint16",
|
|
55
|
+
"name": "threshold",
|
|
56
|
+
"type": "uint16"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"indexed": false,
|
|
60
|
+
"internalType": "uint256",
|
|
61
|
+
"name": "seed",
|
|
62
|
+
"type": "uint256"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "address[]",
|
|
67
|
+
"name": "voters",
|
|
68
|
+
"type": "address[]"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "uint16[]",
|
|
73
|
+
"name": "weights",
|
|
74
|
+
"type": "uint16[]"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"indexed": false,
|
|
78
|
+
"internalType": "bytes",
|
|
79
|
+
"name": "signingPolicyBytes",
|
|
80
|
+
"type": "bytes"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"indexed": false,
|
|
84
|
+
"internalType": "uint64",
|
|
85
|
+
"name": "timestamp",
|
|
86
|
+
"type": "uint64"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"name": "SigningPolicyInitialized",
|
|
90
|
+
"type": "event"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"anonymous": false,
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"indexed": true,
|
|
97
|
+
"internalType": "uint256",
|
|
98
|
+
"name": "rewardEpochId",
|
|
99
|
+
"type": "uint256"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"name": "SigningPolicyRelayed",
|
|
103
|
+
"type": "event"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "_protocolId",
|
|
110
|
+
"type": "uint256"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"internalType": "uint256",
|
|
114
|
+
"name": "_votingRoundId",
|
|
115
|
+
"type": "uint256"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"name": "getConfirmedMerkleRoot",
|
|
119
|
+
"outputs": [
|
|
120
|
+
{
|
|
121
|
+
"internalType": "bytes32",
|
|
122
|
+
"name": "_merkleRoot",
|
|
123
|
+
"type": "bytes32"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"stateMutability": "view",
|
|
127
|
+
"type": "function"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"inputs": [],
|
|
131
|
+
"name": "getRandomNumber",
|
|
132
|
+
"outputs": [
|
|
133
|
+
{
|
|
134
|
+
"internalType": "uint256",
|
|
135
|
+
"name": "_randomNumber",
|
|
136
|
+
"type": "uint256"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"internalType": "bool",
|
|
140
|
+
"name": "_isSecureRandom",
|
|
141
|
+
"type": "bool"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"internalType": "uint256",
|
|
145
|
+
"name": "_randomTimestamp",
|
|
146
|
+
"type": "uint256"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"stateMutability": "view",
|
|
150
|
+
"type": "function"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "_timestamp",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "getVotingRoundId",
|
|
161
|
+
"outputs": [
|
|
162
|
+
{
|
|
163
|
+
"internalType": "uint256",
|
|
164
|
+
"name": "_votingRoundId",
|
|
165
|
+
"type": "uint256"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"stateMutability": "view",
|
|
169
|
+
"type": "function"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"inputs": [],
|
|
173
|
+
"name": "lastInitializedRewardEpochData",
|
|
174
|
+
"outputs": [
|
|
175
|
+
{
|
|
176
|
+
"internalType": "uint32",
|
|
177
|
+
"name": "_lastInitializedRewardEpoch",
|
|
178
|
+
"type": "uint32"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"internalType": "uint32",
|
|
182
|
+
"name": "_startingVotingRoundIdForLastInitializedRewardEpoch",
|
|
183
|
+
"type": "uint32"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"stateMutability": "view",
|
|
187
|
+
"type": "function"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"inputs": [
|
|
191
|
+
{
|
|
192
|
+
"internalType": "uint256",
|
|
193
|
+
"name": "_protocolId",
|
|
194
|
+
"type": "uint256"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"internalType": "uint256",
|
|
198
|
+
"name": "_votingRoundId",
|
|
199
|
+
"type": "uint256"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"name": "merkleRoots",
|
|
203
|
+
"outputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "bytes32",
|
|
206
|
+
"name": "_merkleRoot",
|
|
207
|
+
"type": "bytes32"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"stateMutability": "view",
|
|
211
|
+
"type": "function"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [],
|
|
215
|
+
"name": "relay",
|
|
216
|
+
"outputs": [],
|
|
217
|
+
"stateMutability": "nonpayable",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"inputs": [
|
|
222
|
+
{
|
|
223
|
+
"internalType": "uint256",
|
|
224
|
+
"name": "_rewardEpochId",
|
|
225
|
+
"type": "uint256"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"name": "startingVotingRoundIds",
|
|
229
|
+
"outputs": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "uint256",
|
|
232
|
+
"name": "_startingVotingRoundId",
|
|
233
|
+
"type": "uint256"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"stateMutability": "view",
|
|
237
|
+
"type": "function"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"internalType": "uint256",
|
|
243
|
+
"name": "_rewardEpochId",
|
|
244
|
+
"type": "uint256"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"name": "toSigningPolicyHash",
|
|
248
|
+
"outputs": [
|
|
249
|
+
{
|
|
250
|
+
"internalType": "bytes32",
|
|
251
|
+
"name": "_signingPolicyHash",
|
|
252
|
+
"type": "bytes32"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"stateMutability": "view",
|
|
256
|
+
"type": "function"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"bytecode": "0x",
|
|
260
|
+
"deployedBytecode": "0x",
|
|
261
|
+
"linkReferences": {},
|
|
262
|
+
"deployedLinkReferences": {}
|
|
263
|
+
}
|
|
@@ -228,5 +228,10 @@
|
|
|
228
228
|
"name": "IReferencedPaymentNonexistenceVerification",
|
|
229
229
|
"contractName": "IReferencedPaymentNonexistenceVerification.sol",
|
|
230
230
|
"address": "0x870Cfd102c2C549866CA87dB800EDdaABac02452"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "IRelay",
|
|
234
|
+
"contractName": "IRelay.sol",
|
|
235
|
+
"address": "0x32D46A1260BB2D8C9d5Ab1C9bBd7FF7D7CfaabCC",
|
|
231
236
|
}
|
|
232
237
|
]
|
package/dist/coston/abis.js
CHANGED
|
@@ -129,6 +129,7 @@ const PriceSubmitter_json_1 = __importDefault(require("./artifacts/contracts/gen
|
|
|
129
129
|
const StateConnector_json_1 = __importDefault(require("./artifacts/contracts/genesis/implementation/StateConnector.sol/StateConnector.json"));
|
|
130
130
|
const FlareDaemon_json_1 = __importDefault(require("./artifacts/contracts/genesis/implementation/FlareDaemon.sol/FlareDaemon.json"));
|
|
131
131
|
const GovernanceSettings_json_1 = __importDefault(require("./artifacts/contracts/genesis/implementation/GovernanceSettings.sol/GovernanceSettings.json"));
|
|
132
|
+
const IRelay_json_1 = __importDefault(require("./artifacts/contracts/utils/interface/IRelay.sol/IRelay.json"));
|
|
132
133
|
exports.abis = {
|
|
133
134
|
IIVPToken: IIVPToken_json_1.default.abi,
|
|
134
135
|
IIVPContract: IIVPContract_json_1.default.abi,
|
|
@@ -255,5 +256,6 @@ exports.abis = {
|
|
|
255
256
|
StateConnector: StateConnector_json_1.default.abi,
|
|
256
257
|
FlareDaemon: FlareDaemon_json_1.default.abi,
|
|
257
258
|
GovernanceSettings: GovernanceSettings_json_1.default.abi,
|
|
259
|
+
IRelay: IRelay_json_1.default.abi,
|
|
258
260
|
};
|
|
259
261
|
//# sourceMappingURL=abis.js.map
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IRelay",
|
|
4
|
+
"sourceName": "contracts/userInterfaces/IRelay.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": true,
|
|
11
|
+
"internalType": "uint8",
|
|
12
|
+
"name": "protocolId",
|
|
13
|
+
"type": "uint8"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"indexed": true,
|
|
17
|
+
"internalType": "uint32",
|
|
18
|
+
"name": "votingRoundId",
|
|
19
|
+
"type": "uint32"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"indexed": false,
|
|
23
|
+
"internalType": "bool",
|
|
24
|
+
"name": "isSecureRandom",
|
|
25
|
+
"type": "bool"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"indexed": false,
|
|
29
|
+
"internalType": "bytes32",
|
|
30
|
+
"name": "merkleRoot",
|
|
31
|
+
"type": "bytes32"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "ProtocolMessageRelayed",
|
|
35
|
+
"type": "event"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"anonymous": false,
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"indexed": true,
|
|
42
|
+
"internalType": "uint24",
|
|
43
|
+
"name": "rewardEpochId",
|
|
44
|
+
"type": "uint24"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"indexed": false,
|
|
48
|
+
"internalType": "uint32",
|
|
49
|
+
"name": "startVotingRoundId",
|
|
50
|
+
"type": "uint32"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"indexed": false,
|
|
54
|
+
"internalType": "uint16",
|
|
55
|
+
"name": "threshold",
|
|
56
|
+
"type": "uint16"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"indexed": false,
|
|
60
|
+
"internalType": "uint256",
|
|
61
|
+
"name": "seed",
|
|
62
|
+
"type": "uint256"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"indexed": false,
|
|
66
|
+
"internalType": "address[]",
|
|
67
|
+
"name": "voters",
|
|
68
|
+
"type": "address[]"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "uint16[]",
|
|
73
|
+
"name": "weights",
|
|
74
|
+
"type": "uint16[]"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"indexed": false,
|
|
78
|
+
"internalType": "bytes",
|
|
79
|
+
"name": "signingPolicyBytes",
|
|
80
|
+
"type": "bytes"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"indexed": false,
|
|
84
|
+
"internalType": "uint64",
|
|
85
|
+
"name": "timestamp",
|
|
86
|
+
"type": "uint64"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"name": "SigningPolicyInitialized",
|
|
90
|
+
"type": "event"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"anonymous": false,
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"indexed": true,
|
|
97
|
+
"internalType": "uint256",
|
|
98
|
+
"name": "rewardEpochId",
|
|
99
|
+
"type": "uint256"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"name": "SigningPolicyRelayed",
|
|
103
|
+
"type": "event"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "_protocolId",
|
|
110
|
+
"type": "uint256"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"internalType": "uint256",
|
|
114
|
+
"name": "_votingRoundId",
|
|
115
|
+
"type": "uint256"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"name": "getConfirmedMerkleRoot",
|
|
119
|
+
"outputs": [
|
|
120
|
+
{
|
|
121
|
+
"internalType": "bytes32",
|
|
122
|
+
"name": "_merkleRoot",
|
|
123
|
+
"type": "bytes32"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"stateMutability": "view",
|
|
127
|
+
"type": "function"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"inputs": [],
|
|
131
|
+
"name": "getRandomNumber",
|
|
132
|
+
"outputs": [
|
|
133
|
+
{
|
|
134
|
+
"internalType": "uint256",
|
|
135
|
+
"name": "_randomNumber",
|
|
136
|
+
"type": "uint256"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"internalType": "bool",
|
|
140
|
+
"name": "_isSecureRandom",
|
|
141
|
+
"type": "bool"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"internalType": "uint256",
|
|
145
|
+
"name": "_randomTimestamp",
|
|
146
|
+
"type": "uint256"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"stateMutability": "view",
|
|
150
|
+
"type": "function"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "_timestamp",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "getVotingRoundId",
|
|
161
|
+
"outputs": [
|
|
162
|
+
{
|
|
163
|
+
"internalType": "uint256",
|
|
164
|
+
"name": "_votingRoundId",
|
|
165
|
+
"type": "uint256"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"stateMutability": "view",
|
|
169
|
+
"type": "function"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"inputs": [],
|
|
173
|
+
"name": "lastInitializedRewardEpochData",
|
|
174
|
+
"outputs": [
|
|
175
|
+
{
|
|
176
|
+
"internalType": "uint32",
|
|
177
|
+
"name": "_lastInitializedRewardEpoch",
|
|
178
|
+
"type": "uint32"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"internalType": "uint32",
|
|
182
|
+
"name": "_startingVotingRoundIdForLastInitializedRewardEpoch",
|
|
183
|
+
"type": "uint32"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"stateMutability": "view",
|
|
187
|
+
"type": "function"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"inputs": [
|
|
191
|
+
{
|
|
192
|
+
"internalType": "uint256",
|
|
193
|
+
"name": "_protocolId",
|
|
194
|
+
"type": "uint256"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"internalType": "uint256",
|
|
198
|
+
"name": "_votingRoundId",
|
|
199
|
+
"type": "uint256"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"name": "merkleRoots",
|
|
203
|
+
"outputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "bytes32",
|
|
206
|
+
"name": "_merkleRoot",
|
|
207
|
+
"type": "bytes32"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"stateMutability": "view",
|
|
211
|
+
"type": "function"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"inputs": [],
|
|
215
|
+
"name": "relay",
|
|
216
|
+
"outputs": [],
|
|
217
|
+
"stateMutability": "nonpayable",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"inputs": [
|
|
222
|
+
{
|
|
223
|
+
"internalType": "uint256",
|
|
224
|
+
"name": "_rewardEpochId",
|
|
225
|
+
"type": "uint256"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"name": "startingVotingRoundIds",
|
|
229
|
+
"outputs": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "uint256",
|
|
232
|
+
"name": "_startingVotingRoundId",
|
|
233
|
+
"type": "uint256"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"stateMutability": "view",
|
|
237
|
+
"type": "function"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"internalType": "uint256",
|
|
243
|
+
"name": "_rewardEpochId",
|
|
244
|
+
"type": "uint256"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"name": "toSigningPolicyHash",
|
|
248
|
+
"outputs": [
|
|
249
|
+
{
|
|
250
|
+
"internalType": "bytes32",
|
|
251
|
+
"name": "_signingPolicyHash",
|
|
252
|
+
"type": "bytes32"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"stateMutability": "view",
|
|
256
|
+
"type": "function"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"bytecode": "0x",
|
|
260
|
+
"deployedBytecode": "0x",
|
|
261
|
+
"linkReferences": {},
|
|
262
|
+
"deployedLinkReferences": {}
|
|
263
|
+
}
|
|
@@ -42,5 +42,6 @@ exports.contractAddresses = {
|
|
|
42
42
|
DelegationAccount: '0xE2Ee339b2608Fe20ca2f721e938a640e0E5ee546',
|
|
43
43
|
FlareAssetRegistry: '0x92B87cc4205265e9500d570D452A3f7F91926e91',
|
|
44
44
|
WNatRegistryProvider: '0x9819645ab3E99a0A2c0ECF797Da4B9312b31121F',
|
|
45
|
+
Relay: '0x32D46A1260BB2D8C9d5Ab1C9bBd7FF7D7CfaabCC',
|
|
45
46
|
};
|
|
46
47
|
//# sourceMappingURL=addresses.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
function getFeedId(category, name) {
|
|
5
|
+
var result = category.padStart(2, "0");
|
|
6
|
+
for (var i = 0; i < name.length; i++) {
|
|
7
|
+
result += name.charCodeAt(i).toString(16);
|
|
8
|
+
}
|
|
9
|
+
return "0x" + result.padEnd(42, "0");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function getCryptoFeedId(name) {
|
|
13
|
+
return getFeedId("01", name)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.getCryptoFeedId = getCryptoFeedId;
|
|
17
|
+
exports.getFeedId = getFeedId;
|
package/package.json
CHANGED