-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy-pasta-abis.sh
executable file
·36 lines (32 loc) · 1.29 KB
/
copy-pasta-abis.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
#!/bin/bash
# script to copy ABIs from this repo to sibling repos (subgraph and frontend)
BASE=./artifacts/contracts
GRAPH=../metalabel-subgraph/abis
FRONTEND=../metalabel-app/sdk/abis
yarn build \
&& cp \
$BASE/AccountRegistry.sol/AccountRegistry.json \
$BASE/NodeRegistry.sol/NodeRegistry.json \
$BASE/Collection.sol/Collection.json \
$BASE/Memberships.sol/Memberships.json \
$BASE/engines/DropEngineV2.sol/DropEngineV2.json \
$BASE/CollectionFactory.sol/CollectionFactory.json \
$BASE/MembershipsFactory.sol/MembershipsFactory.json \
$BASE/RevenueModuleFactory.sol/RevenueModuleFactory.json \
$BASE/ControllerV1.sol/ControllerV1.json \
$GRAPH \
&& cp \
$BASE/AccountRegistry.sol/AccountRegistry.json \
$BASE/NodeRegistry.sol/NodeRegistry.json \
$BASE/Collection.sol/Collection.json \
$BASE/Memberships.sol/Memberships.json \
$BASE/engines/DropEngineV2.sol/DropEngineV2.json \
$BASE/CollectionFactory.sol/CollectionFactory.json \
$BASE/MembershipsFactory.sol/MembershipsFactory.json \
$BASE/RevenueModuleFactory.sol/RevenueModuleFactory.json \
$BASE/ControllerV1.sol/ControllerV1.json \
$FRONTEND \
&& cp \
./tasks/deployments.json $FRONTEND/../data \
&& \
npx ts-node ./scripts/sync-deployments-to-subgraph.ts