File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
book/src/framework/components/blockchains Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ TON (The Open Network) support in the framework utilizes MyLocalTon Docker Compo
88[blockchain_a ]
99 type = " ton"
1010 # By default uses MyLocalTon Docker Compose file
11- image = " https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
11+ docker_compose_file_url = " https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
1212 # Optional: Specify only core services needed for testing (useful in CI environments)
1313 ton_core_services = [
1414 " genesis" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ type Input struct {
5656 CustomPorts []string `toml:"custom_ports"`
5757
5858 // Ton - MyLocalTon essesntial services to run tests
59- TonCoreServices []string `toml:"ton_core_services"`
59+ DockerComposeFileURL string `toml:"docker_compose_file_url"`
60+ TonCoreServices []string `toml:"ton_core_services"`
6061}
6162
6263// Output is a blockchain network output, ChainID and one or more nodes that forms the network
Original file line number Diff line number Diff line change @@ -30,9 +30,8 @@ const (
3030)
3131
3232func defaultTon (in * Input ) {
33- if in .Image == "" {
34- // Note: mylocalton uses a compose file, not a single image. Reusing common image field
35- in .Image = "https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
33+ if in .DockerComposeFileURL == "" {
34+ in .DockerComposeFileURL = "https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
3635 }
3736 // Note: in local env having all services could be useful(explorer, faucet), in CI we need only core services
3837 if os .Getenv ("CI" ) == "true" && len (in .TonCoreServices ) == 0 {
@@ -48,7 +47,7 @@ func newTon(in *Input) (*Output, error) {
4847 defaultTon (in )
4948 containerName := framework .DefaultTCName ("blockchain-node" )
5049
51- resp , err := http .Get (in .Image )
50+ resp , err := http .Get (in .DockerComposeFileURL )
5251 if err != nil {
5352 return nil , fmt .Errorf ("failed to download docker-compose file: %v" , err )
5453 }
Original file line number Diff line number Diff line change 11[blockchain_a ]
22type = " ton"
3- image = " https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
3+ docker_compose_file_url = " https://raw.githubusercontent.com/neodix42/mylocalton-docker/main/docker-compose.yaml"
44ton_core_services = [
55 " genesis" ,
66 " tonhttpapi" ,
You can’t perform that action at this time.
0 commit comments