Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ local_scripts/*
backend

.idea
mem.log
26 changes: 26 additions & 0 deletions routes/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,11 @@ const (

// validators.go
RoutePathValidators = "/api/v0/validators"

// stake.go
RoutePathStake = "/api/v0/stake"
RoutePathUnstake = "/api/v0/unstake"
RoutePathUnlockStake = "/api/v0/unlock-stake"
)

// APIServer provides the interface between the blockchain and things like the
Expand Down Expand Up @@ -1304,6 +1309,27 @@ func (fes *APIServer) NewRouter() *muxtrace.Router {
fes.GetValidatorByPublicKeyBase58Check,
PublicAccess,
},
{
"CreateStakeTxn",
[]string{"POST", "OPTIONS"},
RoutePathStake,
fes.CreateStakeTxn,
PublicAccess,
},
{
"CreateUnstakeTxn",
[]string{"POST", "OPTIONS"},
RoutePathUnstake,
fes.CreateUnstakeTxn,
PublicAccess,
},
{
"CreateUnlockStakeTxn",
[]string{"POST", "OPTIONS"},
RoutePathUnlockStake,
fes.CreateUnlockStakeTxn,
PublicAccess,
},
// Jumio Routes
{
"JumioBegin",
Expand Down
Loading