-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsync-v2.sh
executable file
·36 lines (31 loc) · 2.11 KB
/
sync-v2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
rm -rf abi
mkdir -p abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/ftso/merkle/FtsoMerkleStructs.sol/FtsoMerkleStructs.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/merkle/ProtocolMerkleStructs.sol/ProtocolMerkleStructs.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/implementation/FlareSystemsManager.sol/FlareSystemsManager.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/implementation/Relay.sol/Relay.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/implementation/Submission.sol/Submission.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/implementation/VoterRegistry.sol/VoterRegistry.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/implementation/RewardManager.sol/RewardManager.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/ftso/implementation/FtsoRewardOffersManager.sol/FtsoRewardOffersManager.json abi
cp -r ../flare-smart-contracts-v2/artifacts/contracts/protocol/implementation/FlareSystemsCalculator.sol/FlareSystemsCalculator.json abi
# COPY_HEADER="
# ////////////////////////////////////////////////////////////////////////////////////////////////////////
# // This file is copied from the Flare Smart Contract V2 repository.
# // DO NOT CHANGE!
# // See: https://gitlab.com/flarenetwork/flare-smart-contracts-v2/-/tree/main/scripts/libs/protocol
# ////////////////////////////////////////////////////////////////////////////////////////////////////////
# "
# copy_libs_add_header() {
# cp -r ../flare-smart-contracts-v2/scripts/libs/protocol/$1.ts libs/ftso-core/fsp-utils/$1.ts.tmp
# echo "$COPY_HEADER" > libs/ftso-core/fsp-utils/$1.ts
# cat libs/ftso-core/fsp-utils/$1.ts.tmp >> libs/ftso-core/fsp-utils/$1.ts
# rm libs/ftso-core/fsp-utils/$1.ts.tmp
# }
# copy_libs_add_header "PayloadMessage"
# copy_libs_add_header "SigningPolicy"
# copy_libs_add_header "ProtocolMessageMerkleRoot"
# copy_libs_add_header "ECDSASignature"
# copy_libs_add_header "ECDSASignatureWithIndex"
# copy_libs_add_header "RelayMessage"
# copy_libs_add_header "SignaturePayload"