Skip to content

Commit

Permalink
Update compiled contract (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-valante authored Dec 26, 2024
1 parent a56876e commit 3024771
Show file tree
Hide file tree
Showing 6 changed files with 255 additions and 23 deletions.
2 changes: 1 addition & 1 deletion storage-contracts-abis/0g-storage-contracts-rev
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bea58429e436e4952ae69235d9079cfc4ac5f3b3
30f0f921a80078e43d578c82b746677bcf06d786
50 changes: 43 additions & 7 deletions storage-contracts-abis/FixedPriceFlow.json

Large diffs are not rendered by default.

50 changes: 43 additions & 7 deletions storage-contracts-abis/Flow.json

Large diffs are not rendered by default.

43 changes: 41 additions & 2 deletions storage-contracts-abis/PoraMine.json

Large diffs are not rendered by default.

125 changes: 123 additions & 2 deletions storage-contracts-abis/PoraMineTest.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/test_framework/blockchain_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def deploy_no_market():
dummy_reward_contract, _ = deploy_contract("DummyReward", [])
self.log.debug("DummyReward deployed")

flow_contract, _ = deploy_contract("Flow", [mine_period, 0])
flow_contract, _ = deploy_contract("Flow", [0])
self.log.debug("Flow deployed")

mine_contract, _ = deploy_contract("PoraMineTest", [0])
Expand All @@ -306,7 +306,7 @@ def deploy_no_market():
mine_contract.functions.setTargetSubmissions(2).transact(TX_PARAMS)
self.log.debug("Mine Initialized")

flow_initialize_hash = flow_contract.functions.initialize(dummy_market_contract.address).transact(TX_PARAMS)
flow_initialize_hash = flow_contract.functions.initialize(dummy_market_contract.address, mine_period).transact(TX_PARAMS)
self.log.debug("Flow Initialized")

self.wait_for_transaction_receipt(w3, flow_initialize_hash)
Expand All @@ -329,7 +329,7 @@ def deploy_with_market(lifetime_seconds):
reward_contract, _ = deploy_contract("ChunkLinearReward", [lifetime_seconds])
self.log.debug("Reward deployed")

flow_contract, _ = deploy_contract("FixedPriceFlow", [mine_period, 0])
flow_contract, _ = deploy_contract("FixedPriceFlow", [0])
self.log.debug("Flow deployed")

mine_contract.functions.initialize(1, flow_contract.address, reward_contract.address).transact(TX_PARAMS)
Expand All @@ -346,7 +346,7 @@ def deploy_with_market(lifetime_seconds):
reward_contract.functions.setBaseReward(10 ** 18).transact(TX_PARAMS)
self.log.debug("Reward Initialized")

flow_initialize_hash = flow_contract.functions.initialize(market_contract.address).transact(TX_PARAMS)
flow_initialize_hash = flow_contract.functions.initialize(market_contract.address, mine_period).transact(TX_PARAMS)
self.log.debug("Flow Initialized")

self.wait_for_transaction_receipt(w3, flow_initialize_hash)
Expand Down

0 comments on commit 3024771

Please sign in to comment.