github.com/mavryk-network/mvgo@v1.19.9/rpc/drain_delegate.go (about)

     1  // Copyright (c) 2022 Blockwatch Data Inc.
     2  // Author: alex@blockwatch.cc
     3  
     4  package rpc
     5  
     6  import "github.com/mavryk-network/mvgo/mavryk"
     7  
     8  // Ensure DrainDelegate implements the TypedOperation interface.
     9  var _ TypedOperation = (*DrainDelegate)(nil)
    10  
    11  // DrainDelegate represents a transaction operation
    12  type DrainDelegate struct {
    13  	Generic
    14  	ConsensusKey mavryk.Address `json:"consensus_key"`
    15  	Delegate     mavryk.Address `json:"delegate"`
    16  	Destination  mavryk.Address `json:"destination"`
    17  }