Documentation
¶
Index ¶
- func AppendPayload(payloadType ContractCallWithTokenPayloadType, encodedPayload []byte) []byte
- func CalculateContractCallWithTokenPayload(payloadArgs ContractCallWithTokenPayload) ([]byte, []byte, error)
- type ContractCallWithTokenPayload
- type ContractCallWithTokenPayloadType
- type CustodianOnly
- type UPC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendPayload ¶
func AppendPayload(payloadType ContractCallWithTokenPayloadType, encodedPayload []byte) []byte
func CalculateContractCallWithTokenPayload ¶
func CalculateContractCallWithTokenPayload( payloadArgs ContractCallWithTokenPayload, ) ([]byte, []byte, error)
Types ¶
type ContractCallWithTokenPayload ¶
type ContractCallWithTokenPayload struct {
PayloadType ContractCallWithTokenPayloadType
*CustodianOnly
*UPC
}
func DecodeContractCallWithTokenPayload ¶
func DecodeContractCallWithTokenPayload(payload []byte) (*ContractCallWithTokenPayload, error)
func DecodeCustodianOnly ¶
func DecodeCustodianOnly(payload []byte) (*ContractCallWithTokenPayload, error)
func DecodeUPC ¶
func DecodeUPC(payload []byte) (*ContractCallWithTokenPayload, error)
type ContractCallWithTokenPayloadType ¶
type ContractCallWithTokenPayloadType uint8
const ( ContractCallWithTokenPayloadType_CustodianOnly ContractCallWithTokenPayloadType = iota ContractCallWithTokenPayloadType_UPC )
func FromBytes ¶
func FromBytes(b []byte) (ContractCallWithTokenPayloadType, error)
func (ContractCallWithTokenPayloadType) Bytes ¶
func (c ContractCallWithTokenPayloadType) Bytes() []byte
type CustodianOnly ¶
type CustodianOnly struct {
FeeOptions types.BTCFeeOpts
RBF bool
RecipientChainIdentifier []byte
}
Click to show internal directories.
Click to hide internal directories.