-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rename stuff * fix * fix
- Loading branch information
Showing
8 changed files
with
75 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
target_chains/ethereum/contracts/contracts/entropy/EntropyState.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: Apache 2 | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import "@pythnetwork/entropy-sdk-solidity/EntropyStructs.sol"; | ||
|
||
contract EntropyInternalStructs { | ||
struct State { | ||
uint pythFeeInWei; | ||
uint accruedPythFeesInWei; | ||
mapping(address => EntropyStructs.ProviderInfo) providers; | ||
mapping(bytes32 => EntropyStructs.Request) requests; | ||
} | ||
} | ||
|
||
contract EntropyState { | ||
EntropyInternalStructs.State _state; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
target_chains/ethereum/entropy_sdk/solidity/EntropyEvents.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.0; | ||
|
||
import "./EntropyStructs.sol"; | ||
|
||
interface EntropyEvents { | ||
event Registered(EntropyStructs.ProviderInfo provider); | ||
|
||
event Requested(EntropyStructs.Request request); | ||
|
||
event Revealed( | ||
EntropyStructs.Request request, | ||
bytes32 userRevelation, | ||
bytes32 providerRevelation, | ||
bytes32 blockHash, | ||
bytes32 randomNumber | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
target_chains/ethereum/entropy_sdk/solidity/PythRandomEvents.sol
This file was deleted.
Oops, something went wrong.