node

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

View Source
const (
	LazyStorageDiffKindBigMap  = "big_map"
	LazyStorageDiffKindSapling = "sapling_state"
)
View Source
const (
	KindActivation             = "activate_account"
	KindBallot                 = "ballot"
	KindDelegation             = "delegation"
	KindDoubleBaking           = "double_baking_evidence"
	KindDoubleEndorsing        = "double_endorsement_evidence"
	KindEndorsement            = "endorsement"
	KindEndorsementWithSlot    = "endorsement_with_slot"
	KindOrigination            = "origination"
	KindProposal               = "proposals"
	KindReveal                 = "reveal"
	KindNonceRevelation        = "seed_nonce_revelation"
	KindTransaction            = "transaction"
	KindRegisterGlobalConstant = "register_global_constant"
)
View Source
const (
	BigMapActionUpdate = "update"
	BigMapActionRemove = "remove"
	BigMapActionAlloc  = "alloc"
	BigMapActionCopy   = "copy"
)
View Source
const (
	BalanceUpdatesKindContract = "contract"
	BalanceUpdatesKindFreezer  = "freezer"
)
View Source
const (
	BalanceUpdatesCategoryReward   = "rewards"
	BalanceUpdatesCategoryFees     = "fees"
	BalanceUpdatesCategoryDeposits = "deposits"
)
View Source
const (
	BalanceUpdatesOriginBlock     = "block"
	BalanceUpdatesOriginMigration = "migration"
	BalanceUpdatesOriginSubsidy   = "subsidy"
)
View Source
const (
	HeadBlock = "head"
)

Variables

View Source
var (
	ErrUnknownKind = errors.New("Unknown operation kind")
)

Errors

Functions

func IsManager added in v0.1.12

func IsManager(kind string) bool

IsManager -

Types

type AccountActivation added in v0.1.33

type AccountActivation struct {
	Pkh      string                      `json:"pkh"`
	Secret   string                      `json:"secret"`
	Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"`
}

AccountActivation -

type Applied

type Applied struct {
	Hash      string             `json:"hash"`
	Branch    string             `json:"branch"`
	Signature string             `json:"signature"`
	Contents  []Content          `json:"contents"`
	Raw       stdJSON.RawMessage `json:"raw"`
}

Applied -

func (*Applied) UnmarshalJSON added in v0.1.26

func (a *Applied) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type BalanceUpdate added in v0.1.33

type BalanceUpdate struct {
	Kind     string `json:"kind"`
	Contract string `json:"contract,omitempty"`
	Change   string `json:"change"`
	Category string `json:"category,omitempty"`
	Origin   string `json:"origin,omitempty"`
	Delegate string `json:"delegate,omitempty"`
	Cycle    uint64 `json:"cycle,omitempty"`
	Level    uint64 `json:"level,omitempty"`
}

BalanceUpdate -

type Ballot added in v0.1.33

type Ballot struct {
	Source   string `json:"source"`
	Period   uint64 `json:"period"`
	Proposal string `json:"proposal"`
	Ballot   string `json:"ballot"`
}

Ballot -

type BigMapDiff added in v0.1.33

type BigMapDiff struct {
	Action            string              `json:"action,omitempty"`
	BigMap            string              `json:"big_map,omitempty"`
	KeyHash           string              `json:"key_hash,omitempty"`
	Key               *stdJSON.RawMessage `json:"key,omitempty"`
	Value             *stdJSON.RawMessage `json:"value,omitempty"`
	SourceBigMap      string              `json:"source_big_map,omitempty"`
	DestinationBigMap string              `json:"destination_big_map,omitempty"`
	KeyType           *stdJSON.RawMessage `json:"key_type,omitempty"`
	ValueType         *stdJSON.RawMessage `json:"value_type,omitempty"`
}

BigMapDiff is an element of BigMapDiffs

type CommitmentsAndCiphertexts added in v0.1.33

type CommitmentsAndCiphertexts struct {
	Commitments string
	Ciphertexts SaplingTransactionCiphertext
}

CommitmentsAndCiphertexts-

func (CommitmentsAndCiphertexts) MarshalJSON added in v0.1.33

func (cc CommitmentsAndCiphertexts) MarshalJSON() ([]byte, error)

MarshalJSON -

func (*CommitmentsAndCiphertexts) UnmarshalJSON added in v0.1.33

func (cc *CommitmentsAndCiphertexts) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type Constants

type Constants struct {
	ProofOfWorkNonceSize         int64            `json:"proof_of_work_nonce_size"`
	NonceLength                  int64            `json:"nonce_length"`
	MaxAnonOpsPerBlock           int64            `json:"max_anon_ops_per_block"`
	MaxOperationDataLength       int64            `json:"max_operation_data_length"`
	MaxProposalsPerDelegate      int64            `json:"max_proposals_per_delegate"`
	PreservedCycles              uint64           `json:"preserved_cycles"`
	BlocksPerCycle               uint64           `json:"blocks_per_cycle"`
	BlocksPerCommitment          int64            `json:"blocks_per_commitment"`
	BlocksPerRollSnapshot        int64            `json:"blocks_per_roll_snapshot"`
	BlocksPerVotingPeriod        int64            `json:"blocks_per_voting_period"`
	TimeBetweenBlocks            Int64StringSlice `json:"time_between_blocks"`
	EndorsersPerBlock            int64            `json:"endorsers_per_block"`
	HardGasLimitPerOperation     int64            `json:"hard_gas_limit_per_operation,string"`
	HardGasLimitPerBlock         int64            `json:"hard_gas_limit_per_block,string"`
	ProofOfWorkThreshold         int64            `json:"proof_of_work_threshold,string"`
	TokensPerRoll                int64            `json:"tokens_per_roll,string"`
	MichelsonMaximumTypeSize     int64            `json:"michelson_maximum_type_size"`
	SeedNonceRevelationTip       int64            `json:"seed_nonce_revelation_tip,string"`
	OriginationSize              int64            `json:"origination_size"`
	BlockSecurityDeposit         int64            `json:"block_security_deposit,string"`
	EndorsementSecurityDeposit   int64            `json:"endorsement_security_deposit,string"`
	BakingRewardPerEndorsement   Int64StringSlice `json:"baking_reward_per_endorsement"`
	EndorsementReward            Int64StringSlice `json:"endorsement_reward"`
	CostPerByte                  int64            `json:"cost_per_byte,string"`
	HardStorageLimitPerOperation int64            `json:"hard_storage_limit_per_operation,string"`
	TestChainDuration            int64            `json:"test_chain_duration,string"`
	QuorumMin                    int64            `json:"quorum_min"`
	QuorumMax                    int64            `json:"quorum_max"`
	MinProposalQuorum            int64            `json:"min_proposal_quorum"`
	InitialEndorsers             int64            `json:"initial_endorsers"`
	DelayPerMissingEndorsement   int64            `json:"delay_per_missing_endorsement,string"`
}

Constants -

type Content

type Content struct {
	Kind string             `json:"kind"`
	Body stdJSON.RawMessage `json:"-"`
}

Contents -

func (*Content) UnmarshalJSON

func (c *Content) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type Delegation added in v0.1.33

type Delegation struct {
	Source       string                    `json:"source"`
	Fee          string                    `json:"fee"`
	Counter      string                    `json:"counter"`
	GasLimit     string                    `json:"gas_limit"`
	StorageLimit string                    `json:"storage_limit"`
	Delegate     string                    `json:"delegate,omitempty"`
	Metadata     *ManagerOperationMetadata `json:"metadata,omitempty"`
}

Delegation -

type DoubleBakingEvidence added in v0.1.33

type DoubleBakingEvidence struct {
	Bh1      *Header                     `json:"bh1,omitempty"`
	Bh2      *Header                     `json:"bh2,omitempty"`
	Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"`
}

DoubleBakingEvidence -

type DoubleEndorsementEvidence added in v0.1.33

type DoubleEndorsementEvidence struct {
	Op1      *InlinedEndorsement         `json:"Op1"`
	Op2      *InlinedEndorsement         `json:"Op2"`
	Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"`
}

DoubleEndorsementEvidence -

type Endorsement added in v0.1.1

type Endorsement struct {
	Level    uint64               `json:"level"`
	Metadata *EndorsementMetadata `json:"metadata,omitempty"`
}

Endorsement -

type EndorsementMetadata added in v0.1.33

type EndorsementMetadata struct {
	BalanceUpdates []BalanceUpdate `json:"balance_updates"`
	Delegate       string          `json:"delegate"`
	Slots          []int           `json:"slots"`
}

EndorsementMetadata -

type EndorsementOperation added in v0.1.1

type EndorsementOperation struct {
	Level uint64 `json:"level"`
}

EndorsementOperation -

type EndorsementWithSlot added in v0.1.1

type EndorsementWithSlot struct {
	Endorsement EndorsementWithSlotEntity `json:"endorsement"`
	Slot        uint64                    `json:"slot"`
	Metadata    *EndorsementMetadata      `json:"metadata,omitempty"`
}

EndorsementWithSlot -

type EndorsementWithSlotEntity added in v0.1.33

type EndorsementWithSlotEntity struct {
	Branch    string               `json:"branch"`
	Operation EndorsementOperation `json:"operations"`
	Signature string               `json:"signature"`
}

EndorsementWithSlotEntity -

type Failed

type Failed struct {
	Hash      string             `json:"-"`
	Protocol  string             `json:"protocol"`
	Branch    string             `json:"branch"`
	Contents  []Content          `json:"contents"`
	Signature string             `json:"signature,omitempty"`
	Error     stdJSON.RawMessage `json:"error,omitempty"`
	Raw       stdJSON.RawMessage `json:"raw"`
}

Failed -

func (*Failed) UnmarshalJSON

func (f *Failed) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type FailedMonitor added in v0.1.38

type FailedMonitor struct {
	Hash      string             `json:"hash"`
	Protocol  string             `json:"protocol"`
	Branch    string             `json:"branch"`
	Contents  []Content          `json:"contents"`
	Signature string             `json:"signature,omitempty"`
	Error     stdJSON.RawMessage `json:"error,omitempty"`
	Raw       stdJSON.RawMessage `json:"raw"`
}

FailedMonitor -

func (*FailedMonitor) UnmarshalJSON added in v0.1.38

func (f *FailedMonitor) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type HeadMetadata added in v0.1.4

type HeadMetadata struct {
	Protocol        string `json:"protocol"`
	NextProtocol    string `json:"next_protocol"`
	TestChainStatus struct {
		Status string `json:"status"`
	} `json:"test_chain_status"`
	MaxOperationsTTL       uint64 `json:"max_operations_ttl"`
	MaxOperationDataLength uint64 `json:"max_operation_data_length"`
	MaxBlockHeaderLength   uint64 `json:"max_block_header_length"`
	MaxOperationListLength []struct {
		MaxSize uint64 `json:"max_size"`
		MaxOp   uint64 `json:"max_op,omitempty"`
	} `json:"max_operation_list_length"`
	Baker string `json:"baker"`
	Level struct {
		Level                uint64 `json:"level"`
		LevelPosition        uint64 `json:"level_position"`
		Cycle                uint64 `json:"cycle"`
		CyclePosition        uint64 `json:"cycle_position"`
		VotingPeriod         uint64 `json:"voting_period"`
		VotingPeriodPosition uint64 `json:"voting_period_position"`
		ExpectedCommitment   bool   `json:"expected_commitment"`
	} `json:"level"`
	LevelInfo struct {
		Level              uint64 `json:"level"`
		LevelPosition      uint64 `json:"level_position"`
		Cycle              uint64 `json:"cycle"`
		CyclePosition      uint64 `json:"cycle_position"`
		ExpectedCommitment bool   `json:"expected_commitment"`
	} `json:"level_info"`
	VotingPeriodKind string `json:"voting_period_kind"`
	VotingPeriodInfo struct {
		VotingPeriod struct {
			Index         uint64 `json:"index"`
			Kind          string `json:"kind"`
			StartPosition uint64 `json:"start_position"`
		} `json:"voting_period"`
		Position  int `json:"position"`
		Remaining int `json:"remaining"`
	} `json:"voting_period_info"`
	NonceHash      interface{}     `json:"nonce_hash"`
	ConsumedGas    string          `json:"consumed_gas"`
	Deactivated    []interface{}   `json:"deactivated"`
	BalanceUpdates []BalanceUpdate `json:"balance_updates"`
}

HeadMetadata -

type Header struct {
	Protocol         string    `json:"protocol"`
	ChainID          string    `json:"chain_id"`
	Hash             string    `json:"hash"`
	Level            uint64    `json:"level"`
	Proto            int       `json:"proto"`
	Predecessor      string    `json:"predecessor"`
	Timestamp        time.Time `json:"timestamp"`
	ValidationPass   int       `json:"validation_pass"`
	OperationsHash   string    `json:"operations_hash"`
	Fitness          []string  `json:"fitness"`
	Context          string    `json:"context"`
	Priority         int       `json:"priority"`
	ProofOfWorkNonce string    `json:"proof_of_work_nonce"`
	Signature        string    `json:"signature"`
}

Header -

type InjectOperationRequest added in v0.1.33

type InjectOperationRequest struct {
	Operation string
	ChainID   string
	Async     bool
}

InjectOperationRequest -

type InlinedEndorsement added in v0.1.33

type InlinedEndorsement struct {
	Branch     string                        `json:"branch"`
	Operations *InlinedEndorsementOperations `json:"operations,omitempty"`
	Signature  string                        `json:"signature"`
}

InlinedEndorsement -

type InlinedEndorsementOperations added in v0.1.33

type InlinedEndorsementOperations struct {
	Kind  string `json:"kind"`
	Level int    `json:"level"`
}

InlinedEndorsementOperations -

type Int64StringSlice

type Int64StringSlice []int64

Int64StringSlice -

func (*Int64StringSlice) UnmarshalJSON

func (slice *Int64StringSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type InternalOperationResults added in v0.1.33

type InternalOperationResults struct {
	Kind        string              `json:"kind"`
	Source      string              `json:"source"`
	Nonce       uint64              `json:"nonce"`
	Amount      string              `json:"amount,omitempty"`
	PublicKey   string              `json:"public_key,omitempty"`
	Destination string              `json:"destination,omitempty"`
	Balance     string              `json:"balance,omitempty"`
	Delegate    string              `json:"delegate,omitempty"`
	Script      *stdJSON.RawMessage `json:"script,omitempty"`
	Parameters  *Parameters         `json:"paramaters,omitempty"`
	Result      OperationResult     `json:"result"`
}

InternalOperationResults -

type LazyStorageDiff added in v0.1.33

type LazyStorageDiff struct {
	Kind string                      `json:"kind"`
	ID   string                      `json:"id"`
	Diff LazyStorageDiffBigMapEntity `json:"diff"`
}

LazyStorageDiff -

type LazyStorageDiffBigMapEntity added in v0.1.33

type LazyStorageDiffBigMapEntity struct {
	Action    string                  `json:"action"`
	Updates   []LazyStorageDiffUpdate `json:"updates,omitempty"`
	Source    string                  `json:"source,omitempty"`
	KeyType   *stdJSON.RawMessage     `json:"key_type,omitempty"`
	ValueType *stdJSON.RawMessage     `json:"value_type,omitempty"`
}

LazyStorageDiffBigMapEntity -

type LazyStorageDiffSaplingEntity added in v0.1.33

type LazyStorageDiffSaplingEntity struct {
	Action   string                  `json:"action"`
	Updates  []LazyStorageDiffUpdate `json:"updates,omitempty"`
	Source   string                  `json:"source,omitempty"`
	MemoSize uint64                  `json:"memo_size,omitempty"`
}

LazyStorageDiffSaplingEntity -

type LazyStorageDiffUpdate added in v0.1.33

type LazyStorageDiffUpdate struct {
	Action string              `json:"action,omitempty"`
	Key    *stdJSON.RawMessage `json:"key,omitempty"`
	Value  *stdJSON.RawMessage `json:"value,omitempty"`
}

LazyStorageDiffUpdate -

type LazyStorageDiffUpdatesSaplingState added in v0.1.33

type LazyStorageDiffUpdatesSaplingState struct {
	CommitmentsAndCiphertexts CommitmentsAndCiphertexts `json:"commitments_and_ciphertexts,omitempty"`
	Nullifiers                []string                  `json:"nullifiers,omitempty"`
}

LazyStorageDiffUpdatesSaplingState -

type ManagerOperationMetadata added in v0.1.33

type ManagerOperationMetadata struct {
	BalanceUpdates           []BalanceUpdate            `json:"balance_updates"`
	OperationResult          OperationResult            `json:"operation_result"`
	InternalOperationResults []InternalOperationResults `json:"internal_operation_results,omitempty"`
}

ManagerOperationMetadata -

type MempoolResponse

type MempoolResponse struct {
	Applied       []Applied `json:"applied"`
	Refused       []Failed  `json:"refused"`
	BranchRefused []Failed  `json:"branch_refused"`
	BranchDelayed []Failed  `json:"branch_delayed"`
}

MempoolResponse -

type Monitor added in v0.1.36

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor -

func NewMonitor added in v0.1.36

func NewMonitor(url string) *Monitor

NewMonitor -

func (*Monitor) Applied added in v0.1.36

func (monitor *Monitor) Applied() <-chan []*Applied

Applied -

func (*Monitor) BranchDelayed added in v0.1.36

func (monitor *Monitor) BranchDelayed() <-chan []*FailedMonitor

BranchDelayed -

func (*Monitor) BranchRefused added in v0.1.36

func (monitor *Monitor) BranchRefused() <-chan []*FailedMonitor

BranchRefused -

func (*Monitor) Close added in v0.1.36

func (monitor *Monitor) Close() error

func (*Monitor) Refused added in v0.1.36

func (monitor *Monitor) Refused() <-chan []*FailedMonitor

Refused -

func (*Monitor) SubscribeOnMempoolApplied added in v0.1.36

func (monitor *Monitor) SubscribeOnMempoolApplied(ctx context.Context)

SubscribeOnMempoolApplied -

func (*Monitor) SubscribeOnMempoolBranchDelayed added in v0.1.36

func (monitor *Monitor) SubscribeOnMempoolBranchDelayed(ctx context.Context)

SubscribeOnMempoolBranchDelayed -

func (*Monitor) SubscribeOnMempoolBranchRefused added in v0.1.36

func (monitor *Monitor) SubscribeOnMempoolBranchRefused(ctx context.Context)

SubscribeOnMempoolBranchRefused -

func (*Monitor) SubscribeOnMempoolRefused added in v0.1.36

func (monitor *Monitor) SubscribeOnMempoolRefused(ctx context.Context)

SubscribeOnMempoolRefused -

type NodeRPC

type NodeRPC struct {
	// contains filtered or unexported fields
}

NodeRPC -

func NewNodeRPC

func NewNodeRPC(baseURL string) *NodeRPC

NewNodeRPC -

func (*NodeRPC) ActiveDelegatesWithRolls added in v0.1.11

func (rpc *NodeRPC) ActiveDelegatesWithRolls(opts ...RequestOption) (delegates []string, err error)

ActiveDelegatesWithRolls -

func (*NodeRPC) Constants

func (rpc *NodeRPC) Constants(opts ...RequestOption) (constants Constants, err error)

Constants -

func (*NodeRPC) ContractStorage added in v0.1.39

func (rpc *NodeRPC) ContractStorage(block, contract string, output interface{}, opts ...RequestOption) (err error)

ContractStorage -

func (*NodeRPC) Counter added in v0.1.33

func (rpc *NodeRPC) Counter(contract string, block string, opts ...RequestOption) (counter string, err error)

Counter -

func (*NodeRPC) Delegates added in v0.1.11

func (rpc *NodeRPC) Delegates(active *bool, opts ...RequestOption) (delegates []string, err error)

Delegates -

func (*NodeRPC) HeadMetadata added in v0.1.4

func (rpc *NodeRPC) HeadMetadata(block string, opts ...RequestOption) (head HeadMetadata, err error)

HeadMetadata -

func (*NodeRPC) Header added in v0.1.4

func (rpc *NodeRPC) Header(block string, opts ...RequestOption) (head Header, err error)

Header -

func (*NodeRPC) InjectOperaiton added in v0.1.33

func (rpc *NodeRPC) InjectOperaiton(request InjectOperationRequest, opts ...RequestOption) (hash string, err error)

InjectOperaiton -

func (*NodeRPC) ManagerOperations added in v0.1.33

func (rpc *NodeRPC) ManagerOperations(block string, opts ...RequestOption) (operations []Operation, err error)

ManagerOperations -

func (*NodeRPC) Operations added in v0.1.33

func (rpc *NodeRPC) Operations(block string, opts ...RequestOption) (operations [][]Operation, err error)

Operations -

func (*NodeRPC) PendingOperations

func (rpc *NodeRPC) PendingOperations(opts ...RequestOption) (res MempoolResponse, err error)

PendingOperations -

func (*NodeRPC) StakingBalance added in v0.1.11

func (rpc *NodeRPC) StakingBalance(address string, opts ...RequestOption) (balance string, err error)

StakingBalance -

func (*NodeRPC) URL

func (rpc *NodeRPC) URL() string

URL -

type OnlyBalanceUpdatesMetadata added in v0.1.33

type OnlyBalanceUpdatesMetadata struct {
	BalanceUpdates []BalanceUpdate `json:"balance_updates"`
}

OnlyBalanceUpdatesMetadata -

type Operation added in v0.1.33

type Operation struct {
	Kind string      `json:"kind"`
	Body interface{} `json:"-"`
}

Operation -

func (Operation) AccountActivation added in v0.1.33

func (op Operation) AccountActivation() (AccountActivation, error)

AccountActivation -

func (Operation) Ballot added in v0.1.33

func (op Operation) Ballot() (Ballot, error)

Ballot -

func (Operation) Delegation added in v0.1.33

func (op Operation) Delegation() (Delegation, error)

Delegation -

func (Operation) DoubleBakingEvidence added in v0.1.33

func (op Operation) DoubleBakingEvidence() (DoubleBakingEvidence, error)

DoubleBakingEvidence -

func (Operation) DoubleEndorsementEvidence added in v0.1.33

func (op Operation) DoubleEndorsementEvidence() (DoubleEndorsementEvidence, error)

DoubleEndorsementEvidence -

func (Operation) Endorsement added in v0.1.33

func (op Operation) Endorsement() (Endorsement, error)

Endorsement -

func (Operation) EndorsementWithSlot added in v0.1.33

func (op Operation) EndorsementWithSlot() (EndorsementWithSlot, error)

EndorsementWithSlot -

func (Operation) Origination added in v0.1.33

func (op Operation) Origination() (Origination, error)

Origination -

func (Operation) Proposal added in v0.1.33

func (op Operation) Proposal() (Proposal, error)

Proposal -

func (Operation) RegisterGlobalConstant added in v0.1.33

func (op Operation) RegisterGlobalConstant() (RegisterGlobalConstant, error)

Reveal -

func (Operation) Reveal added in v0.1.33

func (op Operation) Reveal() (Reveal, error)

Reveal -

func (Operation) SeedNonceRevelation added in v0.1.33

func (op Operation) SeedNonceRevelation() (SeedNonceRevelation, error)

SeedNonceRevelation -

func (Operation) Transaction added in v0.1.33

func (op Operation) Transaction() (Transaction, error)

Transaction -

func (*Operation) UnmarshalJSON added in v0.1.33

func (op *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON -

type OperationGroup added in v0.1.33

type OperationGroup struct {
	Protocol  string      `json:"protocol"`
	ChainID   string      `json:"chain_id"`
	Hash      string      `json:"hash"`
	Branch    string      `json:"branch"`
	Signature string      `json:"signature"`
	Contents  []Operation `json:"contents"`
}

OperationGroup -

type OperationResult added in v0.1.33

type OperationResult struct {
	Status                       string              `json:"status"`
	Storage                      *stdJSON.RawMessage `json:"storage,omitempty"`
	BigMapDiff                   []BigMapDiff        `json:"big_map_diff,omitempty"`
	LazyStorageDiff              []LazyStorageDiff   `json:"lazy_storage_diff,omitempty"`
	BalanceUpdates               []BalanceUpdate     `json:"balance_updates,omitempty"`
	OriginatedContracts          []string            `json:"originated_contracts,omitempty"`
	ConsumedGas                  string              `json:"consumed_gas,omitempty"`
	StorageSize                  string              `json:"storage_size,omitempty"`
	PaidStorageSizeDiff          string              `json:"paid_storage_size_diff,omitempty"`
	AllocatedDestinationContract bool                `json:"allocated_destination_contract,omitempty"`
	Errors                       []ResultError       `json:"errors,omitempty"`
}

OperationResult -

type Origination added in v0.1.33

type Origination struct {
	Source        string                    `json:"source"`
	Fee           string                    `json:"fee"`
	Counter       string                    `json:"counter"`
	GasLimit      string                    `json:"gas_limit"`
	StorageLimit  string                    `json:"storage_limit"`
	Balance       string                    `json:"balance"`
	Delegate      string                    `json:"delegate,omitempty"`
	Script        stdJSON.RawMessage        `json:"script"`
	ManagerPubkey string                    `json:"managerPubkey,omitempty"`
	Metadata      *ManagerOperationMetadata `json:"metadata,omitempty"`
}

Origination -

type Parameters added in v0.1.33

type Parameters struct {
	Entrypoint string              `json:"entrypoint"`
	Value      *stdJSON.RawMessage `json:"value"`
}

Parameters -

type Proposal added in v0.1.33

type Proposal struct {
	Source    string   `json:"source"`
	Period    uint64   `json:"period"`
	Proposals []string `json:"proposals"`
}

Proposal -

type RegisterGlobalConstant added in v0.1.33

type RegisterGlobalConstant struct {
	Source       string             `json:"source"`
	Fee          string             `json:"fee"`
	Counter      string             `json:"counter"`
	GasLimit     string             `json:"gas_limit"`
	StorageLimit string             `json:"storage_limit"`
	Value        stdJSON.RawMessage `json:"value"`
}

RegisterGlobalConstant -

type RequestError added in v0.1.36

type RequestError struct {
	Code int
	Body string
	Err  error
}

RequestError -

func (RequestError) Error added in v0.1.36

func (e RequestError) Error() string

Error -

type RequestOption added in v0.1.36

type RequestOption func(*RequestOpts)

RequestOption -

func WithContext added in v0.1.36

func WithContext(ctx context.Context) RequestOption

WithContext -

type RequestOpts added in v0.1.36

type RequestOpts struct {
	// contains filtered or unexported fields
}

RequestOpts -

type ResultError added in v0.1.33

type ResultError struct {
	Kind           string              `json:"kind"`
	ID             string              `json:"id,omitempty"`
	With           *stdJSON.RawMessage `json:"with,omitempty"`
	Msg            string              `json:"msg,omitempty"`
	Location       int64               `json:"location,omitempty"`
	ContractHandle string              `json:"contract_handle,omitempty"`
	ContractCode   *stdJSON.RawMessage `json:"contract_code,omitempty"`
}

ResultError -

type Reveal added in v0.1.33

type Reveal struct {
	Source       string                    `json:"source"`
	Fee          string                    `json:"fee"`
	Counter      string                    `json:"counter"`
	GasLimit     string                    `json:"gas_limit"`
	StorageLimit string                    `json:"storage_limit"`
	PublicKey    string                    `json:"public_key"`
	Metadata     *ManagerOperationMetadata `json:"metadata,omitempty"`
}

Reveal -

type SaplingTransactionCiphertext added in v0.1.33

type SaplingTransactionCiphertext struct {
	CV         string `json:"cv"`
	EPK        string `json:"epk"`
	PayloadEnc string `json:"payload_enc"`
	NonceEnc   string `json:"nonce_enc"`
	PayloadOut string `json:"payload_out"`
	NonceOut   string `json:"nonce_out"`
}

SaplingTransactionCiphertext -

type SeedNonceRevelation added in v0.1.33

type SeedNonceRevelation struct {
	Level    uint64                      `json:"level"`
	Nonce    string                      `json:"nonce"`
	Metadata *OnlyBalanceUpdatesMetadata `json:"metadata,omitempty"`
}

SeedNonceRevelation -

type Transaction added in v0.1.33

type Transaction struct {
	Source       string                    `json:"source"`
	Fee          string                    `json:"fee"`
	Counter      string                    `json:"counter"`
	GasLimit     string                    `json:"gas_limit"`
	StorageLimit string                    `json:"storage_limit"`
	Amount       string                    `json:"amount"`
	Destination  string                    `json:"destination"`
	Parameters   *Parameters               `json:"parameters,omitempty"`
	Metadata     *ManagerOperationMetadata `json:"metadata,omitempty"`
}

Transaction -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL