github.com/quantosnetwork/Quantos@v0.0.0-20220306172517-e20b28c5a29a/address/account.go (about)

     1  package address
     2  
     3  import (
     4  	"github.com/google/uuid"
     5  	"go.uber.org/atomic"
     6  )
     7  
     8  type Address interface{}
     9  
    10  type Account struct {
    11  	ID             uuid.UUID
    12  	address        *Address
    13  	Address        string
    14  	loadedMaster   string
    15  	Lock           atomic.Bool
    16  	Wallet         interface{}
    17  	CreatedAtBlock uint32
    18  }
    19  
    20  type account interface {
    21  	New() *Account
    22  	GetWalletAddress() *string
    23  	Unlock() bool
    24  	Lock() bool
    25  	GetAllTransactions() map[string]interface{}
    26  	GetOneTransaction(txid string) interface{}
    27  }
    28  
    29  type AccountState struct {
    30  	Nonce               []byte
    31  	Balance             string
    32  	MerkleRoot          []byte
    33  	VMCodeHashToExecute []byte
    34  }