aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-08-19 16:13:57 -0400
committerDeterminant <[email protected]>2020-08-19 16:13:57 -0400
commitec103c07738b3db70501dee7a7da113edbb68875 (patch)
treef35949bc93309350ebc21dc654ee1e20ce60811d /plugin/evm/vm.go
parentfbcfc73c7a92d0a2615ef90c4dffa4746161b9c7 (diff)
...
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index b72ac49..7cbfabd 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -34,6 +34,7 @@ import (
"github.com/ava-labs/gecko/snow/choices"
"github.com/ava-labs/gecko/snow/consensus/snowman"
"github.com/ava-labs/gecko/utils/codec"
+ "github.com/ava-labs/gecko/vms/secp256k1fx"
//"github.com/ava-labs/gecko/utils/constants"
//"github.com/ava-labs/gecko/utils/formatting"
avajson "github.com/ava-labs/gecko/utils/json"
@@ -98,6 +99,13 @@ func init() {
errs := wrappers.Errs{}
errs.Add(
Codec.RegisterType(&UnsignedImportTx{}),
+ Codec.RegisterType(&secp256k1fx.TransferInput{}),
+ Codec.RegisterType(&secp256k1fx.Input{}),
+ Codec.RegisterType(&secp256k1fx.Credential{}),
+ Codec.RegisterType(&secp256k1fx.TransferOutput{}),
+ Codec.RegisterType(&secp256k1fx.OutputOwners{}),
+ Codec.RegisterType(&secp256k1fx.MintOperation{}),
+ Codec.RegisterType(&secp256k1fx.MintOutput{}),
)
if errs.Errored() {
panic(errs.Err)
@@ -657,6 +665,11 @@ func (vm *VM) GetAtomicUTXOs(
limit int,
) ([]*avax.UTXO, ids.ShortID, ids.ID, error) {
// TODO: finish this function via gRPC
- utxos := []*avax.UTXO{}
+ utxos := []*avax.UTXO{{
+ Asset: avax.Asset{ID: vm.ctx.AVAXAssetID},
+ Out: &secp256k1fx.TransferOutput{
+ Amt: 100,
+ },
+ }}
return utxos, ids.ShortEmpty, ids.Empty, nil
}