Skip to content

Commit 94dfd62

Browse files
authored
Add TON option to buildTimelockConverters (#638)
1 parent 89a05f6 commit 94dfd62

File tree

6 files changed

+22
-9
lines changed

6 files changed

+22
-9
lines changed

.changeset/sad-bottles-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smartcontractkit/mcms": patch
3+
---
4+
5+
Add TON option to buildTimelockConverters

.changeset/salty-grapes-take.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smartcontractkit/mcms": patch
3+
---
4+
5+
Bump ghcr.io/neodix42/mylocalton-docker:v4.0.0 - speedup

chainwrappers/chainaccessor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ type ChainAccessor interface {
1616
SolanaClient(selector uint64) (*solrpc.Client, bool)
1717
AptosClient(selector uint64) (aptoslib.AptosRpcClient, bool)
1818
SuiClient(selector uint64) (sui.ISuiAPI, suisuisdk.SuiSigner, bool)
19-
TonClient(selector uint64) (*ton.APIClient, bool)
19+
TonClient(selector uint64) (ton.APIClientWrapped, bool)
2020
}

chainwrappers/mocks/chain_accessor.go

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/config.ton.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ private_keys = [
88
[ton_config]
99
chain_id = "-217"
1010
type = "ton"
11-
image = "ghcr.io/neodix42/mylocalton-docker:v3.99"
11+
image = "ghcr.io/neodix42/mylocalton-docker:v4.0.0"
1212

1313
[ton_config.out]
1414
family = "ton"

timelock_proposal.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import (
2222
"github.com/smartcontractkit/mcms/sdk/evm"
2323
"github.com/smartcontractkit/mcms/sdk/solana"
2424
"github.com/smartcontractkit/mcms/sdk/sui"
25+
"github.com/smartcontractkit/mcms/sdk/ton"
2526
"github.com/smartcontractkit/mcms/types"
2627
)
2728

@@ -300,6 +301,8 @@ func (m *TimelockProposal) buildTimelockConverters(_ context.Context) (map[types
300301
if err != nil {
301302
return nil, fmt.Errorf("failed to create Sui timelock converter: %w", err)
302303
}
304+
case chainsel.FamilyTon:
305+
converter = ton.NewTimelockConverter(ton.DefaultSendAmount)
303306
default:
304307
return nil, fmt.Errorf("unsupported chain family %s", fam)
305308
}

0 commit comments

Comments
 (0)