Versions in this module Expand all Collapse all v1 v1.9.9 May 14, 2024 v1.9.8 May 14, 2024 v1.0.0 May 14, 2024 Changes in this version + const AsyncPaymentChannelCodeBoC + var AsyncPaymentChannelCode = func() *cell.Cell { ... }() + var AsyncPaymentChannelCodeHash = AsyncPaymentChannelCode.Hash() + var ErrVerificationNotPassed = fmt.Errorf("verification not passed") + type AsyncChannel struct + Status ChannelStatus + Storage AsyncChannelStorageData + func (c *AsyncChannel) Address() *address.Address + type AsyncChannelStorageData struct + BalanceA tlb.Coins + BalanceB tlb.Coins + ChannelID ChannelID + ClosingConfig ClosingConfig + CommittedSeqnoA uint32 + CommittedSeqnoB uint32 + Initialized bool + KeyA []byte + KeyB []byte + Payments PaymentConfig + Quarantine *QuarantinedState + type ChallengeQuarantinedState struct + IsChallengedByA bool + Signature Signature + Signed struct{ ... } + type ChannelID []byte + func RandomChannelID() (ChannelID, error) + type ChannelStatus int8 + const ChannelStatusAwaitingFinalization + const ChannelStatusClosureStarted + const ChannelStatusOpen + const ChannelStatusSettlingConditionals + const ChannelStatusUninitialized + type Client struct + func NewPaymentChannelClient(api TonApi) *Client + func (c *Client) GetAsyncChannel(ctx context.Context, block *ton.BlockIDExt, addr *address.Address, verify bool) (*AsyncChannel, error) + func (c *Client) GetDeployAsyncChannelParams(channelId ChannelID, isA bool, initialBalance tlb.Coins, ...) (body, code, data *cell.Cell, err error) + func (c *Client) ParseAsyncChannel(addr *address.Address, code, data *cell.Cell, verify bool) (*AsyncChannel, error) + type ClosingConfig struct + ConditionalCloseDuration uint32 + MisbehaviorFine tlb.Coins + QuarantineDuration uint32 + type ConditionalPayment struct + Amount tlb.Coins + Condition *cell.Cell + type CooperativeClose struct + SignatureA Signature + SignatureB Signature + Signed struct{ ... } + type CooperativeCommit struct + IsA bool + SignatureA Signature + SignatureB Signature + Signed struct{ ... } + type FinishUncooperativeClose struct + type InitChannel struct + IsA bool + Signature Signature + Signed struct{ ... } + type PaymentConfig struct + DestA *address.Address + DestB *address.Address + ExcessFee tlb.Coins + type QuarantinedState struct + QuarantineStarts uint32 + StateA SemiChannelBody + StateB SemiChannelBody + StateChallenged bool + StateCommittedByA bool + type SemiChannel struct + CounterpartyData *SemiChannelBody + Data SemiChannelBody + type SemiChannelBody struct + Conditionals *cell.Dictionary + Sent tlb.Coins + Seqno uint64 + type SettleConditionals struct + IsFromA bool + Signature Signature + Signed struct{ ... } + type Signature struct + Value []byte + type SignedSemiChannel struct + Signature Signature + State SemiChannel + type StartUncooperativeClose struct + IsSignedByA bool + Signature Signature + Signed struct{ ... } + type TonApi interface + CurrentMasterchainInfo func(ctx context.Context) (_ *ton.BlockIDExt, err error) + GetAccount func(ctx context.Context, block *ton.BlockIDExt, addr *address.Address) (*tlb.Account, error) + RunGetMethod func(ctx context.Context, blockInfo *ton.BlockIDExt, addr *address.Address, ...) (*ton.ExecutionResult, error) + SendExternalMessage func(ctx context.Context, msg *tlb.ExternalMessage) error + WaitForBlock func(seqno uint32) ton.APIClientWrapped + type TopupBalance struct + AddA tlb.Coins + AddB tlb.Coins