Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
feat: add topics for staking contract
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak committed Sep 8, 2020
1 parent a00b97a commit 6929da6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
10 changes: 8 additions & 2 deletions config/custom-environment-variables.json5
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
provider: "RIFM_PROVIDER",
},
storage: {
contractAddress: "RIFM_STORAGE_CONTRACT_ADDR",
startingBlock: "RIFM_STORAGE_STARTING_BLOCK"
storageManager: {
contractAddress: "RIFM_STORAGE_CONTRACT_ADDR",
startingBlock: "RIFM_STORAGE_STARTING_BLOCK"
},
staking: {
contractAddress: "RIFM_STAKING_CONTRACT_ADDR",
startingBlock: "RIFM_STAKING_STARTING_BLOCK"
}
},
rns: {
owner: {
Expand Down
10 changes: 2 additions & 8 deletions config/default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,8 @@
staking: {
// Topics that will be listened to
topics: [
'TotalCapacitySet(address,uin64)',
'BillingPlanSet(address,uint64,uint128)',
'MessageEmitted(address,bytes32[])',
'NewAgreement(bytes32,bytes32[],address,address,uint128,uint64,uint128,uint256)',
'AgreementFundsDeposited(bytes32,uint256)',
'AgreementFundsWithdrawn(bytes32,uint256)',
'AgreementFundsPayout(bytes32,uint256)',
'AgreementStopped(bytes32)',
'Staked(address,uint256,uint256,address,bytes)',
'Unstaked(address,uint256,uint256,address,bytes)',
],

// Specify behavior of EventsEmitter, that retrieves events from blockchain and pass them onwards for further processing.
Expand Down
11 changes: 9 additions & 2 deletions config/development.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
provider: "ws://localhost:8545",
},
storage: {
eventsEmitter: {
confirmations: 1
storageManager: {
eventsEmitter: {
confirmations: 1
}
},
staking: {
eventsEmitter: {
confirmations: 1
}
}
},
rates: {
Expand Down
10 changes: 6 additions & 4 deletions config/ganache.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
},
storage: {
enabled: true,
contractAddress: "0x970e1d481CEDbeaeFE776275F0d1b4E1B301bB3b",
eventsEmitter: {
confirmations: 2
}
storageManager: {
contractAddress: "0x970e1d481CEDbeaeFE776275F0d1b4E1B301bB3b",
eventsEmitter: {
confirmations: 2
}
},
},
rns: {
enabled: true,
Expand Down

0 comments on commit 6929da6

Please sign in to comment.