Skip to content

Nuwa 1.1.1

Compare
Choose a tag to compare
@mdranger mdranger released this 16 Mar 00:59
· 48 commits to master since this release

Nuwa v1.1.1 is a version used for testnet only. The major updates are in the SCS part. SCS provides a new console that is similar to VNODE console.
The start process is as follows:

  1. Start the SCS server with RPC port opens:

    ./scsserver --rpc --rpcport 8548

then, in another terminal window, run SCS to attach to the default IPC (under ./scsdata)

./scsserver attach

or

./scsserver attach ./scsdata/scs.ipc

You should see the console window now.

  1. Add appchain as a new package in the console. The appchain has an internal address property to be set with setAddress() method and it provides similar methods as the scs package except no need to input the AppChain address as the 1st parameter.

.> appchain.setAddress("0xcc2f9fac358ba1c8792a7ad47bccb037a92eb8a3")

.> appchain.getBlockNumber()
1541

should be the same as the following method:

.> scs.getBlockNumber("0xcc2f9fac358ba1c8792a7ad47bccb037a92eb8a3")
1541

More info can be found at:
https://moac-docs.readthedocs.io/en/latest

版本更新

本版本仅在测试网上运行,是为了测试应用链的新交互界面,主要有以下更新:

  1. 提供了一个可以和用户交互的JavaScript界面,界面的启动需要首先运行SCS客户端并打开RPC端口:

    ./scsserver --rpc --rpcport 8548

然后打开另外一个窗口,运行以下命令(默认路径 ./scsdata)

./scsserver attach

或者

./scsserver attach ./scsdata/scs.ipc

用户应该可以看到一个交互命令行窗口。

  1. 在交互界面中提供了appchain新组件,用于应用链的方法调用。用户可以在命令行中输入appchain看到所有的方法和属性。appchain新组件中提供SetAddress()和GetAddress()来设定和显示应用链地址,并且提供和scs组件中类似的应用链调用方法。不同之处在于不用每次输入应用链地址作为第一个参数。例如,下面的命令会返回应用链的最新区块高度:

.> appchain.setAddress("0xcc2f9fac358ba1c8792a7ad47bccb037a92eb8a3")
.> appchain.getBlockNumber()
1541

和下面命令结果一致:

.> scs.getBlockNumber("0xcc2f9fac358ba1c8792a7ad47bccb037a92eb8a3")
1541

更多信息可以参考最新的开发文档
https://moacdocs-chn.readthedocs.io/zh_CN/latest