aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/tx.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-10-06 16:12:56 -0400
committerAaron Buchwald <[email protected]>2020-10-06 16:12:56 -0400
commita5b80ffc01821becffbe4f36d937f778c911af5f (patch)
tree801b7448bac78cb61ad12a2748796e55d7d0cdd6 /plugin/evm/tx.go
parentd833a96a315eaf3385316c6cfc89a2c7b5f32c73 (diff)
Add semantic verification tests for import tx
Diffstat (limited to 'plugin/evm/tx.go')
-rw-r--r--plugin/evm/tx.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/evm/tx.go b/plugin/evm/tx.go
index 7dcebc8..7c2ebf1 100644
--- a/plugin/evm/tx.go
+++ b/plugin/evm/tx.go
@@ -33,12 +33,14 @@ var (
errNilTx = errors.New("tx is nil")
)
+// EVMOutput defines an output from EVM State created from export transactions
type EVMOutput struct {
Address common.Address `serialize:"true" json:"address"`
Amount uint64 `serialize:"true" json:"amount"`
AssetID ids.ID `serialize:"true" json:"assetID"`
}
+// EVMInput defines an input for the EVM State to be used in import transactions
type EVMInput struct {
Address common.Address `serialize:"true" json:"address"`
Amount uint64 `serialize:"true" json:"amount"`
@@ -46,10 +48,12 @@ type EVMInput struct {
Nonce uint64 `serialize:"true" json:"nonce"`
}
+// Verify ...
func (out *EVMOutput) Verify() error {
return nil
}
+// Verify ...
func (in *EVMInput) Verify() error {
return nil
}