Adding SNTController to the config

This commit is contained in:
Richard Ramos 2018-08-09 16:31:38 -04:00
parent 56f3266187
commit 258887206a
2 changed files with 86 additions and 2 deletions

View File

@ -0,0 +1,83 @@
module.exports = {
"gasPrice": 20,
"node": {
"local":{
"protocol": "ws",
"host": "localhost",
"port": 8546
},
"ganache": {
"protocol": "http",
"host": "localhost",
"port": 8545
},
"blockchain": {
"account": "0xb8d851486d1c953e31a44374aca11151d49b8bb3"
},
"whisper": {
"symKey": "0xd0d905c1c62b810b787141430417caf2b3f54cffadb395b7bb39fdeb8f17266b",
"ttl": 1000,
"minPow": 0.2,
"powTime": 1000
}
},
"heartbeat": {
"enabled": true,
"symKey": "0xd0d905c1c62b810b787141430417caf2b3f54cffadb395b7bb39fdeb8f17266b"
},
"tokens": {
"0x0000000000000000000000000000000000000000": {
"name": "Ethereum",
"symbol": "ETH",
"minAccepted":{
"value": 1,
"currency": "USD"
}
},
"%STTAddress%": {
"name": "Status Test Token",
"symbol": "STT",
"minAccepted":{
"value": 1,
"currency": "USD"
},
"pricePlugin": "../plugins/token-utils.js"
}
},
"contracts":{
"IdentityGasRelay": {
"abiFile": "../abi/IdentityGasRelay.json",
"isIdentity": true,
"factoryAddress": "%IdentityFactoryAddress%",
"kernelVerification": "isKernel(bytes32)",
"allowedFunctions": [
{
"function": "approveAndCallGasRelayed(address,address,uint256,bytes,uint256,uint256,uint256,address,bytes)",
"isToken": true
},
{
"function": "callGasRelayed(address,uint256,bytes,uint256,uint256,uint256,address,bytes)",
"isToken": false
}
],
"strategy": "../src/strategy/IdentityStrategy.js"
},
"SNTController": {
"abiFile": "../abi/SNTController.json",
"isIdentity": false,
"address": "%SNTController%",
"allowedFunctions": [
{
"function":"transferSNT(address,uint256,uint256,uint256,bytes)"
},
{
"function":"executeGasRelayed(address,bytes,uint256,uint256,uint256,bytes)"
}
],
"strategy": "../src/strategy/SNTStrategy.js"
}
}
};

View File

@ -45,18 +45,19 @@ module.exports = {
"InstanceStorage": {"deploy": false},
"MiniMeTokenFactory": {"args":[]},
"MiniMeToken": {"deploy": false},
"SNTController": {"deploy": false},
"UpdatedIdentityKernel": {"deploy": false},
"UpdatableInstance": {"deploy": false},
"Controlled": {"deploy": false},
"Owned": {"deploy": false},
"IdentityKernel": {"deploy": false},
"STT": {
"instanceOf": "MiniMeToken",
"args":["$MiniMeTokenFactory", "0x0", "0x0", "Status Test Token", 18, "STT", true],
"gasLimit": 4000000
},
"SNTController": {
"args": ["0x5f803F54679577fC974813E48abF012A243dD439", "$STT"]
},
"IdentityGasRelay": {
"deploy": true,
"args": [[], [], [], 1, 1, "0x0000000000000000000000000000000000000000"]