cchainatomictx

package
v0.1.46 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func NewBackend

func NewBackend(cClient client.Client, avaxAssetID ids.ID, avalancheNetworkID uint32) *Backend

NewBackend creates a C-chain atomic transaction service backend

func (*Backend) AccountBalance

AccountBalance implements /account/balance endpoint for C-chain atomic transaction balance

This endpoint is called if the account is in Bech32 format for a C-chain request

func (*Backend) AccountCoins

AccountCoins implements /account/coins endpoint for C-chain atomic transaction UTXOs

This endpoint is called if the account is in Bech32 format for a C-chain request

func (*Backend) CombineTx

func (*Backend) CombineTx(tx common.AvaxTx, signatures []*types.Signature) (common.AvaxTx, *types.Error)

CombineTx implements C-chain atomic transaction specific logic for combining unsigned transactions and signatures

func (*Backend) ConstructionCombine

ConstructionCombine implements /construction/combine endpoint for C-chain atomic transactions

func (*Backend) ConstructionDerive

ConstructionDerive implements /construction/derive endpoint for C-chain atomic transactions

func (*Backend) ConstructionHash

ConstructionHash implements /construction/hash endpoint for C-chain atomic transactions

func (*Backend) ConstructionMetadata

ConstructionMetadata implements /construction/metadata endpoint for C-chain atomic transactions

func (*Backend) ConstructionParse

ConstructionParse implements /construction/parse endpoint for C-chain atomic transactions

func (*Backend) ConstructionPayloads

ConstructionPayloads implements /construction/payloads endpoint for C-chain atomic transactions

func (*Backend) ConstructionPreprocess

ConstructionPreprocess implements /construction/preprocess endpoint for C-chain atomic transactions

func (*Backend) ConstructionSubmit

ConstructionSubmit implements /construction/submit endpoint for C-chain atomic transactions

func (*Backend) ShouldHandleRequest

func (b *Backend) ShouldHandleRequest(req interface{}) bool

ShouldHandleRequest returns whether a given request should be handled by this backend

Jump to

Keyboard shortcuts

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