Documentation
¶
Index ¶
- Constants
- func CreateClient(ctx context.Context, url string) (*ton.APIClient, error)
- func CreateRandomHighloadWallet(client ton.APIClientWrapped) (*wallet.Wallet, error)deprecated
- func CreateRandomWallet(client ton.APIClientWrapped, version wallet.VersionConfig, ...) (*wallet.Wallet, error)deprecated
- func DataStoreToAddressBook(ds *ds.MemoryDataStore) (*cldf.AddressBookMap, error)
- func FundWallets(t *testing.T, client ton.APIClientWrapped, recipients []*address.Address, ...) error
- func FundWalletsNoT(client ton.APIClientWrapped, recipients []*address.Address, ...) error
- func FundWalletsWithCtx(ctx context.Context, client ton.APIClientWrapped, ...) error
- func GetLocalnetFunderWallet(client ton.APIClientWrapped) (*wallet.Wallet, error)deprecated
- func StartChain(t *testing.T, chainID uint64, once *sync.Once) (cldf_ton.Chain, error)
- func ToTONAddress(ref datastore.AddressRef) (*address.Address, error)
- type Artifact
- type CompiledContractData
- type ContractMappingMetadata
- type DownloadArtifactsInput
- type DownloadArtifactsOutput
- type RetrieveCompiledContractsInput
- type RetrieveCompiledContractsOutput
Constants ¶
View Source
const ( // Contract version definitions ContractsVersionLocal = "local" // Notice: "local" should be used only for development, // while a specific version should be pinned for releases (production deployments). ContractsVersionLatestSupported = "054376f21418" // Feb 19, 2026 )
Variables ¶
This section is empty.
Functions ¶
func CreateRandomHighloadWallet
deprecated
func CreateRandomHighloadWallet(client ton.APIClientWrapped) (*wallet.Wallet, error)
Deprecated: use tvm.NewRandomHighloadV3TestWallet instead
func CreateRandomWallet
deprecated
func CreateRandomWallet(client ton.APIClientWrapped, version wallet.VersionConfig, option wallet.Option) (*wallet.Wallet, error)
Deprecated: use tvm.NewRandomTestWallet instead
func DataStoreToAddressBook ¶
func DataStoreToAddressBook(ds *ds.MemoryDataStore) (*cldf.AddressBookMap, error)
DataStoreToAddressBook is a temp function to transform a DataStore to the legacy AddressBook. Couldn't find any utility function to do this. Once we adopt this new change set in CLD we can remove returning AddressBook at all :)
func FundWallets ¶
func FundWalletsNoT ¶
func FundWalletsWithCtx ¶
func GetLocalnetFunderWallet
deprecated
func GetLocalnetFunderWallet(client ton.APIClientWrapped) (*wallet.Wallet, error)
Deprecated: use tvm.MyLocalTONWalletDefault instead
func StartChain ¶
StartChain creates a TON chain using the CLDF CTFChainProvider. The once parameter ensures CTF network is only initialized once across test suite.
func ToTONAddress ¶
func ToTONAddress(ref datastore.AddressRef) (*address.Address, error)
ToTONAddress formats a datastore.AddressRef into a TON *address.Address.
Types ¶
type CompiledContractData ¶
type ContractMappingMetadata ¶
type ContractMappingMetadata struct {
CompiledVersionKey string
}
type DownloadArtifactsInput ¶
type DownloadArtifactsOutput ¶
type DownloadArtifactsOutput struct {
Artifacts []Artifact
}
func DownloadArtifacts ¶
func DownloadArtifacts(ctx context.Context, in DownloadArtifactsInput) (DownloadArtifactsOutput, error)
type RetrieveCompiledContractsInput ¶
type RetrieveCompiledContractsInput struct {
ContractsVersionSha string
Contracts []ds.ContractType
}
func (*RetrieveCompiledContractsInput) Validate ¶
func (i *RetrieveCompiledContractsInput) Validate() error
type RetrieveCompiledContractsOutput ¶
type RetrieveCompiledContractsOutput struct {
CompiledContracts map[ds.ContractType]CompiledContractData
}
func RetrieveCompiledTONContracts ¶
func RetrieveCompiledTONContracts(ctx context.Context, logger logger.Logger, in RetrieveCompiledContractsInput) (RetrieveCompiledContractsOutput, error)
Click to show internal directories.
Click to hide internal directories.