Skip to content

Commit 8922965

Browse files
authored
feat: project permission (#518)
1 parent 94d70ee commit 8922965

20 files changed

+1615
-2106
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ smartcontracts/contracts/artifacts/
4141
smartcontracts/contracts/interfaces/artifacts/
4242
smartcontracts/.deps
4343

44+
# tmp
4445
clients/contracts/ioid
46+
node_modules

clients/contracts/Makefile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DEFAULT_GOAL := update
22

33
.PHONY: update
4-
update: fetch generate_abi generate_go
4+
update: fetch generate_abi
55

66
.PHONY: fetch
77
fetch:
@@ -20,20 +20,15 @@ generate_abi: generate_abi_ioid generate_abi_project_device
2020
generate_abi_ioid:
2121
@echo "#### generate abis of ioID from latest contracts..."
2222
@cd ioid && yarn install > /dev/null 2>&1 && yarn hardhat compile > /dev/null 2>&1
23-
@cat ioid/artifacts/contracts/ioIDRegistry.sol/ioIDRegistry.json | jq .abi > abis/ioIDRegistry.json
23+
@cat ioid/artifacts/contracts/ioIDRegistry.sol/ioIDRegistry.json | jq .abi > ioIDRegistry.json
2424
@echo DONE
2525

2626
.PHONY: generate_abi_project_device
2727
generate_abi_project_device:
2828
@echo "#### generate abis of ProjectDevice from latest contracts..."
2929
@cd ../../smartcontracts && yarn install > /dev/null 2>&1 && yarn hardhat compile > /dev/null 2>&1
30-
@cat ../../smartcontracts/artifacts/contracts/examples/ProjectDevice.sol/ProjectDevice.json | jq .abi > abis/ProjectDevice.json
31-
@echo DONE
32-
33-
.PHONY: generate_go
34-
generate_go:
35-
@echo "#### generate go code by abis"
36-
@go generate .
30+
@cat ../../smartcontracts/artifacts/contracts/examples/ProjectDevice.sol/ProjectDevice.json | jq .abi > ProjectDevice.json
31+
@cat ../../smartcontracts/artifacts/contracts/W3bstreamProject.sol/W3bstreamProject.json | jq .abi > W3bstreamProject.json
3732
@echo DONE
3833

3934
.PHONY: clean
File renamed without changes.

0 commit comments

Comments
 (0)