Initial commit: Potatium
This commit is contained in:
commit
e2d0be22fd
58 files changed
+1551
No files matched your search
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,21 @@
|
||||
package app
|
||||
|
||||
// Status reports real capabilities, not planned ones. The starter project is
|
||||
// not yet a blockchain, and it must not be presented as a functional wallet.
|
||||
type Status struct {
|
||||
Project string `json:"project"`
|
||||
Phase string `json:"phase"`
|
||||
ChainReady bool `json:"chain_ready"`
|
||||
WalletReady bool `json:"wallet_ready"`
|
||||
MiningReady bool `json:"mining_ready"`
|
||||
}
|
||||
|
||||
func CurrentStatus() Status {
|
||||
return Status{
|
||||
Project: "Potatium",
|
||||
Phase: "scaffold",
|
||||
ChainReady: false,
|
||||
WalletReady: false,
|
||||
MiningReady: false,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package app
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestScaffoldDoesNotClaimFeatures(t *testing.T) {
|
||||
state := CurrentStatus()
|
||||
if state.ChainReady || state.WalletReady || state.MiningReady {
|
||||
t.Fatal("starter must not claim blockchain, wallet or mining are ready")
|
||||
}
|
||||
}
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user