Skip to content

Commit f909777

Browse files
committed
Tron CRE test
1 parent 1baefa9 commit f909777

File tree

27 files changed

+1209
-50
lines changed

27 files changed

+1209
-50
lines changed

core/scripts/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ require (
5151
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250718143957-41236f9ef8b4
5252
github.com/smartcontractkit/chainlink-data-streams v0.1.2
5353
github.com/smartcontractkit/chainlink-deployments-framework v0.17.2
54-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90
54+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527
5555
github.com/smartcontractkit/chainlink-testing-framework/framework v0.10.5
5656
github.com/smartcontractkit/chainlink-testing-framework/framework/components/dockercompose v0.1.6
5757
github.com/smartcontractkit/chainlink-testing-framework/lib v1.54.4
@@ -482,7 +482,7 @@ require (
482482
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250710151719-d98d7674da89 // indirect
483483
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250804223734-02018e687bcd // indirect
484484
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 // indirect
485-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6 // indirect
485+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e // indirect
486486
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729190115-fa322d3f3238 // indirect
487487
github.com/smartcontractkit/crib-sdk v0.4.0 // indirect
488488
github.com/smartcontractkit/freeport v0.1.1 // indirect

core/scripts/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,8 +1546,8 @@ github.com/smartcontractkit/chainlink-data-streams v0.1.2 h1:g/UmFJa/E1Zmc7NO20o
15461546
github.com/smartcontractkit/chainlink-data-streams v0.1.2/go.mod h1:lxY97sDlDorQAmLGFo6x1tl8SQ2E7adsS0/wU8+mmTc=
15471547
github.com/smartcontractkit/chainlink-deployments-framework v0.17.2 h1:eJWeT9YAoGQwj8NHqcVI9cFJorLth3N4Clmoh7i503I=
15481548
github.com/smartcontractkit/chainlink-deployments-framework v0.17.2/go.mod h1:U4vWLp0dTmYgiN3Y7BXasDfM8NF3ZTIhDo5NjM+7RhQ=
1549-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90 h1:zjaz6bqfp5CDINl9ns4q4CyOOGb7nKO1cd3zK+ZxtIY=
1550-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90/go.mod h1:cpX/pcVkBJOulqcnOEVprNvtkTKTMp83MDiCxXk58y0=
1549+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527 h1:DSruZ3RzAWVdC9Yq06UZoUv1AxR36vdKaJ9Y9gHX0es=
1550+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527/go.mod h1:5fKtz/fATYGKHDggGCF6jzJds5kvd03bRhqelojDb6g=
15511551
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135 h1:8u9xUrC+yHrTDexOKDd+jrA6LCzFFHeX1G82oj2fsSI=
15521552
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135/go.mod h1:NkvE4iQgiT7dMCP6U3xPELHhWhN5Xr6rHC0axRebyMU=
15531553
github.com/smartcontractkit/chainlink-framework/capabilities v0.0.0-20250729142306-508e798f6a5d h1:71BE5jqUDYq2WQLS7xobBE3NJGZp6s7ce4Q0qOo4WC8=
@@ -1582,8 +1582,8 @@ github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 h1:cWUHB6Q
15821582
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2/go.mod h1:Z4K5VJLjsfqIIaBcZ1Sfccxu0xsCxBjPa6zF+5gtQaM=
15831583
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2 h1:ZJ/8Jx6Be5//TyjPi1pS1uotnmcYq5vVkSyISIymSj8=
15841584
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2/go.mod h1:kHYJnZUqiPF7/xN5273prV+srrLJkS77GbBXHLKQpx0=
1585-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6 h1:RU3MWARa8aeEop6WmIBvXTLe3QruFzBWE0ugz4hB+3I=
1586-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6/go.mod h1:EQl7VcrSvpSNOL8qWkc2CV/2cOII5CIkKTeIqzqCWKk=
1585+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e h1:N2P7eV1OqhMV/hPrszacVGo6iq5ZBOO4pG0is91Qsq0=
1586+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e/go.mod h1:ZnAaAWtczhBbsmb6GafTmAi6ncsj6dpZwHEaBePWQeQ=
15871587
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d h1:qLmSOOtB/Ogn79eIDkuujOu8M5Jd747V1H7Brk/nTvo=
15881588
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw=
15891589
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729190115-fa322d3f3238 h1:ly+QfDAAkfCfGHXro2ggCDflCuGtNgmhwJKK77nD+PE=

core/services/chainlink/relayer_factory.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ func (r *RelayerFactory) NewEVM(config EVMFactoryConfig) (map[types.RelayID]evmr
8686

8787
relayID := types.RelayID{Network: network, ChainID: chain.ChainID.String()}
8888
// loopp
89+
if network == relay.NetworkTron {
90+
r.Logger.Infow("Creating EVM relayer for Tron chain", "chainID", chain.ChainID.String())
91+
}
8992
cfgTOML, err := toml.Marshal(struct {
9093
EVM evmtoml.EVMConfig
9194
}{EVM: *chain})
@@ -139,7 +142,7 @@ func (r *RelayerFactory) NewEVM(config EVMFactoryConfig) (map[types.RelayID]evmr
139142
// For Tron chains, inject a Tron-specific TXM
140143
if network == relay.NetworkTron {
141144
r.Logger.Infow("Creating EVM relayer for Tron chain", "chainID", chain.ID())
142-
145+
// TODO(sdk): wire Tron TXM into relayerOpts once available
143146
}
144147

145148
relayer, err2 := evmrelay.NewRelayer(logger.Named(lggr, relayID.ChainID), chain, relayerOpts)

core/services/relay/evm/relayer_extender.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func NewLegacyChains(
6868
ChainOpts: chainOpts,
6969
}
7070

71-
opts.Logger.Infow(fmt.Sprintf("Loading chain %s", cid), "evmChainID", cid)
71+
opts.Logger.Infow(fmt.Sprintf("Loading chain %s", cid), "evmChainID", cid)
7272
chain, err2 := legacyevm.NewTOMLChain(enabled[i], opts, clientsByChainID)
7373
if err2 != nil {
7474
err = errors.Join(err, fmt.Errorf("failed to create chain %s: %w", cid, err2))

deployment/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ require (
3737
github.com/smartcontractkit/chainlink-common v0.8.1-0.20250804161133-82612124e6ef
3838
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250718143957-41236f9ef8b4
3939
github.com/smartcontractkit/chainlink-deployments-framework v0.17.2
40-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90
40+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527
4141
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250729142306-508e798f6a5d
4242
github.com/smartcontractkit/chainlink-protos/job-distributor v0.13.1
4343
github.com/smartcontractkit/chainlink-protos/orchestrator v0.8.1
@@ -395,7 +395,7 @@ require (
395395
github.com/smartcontractkit/chainlink-testing-framework/framework v0.9.0 // indirect
396396
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 // indirect
397397
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2 // indirect
398-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6 // indirect
398+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e // indirect
399399
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect
400400
github.com/smartcontractkit/tdh2/go/ocr2/decryptionplugin v0.0.0-20241009055228-33d0c0bf38de // indirect
401401
github.com/smartcontractkit/tdh2/go/tdh2 v0.0.0-20241009055228-33d0c0bf38de // indirect

deployment/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ github.com/smartcontractkit/chainlink-data-streams v0.1.2 h1:g/UmFJa/E1Zmc7NO20o
12771277
github.com/smartcontractkit/chainlink-data-streams v0.1.2/go.mod h1:lxY97sDlDorQAmLGFo6x1tl8SQ2E7adsS0/wU8+mmTc=
12781278
github.com/smartcontractkit/chainlink-deployments-framework v0.17.2 h1:eJWeT9YAoGQwj8NHqcVI9cFJorLth3N4Clmoh7i503I=
12791279
github.com/smartcontractkit/chainlink-deployments-framework v0.17.2/go.mod h1:U4vWLp0dTmYgiN3Y7BXasDfM8NF3ZTIhDo5NjM+7RhQ=
1280-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90 h1:zjaz6bqfp5CDINl9ns4q4CyOOGb7nKO1cd3zK+ZxtIY=
1281-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90/go.mod h1:cpX/pcVkBJOulqcnOEVprNvtkTKTMp83MDiCxXk58y0=
1280+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527 h1:DSruZ3RzAWVdC9Yq06UZoUv1AxR36vdKaJ9Y9gHX0es=
1281+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527/go.mod h1:5fKtz/fATYGKHDggGCF6jzJds5kvd03bRhqelojDb6g=
12821282
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135 h1:8u9xUrC+yHrTDexOKDd+jrA6LCzFFHeX1G82oj2fsSI=
12831283
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135/go.mod h1:NkvE4iQgiT7dMCP6U3xPELHhWhN5Xr6rHC0axRebyMU=
12841284
github.com/smartcontractkit/chainlink-framework/capabilities v0.0.0-20250729142306-508e798f6a5d h1:71BE5jqUDYq2WQLS7xobBE3NJGZp6s7ce4Q0qOo4WC8=
@@ -1311,8 +1311,8 @@ github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 h1:cWUHB6Q
13111311
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2/go.mod h1:Z4K5VJLjsfqIIaBcZ1Sfccxu0xsCxBjPa6zF+5gtQaM=
13121312
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2 h1:ZJ/8Jx6Be5//TyjPi1pS1uotnmcYq5vVkSyISIymSj8=
13131313
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2/go.mod h1:kHYJnZUqiPF7/xN5273prV+srrLJkS77GbBXHLKQpx0=
1314-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6 h1:RU3MWARa8aeEop6WmIBvXTLe3QruFzBWE0ugz4hB+3I=
1315-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6/go.mod h1:EQl7VcrSvpSNOL8qWkc2CV/2cOII5CIkKTeIqzqCWKk=
1314+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e h1:N2P7eV1OqhMV/hPrszacVGo6iq5ZBOO4pG0is91Qsq0=
1315+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e/go.mod h1:ZnAaAWtczhBbsmb6GafTmAi6ncsj6dpZwHEaBePWQeQ=
13161316
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d h1:qLmSOOtB/Ogn79eIDkuujOu8M5Jd747V1H7Brk/nTvo=
13171317
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw=
13181318
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729190115-fa322d3f3238 h1:ly+QfDAAkfCfGHXro2ggCDflCuGtNgmhwJKK77nD+PE=

deployment/keystone/changeset/internal/capability_registry_deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (c *CapabilitiesRegistryDeployer) Contract() *capabilities_registry.Capabil
3535
}
3636

3737
func (c *CapabilitiesRegistryDeployer) Deploy(req DeployRequest) (*DeployResponse, error) {
38-
est, err := estimateDeploymentGas(req.Chain.Client, capabilities_registry.CapabilitiesRegistryABI)
38+
est, err := estimateDeploymentGas(req.Chain.Client, capabilities_registry.CapabilitiesRegistryBin)
3939
if err != nil {
4040
return nil, fmt.Errorf("failed to estimate gas: %w", err)
4141
}

deployment/keystone/changeset/internal/ocr3_deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func NewOCR3Deployer() (*OCR3Deployer, error) {
2626
}
2727

2828
func (c *OCR3Deployer) deploy(req DeployRequest) (*DeployResponse, error) {
29-
est, err := estimateDeploymentGas(req.Chain.Client, ocr3_capability.OCR3CapabilityABI)
29+
est, err := estimateDeploymentGas(req.Chain.Client, ocr3_capability.OCR3CapabilityBin)
3030
if err != nil {
3131
return nil, fmt.Errorf("failed to estimate gas: %w", err)
3232
}

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ require (
8686
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250718143957-41236f9ef8b4
8787
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250718162715-0c70aa0d3a06
8888
github.com/smartcontractkit/chainlink-data-streams v0.1.2
89-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90
89+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527
9090
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135
9191
github.com/smartcontractkit/chainlink-framework/capabilities v0.0.0-20250729142306-508e798f6a5d
9292
github.com/smartcontractkit/chainlink-framework/chains v0.0.0-20250717121125-2350c82883e2
@@ -95,7 +95,7 @@ require (
9595
github.com/smartcontractkit/chainlink-protos/orchestrator v0.8.1
9696
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250710151719-d98d7674da89
9797
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250804223734-02018e687bcd
98-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6
98+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e
9999
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729190115-fa322d3f3238
100100
github.com/smartcontractkit/cre-sdk-go/capabilities/networking/http v0.2.1-0.20250729191525-ac1867f3ff34
101101
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.2.1-0.20250729191525-ac1867f3ff34

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,8 @@ github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-2025
10981098
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250718162715-0c70aa0d3a06/go.mod h1:LEZQ/SbFHseQJrLKVm6ELB8gyI4G8rVEH3SQzzZqFDk=
10991099
github.com/smartcontractkit/chainlink-data-streams v0.1.2 h1:g/UmFJa/E1Zmc7NO20ob5SijxQen51DhnqTLr2f7BEc=
11001100
github.com/smartcontractkit/chainlink-data-streams v0.1.2/go.mod h1:lxY97sDlDorQAmLGFo6x1tl8SQ2E7adsS0/wU8+mmTc=
1101-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90 h1:zjaz6bqfp5CDINl9ns4q4CyOOGb7nKO1cd3zK+ZxtIY=
1102-
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250801102619-bf75f8afcd90/go.mod h1:cpX/pcVkBJOulqcnOEVprNvtkTKTMp83MDiCxXk58y0=
1101+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527 h1:DSruZ3RzAWVdC9Yq06UZoUv1AxR36vdKaJ9Y9gHX0es=
1102+
github.com/smartcontractkit/chainlink-evm v0.1.1-0.20250806195654-39b4a3b18527/go.mod h1:5fKtz/fATYGKHDggGCF6jzJds5kvd03bRhqelojDb6g=
11031103
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135 h1:8u9xUrC+yHrTDexOKDd+jrA6LCzFFHeX1G82oj2fsSI=
11041104
github.com/smartcontractkit/chainlink-feeds v0.1.2-0.20250227211209-7cd000095135/go.mod h1:NkvE4iQgiT7dMCP6U3xPELHhWhN5Xr6rHC0axRebyMU=
11051105
github.com/smartcontractkit/chainlink-framework/capabilities v0.0.0-20250729142306-508e798f6a5d h1:71BE5jqUDYq2WQLS7xobBE3NJGZp6s7ce4Q0qOo4WC8=
@@ -1122,8 +1122,8 @@ github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250710151719-
11221122
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250710151719-d98d7674da89/go.mod h1:HIpGvF6nKCdtZ30xhdkKWGM9+4Z4CVqJH8ZBL1FTEiY=
11231123
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250804223734-02018e687bcd h1:w8G34i6+oYFgn3C8bJ+9PHL7q+P6NzVgKp5wzjhLYYk=
11241124
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250804223734-02018e687bcd/go.mod h1:v6SXJpswr6T8gUDib/KK1XpkIgiUtmFO7fO2XI5fr7A=
1125-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6 h1:RU3MWARa8aeEop6WmIBvXTLe3QruFzBWE0ugz4hB+3I=
1126-
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250701132001-f8be142155b6/go.mod h1:EQl7VcrSvpSNOL8qWkc2CV/2cOII5CIkKTeIqzqCWKk=
1125+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e h1:N2P7eV1OqhMV/hPrszacVGo6iq5ZBOO4pG0is91Qsq0=
1126+
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250805160549-9c2255ee818e/go.mod h1:ZnAaAWtczhBbsmb6GafTmAi6ncsj6dpZwHEaBePWQeQ=
11271127
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250528121202-292529af39df h1:36e3ROIZyV/qE8SvFOACXtXfMOMd9vG4+zY2v2ScXkI=
11281128
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250528121202-292529af39df/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw=
11291129
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729190115-fa322d3f3238 h1:ly+QfDAAkfCfGHXro2ggCDflCuGtNgmhwJKK77nD+PE=

0 commit comments

Comments
 (0)