This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* renamed constants * data structure updates * typealias updates * unnecessary self * updated on genesis * fixed if * fixed tests * started working on transfer * finished transfer implementation * spellcheck * beacon chain up to date * Update SlotTests.swift * changes * remove todo * using append * plus
- Loading branch information
Dean Eigenmann
authored
Feb 25, 2019
1 parent
4425314
commit 393ea82
Showing
33 changed files
with
303 additions
and
233 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ations/Attestations/AttestationData.swift → ...ctions/Attestations/AttestationData.swift
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,12 +1,12 @@ | ||
import Foundation | ||
|
||
struct AttestationData: Equatable { | ||
let slot: SlotNumber | ||
let slot: Slot | ||
let shard: UInt64 | ||
let beaconBlockRoot: Data | ||
let epochBoundaryRoot: Data | ||
let shardBlockRoot: Data | ||
let latestCrosslink: Crosslink | ||
let justifiedEpoch: EpochNumber | ||
let justifiedEpoch: Epoch | ||
let justifiedBlockRoot: Data | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
Sources/BeaconChain/DataStructures/Transactions/Transfer.swift
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,11 @@ | ||
import Foundation | ||
|
||
struct Transfer { | ||
let from: UInt64 | ||
let to: UInt64 | ||
let amount: UInt64 | ||
let fee: UInt64 | ||
let slot: UInt64 | ||
let pubkey: Data | ||
let signature: Data | ||
} |
2 changes: 1 addition & 1 deletion
2
...hain/DataStructures/Operations/Exit.swift → ...ructures/Transactions/VoluntaryExit.swift
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ enum Domain: UInt64 { | |
case PROPOSAL | ||
case EXIT | ||
case RANDAO | ||
case TRANSFER | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Foundation | ||
|
||
extension Epoch { | ||
|
||
func startSlot() -> Slot { | ||
return self * SLOTS_PER_EPOCH | ||
} | ||
|
||
func entryExitEpoch() -> Epoch { | ||
return self + 1 + ACTIVATION_EXIT_DELAY | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
import Foundation | ||
|
||
extension Slot { | ||
|
||
func toEpoch() -> Epoch { | ||
return self / SLOTS_PER_EPOCH | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.