-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #204 from rubixchain/development
release: v0.0.18
- Loading branch information
Showing
106 changed files
with
5,447 additions
and
1,332 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ linux/ | |
mac/ | ||
windows/ | ||
dist/ | ||
test_swarm_key/ | ||
|
||
# used for testing purpose | ||
!node_registry.json | ||
!node_registry.json |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package client | ||
|
||
import ( | ||
"github.com/rubixchain/rubixgoplatform/core/model" | ||
"github.com/rubixchain/rubixgoplatform/core/wallet" | ||
"github.com/rubixchain/rubixgoplatform/setup" | ||
) | ||
|
||
func (c *Client) AddPeer(peer_detail *wallet.DIDPeerMap) (string, bool) { | ||
|
||
var rm model.BasicResponse | ||
err := c.sendJSONRequest("POST", setup.APIAddPeerDetails, nil, &peer_detail, &rm) | ||
if err != nil { | ||
return err.Error(), false | ||
} | ||
return rm.Message, rm.Status | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package client | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/rubixchain/rubixgoplatform/core/model" | ||
"github.com/rubixchain/rubixgoplatform/setup" | ||
) | ||
|
||
func (c *Client) RecoverRBT(rt *model.RBTRecoverRequest) (*model.BasicResponse, error) { | ||
var br model.BasicResponse | ||
err := c.sendJSONRequest("POST", setup.APIRecoverRBT, nil, rt, &br, time.Minute*2) | ||
if err != nil { | ||
c.log.Error("Failed to Recover RBT from the pinning node", "err", err) | ||
return nil, err | ||
} | ||
return &br, nil | ||
} |
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
Oops, something went wrong.