OSDN Git Service

feat: add build crosschain input (#91)
[bytom/vapor.git] / api / transact.go
index 87a75e2..3f2c0db 100644 (file)
@@ -25,10 +25,13 @@ func (a *API) actionDecoder(action string) (func([]byte) (txbuilder.Action, erro
        decoders := map[string]func([]byte) (txbuilder.Action, error){
                "control_address":              txbuilder.DecodeControlAddressAction,
                "control_program":              txbuilder.DecodeControlProgramAction,
-               "issue":                        a.wallet.AssetReg.DecodeIssueAction,
+               "cross_chain_out":              txbuilder.DecodeCrossOutAction,
+               "vote_output":                  txbuilder.DecodeVoteOutputAction,
                "retire":                       txbuilder.DecodeRetireAction,
+               "cross_chain_in":               txbuilder.DecodeCrossInAction,
                "spend_account":                a.wallet.AccountMgr.DecodeSpendAction,
                "spend_account_unspent_output": a.wallet.AccountMgr.DecodeSpendUTXOAction,
+               "unvote":                       a.wallet.AccountMgr.DecodeUnvoteAction,
        }
        decoder, ok := decoders[action]
        return decoder, ok