Skip to content

Commit 03153ee

Browse files
authored
Some offchain TODO cleanup (#330)
1 parent f277961 commit 03153ee

File tree

6 files changed

+5
-37
lines changed

6 files changed

+5
-37
lines changed

pkg/ccip/provider/provider.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ func NewCCIPProvider(
4747
logPoller logpoller.Service,
4848
cargs commontypes.CCIPProviderArgs,
4949
) (*Provider, error) {
50-
// TODO: clean up, too verbose
51-
lggr.Info("Creating TON CCIPProvider", "chainSelector", chainSelector, "pluginType", cargs.PluginType, "offRampAddress", cargs.OffRampAddress)
52-
5350
// Validate offramp address
5451
addressCodec := codec.NewAddressCodec()
5552
var offRampAddrStr string
@@ -64,9 +61,8 @@ func NewCCIPProvider(
6461
return nil, fmt.Errorf("failed to decode TON offRamp address: %w", err)
6562
}
6663
} else {
67-
// TODO: clean up, too verbose
6864
// EVM address provided - use zero address as placeholder
69-
lggr.Warnw("EVM offramp address provided to TON provider, using zero address placeholder",
65+
lggr.Debug("EVM offramp address provided to TON provider, using zero address placeholder",
7066
"providedLength", len(cargs.OffRampAddress),
7167
"expectedLength", tvm.AddressLength)
7268
// Use a zero TON address as placeholder
@@ -103,6 +99,9 @@ func NewCCIPProvider(
10399
return nil, fmt.Errorf("failed to create TON Accessor: %w", err)
104100
}
105101

102+
lggr.Info("Returning TON CCIPProvider", "chainSelector", chainSelector, "pluginType", cargs.PluginType,
103+
"cargs.offRampAddress", cargs.OffRampAddress, "offRampAddrStr", offRampAddrStr)
104+
106105
return &Provider{
107106
lggr: logger.Named(lggr, CCIPProviderName),
108107
ct: ct,

pkg/client/client.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

pkg/client/multi_client.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

pkg/fees/estimator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ import "context"
55
type Estimator interface {
66
Start(context.Context) error
77
Close() error
8-
// TODO(NONEVM-1460): add remaining interface functions required for fee calculation
98
}

pkg/relay/chain.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ func (c *chain) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken
247247
}
248248

249249
func (c *chain) Transact(ctx context.Context, from, to string, amount *big.Int, balanceCheck bool) error {
250-
// TODO(NONEVM-1460): implement
251250
return errors.ErrUnsupported
252251
}
253252

pkg/txm/txstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (s *TxStore) GetUnconfirmed() []*UnconfirmedTx {
9393

9494
unconfirmed := maps.Values(s.unconfirmedTxs)
9595

96-
// TODO: should this be sorted by LT instead?
96+
// TODO: consider sorting by LT instead
9797
sort.Slice(unconfirmed, func(i, j int) bool {
9898
return unconfirmed[i].ExpirationMs < unconfirmed[j].ExpirationMs
9999
})

0 commit comments

Comments
 (0)