forked from TrueCloudLab/frostfs-contract
7fbf6d73b0
Proxy contract used by notary contract as a main tx payment provider. `Verify` function verifies if main tx contains multisig of 5\7 inner ring nodes. If so, then contract pays for transaction. This is easier than support multisig wallet with GAS assets, because inner ring can change, therefore multisig wallet can change periodically. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
#!/usr/bin/make -f
|
|
|
|
SHELL=bash
|
|
NEOGO?=neo-go
|
|
|
|
.PHONY: all build sidechain
|
|
build: all
|
|
all: sidechain mainnet
|
|
sidechain: alphabet morph
|
|
|
|
alphabet_sc = alphabet
|
|
morph_sc = audit balance container neofsid netmap proxy reputation
|
|
mainnet_sc = neofs
|
|
|
|
define sc_template
|
|
$(2)$(1)/$(1)_contract.nef: $(2)$(1)/$(1)_contract.go
|
|
$(NEOGO) contract compile -i $(2)$(1)/$(1)_contract.go -c $(if $(2),$(2),$(1)/)config.yml -m $(2)$(1)/config.json
|
|
|
|
$(if $(2),$(2)$(1)/$(1)_contract.go: alphabet/alphabet.go alphabet/alphabet.tpl
|
|
go run alphabet/alphabet.go
|
|
)
|
|
endef
|
|
|
|
$(foreach sc,$(alphabet_sc),$(eval $(call sc_template,$(sc))))
|
|
$(foreach sc,$(morph_sc),$(eval $(call sc_template,$(sc))))
|
|
$(foreach sc,$(mainnet_sc),$(eval $(call sc_template,$(sc))))
|
|
|
|
alphabet: $(foreach sc,$(alphabet_sc),$(sc)/$(sc)_contract.nef)
|
|
morph: $(foreach sc,$(morph_sc),$(sc)/$(sc)_contract.nef)
|
|
mainnet: $(foreach sc,$(mainnet_sc),$(sc)/$(sc)_contract.nef)
|
|
|
|
clean:
|
|
find . -name '*.nef' -exec rm -rf {} \;
|
|
find . -name 'config.json' -exec rm -rf {} \;
|
|
|
|
mr_proper: clean
|
|
for sc in $(alphabet_sc); do\
|
|
rm -rf alphabet/$$sc; \
|
|
done
|