Skip to content

Commit

Permalink
fix(exec): Add network event parameter to execution analytics event
Browse files Browse the repository at this point in the history
  • Loading branch information
RPate97 committed Jan 6, 2023
1 parent 0b34ffd commit 7cd5e1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-spiders-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/executor': patch
---

Add blockchain network parameter to execution event
5 changes: 5 additions & 0 deletions .changeset/tough-ladybugs-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/executor': patch
---

Support defining executor port with environment variable
1 change: 1 addition & 0 deletions packages/executor/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ IPFS_PROJECT_ID=<ipfs project id to retrieve config file>
IPFS_API_KEY_SECRET=<ipfs api key to retrieve config file>
ETHERSCAN_API_KEY=<Etherscan API key>
HARDHAT_NETWORK=<Target hardhat network, used for verification>
EXECUTOR_PORT=7300
2 changes: 2 additions & 0 deletions packages/executor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class ChugSplashExecutor extends BaseServiceV2<Options, Metrics, State> {
version: require('../package.json').version,
loop: true,
loopIntervalMs: 5000,
port: parseInt(process.env.EXECUTOR_PORT, 10),
options,
optionsSpec: {
url: {
Expand Down Expand Up @@ -333,6 +334,7 @@ export class ChugSplashExecutor extends BaseServiceV2<Options, Metrics, State> {
user_id: await getProjectOwnerAddress(provider, projectName),
event_properties: {
projectName,
network: this.options.network,
},
})
}
Expand Down

0 comments on commit 7cd5e1b

Please sign in to comment.