From 1bcb89afbbf26d997c6bf3839e4098cc5f67c840 Mon Sep 17 00:00:00 2001 From: Robert Sasu Date: Fri, 5 Nov 2021 13:47:01 +0200 Subject: [PATCH 1/2] exec on destionation by caller --- data/vm/callType.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/vm/callType.go b/data/vm/callType.go index a46d1b3f7..a38c2a0a8 100644 --- a/data/vm/callType.go +++ b/data/vm/callType.go @@ -18,4 +18,8 @@ const ( // ESDTTransferAndExecute means that there is a smart contract execution after the ESDT transfer // this is needed in order to skip the check whether a contract is payable or not ESDTTransferAndExecute + + // ExecOnDestByCaller means that the call is an invocation of a built in function / smart contract from + // another smart contract but the caller is from the previous caller + ExecOnDestByCaller ) From c5346e8def2e8560350d03fbbf632ff96be4ed8c Mon Sep 17 00:00:00 2001 From: miiu96 Date: Mon, 8 Nov 2021 10:59:01 +0200 Subject: [PATCH 2/2] esdt supply structure --- data/api/apiESDTSupply.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 data/api/apiESDTSupply.go diff --git a/data/api/apiESDTSupply.go b/data/api/apiESDTSupply.go new file mode 100644 index 000000000..9488f7b98 --- /dev/null +++ b/data/api/apiESDTSupply.go @@ -0,0 +1,9 @@ +package api + +// ESDTSupply represents the structure for esdt supply that is returned by api routes +type ESDTSupply struct { + InitialMinted string `json:"initialMinted"` + Supply string `json:"supply"` + Burned string `json:"burned"` + Minted string `json:"minted"` +}