core

package
Version: v2.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountType_name = map[int32]string{
		0: "Normal",
		1: "AssetIssue",
		2: "Contract",
	}
	AccountType_value = map[string]int32{
		"Normal":     0,
		"AssetIssue": 1,
		"Contract":   2,
	}
)

Enum value maps for AccountType.

View Source
var (
	ReasonCode_name = map[int32]string{
		0:   "REQUESTED",
		2:   "BAD_PROTOCOL",
		4:   "TOO_MANY_PEERS",
		5:   "DUPLICATE_PEER",
		6:   "INCOMPATIBLE_PROTOCOL",
		7:   "NULL_IDENTITY",
		8:   "PEER_QUITING",
		9:   "UNEXPECTED_IDENTITY",
		10:  "LOCAL_IDENTITY",
		11:  "PING_TIMEOUT",
		16:  "USER_REASON",
		17:  "RESET",
		18:  "SYNC_FAIL",
		19:  "FETCH_FAIL",
		20:  "BAD_TX",
		21:  "BAD_BLOCK",
		22:  "FORKED",
		23:  "UNLINKABLE",
		24:  "INCOMPATIBLE_VERSION",
		25:  "INCOMPATIBLE_CHAIN",
		32:  "TIME_OUT",
		33:  "CONNECT_FAIL",
		34:  "TOO_MANY_PEERS_WITH_SAME_IP",
		255: "UNKNOWN",
	}
	ReasonCode_value = map[string]int32{
		"REQUESTED":                   0,
		"BAD_PROTOCOL":                2,
		"TOO_MANY_PEERS":              4,
		"DUPLICATE_PEER":              5,
		"INCOMPATIBLE_PROTOCOL":       6,
		"NULL_IDENTITY":               7,
		"PEER_QUITING":                8,
		"UNEXPECTED_IDENTITY":         9,
		"LOCAL_IDENTITY":              10,
		"PING_TIMEOUT":                11,
		"USER_REASON":                 16,
		"RESET":                       17,
		"SYNC_FAIL":                   18,
		"FETCH_FAIL":                  19,
		"BAD_TX":                      20,
		"BAD_BLOCK":                   21,
		"FORKED":                      22,
		"UNLINKABLE":                  23,
		"INCOMPATIBLE_VERSION":        24,
		"INCOMPATIBLE_CHAIN":          25,
		"TIME_OUT":                    32,
		"CONNECT_FAIL":                33,
		"TOO_MANY_PEERS_WITH_SAME_IP": 34,
		"UNKNOWN":                     255,
	}
)

Enum value maps for ReasonCode.

View Source
var (
	Proposal_State_name = map[int32]string{
		0: "PENDING",
		1: "DISAPPROVED",
		2: "APPROVED",
		3: "CANCELED",
	}
	Proposal_State_value = map[string]int32{
		"PENDING":     0,
		"DISAPPROVED": 1,
		"APPROVED":    2,
		"CANCELED":    3,
	}
)

Enum value maps for Proposal_State.

View Source
var (
	Permission_PermissionType_name = map[int32]string{
		0: "Owner",
		1: "Witness",
		2: "Active",
	}
	Permission_PermissionType_value = map[string]int32{
		"Owner":   0,
		"Witness": 1,
		"Active":  2,
	}
)

Enum value maps for Permission_PermissionType.

View Source
var (
	Transaction_Contract_ContractType_name = map[int32]string{
		0:  "AccountCreateContract",
		1:  "TransferContract",
		2:  "TransferAssetContract",
		3:  "VoteAssetContract",
		4:  "VoteWitnessContract",
		5:  "WitnessCreateContract",
		6:  "AssetIssueContract",
		8:  "WitnessUpdateContract",
		9:  "ParticipateAssetIssueContract",
		10: "AccountUpdateContract",
		11: "FreezeBalanceContract",
		12: "UnfreezeBalanceContract",
		13: "WithdrawBalanceContract",
		14: "UnfreezeAssetContract",
		15: "UpdateAssetContract",
		16: "ProposalCreateContract",
		17: "ProposalApproveContract",
		18: "ProposalDeleteContract",
		19: "SetAccountIdContract",
		20: "CustomContract",
		30: "CreateSmartContract",
		31: "TriggerSmartContract",
		32: "GetContract",
		33: "UpdateSettingContract",
		41: "ExchangeCreateContract",
		42: "ExchangeInjectContract",
		43: "ExchangeWithdrawContract",
		44: "ExchangeTransactionContract",
		45: "UpdateEnergyLimitContract",
		46: "AccountPermissionUpdateContract",
		48: "ClearABIContract",
		49: "UpdateBrokerageContract",
		51: "ShieldedTransferContract",
	}
	Transaction_Contract_ContractType_value = map[string]int32{
		"AccountCreateContract":           0,
		"TransferContract":                1,
		"TransferAssetContract":           2,
		"VoteAssetContract":               3,
		"VoteWitnessContract":             4,
		"WitnessCreateContract":           5,
		"AssetIssueContract":              6,
		"WitnessUpdateContract":           8,
		"ParticipateAssetIssueContract":   9,
		"AccountUpdateContract":           10,
		"FreezeBalanceContract":           11,
		"UnfreezeBalanceContract":         12,
		"WithdrawBalanceContract":         13,
		"UnfreezeAssetContract":           14,
		"UpdateAssetContract":             15,
		"ProposalCreateContract":          16,
		"ProposalApproveContract":         17,
		"ProposalDeleteContract":          18,
		"SetAccountIdContract":            19,
		"CustomContract":                  20,
		"CreateSmartContract":             30,
		"TriggerSmartContract":            31,
		"GetContract":                     32,
		"UpdateSettingContract":           33,
		"ExchangeCreateContract":          41,
		"ExchangeInjectContract":          42,
		"ExchangeWithdrawContract":        43,
		"ExchangeTransactionContract":     44,
		"UpdateEnergyLimitContract":       45,
		"AccountPermissionUpdateContract": 46,
		"ClearABIContract":                48,
		"UpdateBrokerageContract":         49,
		"ShieldedTransferContract":        51,
	}
)

Enum value maps for Transaction_Contract_ContractType.

View Source
var (
	Transaction_ResultCode_name = map[int32]string{
		0: "SUCESS",
		1: "FAILED",
	}
	Transaction_ResultCode_value = map[string]int32{
		"SUCESS": 0,
		"FAILED": 1,
	}
)

Enum value maps for Transaction_ResultCode.

View Source
var (
	Transaction_ResultContractResult_name = map[int32]string{
		0:  "DEFAULT",
		1:  "SUCCESS",
		2:  "REVERT",
		3:  "BAD_JUMP_DESTINATION",
		4:  "OUT_OF_MEMORY",
		5:  "PRECOMPILED_CONTRACT",
		6:  "STACK_TOO_SMALL",
		7:  "STACK_TOO_LARGE",
		8:  "ILLEGAL_OPERATION",
		9:  "STACK_OVERFLOW",
		10: "OUT_OF_ENERGY",
		11: "OUT_OF_TIME",
		12: "JVM_STACK_OVER_FLOW",
		13: "UNKNOWN",
		14: "TRANSFER_FAILED",
	}
	Transaction_ResultContractResult_value = map[string]int32{
		"DEFAULT":              0,
		"SUCCESS":              1,
		"REVERT":               2,
		"BAD_JUMP_DESTINATION": 3,
		"OUT_OF_MEMORY":        4,
		"PRECOMPILED_CONTRACT": 5,
		"STACK_TOO_SMALL":      6,
		"STACK_TOO_LARGE":      7,
		"ILLEGAL_OPERATION":    8,
		"STACK_OVERFLOW":       9,
		"OUT_OF_ENERGY":        10,
		"OUT_OF_TIME":          11,
		"JVM_STACK_OVER_FLOW":  12,
		"UNKNOWN":              13,
		"TRANSFER_FAILED":      14,
	}
)

Enum value maps for Transaction_ResultContractResult.

View Source
var (
	TransactionInfoCode_name = map[int32]string{
		0: "SUCESS",
		1: "FAILED",
	}
	TransactionInfoCode_value = map[string]int32{
		"SUCESS": 0,
		"FAILED": 1,
	}
)

Enum value maps for TransactionInfoCode.

View Source
var (
	BlockInventory_Type_name = map[int32]string{
		0: "SYNC",
		1: "ADVTISE",
		2: "FETCH",
	}
	BlockInventory_Type_value = map[string]int32{
		"SYNC":    0,
		"ADVTISE": 1,
		"FETCH":   2,
	}
)

Enum value maps for BlockInventory_Type.

View Source
var (
	Inventory_InventoryType_name = map[int32]string{
		0: "TRX",
		1: "BLOCK",
	}
	Inventory_InventoryType_value = map[string]int32{
		"TRX":   0,
		"BLOCK": 1,
	}
)

Enum value maps for Inventory_InventoryType.

View Source
var (
	Items_ItemType_name = map[int32]string{
		0: "ERR",
		1: "TRX",
		2: "BLOCK",
		3: "BLOCKHEADER",
	}
	Items_ItemType_value = map[string]int32{
		"ERR":         0,
		"TRX":         1,
		"BLOCK":       2,
		"BLOCKHEADER": 3,
	}
)

Enum value maps for Items_ItemType.

View Source
var File_core_Discover_proto protoreflect.FileDescriptor
View Source
var File_core_TronInventoryItems_proto protoreflect.FileDescriptor
View Source
var File_core_Tron_proto protoreflect.FileDescriptor
View Source
var ResourceCode_name = map[int32]string{
	0: "BANDWIDTH",
	1: "ENERGY",
}
View Source
var ResourceCode_value = map[string]int32{
	"BANDWIDTH": 0,
	"ENERGY":    1,
}
View Source
var SmartContract_ABI_Entry_EntryType_name = map[int32]string{
	0: "UnknownEntryType",
	1: "Constructor",
	2: "Function",
	3: "Event",
	4: "Fallback",
}
View Source
var SmartContract_ABI_Entry_EntryType_value = map[string]int32{
	"UnknownEntryType": 0,
	"Constructor":      1,
	"Function":         2,
	"Event":            3,
	"Fallback":         4,
}
View Source
var SmartContract_ABI_Entry_StateMutabilityType_name = map[int32]string{
	0: "UnknownMutabilityType",
	1: "Pure",
	2: "View",
	3: "Nonpayable",
	4: "Payable",
}
View Source
var SmartContract_ABI_Entry_StateMutabilityType_value = map[string]int32{
	"UnknownMutabilityType": 0,
	"Pure":                  1,
	"View":                  2,
	"Nonpayable":            3,
	"Payable":               4,
}

Functions

This section is empty.

Types

type Account

type Account struct {

	// account nick name
	AccountName []byte      `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	Type        AccountType `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.AccountType" json:"type,omitempty"`
	// the create address
	Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// the trx balance
	Balance int64 `protobuf:"varint,4,opt,name=balance,proto3" json:"balance,omitempty"`
	// the votes
	Votes []*Vote `protobuf:"bytes,5,rep,name=votes,proto3" json:"votes,omitempty"`
	// the other asset owned by this account
	Asset map[string]int64 `` /* 152-byte string literal not displayed */
	// the other asset owned by this account,key is assetId
	AssetV2 map[string]int64 `` /* 157-byte string literal not displayed */
	// the frozen balance for bandwidth
	Frozen []*Account_Frozen `protobuf:"bytes,7,rep,name=frozen,proto3" json:"frozen,omitempty"`
	// bandwidth, get from frozen
	NetUsage int64 `protobuf:"varint,8,opt,name=net_usage,json=netUsage,proto3" json:"net_usage,omitempty"`
	//Frozen balance provided by other accounts to this account
	AcquiredDelegatedFrozenBalanceForBandwidth int64 `` /* 197-byte string literal not displayed */
	//Freeze and provide balances to other accounts
	DelegatedFrozenBalanceForBandwidth int64 `` /* 171-byte string literal not displayed */
	// this account create time
	CreateTime int64 `protobuf:"varint,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// this last operation time, including transfer, voting and so on. //FIXME fix grammar
	LatestOprationTime int64 `protobuf:"varint,10,opt,name=latest_opration_time,json=latestOprationTime,proto3" json:"latest_opration_time,omitempty"`
	// witness block producing allowance
	Allowance int64 `protobuf:"varint,11,opt,name=allowance,proto3" json:"allowance,omitempty"`
	// last withdraw time
	LatestWithdrawTime int64 `protobuf:"varint,12,opt,name=latest_withdraw_time,json=latestWithdrawTime,proto3" json:"latest_withdraw_time,omitempty"`
	// not used so far
	Code        []byte `protobuf:"bytes,13,opt,name=code,proto3" json:"code,omitempty"`
	IsWitness   bool   `protobuf:"varint,14,opt,name=is_witness,json=isWitness,proto3" json:"is_witness,omitempty"`
	IsCommittee bool   `protobuf:"varint,15,opt,name=is_committee,json=isCommittee,proto3" json:"is_committee,omitempty"`
	// frozen asset(for asset issuer)
	FrozenSupply []*Account_Frozen `protobuf:"bytes,16,rep,name=frozen_supply,json=frozenSupply,proto3" json:"frozen_supply,omitempty"`
	// asset_issued_name
	AssetIssuedName            []byte           `protobuf:"bytes,17,opt,name=asset_issued_name,json=assetIssuedName,proto3" json:"asset_issued_name,omitempty"`
	AssetIssued_ID             []byte           `protobuf:"bytes,57,opt,name=asset_issued_ID,json=assetIssuedID,proto3" json:"asset_issued_ID,omitempty"`
	LatestAssetOperationTime   map[string]int64 `` /* 227-byte string literal not displayed */
	LatestAssetOperationTimeV2 map[string]int64 `` /* 233-byte string literal not displayed */
	FreeNetUsage               int64            `protobuf:"varint,19,opt,name=free_net_usage,json=freeNetUsage,proto3" json:"free_net_usage,omitempty"`
	FreeAssetNetUsage          map[string]int64 `` /* 206-byte string literal not displayed */
	FreeAssetNetUsageV2        map[string]int64 `` /* 212-byte string literal not displayed */
	LatestConsumeTime          int64            `protobuf:"varint,21,opt,name=latest_consume_time,json=latestConsumeTime,proto3" json:"latest_consume_time,omitempty"`
	LatestConsumeFreeTime      int64            `` /* 130-byte string literal not displayed */
	// the identity of this account, case insensitive
	AccountId         []byte                   `protobuf:"bytes,23,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AccountResource   *Account_AccountResource `protobuf:"bytes,26,opt,name=account_resource,json=accountResource,proto3" json:"account_resource,omitempty"`
	CodeHash          []byte                   `protobuf:"bytes,30,opt,name=codeHash,proto3" json:"codeHash,omitempty"`
	OwnerPermission   *Permission              `protobuf:"bytes,31,opt,name=owner_permission,json=ownerPermission,proto3" json:"owner_permission,omitempty"`
	WitnessPermission *Permission              `protobuf:"bytes,32,opt,name=witness_permission,json=witnessPermission,proto3" json:"witness_permission,omitempty"`
	ActivePermission  []*Permission            `protobuf:"bytes,33,rep,name=active_permission,json=activePermission,proto3" json:"active_permission,omitempty"`
	// contains filtered or unexported fields
}

Account

func (*Account) Descriptor deprecated

This method has been deprecated.
func (*Account) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountId

func (x *Account) GetAccountId() []byte

func (*Account) GetAccountName

func (x *Account) GetAccountName() []byte

func (*Account) GetAccountResource

func (x *Account) GetAccountResource() *Account_AccountResource

func (*Account) GetAcquiredDelegatedFrozenBalanceForBandwidth

func (x *Account) GetAcquiredDelegatedFrozenBalanceForBandwidth() int64

func (*Account) GetActivePermission

func (x *Account) GetActivePermission() []*Permission

func (*Account) GetAddress

func (x *Account) GetAddress() []byte

func (*Account) GetAllowance

func (x *Account) GetAllowance() int64

func (*Account) GetAsset

func (x *Account) GetAsset() map[string]int64

func (*Account) GetAssetIssuedName

func (x *Account) GetAssetIssuedName() []byte

func (*Account) GetAssetIssued_ID

func (x *Account) GetAssetIssued_ID() []byte

func (*Account) GetAssetV2

func (x *Account) GetAssetV2() map[string]int64

func (*Account) GetBalance

func (x *Account) GetBalance() int64

func (*Account) GetCode

func (x *Account) GetCode() []byte

func (*Account) GetCodeHash

func (x *Account) GetCodeHash() []byte

func (*Account) GetCreateTime

func (x *Account) GetCreateTime() int64

func (*Account) GetDelegatedFrozenBalanceForBandwidth

func (x *Account) GetDelegatedFrozenBalanceForBandwidth() int64

func (*Account) GetFreeAssetNetUsage

func (x *Account) GetFreeAssetNetUsage() map[string]int64

func (*Account) GetFreeAssetNetUsageV2

func (x *Account) GetFreeAssetNetUsageV2() map[string]int64

func (*Account) GetFreeNetUsage

func (x *Account) GetFreeNetUsage() int64

func (*Account) GetFrozen

func (x *Account) GetFrozen() []*Account_Frozen

func (*Account) GetFrozenSupply

func (x *Account) GetFrozenSupply() []*Account_Frozen

func (*Account) GetIsCommittee

func (x *Account) GetIsCommittee() bool

func (*Account) GetIsWitness

func (x *Account) GetIsWitness() bool

func (*Account) GetLatestAssetOperationTime

func (x *Account) GetLatestAssetOperationTime() map[string]int64

func (*Account) GetLatestAssetOperationTimeV2

func (x *Account) GetLatestAssetOperationTimeV2() map[string]int64

func (*Account) GetLatestConsumeFreeTime

func (x *Account) GetLatestConsumeFreeTime() int64

func (*Account) GetLatestConsumeTime

func (x *Account) GetLatestConsumeTime() int64

func (*Account) GetLatestOprationTime

func (x *Account) GetLatestOprationTime() int64

func (*Account) GetLatestWithdrawTime

func (x *Account) GetLatestWithdrawTime() int64

func (*Account) GetNetUsage

func (x *Account) GetNetUsage() int64

func (*Account) GetOwnerPermission

func (x *Account) GetOwnerPermission() *Permission

func (*Account) GetType

func (x *Account) GetType() AccountType

func (*Account) GetVotes

func (x *Account) GetVotes() []*Vote

func (*Account) GetWitnessPermission

func (x *Account) GetWitnessPermission() *Permission

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountCreateContract

type AccountCreateContract struct {
	OwnerAddress         []byte      `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	AccountAddress       []byte      `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	Type                 AccountType `protobuf:"varint,3,opt,name=type,proto3,enum=protocol.AccountType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*AccountCreateContract) Descriptor

func (*AccountCreateContract) Descriptor() ([]byte, []int)

func (*AccountCreateContract) GetAccountAddress

func (m *AccountCreateContract) GetAccountAddress() []byte

func (*AccountCreateContract) GetOwnerAddress

func (m *AccountCreateContract) GetOwnerAddress() []byte

func (*AccountCreateContract) GetType

func (m *AccountCreateContract) GetType() AccountType

func (*AccountCreateContract) ProtoMessage

func (*AccountCreateContract) ProtoMessage()

func (*AccountCreateContract) Reset

func (m *AccountCreateContract) Reset()

func (*AccountCreateContract) String

func (m *AccountCreateContract) String() string

func (*AccountCreateContract) XXX_DiscardUnknown

func (m *AccountCreateContract) XXX_DiscardUnknown()

func (*AccountCreateContract) XXX_Marshal

func (m *AccountCreateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountCreateContract) XXX_Merge

func (m *AccountCreateContract) XXX_Merge(src proto.Message)

func (*AccountCreateContract) XXX_Size

func (m *AccountCreateContract) XXX_Size() int

func (*AccountCreateContract) XXX_Unmarshal

func (m *AccountCreateContract) XXX_Unmarshal(b []byte) error

type AccountId

type AccountId struct {
	Name    []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

AccountId, (name, address) use name, (null, address) use address, (name, null) use name,

func (*AccountId) Descriptor deprecated

This method has been deprecated.
func (*AccountId) Descriptor() ([]byte, []int)

Deprecated: Use AccountId.ProtoReflect.Descriptor instead.

func (*AccountId) GetAddress

func (x *AccountId) GetAddress() []byte

func (*AccountId) GetName

func (x *AccountId) GetName() []byte

func (*AccountId) ProtoMessage

func (*AccountId) ProtoMessage()

func (*AccountId) ProtoReflect

func (x *AccountId) ProtoReflect() protoreflect.Message

func (*AccountId) Reset

func (x *AccountId) Reset()

func (*AccountId) String

func (x *AccountId) String() string

type AccountPermissionUpdateContract

type AccountPermissionUpdateContract struct {
	OwnerAddress         []byte        `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	Owner                *Permission   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Witness              *Permission   `protobuf:"bytes,3,opt,name=witness,proto3" json:"witness,omitempty"`
	Actives              []*Permission `protobuf:"bytes,4,rep,name=actives,proto3" json:"actives,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*AccountPermissionUpdateContract) Descriptor

func (*AccountPermissionUpdateContract) Descriptor() ([]byte, []int)

func (*AccountPermissionUpdateContract) GetActives

func (m *AccountPermissionUpdateContract) GetActives() []*Permission

func (*AccountPermissionUpdateContract) GetOwner

func (*AccountPermissionUpdateContract) GetOwnerAddress

func (m *AccountPermissionUpdateContract) GetOwnerAddress() []byte

func (*AccountPermissionUpdateContract) GetWitness

func (*AccountPermissionUpdateContract) ProtoMessage

func (*AccountPermissionUpdateContract) ProtoMessage()

func (*AccountPermissionUpdateContract) Reset

func (*AccountPermissionUpdateContract) String

func (*AccountPermissionUpdateContract) XXX_DiscardUnknown

func (m *AccountPermissionUpdateContract) XXX_DiscardUnknown()

func (*AccountPermissionUpdateContract) XXX_Marshal

func (m *AccountPermissionUpdateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountPermissionUpdateContract) XXX_Merge

func (m *AccountPermissionUpdateContract) XXX_Merge(src proto.Message)

func (*AccountPermissionUpdateContract) XXX_Size

func (m *AccountPermissionUpdateContract) XXX_Size() int

func (*AccountPermissionUpdateContract) XXX_Unmarshal

func (m *AccountPermissionUpdateContract) XXX_Unmarshal(b []byte) error

type AccountType

type AccountType int32
const (
	AccountType_Normal     AccountType = 0
	AccountType_AssetIssue AccountType = 1
	AccountType_Contract   AccountType = 2
)

func (AccountType) Descriptor

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

This method has been deprecated.
func (AccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type

type AccountUpdateContract

type AccountUpdateContract struct {
	AccountName          []byte   `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	OwnerAddress         []byte   `protobuf:"bytes,2,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Update account name. Account name is not unique now.

func (*AccountUpdateContract) Descriptor

func (*AccountUpdateContract) Descriptor() ([]byte, []int)

func (*AccountUpdateContract) GetAccountName

func (m *AccountUpdateContract) GetAccountName() []byte

func (*AccountUpdateContract) GetOwnerAddress

func (m *AccountUpdateContract) GetOwnerAddress() []byte

func (*AccountUpdateContract) ProtoMessage

func (*AccountUpdateContract) ProtoMessage()

func (*AccountUpdateContract) Reset

func (m *AccountUpdateContract) Reset()

func (*AccountUpdateContract) String

func (m *AccountUpdateContract) String() string

func (*AccountUpdateContract) XXX_DiscardUnknown

func (m *AccountUpdateContract) XXX_DiscardUnknown()

func (*AccountUpdateContract) XXX_Marshal

func (m *AccountUpdateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountUpdateContract) XXX_Merge

func (m *AccountUpdateContract) XXX_Merge(src proto.Message)

func (*AccountUpdateContract) XXX_Size

func (m *AccountUpdateContract) XXX_Size() int

func (*AccountUpdateContract) XXX_Unmarshal

func (m *AccountUpdateContract) XXX_Unmarshal(b []byte) error

type Account_AccountResource

type Account_AccountResource struct {

	// energy resource, get from frozen
	EnergyUsage int64 `protobuf:"varint,1,opt,name=energy_usage,json=energyUsage,proto3" json:"energy_usage,omitempty"`
	// the frozen balance for energy
	FrozenBalanceForEnergy     *Account_Frozen `` /* 131-byte string literal not displayed */
	LatestConsumeTimeForEnergy int64           `` /* 146-byte string literal not displayed */
	//Frozen balance provided by other accounts to this account
	AcquiredDelegatedFrozenBalanceForEnergy int64 `` /* 187-byte string literal not displayed */
	//Frozen balances provided to other accounts
	DelegatedFrozenBalanceForEnergy int64 `` /* 161-byte string literal not displayed */
	// storage resource, get from market
	StorageLimit              int64 `protobuf:"varint,6,opt,name=storage_limit,json=storageLimit,proto3" json:"storage_limit,omitempty"`
	StorageUsage              int64 `protobuf:"varint,7,opt,name=storage_usage,json=storageUsage,proto3" json:"storage_usage,omitempty"`
	LatestExchangeStorageTime int64 `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Account_AccountResource) Descriptor deprecated

This method has been deprecated.
func (*Account_AccountResource) Descriptor() ([]byte, []int)

Deprecated: Use Account_AccountResource.ProtoReflect.Descriptor instead.

func (*Account_AccountResource) GetAcquiredDelegatedFrozenBalanceForEnergy

func (x *Account_AccountResource) GetAcquiredDelegatedFrozenBalanceForEnergy() int64

func (*Account_AccountResource) GetDelegatedFrozenBalanceForEnergy

func (x *Account_AccountResource) GetDelegatedFrozenBalanceForEnergy() int64

func (*Account_AccountResource) GetEnergyUsage

func (x *Account_AccountResource) GetEnergyUsage() int64

func (*Account_AccountResource) GetFrozenBalanceForEnergy

func (x *Account_AccountResource) GetFrozenBalanceForEnergy() *Account_Frozen

func (*Account_AccountResource) GetLatestConsumeTimeForEnergy

func (x *Account_AccountResource) GetLatestConsumeTimeForEnergy() int64

func (*Account_AccountResource) GetLatestExchangeStorageTime

func (x *Account_AccountResource) GetLatestExchangeStorageTime() int64

func (*Account_AccountResource) GetStorageLimit

func (x *Account_AccountResource) GetStorageLimit() int64

func (*Account_AccountResource) GetStorageUsage

func (x *Account_AccountResource) GetStorageUsage() int64

func (*Account_AccountResource) ProtoMessage

func (*Account_AccountResource) ProtoMessage()

func (*Account_AccountResource) ProtoReflect

func (x *Account_AccountResource) ProtoReflect() protoreflect.Message

func (*Account_AccountResource) Reset

func (x *Account_AccountResource) Reset()

func (*Account_AccountResource) String

func (x *Account_AccountResource) String() string

type Account_Frozen

type Account_Frozen struct {
	FrozenBalance int64 `protobuf:"varint,1,opt,name=frozen_balance,json=frozenBalance,proto3" json:"frozen_balance,omitempty"` // the frozen trx balance
	ExpireTime    int64 `protobuf:"varint,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`          // the expire time
	// contains filtered or unexported fields
}

frozen balance

func (*Account_Frozen) Descriptor deprecated

This method has been deprecated.
func (*Account_Frozen) Descriptor() ([]byte, []int)

Deprecated: Use Account_Frozen.ProtoReflect.Descriptor instead.

func (*Account_Frozen) GetExpireTime

func (x *Account_Frozen) GetExpireTime() int64

func (*Account_Frozen) GetFrozenBalance

func (x *Account_Frozen) GetFrozenBalance() int64

func (*Account_Frozen) ProtoMessage

func (*Account_Frozen) ProtoMessage()

func (*Account_Frozen) ProtoReflect

func (x *Account_Frozen) ProtoReflect() protoreflect.Message

func (*Account_Frozen) Reset

func (x *Account_Frozen) Reset()

func (*Account_Frozen) String

func (x *Account_Frozen) String() string

type AssetIssueContract

type AssetIssueContract struct {
	Id                      string                             `protobuf:"bytes,41,opt,name=id,proto3" json:"id,omitempty"`
	OwnerAddress            []byte                             `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	Name                    []byte                             `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Abbr                    []byte                             `protobuf:"bytes,3,opt,name=abbr,proto3" json:"abbr,omitempty"`
	TotalSupply             int64                              `protobuf:"varint,4,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	FrozenSupply            []*AssetIssueContract_FrozenSupply `protobuf:"bytes,5,rep,name=frozen_supply,json=frozenSupply,proto3" json:"frozen_supply,omitempty"`
	TrxNum                  int32                              `protobuf:"varint,6,opt,name=trx_num,json=trxNum,proto3" json:"trx_num,omitempty"`
	Precision               int32                              `protobuf:"varint,7,opt,name=precision,proto3" json:"precision,omitempty"`
	Num                     int32                              `protobuf:"varint,8,opt,name=num,proto3" json:"num,omitempty"`
	StartTime               int64                              `protobuf:"varint,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime                 int64                              `protobuf:"varint,10,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Order                   int64                              `protobuf:"varint,11,opt,name=order,proto3" json:"order,omitempty"`
	VoteScore               int32                              `protobuf:"varint,16,opt,name=vote_score,json=voteScore,proto3" json:"vote_score,omitempty"`
	Description             []byte                             `protobuf:"bytes,20,opt,name=description,proto3" json:"description,omitempty"`
	Url                     []byte                             `protobuf:"bytes,21,opt,name=url,proto3" json:"url,omitempty"`
	FreeAssetNetLimit       int64                              `protobuf:"varint,22,opt,name=free_asset_net_limit,json=freeAssetNetLimit,proto3" json:"free_asset_net_limit,omitempty"`
	PublicFreeAssetNetLimit int64                              `` /* 138-byte string literal not displayed */
	PublicFreeAssetNetUsage int64                              `` /* 138-byte string literal not displayed */
	PublicLatestFreeNetTime int64                              `` /* 138-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}                           `json:"-"`
	XXX_unrecognized        []byte                             `json:"-"`
	XXX_sizecache           int32                              `json:"-"`
}

func (*AssetIssueContract) Descriptor

func (*AssetIssueContract) Descriptor() ([]byte, []int)

func (*AssetIssueContract) GetAbbr

func (m *AssetIssueContract) GetAbbr() []byte

func (*AssetIssueContract) GetDescription

func (m *AssetIssueContract) GetDescription() []byte

func (*AssetIssueContract) GetEndTime

func (m *AssetIssueContract) GetEndTime() int64

func (*AssetIssueContract) GetFreeAssetNetLimit

func (m *AssetIssueContract) GetFreeAssetNetLimit() int64

func (*AssetIssueContract) GetFrozenSupply

func (m *AssetIssueContract) GetFrozenSupply() []*AssetIssueContract_FrozenSupply

func (*AssetIssueContract) GetId

func (m *AssetIssueContract) GetId() string

func (*AssetIssueContract) GetName

func (m *AssetIssueContract) GetName() []byte

func (*AssetIssueContract) GetNum

func (m *AssetIssueContract) GetNum() int32

func (*AssetIssueContract) GetOrder

func (m *AssetIssueContract) GetOrder() int64

func (*AssetIssueContract) GetOwnerAddress

func (m *AssetIssueContract) GetOwnerAddress() []byte

func (*AssetIssueContract) GetPrecision

func (m *AssetIssueContract) GetPrecision() int32

func (*AssetIssueContract) GetPublicFreeAssetNetLimit

func (m *AssetIssueContract) GetPublicFreeAssetNetLimit() int64

func (*AssetIssueContract) GetPublicFreeAssetNetUsage

func (m *AssetIssueContract) GetPublicFreeAssetNetUsage() int64

func (*AssetIssueContract) GetPublicLatestFreeNetTime

func (m *AssetIssueContract) GetPublicLatestFreeNetTime() int64

func (*AssetIssueContract) GetStartTime

func (m *AssetIssueContract) GetStartTime() int64

func (*AssetIssueContract) GetTotalSupply

func (m *AssetIssueContract) GetTotalSupply() int64

func (*AssetIssueContract) GetTrxNum

func (m *AssetIssueContract) GetTrxNum() int32

func (*AssetIssueContract) GetUrl

func (m *AssetIssueContract) GetUrl() []byte

func (*AssetIssueContract) GetVoteScore

func (m *AssetIssueContract) GetVoteScore() int32

func (*AssetIssueContract) ProtoMessage

func (*AssetIssueContract) ProtoMessage()

func (*AssetIssueContract) Reset

func (m *AssetIssueContract) Reset()

func (*AssetIssueContract) String

func (m *AssetIssueContract) String() string

func (*AssetIssueContract) XXX_DiscardUnknown

func (m *AssetIssueContract) XXX_DiscardUnknown()

func (*AssetIssueContract) XXX_Marshal

func (m *AssetIssueContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetIssueContract) XXX_Merge

func (m *AssetIssueContract) XXX_Merge(src proto.Message)

func (*AssetIssueContract) XXX_Size

func (m *AssetIssueContract) XXX_Size() int

func (*AssetIssueContract) XXX_Unmarshal

func (m *AssetIssueContract) XXX_Unmarshal(b []byte) error

type AssetIssueContract_FrozenSupply

type AssetIssueContract_FrozenSupply struct {
	FrozenAmount         int64    `protobuf:"varint,1,opt,name=frozen_amount,json=frozenAmount,proto3" json:"frozen_amount,omitempty"`
	FrozenDays           int64    `protobuf:"varint,2,opt,name=frozen_days,json=frozenDays,proto3" json:"frozen_days,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AssetIssueContract_FrozenSupply) Descriptor

func (*AssetIssueContract_FrozenSupply) Descriptor() ([]byte, []int)

func (*AssetIssueContract_FrozenSupply) GetFrozenAmount

func (m *AssetIssueContract_FrozenSupply) GetFrozenAmount() int64

func (*AssetIssueContract_FrozenSupply) GetFrozenDays

func (m *AssetIssueContract_FrozenSupply) GetFrozenDays() int64

func (*AssetIssueContract_FrozenSupply) ProtoMessage

func (*AssetIssueContract_FrozenSupply) ProtoMessage()

func (*AssetIssueContract_FrozenSupply) Reset

func (*AssetIssueContract_FrozenSupply) String

func (*AssetIssueContract_FrozenSupply) XXX_DiscardUnknown

func (m *AssetIssueContract_FrozenSupply) XXX_DiscardUnknown()

func (*AssetIssueContract_FrozenSupply) XXX_Marshal

func (m *AssetIssueContract_FrozenSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AssetIssueContract_FrozenSupply) XXX_Merge

func (m *AssetIssueContract_FrozenSupply) XXX_Merge(src proto.Message)

func (*AssetIssueContract_FrozenSupply) XXX_Size

func (m *AssetIssueContract_FrozenSupply) XXX_Size() int

func (*AssetIssueContract_FrozenSupply) XXX_Unmarshal

func (m *AssetIssueContract_FrozenSupply) XXX_Unmarshal(b []byte) error

type AuthenticationPath

type AuthenticationPath struct {
	Value                []bool   `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthenticationPath) Descriptor

func (*AuthenticationPath) Descriptor() ([]byte, []int)

func (*AuthenticationPath) GetValue

func (m *AuthenticationPath) GetValue() []bool

func (*AuthenticationPath) ProtoMessage

func (*AuthenticationPath) ProtoMessage()

func (*AuthenticationPath) Reset

func (m *AuthenticationPath) Reset()

func (*AuthenticationPath) String

func (m *AuthenticationPath) String() string

func (*AuthenticationPath) XXX_DiscardUnknown

func (m *AuthenticationPath) XXX_DiscardUnknown()

func (*AuthenticationPath) XXX_Marshal

func (m *AuthenticationPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthenticationPath) XXX_Merge

func (m *AuthenticationPath) XXX_Merge(src proto.Message)

func (*AuthenticationPath) XXX_Size

func (m *AuthenticationPath) XXX_Size() int

func (*AuthenticationPath) XXX_Unmarshal

func (m *AuthenticationPath) XXX_Unmarshal(b []byte) error

type Authority

type Authority struct {
	Account        *AccountId `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	PermissionName []byte     `protobuf:"bytes,2,opt,name=permission_name,json=permissionName,proto3" json:"permission_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Authority) Descriptor deprecated

This method has been deprecated.
func (*Authority) Descriptor() ([]byte, []int)

Deprecated: Use Authority.ProtoReflect.Descriptor instead.

func (*Authority) GetAccount

func (x *Authority) GetAccount() *AccountId

func (*Authority) GetPermissionName

func (x *Authority) GetPermissionName() []byte

func (*Authority) ProtoMessage

func (*Authority) ProtoMessage()

func (*Authority) ProtoReflect

func (x *Authority) ProtoReflect() protoreflect.Message

func (*Authority) Reset

func (x *Authority) Reset()

func (*Authority) String

func (x *Authority) String() string

type BackupMessage

type BackupMessage struct {
	Flag     bool  `protobuf:"varint,1,opt,name=flag,proto3" json:"flag,omitempty"`
	Priority int32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupMessage) Descriptor deprecated

This method has been deprecated.
func (*BackupMessage) Descriptor() ([]byte, []int)

Deprecated: Use BackupMessage.ProtoReflect.Descriptor instead.

func (*BackupMessage) GetFlag

func (x *BackupMessage) GetFlag() bool

func (*BackupMessage) GetPriority

func (x *BackupMessage) GetPriority() int32

func (*BackupMessage) ProtoMessage

func (*BackupMessage) ProtoMessage()

func (*BackupMessage) ProtoReflect

func (x *BackupMessage) ProtoReflect() protoreflect.Message

func (*BackupMessage) Reset

func (x *BackupMessage) Reset()

func (*BackupMessage) String

func (x *BackupMessage) String() string

type Block

type Block struct {
	Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"`
	BlockHeader  *BlockHeader   `protobuf:"bytes,2,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"`
	// contains filtered or unexported fields
}

block

func (*Block) Descriptor deprecated

This method has been deprecated.
func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBlockHeader

func (x *Block) GetBlockHeader() *BlockHeader

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockHeader

type BlockHeader struct {
	RawData          *BlockHeaderRaw `protobuf:"bytes,1,opt,name=raw_data,json=rawData,proto3" json:"raw_data,omitempty"`
	WitnessSignature []byte          `protobuf:"bytes,2,opt,name=witness_signature,json=witnessSignature,proto3" json:"witness_signature,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeader) Descriptor deprecated

This method has been deprecated.
func (*BlockHeader) Descriptor() ([]byte, []int)

Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.

func (*BlockHeader) GetRawData

func (x *BlockHeader) GetRawData() *BlockHeaderRaw

func (*BlockHeader) GetWitnessSignature

func (x *BlockHeader) GetWitnessSignature() []byte

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) ProtoReflect

func (x *BlockHeader) ProtoReflect() protoreflect.Message

func (*BlockHeader) Reset

func (x *BlockHeader) Reset()

func (*BlockHeader) String

func (x *BlockHeader) String() string

type BlockHeaderRaw

type BlockHeaderRaw struct {
	Timestamp  int64  `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	TxTrieRoot []byte `protobuf:"bytes,2,opt,name=txTrieRoot,proto3" json:"txTrieRoot,omitempty"`
	ParentHash []byte `protobuf:"bytes,3,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	//bytes nonce = 5;
	//bytes difficulty = 6;
	Number           int64  `protobuf:"varint,7,opt,name=number,proto3" json:"number,omitempty"`
	WitnessId        int64  `protobuf:"varint,8,opt,name=witness_id,json=witnessId,proto3" json:"witness_id,omitempty"`
	WitnessAddress   []byte `protobuf:"bytes,9,opt,name=witness_address,json=witnessAddress,proto3" json:"witness_address,omitempty"`
	Version          int32  `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"`
	AccountStateRoot []byte `protobuf:"bytes,11,opt,name=accountStateRoot,proto3" json:"accountStateRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeaderRaw) Descriptor deprecated

This method has been deprecated.
func (*BlockHeaderRaw) Descriptor() ([]byte, []int)

Deprecated: Use BlockHeaderRaw.ProtoReflect.Descriptor instead.

func (*BlockHeaderRaw) GetAccountStateRoot

func (x *BlockHeaderRaw) GetAccountStateRoot() []byte

func (*BlockHeaderRaw) GetNumber

func (x *BlockHeaderRaw) GetNumber() int64

func (*BlockHeaderRaw) GetParentHash

func (x *BlockHeaderRaw) GetParentHash() []byte

func (*BlockHeaderRaw) GetTimestamp

func (x *BlockHeaderRaw) GetTimestamp() int64

func (*BlockHeaderRaw) GetTxTrieRoot

func (x *BlockHeaderRaw) GetTxTrieRoot() []byte

func (*BlockHeaderRaw) GetVersion

func (x *BlockHeaderRaw) GetVersion() int32

func (*BlockHeaderRaw) GetWitnessAddress

func (x *BlockHeaderRaw) GetWitnessAddress() []byte

func (*BlockHeaderRaw) GetWitnessId

func (x *BlockHeaderRaw) GetWitnessId() int64

func (*BlockHeaderRaw) ProtoMessage

func (*BlockHeaderRaw) ProtoMessage()

func (*BlockHeaderRaw) ProtoReflect

func (x *BlockHeaderRaw) ProtoReflect() protoreflect.Message

func (*BlockHeaderRaw) Reset

func (x *BlockHeaderRaw) Reset()

func (*BlockHeaderRaw) String

func (x *BlockHeaderRaw) String() string

type BlockInventory

type BlockInventory struct {
	Ids  []*BlockInventory_BlockId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	Type BlockInventory_Type       `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.BlockInventory_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Inventory

func (*BlockInventory) Descriptor deprecated

This method has been deprecated.
func (*BlockInventory) Descriptor() ([]byte, []int)

Deprecated: Use BlockInventory.ProtoReflect.Descriptor instead.

func (*BlockInventory) GetIds

func (x *BlockInventory) GetIds() []*BlockInventory_BlockId

func (*BlockInventory) GetType

func (x *BlockInventory) GetType() BlockInventory_Type

func (*BlockInventory) ProtoMessage

func (*BlockInventory) ProtoMessage()

func (*BlockInventory) ProtoReflect

func (x *BlockInventory) ProtoReflect() protoreflect.Message

func (*BlockInventory) Reset

func (x *BlockInventory) Reset()

func (*BlockInventory) String

func (x *BlockInventory) String() string

type BlockInventory_BlockId

type BlockInventory_BlockId struct {
	Hash   []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Number int64  `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockInventory_BlockId) Descriptor deprecated

This method has been deprecated.
func (*BlockInventory_BlockId) Descriptor() ([]byte, []int)

Deprecated: Use BlockInventory_BlockId.ProtoReflect.Descriptor instead.

func (*BlockInventory_BlockId) GetHash

func (x *BlockInventory_BlockId) GetHash() []byte

func (*BlockInventory_BlockId) GetNumber

func (x *BlockInventory_BlockId) GetNumber() int64

func (*BlockInventory_BlockId) ProtoMessage

func (*BlockInventory_BlockId) ProtoMessage()

func (*BlockInventory_BlockId) ProtoReflect

func (x *BlockInventory_BlockId) ProtoReflect() protoreflect.Message

func (*BlockInventory_BlockId) Reset

func (x *BlockInventory_BlockId) Reset()

func (*BlockInventory_BlockId) String

func (x *BlockInventory_BlockId) String() string

type BlockInventory_Type

type BlockInventory_Type int32
const (
	BlockInventory_SYNC    BlockInventory_Type = 0
	BlockInventory_ADVTISE BlockInventory_Type = 1
	BlockInventory_FETCH   BlockInventory_Type = 2
)

func (BlockInventory_Type) Descriptor

func (BlockInventory_Type) Enum

func (BlockInventory_Type) EnumDescriptor deprecated

This method has been deprecated.
func (BlockInventory_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use BlockInventory_Type.Descriptor instead.

func (BlockInventory_Type) Number

func (BlockInventory_Type) String

func (x BlockInventory_Type) String() string

func (BlockInventory_Type) Type

type BuyStorageBytesContract

type BuyStorageBytesContract struct {
	OwnerAddress         []byte   `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	Bytes                int64    `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BuyStorageBytesContract) Descriptor

func (*BuyStorageBytesContract) Descriptor() ([]byte, []int)

func (*BuyStorageBytesContract) GetBytes

func (m *BuyStorageBytesContract) GetBytes() int64

func (*BuyStorageBytesContract) GetOwnerAddress

func (m *BuyStorageBytesContract) GetOwnerAddress() []byte

func (*BuyStorageBytesContract) ProtoMessage

func (*BuyStorageBytesContract) ProtoMessage()

func (*BuyStorageBytesContract) Reset

func (m *BuyStorageBytesContract) Reset()

func (*BuyStorageBytesContract) String

func (m *BuyStorageBytesContract) String() string

func (*BuyStorageBytesContract) XXX_DiscardUnknown

func (m *BuyStorageBytesContract) XXX_DiscardUnknown()

func (*BuyStorageBytesContract) XXX_Marshal

func (m *BuyStorageBytesContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuyStorageBytesContract) XXX_Merge

func (m *BuyStorageBytesContract) XXX_Merge(src proto.Message)

func (*BuyStorageBytesContract) XXX_Size

func (m *BuyStorageBytesContract) XXX_Size() int

func (*BuyStorageBytesContract) XXX_Unmarshal

func (m *BuyStorageBytesContract) XXX_Unmarshal(b []byte) error

type BuyStorageContract

type BuyStorageContract struct {
	OwnerAddress         []byte   `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	Quant                int64    `protobuf:"varint,2,opt,name=quant,proto3" json:"quant,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BuyStorageContract) Descriptor

func (*BuyStorageContract) Descriptor() ([]byte, []int)

func (*BuyStorageContract) GetOwnerAddress

func (m *BuyStorageContract) GetOwnerAddress() []byte

func (*BuyStorageContract) GetQuant

func (m *BuyStorageContract) GetQuant() int64

func (*BuyStorageContract) ProtoMessage

func (*BuyStorageContract) ProtoMessage()

func (*BuyStorageContract) Reset

func (m *BuyStorageContract) Reset()

func (*BuyStorageContract) String

func (m *BuyStorageContract) String() string

func (*BuyStorageContract) XXX_DiscardUnknown

func (m *BuyStorageContract) XXX_DiscardUnknown()

func (*BuyStorageContract) XXX_Marshal

func (m *BuyStorageContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuyStorageContract) XXX_Merge

func (m *BuyStorageContract) XXX_Merge(src proto.Message)

func (*BuyStorageContract) XXX_Size

func (m *BuyStorageContract) XXX_Size() int

func (*BuyStorageContract) XXX_Unmarshal

func (m *BuyStorageContract) XXX_Unmarshal(b []byte) error

type ChainInventory

type ChainInventory struct {
	Ids       []*ChainInventory_BlockId `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	RemainNum int64                     `protobuf:"varint,2,opt,name=remain_num,json=remainNum,proto3" json:"remain_num,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainInventory) Descriptor deprecated

This method has been deprecated.
func (*ChainInventory) Descriptor() ([]byte, []int)

Deprecated: Use ChainInventory.ProtoReflect.Descriptor instead.

func (*ChainInventory) GetIds

func (x *ChainInventory) GetIds() []*ChainInventory_BlockId

func (*ChainInventory) GetRemainNum

func (x *ChainInventory) GetRemainNum() int64

func (*ChainInventory) ProtoMessage

func (*ChainInventory) ProtoMessage()

func (*ChainInventory) ProtoReflect

func (x *ChainInventory) ProtoReflect() protoreflect.Message

func (*ChainInventory) Reset

func (x *ChainInventory) Reset()

func (*ChainInventory) String

func (x *ChainInventory) String() string

type ChainInventory_BlockId

type ChainInventory_BlockId struct {
	Hash   []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Number int64  `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainInventory_BlockId) Descriptor deprecated

This method has been deprecated.
func (*ChainInventory_BlockId) Descriptor() ([]byte, []int)

Deprecated: Use ChainInventory_BlockId.ProtoReflect.Descriptor instead.

func (*ChainInventory_BlockId) GetHash

func (x *ChainInventory_BlockId) GetHash() []byte

func (*ChainInventory_BlockId) GetNumber

func (x *ChainInventory_BlockId) GetNumber() int64

func (*ChainInventory_BlockId) ProtoMessage

func (*ChainInventory_BlockId) ProtoMessage()

func (*ChainInventory_BlockId) ProtoReflect

func (x *ChainInventory_BlockId) ProtoReflect() protoreflect.Message

func (*ChainInventory_BlockId) Reset

func (x *ChainInventory_BlockId) Reset()

func (*ChainInventory_BlockId) String

func (x *ChainInventory_BlockId) String() string

type ChainParameters

type ChainParameters struct {
	ChainParameter []*ChainParameters_ChainParameter `protobuf:"bytes,1,rep,name=chainParameter,proto3" json:"chainParameter,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainParameters) Descriptor deprecated

This method has been deprecated.
func (*ChainParameters) Descriptor() ([]byte, []int)

Deprecated: Use ChainParameters.ProtoReflect.Descriptor instead.

func (*ChainParameters) GetChainParameter

func (x *ChainParameters) GetChainParameter() []*ChainParameters_ChainParameter

func (*ChainParameters) ProtoMessage

func (*ChainParameters) ProtoMessage()

func (*ChainParameters) ProtoReflect

func (x *ChainParameters) ProtoReflect() protoreflect.Message

func (*ChainParameters) Reset

func (x *ChainParameters) Reset()

func (*ChainParameters) String

func (x *ChainParameters) String() string

type ChainParameters_ChainParameter

type ChainParameters_ChainParameter struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value int64  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ChainParameters_ChainParameter) Descriptor deprecated

This method has been deprecated.
func (*ChainParameters_ChainParameter) Descriptor() ([]byte, []int)

Deprecated: Use ChainParameters_ChainParameter.ProtoReflect.Descriptor instead.

func (*ChainParameters_ChainParameter) GetKey

func (*ChainParameters_ChainParameter) GetValue

func (x *ChainParameters_ChainParameter) GetValue() int64

func (*ChainParameters_ChainParameter) ProtoMessage

func (*ChainParameters_ChainParameter) ProtoMessage()

func (*ChainParameters_ChainParameter) ProtoReflect

func (*ChainParameters_ChainParameter) Reset

func (x *ChainParameters_ChainParameter) Reset()

func (*ChainParameters_ChainParameter) String

type ClearABIContract

type ClearABIContract struct {
	OwnerAddress         []byte   `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	ContractAddress      []byte   `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClearABIContract) Descriptor

func (*ClearABIContract) Descriptor() ([]byte, []int)

func (*ClearABIContract) GetContractAddress

func (m *ClearABIContract) GetContractAddress() []byte

func (*ClearABIContract) GetOwnerAddress

func (m *ClearABIContract) GetOwnerAddress() []byte

func (*ClearABIContract) ProtoMessage

func (*ClearABIContract) ProtoMessage()

func (*ClearABIContract) Reset

func (m *ClearABIContract) Reset()

func (*ClearABIContract) String

func (m *ClearABIContract) String() string

func (*ClearABIContract) XXX_DiscardUnknown

func (m *ClearABIContract) XXX_DiscardUnknown()

func (*ClearABIContract) XXX_Marshal

func (m *ClearABIContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClearABIContract) XXX_Merge

func (m *ClearABIContract) XXX_Merge(src proto.Message)

func (*ClearABIContract) XXX_Size

func (m *ClearABIContract) XXX_Size() int

func (*ClearABIContract) XXX_Unmarshal

func (m *ClearABIContract) XXX_Unmarshal(b []byte) error

type CreateSmartContract

type CreateSmartContract struct {
	OwnerAddress         []byte         `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	NewContract          *SmartContract `protobuf:"bytes,2,opt,name=new_contract,json=newContract,proto3" json:"new_contract,omitempty"`
	CallTokenValue       int64          `protobuf:"varint,3,opt,name=call_token_value,json=callTokenValue,proto3" json:"call_token_value,omitempty"`
	TokenId              int64          `protobuf:"varint,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*CreateSmartContract) Descriptor

func (*CreateSmartContract) Descriptor() ([]byte, []int)

func (*CreateSmartContract) GetCallTokenValue

func (m *CreateSmartContract) GetCallTokenValue() int64

func (*CreateSmartContract) GetNewContract

func (m *CreateSmartContract) GetNewContract() *SmartContract

func (*CreateSmartContract) GetOwnerAddress

func (m *CreateSmartContract) GetOwnerAddress() []byte

func (*CreateSmartContract) GetTokenId

func (m *CreateSmartContract) GetTokenId() int64

func (*CreateSmartContract) ProtoMessage

func (*CreateSmartContract) ProtoMessage()

func (*CreateSmartContract) Reset

func (m *CreateSmartContract) Reset()

func (*CreateSmartContract) String

func (m *CreateSmartContract) String() string

func (*CreateSmartContract) XXX_DiscardUnknown

func (m *CreateSmartContract) XXX_DiscardUnknown()

func (*CreateSmartContract) XXX_Marshal

func (m *CreateSmartContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateSmartContract) XXX_Merge

func (m *CreateSmartContract) XXX_Merge(src proto.Message)

func (*CreateSmartContract) XXX_Size

func (m *CreateSmartContract) XXX_Size() int

func (*CreateSmartContract) XXX_Unmarshal

func (m *CreateSmartContract) XXX_Unmarshal(b []byte) error

type DelegatedResource

type DelegatedResource struct {
	From                      []byte `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To                        []byte `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	FrozenBalanceForBandwidth int64  `` /* 141-byte string literal not displayed */
	FrozenBalanceForEnergy    int64  `` /* 132-byte string literal not displayed */
	ExpireTimeForBandwidth    int64  `` /* 132-byte string literal not displayed */
	ExpireTimeForEnergy       int64  `protobuf:"varint,6,opt,name=expire_time_for_energy,json=expireTimeForEnergy,proto3" json:"expire_time_for_energy,omitempty"`
	// contains filtered or unexported fields
}

func (*DelegatedResource) Descriptor deprecated

This method has been deprecated.
func (*DelegatedResource) Descriptor() ([]byte, []int)

Deprecated: Use DelegatedResource.ProtoReflect.Descriptor instead.

func (*DelegatedResource) GetExpireTimeForBandwidth

func (x *DelegatedResource) GetExpireTimeForBandwidth() int64

func (*DelegatedResource) GetExpireTimeForEnergy

func (x *DelegatedResource) GetExpireTimeForEnergy() int64

func (*DelegatedResource) GetFrom

func (x *DelegatedResource) GetFrom() []byte

func (*DelegatedResource) GetFrozenBalanceForBandwidth

func (x *DelegatedResource) GetFrozenBalanceForBandwidth() int64

func (*DelegatedResource) GetFrozenBalanceForEnergy

func (x *DelegatedResource) GetFrozenBalanceForEnergy() int64

func (*DelegatedResource) GetTo

func (x *DelegatedResource) GetTo() []byte

func (*DelegatedResource) ProtoMessage

func (*DelegatedResource) ProtoMessage()

func (*DelegatedResource) ProtoReflect

func (x *DelegatedResource) ProtoReflect() protoreflect.Message

func (*DelegatedResource) Reset

func (x *DelegatedResource) Reset()

func (*DelegatedResource) String

func (x *DelegatedResource) String() string

type DelegatedResourceAccountIndex

type DelegatedResourceAccountIndex struct {
	Account      []byte   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	FromAccounts [][]byte `protobuf:"bytes,2,rep,name=fromAccounts,proto3" json:"fromAccounts,omitempty"`
	ToAccounts   [][]byte `protobuf:"bytes,3,rep,name=toAccounts,proto3" json:"toAccounts,omitempty"`
	// contains filtered or unexported fields
}

func (*DelegatedResourceAccountIndex) Descriptor deprecated

This method has been deprecated.
func (*DelegatedResourceAccountIndex) Descriptor() ([]byte, []int)

Deprecated: Use DelegatedResourceAccountIndex.ProtoReflect.Descriptor instead.

func (*DelegatedResourceAccountIndex) GetAccount

func (x *DelegatedResourceAccountIndex) GetAccount() []byte

func (*DelegatedResourceAccountIndex) GetFromAccounts

func (x *DelegatedResourceAccountIndex) GetFromAccounts() [][]byte

func (*DelegatedResourceAccountIndex) GetToAccounts

func (x *DelegatedResourceAccountIndex) GetToAccounts() [][]byte

func (*DelegatedResourceAccountIndex) ProtoMessage

func (*DelegatedResourceAccountIndex) ProtoMessage()

func (*DelegatedResourceAccountIndex) ProtoReflect

func (*DelegatedResourceAccountIndex) Reset

func (x *DelegatedResourceAccountIndex) Reset()

func (*DelegatedResourceAccountIndex) String

type DisconnectMessage

type DisconnectMessage struct {
	Reason ReasonCode `protobuf:"varint,1,opt,name=reason,proto3,enum=protocol.ReasonCode" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*DisconnectMessage) Descriptor deprecated

This method has been deprecated.
func (*DisconnectMessage) Descriptor() ([]byte, []int)

Deprecated: Use DisconnectMessage.ProtoReflect.Descriptor instead.

func (*DisconnectMessage) GetReason

func (x *DisconnectMessage) GetReason() ReasonCode

func (*DisconnectMessage) ProtoMessage

func (*DisconnectMessage) ProtoMessage()

func (*DisconnectMessage) ProtoReflect

func (x *DisconnectMessage) ProtoReflect() protoreflect.Message

func (*DisconnectMessage) Reset

func (x *DisconnectMessage) Reset()

func (*DisconnectMessage) String

func (x *DisconnectMessage) String() string

type DynamicProperties

type DynamicProperties struct {
	LastSolidityBlockNum int64 `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

DynamicProperties

func (*DynamicProperties) Descriptor deprecated

This method has been deprecated.
func (*DynamicProperties) Descriptor() ([]byte, []int)

Deprecated: Use DynamicProperties.ProtoReflect.Descriptor instead.

func (*DynamicProperties) GetLastSolidityBlockNum

func (x *DynamicProperties) GetLastSolidityBlockNum() int64

func (*DynamicProperties) ProtoMessage

func (*DynamicProperties) ProtoMessage()

func (*DynamicProperties) ProtoReflect

func (x *DynamicProperties) ProtoReflect() protoreflect.Message

func (*DynamicProperties) Reset

func (x *DynamicProperties) Reset()

func (*DynamicProperties) String

func (x *DynamicProperties) String() string

type Endpoint

type Endpoint struct {
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port    int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	NodeId  []byte `protobuf:"bytes,3,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

This method has been deprecated.
func (*Endpoint) Descriptor() ([]byte, []int)

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetAddress

func (x *Endpoint) GetAddress() []byte

func (*Endpoint) GetNodeId

func (x *Endpoint) GetNodeId() []byte

func (*Endpoint) GetPort

func (x *Endpoint) GetPort() int32

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

func (x *Endpoint) ProtoReflect() protoreflect.Message

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

type Exchange

type Exchange struct {
	ExchangeId         int64  `protobuf:"varint,1,opt,name=exchange_id,json=exchangeId,proto3" json:"exchange_id,omitempty"`
	CreatorAddress     []byte `protobuf:"bytes,2,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address,omitempty"`
	CreateTime         int64  `protobuf:"varint,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	FirstTokenId       []byte `protobuf:"bytes,6,opt,name=first_token_id,json=firstTokenId,proto3" json:"first_token_id,omitempty"`
	FirstTokenBalance  int64  `protobuf:"varint,7,opt,name=first_token_balance,json=firstTokenBalance,proto3" json:"first_token_balance,omitempty"`
	SecondTokenId      []byte `protobuf:"bytes,8,opt,name=second_token_id,json=secondTokenId,proto3" json:"second_token_id,omitempty"`
	SecondTokenBalance int64  `protobuf:"varint,9,opt,name=second_token_balance,json=secondTokenBalance,proto3" json:"second_token_balance,omitempty"`
	// contains filtered or unexported fields
}

Exchange

func (*Exchange) Descriptor deprecated

This method has been deprecated.
func (*Exchange) Descriptor() ([]byte, []int)

Deprecated: Use Exchange.ProtoReflect.Descriptor instead.

func (*Exchange) GetCreateTime

func (x *Exchange) GetCreateTime() int64

func (*Exchange) GetCreatorAddress

func (x *Exchange) GetCreatorAddress() []byte

func (*Exchange) GetExchangeId

func (x *Exchange) GetExchangeId() int64

func (*Exchange) GetFirstTokenBalance

func (x *Exchange) GetFirstTokenBalance() int64

func (*Exchange) GetFirstTokenId

func (x *Exchange) GetFirstTokenId() []byte

func (*Exchange) GetSecondTokenBalance

func (x *Exchange) GetSecondTokenBalance() int64

func (*Exchange) GetSecondTokenId

func (x *Exchange) GetSecondTokenId() []byte

func (*Exchange) ProtoMessage

func (*Exchange) ProtoMessage()

func (*Exchange) ProtoReflect

func (x *Exchange) ProtoReflect() protoreflect.Message

func (*Exchange) Reset

func (x *Exchange) Reset()

func (*Exchange) String

func (x *Exchange) String() string

type ExchangeCreateContract

type ExchangeCreateContract struct {
	OwnerAddress         []byte   `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	FirstTokenId         []byte   `protobuf:"bytes,2,opt,name=first_token_id,json=firstTokenId,proto3" json:"first_token_id,omitempty"`
	FirstTokenBalance    int64    `protobuf:"varint,3,opt,name=first_token_balance,json=firstTokenBalance,proto3" json:"first_token_balance,omitempty"`
	SecondTokenId        []byte   `protobuf:"bytes,4,opt,name=second_token_id,json=secondTokenId,proto3" json:"second_token_id,omitempty"`
	SecondTokenBalance   int64    `protobuf:"varint,5,opt,name=second_token_balance,json=secondTokenBalance,proto3" json:"second_token_balance,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ExchangeCreateContract) Descriptor

func (*ExchangeCreateContract) Descriptor() ([]byte, []int)

func (*ExchangeCreateContract) GetFirstTokenBalance

func (m *ExchangeCreateContract) GetFirstTokenBalance() int64

func (*ExchangeCreateContract) GetFirstTokenId

func (m *ExchangeCreateContract) GetFirstTokenId() []byte

func (*ExchangeCreateContract) GetOwnerAddress

func (m *ExchangeCreateContract) GetOwnerAddress() []byte

func (*ExchangeCreateContract) GetSecondTokenBalance

func (m *ExchangeCreateContract) GetSecondTokenBalance() int64

func (*ExchangeCreateContract) GetSecondTokenId

func (m *ExchangeCreateContract) GetSecondTokenId() []byte

func (*ExchangeCreateContract) ProtoMessage

func (*ExchangeCreateContract) ProtoMessage()

func (*ExchangeCreateContract) Reset

func (m *ExchangeCreateContract) Reset()

func (*ExchangeCreateContract) String

func (m *ExchangeCreateContract) String() string

func (*ExchangeCreateContract) XXX_DiscardUnknown

func (m *ExchangeCreateContract) XXX_DiscardUnknown()