-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathton_chain.go
More file actions
29 lines (23 loc) · 976 Bytes
/
ton_chain.go
File metadata and controls
29 lines (23 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package ton
import (
"github.com/xssnick/tonutils-go/address"
"github.com/xssnick/tonutils-go/ton"
"github.com/xssnick/tonutils-go/ton/wallet"
"github.com/xssnick/tonutils-go/tlb"
"github.com/smartcontractkit/chainlink-deployments-framework/chain/internal/common"
)
type ChainMetadata = common.ChainMetadata
// TxOps holds configuration for transaction operations.
type TxOps struct {
Wallet *wallet.Wallet // Wallet abstraction (signing, sending)
Amount tlb.Coins // Default amount for msg transfers
}
// Chain represents a TON chain.
type Chain struct {
ChainMetadata // Contains canonical chain identifier
Client *ton.APIClient // APIClient for Lite Server connection
Wallet *wallet.Wallet // Wallet abstraction (signing, sending)
WalletAddress *address.Address // Address of deployer wallet
URL string // Liteserver URL
TxOps TxOps // Transaction operations configuration
}