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
update/0.3.0 #58
Merged
Merged
update/0.3.0 #58
Changes from 12 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
41274f7
renamed constants
decanus 6fc795f
data structure updates
decanus 24eba37
typealias updates
decanus b6b9804
unnecessary self
decanus 5010e7f
updated on genesis
decanus d72cf56
fixed if
decanus b64c47a
fixed tests
decanus 86003c3
started working on transfer
decanus 216e6ac
finished transfer implementation
decanus 0c3948d
spellcheck
decanus 91ee532
beacon chain up to date
decanus 988501b
Update SlotTests.swift
decanus 0ed8772
changes
decanus 546fc1e
Merge branch 'update/0.3.0' of github.com:decanus/swift-beacon-chain …
decanus 42e087c
remove todo
decanus 34f72fa
using append
decanus 8892c46
plus
decanus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fancy. Don't need
self.
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, art.