You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developer environment exposes format which allows any external infra to be integrated.
4
+
5
+
## NodeSets + Blockchains + Fake
6
+
7
+
This is a basic example of data required to run developer environment commands on external infrastructure. Full list of fields can be found [here](https://smartcontractkit.github.io/chainlink-testing-framework/framework/developer_environment/toml.html)
8
+
9
+
Example `env-stage-1.toml`:
10
+
```toml
11
+
[fakes]
12
+
[fakes.out]
13
+
# URL to fakes server which represents some 3rd party which are mocked on external infrastructure
# All the other fields as in previous example above
55
+
```
56
+
57
+
Deploy the infrastructure first, then use `up env-stage-1.toml` to orchestrate staging environment.
58
+
59
+
In case your product has more infrastructure components define TOML keys `[[my_custom_component]]` and provide all the required connection data, use the same config structure you are using in your local environment, read more [here](https://smartcontractkit.github.io/chainlink-testing-framework/developing/developing_components.html?highlight=component#developing-components)
Copy file name to clipboardExpand all lines: framework/components/blockchain/canton.go
+55-19Lines changed: 55 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,21 @@ const (
19
19
TokenExpiry=time.Hour*24*365*10// 10 years
20
20
)
21
21
22
+
typeCantonDatastruct {
23
+
// Docker internal endpoints, only reachable if connected to the same Docker network (framework.DefaultNetworkName)
24
+
InternalEndpointsCantonEndpoints`toml:"internal_endpoints" comment:"Docker-internal endpoints, only reachable from containers connected to the same networks"`
25
+
// External endpoints, reachable from the Docker host
26
+
ExternalEndpointsCantonEndpoints`toml:"external_endpoints" comment:"Docker-external endpoints, only reachable from the Docker host"`
RegistryAPIURL: fmt.Sprintf("http://scan.%s:%s", host, in.Port), // Don't add /registry to URL as this is part of the OpenAPI spec and the base URL should point to the root
RegistryAPIURL: fmt.Sprintf("http://scan.%s:%d", nginxContainerName, canton.DefaultNginxInternalPort), // Don't add /registry to URL as this is part of the OpenAPI spec and the base URL should point to the root
RegistryAPIURL: fmt.Sprintf("http://scan.%s:%s", host, in.Port), // Don't add /registry to URL as this is part of the OpenAPI spec and the base URL should point to the root
0 commit comments