-
Notifications
You must be signed in to change notification settings - Fork 152
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 #776 from iotaledger/develop
Develop to Master merge, new release
- Loading branch information
Showing
478 changed files
with
17,313 additions
and
3,662 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Description of change | ||
|
||
Please write a summary of your changes and why you made them. | ||
|
||
## Links to any relevant issues | ||
|
||
Be sure to reference any related issues by adding `fixes issue #`. | ||
|
||
## Type of change | ||
|
||
Choose a type of change, and delete any options that are not relevant. | ||
|
||
- Bug fix (a non-breaking change which fixes an issue) | ||
- Enhancement (a non-breaking change which adds functionality) | ||
- Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- Documentation Fix | ||
|
||
## How the change has been tested | ||
|
||
Describe the tests that you ran to verify your changes. | ||
|
||
Make sure to provide instructions for the maintainer as well as any relevant configurations. | ||
|
||
## Change checklist | ||
|
||
Tick the boxes that are relevant to your changes, and delete any items that are not. | ||
|
||
- [ ] I have followed the [contribution guidelines](https://wiki.iota.org/smart-contracts/contribute) for this project | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have selected the `develop` branch as the target branch | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
- [ ] I have checked that new and existing unit tests pass locally with my changes |
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 |
---|---|---|
|
@@ -19,6 +19,6 @@ wasp-cli.json | |
.DS_Store | ||
./tools/wasp-cli/wasp-cli | ||
.docusaurus | ||
node_modules | ||
**/node_modules/ | ||
goshimmer.log | ||
/*.sh |
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,21 @@ | ||
// Copyright 2020 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package client | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/iotaledger/wasp/packages/iscp" | ||
"github.com/iotaledger/wasp/packages/webapi/model" | ||
"github.com/iotaledger/wasp/packages/webapi/routes" | ||
) | ||
|
||
// GetChainRecord fetches ChainInfo by address | ||
func (c *WaspClient) GetChainInfo(chID *iscp.ChainID) (*model.ChainInfo, error) { | ||
res := &model.ChainInfo{} | ||
if err := c.do(http.MethodGet, routes.GetChainInfo(chID.Base58()), nil, res); err != nil { | ||
return nil, err | ||
} | ||
return res, 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Copyright 2020 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package client | ||
|
||
import ( | ||
|
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
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 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,26 @@ | ||
// Copyright 2020 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package client | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/iotaledger/goshimmer/packages/ledgerstate" | ||
"github.com/iotaledger/hive.go/crypto/ed25519" | ||
"github.com/iotaledger/wasp/packages/vm/core/governance" | ||
"github.com/iotaledger/wasp/packages/webapi/model" | ||
"github.com/iotaledger/wasp/packages/webapi/routes" | ||
) | ||
|
||
func (c *WaspClient) NodeOwnershipCertificate(nodePubKey ed25519.PublicKey, ownerAddress ledgerstate.Address) (governance.NodeOwnershipCertificate, error) { | ||
req := model.NodeOwnerCertificateRequest{ | ||
NodePubKey: model.NewBytes(nodePubKey.Bytes()), | ||
OwnerAddress: model.NewAddress(ownerAddress), | ||
} | ||
res := model.NodeOwnerCertificateResponse{} | ||
if err := c.do(http.MethodPost, routes.AdmNodeOwnerCertificate(), req, &res); err != nil { | ||
return nil, err | ||
} | ||
return governance.NewNodeOwnershipCertificateFromBytes(res.Certificate.Bytes()), 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,9 @@ | |
}, | ||
"nanomsg":{ | ||
"port": 5550 | ||
}, | ||
"metrics":{ | ||
"bindAddress": "127.0.0.1:2112", | ||
"enabled": true | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
@echo off | ||
cd ..\..\packages\vm\wasmlib | ||
schema -core -go -rust -ts -force | ||
schema -core -go -rust -ts -client -force | ||
del /s /q d:\work\node_modules\wasmlib\*.* >nul: | ||
del /s /q d:\work\node_modules\wasmclient\*.* >nul: | ||
xcopy /s /q d:\Work\go\github.com\iotaledger\wasp\packages\vm\wasmlib\ts\wasmclient d:\work\node_modules\wasmclient | ||
xcopy /s /q d:\Work\go\github.com\iotaledger\wasp\packages\vm\wasmlib\ts\wasmlib d:\work\node_modules\wasmlib | ||
cd ..\..\..\contracts\wasm |
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.