-
Notifications
You must be signed in to change notification settings - Fork 2
Extend cldf timelock converter logic for TON #628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
3261478
ce292f9
76f7941
6b03e06
bb6622b
564f880
fa6aa6c
580e5c7
d139579
e0493eb
8c9b9ff
b703c08
a68db89
d440c1d
060c95e
4a13173
5f800a9
02d0258
588016c
3d3a6ba
95337bb
c434940
781a16b
284e77e
2e6c227
06dd941
4168b5e
120f23b
d58f919
ad23d0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,6 @@ import ( | |||||
| "github.com/avast/retry-go/v4" | ||||||
| "github.com/testcontainers/testcontainers-go" | ||||||
|
|
||||||
| "github.com/xssnick/tonutils-go/address" | ||||||
| "github.com/xssnick/tonutils-go/tlb" | ||||||
| "github.com/xssnick/tonutils-go/ton" | ||||||
| "github.com/xssnick/tonutils-go/ton/wallet" | ||||||
|
|
@@ -34,6 +33,9 @@ const ( | |||||
|
|
||||||
| // supportedTONImageRepository is the only supported Docker image repository for TON localnet. | ||||||
| supportedTONImageRepository = "ghcr.io/neodix42/mylocalton-docker" | ||||||
|
|
||||||
| // defaultTxTONAmount is the default amount of TON to use for transactions. | ||||||
| defaultTxTONAmount = "0.25" | ||||||
| ) | ||||||
|
|
||||||
| // CTFChainProviderConfig holds the configuration to initialize the CTFChainProvider. | ||||||
|
|
@@ -126,18 +128,13 @@ func (p *CTFChainProvider) Initialize(ctx context.Context) (chain.BlockChain, er | |||||
| return nil, fmt.Errorf("failed to create wallet: %w", err) | ||||||
| } | ||||||
|
|
||||||
| // airdrop the deployer wallet | ||||||
| ferr := fundTonWallets(ctx, nodeClient, []*address.Address{tonWallet.Address()}, []tlb.Coins{tlb.MustFromTON("1000")}) | ||||||
| if ferr != nil { | ||||||
| return nil, fmt.Errorf("failed to fund wallet: %w", ferr) | ||||||
| } | ||||||
|
Comment on lines
-129
to
-133
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Omitting fund logic from network setup makes sense to me(if I am reading it right), but just a reminder that integration tests in core and chainlink-ton are relying on the deployer wallet to fund transmitters:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good, think we removed this as we discussed that the integration tests already funded the deployer wallet |
||||||
|
|
||||||
| p.chain = &cldf_ton.Chain{ | ||||||
| ChainMetadata: cldf_ton.ChainMetadata{Selector: p.selector}, | ||||||
| Client: nodeClient, | ||||||
huangzhen1997 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| Wallet: tonWallet, | ||||||
| WalletAddress: tonWallet.Address(), | ||||||
| WalletAddress: tonWallet.WalletAddress(), | ||||||
|
||||||
| WalletAddress: tonWallet.WalletAddress(), | |
| WalletAddress: tonWallet.Address(), |
Uh oh!
There was an error while loading. Please reload this page.