-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dedce33
commit c9e5b23
Showing
16 changed files
with
433 additions
and
149 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[project] | ||
authors = ["Łukasz Kalbarczyk"] | ||
entry = "lib.sw" | ||
forc-version = "0.63.6" | ||
forc-version = "0.64.0" | ||
license = "BUSL" | ||
name = "redstone" | ||
organization = "RedStone" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
channel = "testnet" | ||
|
||
[components] | ||
fuel-core = "0.35.0" | ||
forc = "0.63.6" | ||
fuel-core = "0.36.0" | ||
forc = "0.64.0" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
library; | ||
|
||
// 2621440000 + data_package_index | ||
// 2_621_440_000 + 1/2 | ||
pub const TIMESTAMP_OUT_OF_RANGE = 0x9C40_0000; | ||
|
||
/// 655360000 + feed_index | ||
// 1_966_080_000 + data_package_index | ||
pub const TIMESTAMP_DIFFERENT_THAN_OTHERS = 0x7530_0000; | ||
|
||
/// 655_360_000 + feed_index | ||
pub const INSUFFICIENT_SIGNER_COUNT = 0x2710_0000; | ||
|
||
/// 1310720000 + data_package_index | ||
/// 1_310_720_000 + data_package_index | ||
pub const SIGNER_NOT_RECOGNIZED = 0x4e20_0000; | ||
|
||
/// convert 3_276_800_000 + signer_count * feed_index + signer_index | ||
pub const DUPLICATED_VALUE_FOR_SIGNER = 0xc350_0000; | ||
|
||
pub enum RedStoneError { | ||
EmptyAllowedSigners: (), | ||
EmptyFeedIds: (), | ||
SignerCountThresholdToSmall: (), | ||
DuplicatedSigner: (), | ||
DuplicatedFeedId: (), | ||
} |
Oops, something went wrong.