https://github.com/matrixainetwork/matrixdemo
Matrix AI Network local test block chain and demo contracts with default config and man address support
https://github.com/matrixainetwork/matrixdemo
Last synced: about 1 year ago
JSON representation
Matrix AI Network local test block chain and demo contracts with default config and man address support
- Host: GitHub
- URL: https://github.com/matrixainetwork/matrixdemo
- Owner: MatrixAINetwork
- License: mit
- Created: 2019-10-17T06:50:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:43:16.000Z (over 3 years ago)
- Last Synced: 2025-02-07T05:15:43.028Z (over 1 year ago)
- Language: JavaScript
- Size: 707 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: readme.MD
- License: LICENSE
Awesome Lists containing this project
README
# matrixDemo
Matrix AI Network local test block chain and demo contracts with default config and man address support
## Init man contract
cd {yourcontractdir}
truffle unbox matrixDemo
## install Docker
sudo yum makecache fast
sudo yum -y install docker-ce
## invoke truffle-matrix
truffle-matrix
## contract migrate
truffle migrate
## truffle-config
##### Each network properties add type,dryRun,skipDryRun setting like this:
development: {
type = "matrix",
skipDryRun: true,
}
#### Add manUtils.sol support
###### Convert address to man address(string)
function toMan(address _addr) public pure returns (string)
###### Convert man address(string) to address
function toAddress(string _manAddr) public pure returns(address)