github.com/annchain/OG@v0.0.9/og/txmaker/model.go (about)

     1  package txmaker
     2  
     3  import (
     4  	"github.com/annchain/OG/common"
     5  	"github.com/annchain/OG/common/crypto"
     6  	"github.com/annchain/OG/common/math"
     7  )
     8  
     9  type TxWithSealBuildRequest struct {
    10  	From    common.Address
    11  	To      common.Address
    12  	Value   *math.BigInt
    13  	Data    []byte
    14  	Nonce   uint64
    15  	Pubkey  crypto.PublicKey
    16  	Sig     crypto.Signature
    17  	TokenId int32
    18  }
    19  
    20  type UnsignedTxBuildRequest struct {
    21  	From         common.Address
    22  	To           common.Address
    23  	Value        *math.BigInt
    24  	AccountNonce uint64
    25  	TokenId      int32
    26  }
    27  
    28  type ActionTxBuildRequest struct {
    29  	UnsignedTxBuildRequest
    30  	Action    byte
    31  	EnableSpo bool
    32  	TokenName string
    33  	Pubkey    crypto.PublicKey
    34  	Sig       crypto.Signature
    35  }
    36  
    37  type SignedTxBuildRequest struct {
    38  	UnsignedTxBuildRequest
    39  	PrivateKey crypto.PrivateKey
    40  }
    41  
    42  type UnsignedSequencerBuildRequest struct {
    43  	Issuer       common.Address
    44  	Height       uint64
    45  	AccountNonce uint64
    46  }
    47  
    48  type SignedSequencerBuildRequest struct {
    49  	UnsignedSequencerBuildRequest
    50  	PrivateKey crypto.PrivateKey
    51  }