Skip to content

Commit 65d7a91

Browse files
update urls for populate data command
1 parent 62d574b commit 65d7a91

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

framework/components/dockercompose/billing_platform_service/billing_platform_service.go

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,17 @@ type PostgresOutput struct {
4040
}
4141

4242
type Input struct {
43-
ComposeFile string `toml:"compose_file"`
44-
ExtraDockerNetworks []string `toml:"extra_docker_networks"`
45-
Output *Output `toml:"output"`
46-
UseCache bool `toml:"use_cache"`
47-
ChainSelector uint64 `toml:"chain_selector"`
48-
StreamsAPIURL string `toml:"streams_api_url"`
49-
StreamsAPIKey string `toml:"streams_api_key"`
50-
StreamsAPISecret string `toml:"streams_api_secret"`
51-
RPCURL string `toml:"rpc_url"`
43+
ComposeFile string `toml:"compose_file"`
44+
ExtraDockerNetworks []string `toml:"extra_docker_networks"`
45+
Output *Output `toml:"output"`
46+
UseCache bool `toml:"use_cache"`
47+
ChainSelector uint64 `toml:"chain_selector"`
48+
StreamsAPIURL string `toml:"streams_api_url"`
49+
StreamsAPIKey string `toml:"streams_api_key"`
50+
StreamsAPISecret string `toml:"streams_api_secret"`
51+
RPCURL string `toml:"rpc_url"`
52+
WorkflowRegistryAddress string `toml:"workflow_registry_address"`
53+
CapabilitiesRegistryAddress string `toml:"capabilities_registry_address"`
5254
}
5355

5456
func defaultBillingPlatformService(in *Input) *Input {
@@ -102,19 +104,19 @@ func New(in *Input) (*Output, error) {
102104
// set development defaults for necessary environment variables and allow them to be overridden by the host process
103105
envVars := make(map[string]string)
104106

105-
envVars["MAINNET_WORKFLOW_REGISTRY_CHAIN_SELECTOR"] = strconv.FormatUint(in.ChainSelector, 10) // Anvil Devnet
106-
envVars["MAINNET_WORKFLOW_REGISTRY_CONTRACT_ADDRESS"] = "0xA15BB66138824a1c7167f5E85b957d04Dd34E468" // Deployed via Linking integration tests
107-
envVars["MAINNET_WORKFLOW_REGISTRY_RPC_URL"] = in.RPCURL // Anvil inside Docker
108-
envVars["MAINNET_WORKFLOW_REGISTRY_FINALITY_DEPTH"] = "0" // Instant finality on devnet
109-
envVars["KMS_PROOF_SIGNING_KEY_ID"] = "00000000-0000-0000-0000-000000000001" // provisioned via LocalStack
110-
envVars["VERIFIER_INITIAL_INTERVAL"] = "0s" // reduced to force verifier to start immediately in integration tests
111-
envVars["VERIFIER_MAXIMUM_INTERVAL"] = "1s" // reduced to force verifier to start immediately in integration tests
112-
envVars["LINKING_REQUEST_COOLDOWN"] = "0s" // reduced to force consequtive linking requests to be processed immediately in integration tests
113-
114-
envVars["MAINNET_CAPABILITIES_REGISTRY_CHAIN_SELECTOR"] = strconv.FormatUint(in.ChainSelector, 10) // Base Sepolia
115-
envVars["MAINNET_CAPABILITIES_REGISTRY_CONTRACT_ADDRESS"] = "0x4c0a7d8f1b2e3c5f6a9b8e2d3c4f5e6b7a8b9c0d" // dummy address
116-
envVars["MAINNET_CAPABILITIES_REGISTRY_RPC_URL"] = in.RPCURL // Anvil RPC URL
117-
envVars["MAINNET_CAPABILITIES_REGISTRY_FINALITY_DEPTH"] = "10" // Arbitrary value, adjust as needed
107+
envVars["MAINNET_WORKFLOW_REGISTRY_CHAIN_SELECTOR"] = strconv.FormatUint(in.ChainSelector, 10)
108+
envVars["MAINNET_WORKFLOW_REGISTRY_CONTRACT_ADDRESS"] = in.WorkflowRegistryAddress
109+
envVars["MAINNET_WORKFLOW_REGISTRY_RPC_URL"] = in.RPCURL
110+
envVars["MAINNET_WORKFLOW_REGISTRY_FINALITY_DEPTH"] = "0" // Instant finality on devnet
111+
envVars["KMS_PROOF_SIGNING_KEY_ID"] = "00000000-0000-0000-0000-000000000001" // provisioned via LocalStack
112+
envVars["VERIFIER_INITIAL_INTERVAL"] = "0s" // reduced to force verifier to start immediately in integration tests
113+
envVars["VERIFIER_MAXIMUM_INTERVAL"] = "1s" // reduced to force verifier to start immediately in integration tests
114+
envVars["LINKING_REQUEST_COOLDOWN"] = "0s" // reduced to force consequtive linking requests to be processed immediately in integration tests
115+
116+
envVars["MAINNET_CAPABILITIES_REGISTRY_CHAIN_SELECTOR"] = strconv.FormatUint(in.ChainSelector, 10)
117+
envVars["MAINNET_CAPABILITIES_REGISTRY_CONTRACT_ADDRESS"] = in.CapabilitiesRegistryAddress
118+
envVars["MAINNET_CAPABILITIES_REGISTRY_RPC_URL"] = in.RPCURL
119+
envVars["MAINNET_CAPABILITIES_REGISTRY_FINALITY_DEPTH"] = "10" // Arbitrary value, adjust as needed
118120

119121
envVars["STREAMS_API_URL"] = in.StreamsAPIURL
120122
envVars["STREAMS_API_KEY"] = in.StreamsAPIKey

framework/components/dockercompose/billing_platform_service/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ services:
8686
billing-platform-service:
8787
condition: service_started
8888
restart: on-failure
89-
command: ["db", "populate-data", "--environment=local"]
89+
command: ["db", "populate-data", "--environment=local", "--billing-client-url=billing-platform-service:2222", "--linking-client-url=billing-platform-service:2257"]

0 commit comments

Comments
 (0)