add initial subgraph assets

This commit is contained in:
Barry Gitarts 2019-08-07 13:44:16 -04:00
parent d5185ea511
commit d96b41d755
85 changed files with 6946 additions and 0 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
# liquid-funding-subgraph

View File

@ -0,0 +1,7 @@
{
"dappConnection": [
"$WEB3"
],
"dappAutoEnable": true,
"blockchainClient": "geth"
}

View File

@ -0,0 +1,7 @@
{
"connection": {
"host": "localhost",
"port": 8546,
"type": "ws"
}
}

10
abi/config/storage.json Normal file
View File

@ -0,0 +1,10 @@
{
"dappConnection": [
{
"provider": "ipfs",
"host": "localhost",
"port": 5001,
"getUrl": "http://localhost:8080/ipfs/"
}
]
}

4
abi/contracts/ACL.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ACLHelpersJSONConfig = {"contract_name":{"className":"ACLHelpers","args":[],"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a7230582068e0c8cc800a5d80decb1144af3d98f32f915d37ac5ba55984c2caed20447d910029","runtimeBytecode":"6060604052600080fd00a165627a7a7230582068e0c8cc800a5d80decb1144af3d98f32f915d37ac5ba55984c2caed20447d910029","realRuntimeBytecode":"6060604052600080fd00a165627a7a72305820","linkReferences":{},"swarmHash":"68e0c8cc800a5d80decb1144af3d98f32f915d37ac5ba55984c2caed20447d91","gasEstimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"decodeParamId(uint256)":"infinite","decodeParamOp(uint256)":"infinite","decodeParamsList(uint256)":"infinite"}},"functionHashes":{},"abiDefinition":[],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/ACLSyntaxSugar.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/ACLSyntaxSugar.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/acl/ACLSyntaxSugar.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a7230582068e0c8cc800a5d80decb1144af3d98f32f915d37ac5ba55984c2caed20447d910029","runtime_bytecode":"6060604052600080fd00a165627a7a7230582068e0c8cc800a5d80decb1144af3d98f32f915d37ac5ba55984c2caed20447d910029","real_runtime_bytecode":"6060604052600080fd00a165627a7a72305820","swarm_hash":"68e0c8cc800a5d80decb1144af3d98f32f915d37ac5ba55984c2caed20447d91","gas_estimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"decodeParamId(uint256)":"infinite","decodeParamOp(uint256)":"infinite","decodeParamsList(uint256)":"infinite"}},"function_hashes":{},"abi":[]};
let ACLHelpers = new EmbarkJS.Blockchain.Contract(ACLHelpersJSONConfig);
export default ACLHelpers;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ACLOracleJSONConfig = {"contract_name":{"className":"ACLOracle","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"canPerform(address,address,bytes32,uint256[])":"2a151090"},"abiDefinition":[{"constant":true,"inputs":[{"name":"who","type":"address"},{"name":"where","type":"address"},{"name":"what","type":"bytes32"},{"name":"how","type":"uint256[]"}],"name":"canPerform","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/ACL.sol","originalFilename":"node_modules/@aragon/os/contracts/acl/ACL.sol","path":"/Users/Barry/projects/status-im/liquid-funding/node_modules/@aragon/os/contracts/acl/ACL.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"canPerform(address,address,bytes32,uint256[])":"2a151090"},"abi":[{"constant":true,"inputs":[{"name":"who","type":"address"},{"name":"where","type":"address"},{"name":"what","type":"bytes32"},{"name":"how","type":"uint256[]"}],"name":"canPerform","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]};
let ACLOracle = new EmbarkJS.Blockchain.Contract(ACLOracleJSONConfig);
export default ACLOracle;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ACLSyntaxSugarJSONConfig = {"contract_name":{"className":"ACLSyntaxSugar","args":[],"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a723058206a355b12b8cd2a24c0a5231e2aa09c06b5c8febb3f42debfd2b82d638491e70f0029","runtimeBytecode":"6060604052600080fd00a165627a7a723058206a355b12b8cd2a24c0a5231e2aa09c06b5c8febb3f42debfd2b82d638491e70f0029","realRuntimeBytecode":"6060604052600080fd00a165627a7a72305820","linkReferences":{},"swarmHash":"6a355b12b8cd2a24c0a5231e2aa09c06b5c8febb3f42debfd2b82d638491e70f","gasEstimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"arr()":"infinite","arr(address)":"infinite","arr(address,address)":"infinite","arr(address,address,address)":"infinite","arr(address,address,uint256)":"infinite","arr(address,address,uint256,uint256,uint256)":"infinite","arr(address,uint256)":"infinite","arr(address,uint256,uint256)":"infinite","arr(bytes32)":"infinite","arr(bytes32,bytes32)":"infinite","arr(uint256)":"infinite","arr(uint256,uint256)":"infinite","arr(uint256,uint256,uint256)":"infinite","arr(uint256,uint256,uint256,uint256)":"infinite","arr(uint256,uint256,uint256,uint256,uint256)":"infinite"}},"functionHashes":{},"abiDefinition":[],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/ACLSyntaxSugar.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/ACLSyntaxSugar.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/acl/ACLSyntaxSugar.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a723058206a355b12b8cd2a24c0a5231e2aa09c06b5c8febb3f42debfd2b82d638491e70f0029","runtime_bytecode":"6060604052600080fd00a165627a7a723058206a355b12b8cd2a24c0a5231e2aa09c06b5c8febb3f42debfd2b82d638491e70f0029","real_runtime_bytecode":"6060604052600080fd00a165627a7a72305820","swarm_hash":"6a355b12b8cd2a24c0a5231e2aa09c06b5c8febb3f42debfd2b82d638491e70f","gas_estimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"arr()":"infinite","arr(address)":"infinite","arr(address,address)":"infinite","arr(address,address,address)":"infinite","arr(address,address,uint256)":"infinite","arr(address,address,uint256,uint256,uint256)":"infinite","arr(address,uint256)":"infinite","arr(address,uint256,uint256)":"infinite","arr(bytes32)":"infinite","arr(bytes32,bytes32)":"infinite","arr(uint256)":"infinite","arr(uint256,uint256)":"infinite","arr(uint256,uint256,uint256)":"infinite","arr(uint256,uint256,uint256,uint256)":"infinite","arr(uint256,uint256,uint256,uint256,uint256)":"infinite"}},"function_hashes":{},"abi":[]};
let ACLSyntaxSugar = new EmbarkJS.Blockchain.Contract(ACLSyntaxSugarJSONConfig);
export default ACLSyntaxSugar;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let AppStorageJSONConfig = {"contract_name":{"className":"AppStorage","args":[],"code":"6060604052341561000f57600080fd5b60f68061001d6000396000f30060606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166380afdea88114604d578063d4aae0c414606f575b600080fd5b3415605757600080fd5b605d60a8565b60405190815260200160405180910390f35b3415607957600080fd5b607f60ae565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a7230582089361f72a7818fb7a57006952f8ba1911617be41b680b9def915c4895fc46e740029","runtimeBytecode":"60606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166380afdea88114604d578063d4aae0c414606f575b600080fd5b3415605757600080fd5b605d60a8565b60405190815260200160405180910390f35b3415607957600080fd5b607f60ae565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a7230582089361f72a7818fb7a57006952f8ba1911617be41b680b9def915c4895fc46e740029","realRuntimeBytecode":"60606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166380afdea88114604d578063d4aae0c414606f575b600080fd5b3415605757600080fd5b605d60a8565b60405190815260200160405180910390f35b3415607957600080fd5b607f60ae565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820","linkReferences":{},"swarmHash":"89361f72a7818fb7a57006952f8ba1911617be41b680b9def915c4895fc46e74","gasEstimates":{"creation":{"codeDepositCost":"49200","executionCost":"94","totalCost":"49294"},"external":{"appId()":"373","kernel()":"410"}},"functionHashes":{"appId()":"80afdea8","kernel()":"d4aae0c4"},"abiDefinition":[{"constant":true,"inputs":[],"name":"appId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kernel","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/apps/AppStorage.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/apps/AppStorage.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/apps/AppStorage.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"6060604052341561000f57600080fd5b60f68061001d6000396000f30060606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166380afdea88114604d578063d4aae0c414606f575b600080fd5b3415605757600080fd5b605d60a8565b60405190815260200160405180910390f35b3415607957600080fd5b607f60ae565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a7230582089361f72a7818fb7a57006952f8ba1911617be41b680b9def915c4895fc46e740029","runtime_bytecode":"60606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166380afdea88114604d578063d4aae0c414606f575b600080fd5b3415605757600080fd5b605d60a8565b60405190815260200160405180910390f35b3415607957600080fd5b607f60ae565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a7230582089361f72a7818fb7a57006952f8ba1911617be41b680b9def915c4895fc46e740029","real_runtime_bytecode":"60606040526004361060485763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166380afdea88114604d578063d4aae0c414606f575b600080fd5b3415605757600080fd5b605d60a8565b60405190815260200160405180910390f35b3415607957600080fd5b607f60ae565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820","swarm_hash":"89361f72a7818fb7a57006952f8ba1911617be41b680b9def915c4895fc46e74","gas_estimates":{"creation":{"codeDepositCost":"49200","executionCost":"94","totalCost":"49294"},"external":{"appId()":"373","kernel()":"410"}},"function_hashes":{"appId()":"80afdea8","kernel()":"d4aae0c4"},"abi":[{"constant":true,"inputs":[],"name":"appId","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"kernel","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]};
let AppStorage = new EmbarkJS.Blockchain.Contract(AppStorageJSONConfig);
export default AppStorage;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
abi/contracts/DAI.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let DelegateProxyJSONConfig = {"contract_name":{"className":"DelegateProxy","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"FORWARDING()":"2b2584f6","FWD_GAS_LIMIT()":"0ceafa2a","UPGRADEABLE()":"7e84a4ff","implementation()":"5c60da1b","proxyType()":"4555d5c9"},"abiDefinition":[{"constant":true,"inputs":[],"name":"FWD_GAS_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FORWARDING","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"codeAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADEABLE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/DelegateProxy.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/DelegateProxy.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/common/DelegateProxy.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"FORWARDING()":"2b2584f6","FWD_GAS_LIMIT()":"0ceafa2a","UPGRADEABLE()":"7e84a4ff","implementation()":"5c60da1b","proxyType()":"4555d5c9"},"abi":[{"constant":true,"inputs":[],"name":"FWD_GAS_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FORWARDING","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"codeAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADEABLE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]};
let DelegateProxy = new EmbarkJS.Blockchain.Contract(DelegateProxyJSONConfig);
export default DelegateProxy;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let DelegateScriptTargetJSONConfig = {"contract_name":{"className":"DelegateScriptTarget","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"exec()":"c1c0e9c4"},"abiDefinition":[{"constant":false,"inputs":[],"name":"exec","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/evmscript/executors/DelegateScript.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/evmscript/executors/DelegateScript.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/evmscript/executors/DelegateScript.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"exec()":"c1c0e9c4"},"abi":[{"constant":false,"inputs":[],"name":"exec","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let DelegateScriptTarget = new EmbarkJS.Blockchain.Contract(DelegateScriptTargetJSONConfig);
export default DelegateScriptTarget;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let DepositableDelegateProxyJSONConfig = {"contract_name":{"className":"DepositableDelegateProxy","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"FORWARDING()":"2b2584f6","FWD_GAS_LIMIT()":"0ceafa2a","UPGRADEABLE()":"7e84a4ff","implementation()":"5c60da1b","proxyType()":"4555d5c9"},"abiDefinition":[{"constant":true,"inputs":[],"name":"FWD_GAS_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FORWARDING","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"codeAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADEABLE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"ProxyDeposit","type":"event"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/DepositableDelegateProxy.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/DepositableDelegateProxy.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/common/DepositableDelegateProxy.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"FORWARDING()":"2b2584f6","FWD_GAS_LIMIT()":"0ceafa2a","UPGRADEABLE()":"7e84a4ff","implementation()":"5c60da1b","proxyType()":"4555d5c9"},"abi":[{"constant":true,"inputs":[],"name":"FWD_GAS_LIMIT","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"FORWARDING","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"codeAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADEABLE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"ProxyDeposit","type":"event"}]};
let DepositableDelegateProxy = new EmbarkJS.Blockchain.Contract(DepositableDelegateProxyJSONConfig);
export default DepositableDelegateProxy;

4
abi/contracts/ERC20.js Normal file
View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ERC20JSONConfig = {"contract_name":{"className":"ERC20","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"allowance(address,address)":"dd62ed3e","approve(address,uint256)":"095ea7b3","balanceOf(address)":"70a08231","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd"},"abiDefinition":[{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/lib/zeppelin/token/ERC20.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/lib/zeppelin/token/ERC20.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/lib/zeppelin/token/ERC20.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"allowance(address,address)":"dd62ed3e","approve(address,uint256)":"095ea7b3","balanceOf(address)":"70a08231","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb","transferFrom(address,address,uint256)":"23b872dd"},"abi":[{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]};
let ERC20 = new EmbarkJS.Blockchain.Contract(ERC20JSONConfig);
export default ERC20;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ERC20BasicJSONConfig = {"contract_name":{"className":"ERC20Basic","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"balanceOf(address)":"70a08231","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb"},"abiDefinition":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/lib/zeppelin/token/ERC20Basic.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/lib/zeppelin/token/ERC20Basic.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/lib/zeppelin/token/ERC20Basic.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"balanceOf(address)":"70a08231","totalSupply()":"18160ddd","transfer(address,uint256)":"a9059cbb"},"abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]};
let ERC20Basic = new EmbarkJS.Blockchain.Contract(ERC20BasicJSONConfig);
export default ERC20Basic;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ERCProxyJSONConfig = {"contract_name":{"className":"ERCProxy","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"FORWARDING()":"2b2584f6","UPGRADEABLE()":"7e84a4ff","implementation()":"5c60da1b","proxyType()":"4555d5c9"},"abiDefinition":[{"constant":true,"inputs":[],"name":"FORWARDING","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"codeAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADEABLE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/lib/misc/ERCProxy.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/lib/misc/ERCProxy.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/lib/misc/ERCProxy.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"FORWARDING()":"2b2584f6","UPGRADEABLE()":"7e84a4ff","implementation()":"5c60da1b","proxyType()":"4555d5c9"},"abi":[{"constant":true,"inputs":[],"name":"FORWARDING","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"proxyType","outputs":[{"name":"proxyTypeId","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"name":"codeAddr","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"UPGRADEABLE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]};
let ERCProxy = new EmbarkJS.Blockchain.Contract(ERCProxyJSONConfig);
export default ERCProxy;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let EtherTokenConstantJSONConfig = {"contract_name":{"className":"EtherTokenConstant","args":[],"code":"6060604052341561000f57600080fd5b60ad8061001d6000396000f300606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638322fff281146043575b600080fd5b3415604d57600080fd5b6053607c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000815600a165627a7a723058200c1443827bf8f62129cf8fdc21fc6728cee6041cc444722bb0cf96cd8f2509cb0029","runtimeBytecode":"606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638322fff281146043575b600080fd5b3415604d57600080fd5b6053607c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000815600a165627a7a723058200c1443827bf8f62129cf8fdc21fc6728cee6041cc444722bb0cf96cd8f2509cb0029","realRuntimeBytecode":"606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638322fff281146043575b600080fd5b3415604d57600080fd5b6053607c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000815600a165627a7a72305820","linkReferences":{},"swarmHash":"0c1443827bf8f62129cf8fdc21fc6728cee6041cc444722bb0cf96cd8f2509cb","gasEstimates":{"creation":{"codeDepositCost":"34600","executionCost":"82","totalCost":"34682"},"external":{"ETH()":"182"}},"functionHashes":{"ETH()":"8322fff2"},"abiDefinition":[{"constant":true,"inputs":[],"name":"ETH","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/EtherTokenConstant.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/EtherTokenConstant.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/common/EtherTokenConstant.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"6060604052341561000f57600080fd5b60ad8061001d6000396000f300606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638322fff281146043575b600080fd5b3415604d57600080fd5b6053607c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000815600a165627a7a723058200c1443827bf8f62129cf8fdc21fc6728cee6041cc444722bb0cf96cd8f2509cb0029","runtime_bytecode":"606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638322fff281146043575b600080fd5b3415604d57600080fd5b6053607c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000815600a165627a7a723058200c1443827bf8f62129cf8fdc21fc6728cee6041cc444722bb0cf96cd8f2509cb0029","real_runtime_bytecode":"606060405260043610603e5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416638322fff281146043575b600080fd5b3415604d57600080fd5b6053607c565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6000815600a165627a7a72305820","swarm_hash":"0c1443827bf8f62129cf8fdc21fc6728cee6041cc444722bb0cf96cd8f2509cb","gas_estimates":{"creation":{"codeDepositCost":"34600","executionCost":"82","totalCost":"34682"},"external":{"ETH()":"182"}},"function_hashes":{"ETH()":"8322fff2"},"abi":[{"constant":true,"inputs":[],"name":"ETH","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]};
let EtherTokenConstant = new EmbarkJS.Blockchain.Contract(EtherTokenConstantJSONConfig);
export default EtherTokenConstant;

4
abi/contracts/IACL.js Normal file
View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let IACLJSONConfig = {"contract_name":{"className":"IACL","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"hasPermission(address,address,bytes32,bytes)":"fdef9106","initialize(address)":"c4d66de8"},"abiDefinition":[{"constant":false,"inputs":[{"name":"permissionsCreator","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"},{"name":"where","type":"address"},{"name":"what","type":"bytes32"},{"name":"how","type":"bytes"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/IACL.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/acl/IACL.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/acl/IACL.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"hasPermission(address,address,bytes32,bytes)":"fdef9106","initialize(address)":"c4d66de8"},"abi":[{"constant":false,"inputs":[{"name":"permissionsCreator","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"},{"name":"where","type":"address"},{"name":"what","type":"bytes32"},{"name":"how","type":"bytes"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]};
let IACL = new EmbarkJS.Blockchain.Contract(IACLJSONConfig);
export default IACL;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let IEVMScriptExecutorJSONConfig = {"contract_name":{"className":"IEVMScriptExecutor","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"execScript(bytes,bytes,address[])":"279cea35"},"abiDefinition":[{"constant":false,"inputs":[{"name":"script","type":"bytes"},{"name":"input","type":"bytes"},{"name":"blacklist","type":"address[]"}],"name":"execScript","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/evmscript/IEVMScriptExecutor.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"execScript(bytes,bytes,address[])":"279cea35"},"abi":[{"constant":false,"inputs":[{"name":"script","type":"bytes"},{"name":"input","type":"bytes"},{"name":"blacklist","type":"address[]"}],"name":"execScript","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let IEVMScriptExecutor = new EmbarkJS.Blockchain.Contract(IEVMScriptExecutorJSONConfig);
export default IEVMScriptExecutor;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let IEVMScriptRegistryJSONConfig = {"contract_name":{"className":"IEVMScriptRegistry","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"addScriptExecutor(address)":"87a16f12","disableScriptExecutor(uint256)":"5ca4d4bb","getScriptExecutor(bytes)":"04bf2a7f"},"abiDefinition":[{"constant":true,"inputs":[{"name":"script","type":"bytes"}],"name":"getScriptExecutor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"executorId","type":"uint256"}],"name":"disableScriptExecutor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"executor","type":"address"}],"name":"addScriptExecutor","outputs":[{"name":"id","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/evmscript/IEVMScriptRegistry.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"addScriptExecutor(address)":"87a16f12","disableScriptExecutor(uint256)":"5ca4d4bb","getScriptExecutor(bytes)":"04bf2a7f"},"abi":[{"constant":true,"inputs":[{"name":"script","type":"bytes"}],"name":"getScriptExecutor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"executorId","type":"uint256"}],"name":"disableScriptExecutor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"executor","type":"address"}],"name":"addScriptExecutor","outputs":[{"name":"id","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let IEVMScriptRegistry = new EmbarkJS.Blockchain.Contract(IEVMScriptRegistryJSONConfig);
export default IEVMScriptRegistry;

4
abi/contracts/IKernel.js Normal file
View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let IKernelJSONConfig = {"contract_name":{"className":"IKernel","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"acl()":"de287359","allowRecoverability(address)":"7e7db6e1","getApp(bytes32)":"42c71f1d","getRecoveryVault()":"32f0a3b5","hasPermission(address,address,bytes32,bytes)":"fdef9106","setApp(bytes32,bytes32,address)":"ae5b2540","transferToVault(address)":"9d4941d8"},"abiDefinition":[{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getApp","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"namespace","type":"bytes32"},{"name":"name","type":"bytes32"},{"name":"app","type":"address"}],"name":"setApp","outputs":[{"name":"id","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"acl","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"},{"name":"where","type":"address"},{"name":"what","type":"bytes32"},{"name":"how","type":"bytes"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"namespace","type":"bytes32"},{"indexed":true,"name":"name","type":"bytes32"},{"indexed":true,"name":"id","type":"bytes32"},{"indexed":false,"name":"app","type":"address"}],"name":"SetApp","type":"event"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/kernel/IKernel.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/kernel/IKernel.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/kernel/IKernel.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"acl()":"de287359","allowRecoverability(address)":"7e7db6e1","getApp(bytes32)":"42c71f1d","getRecoveryVault()":"32f0a3b5","hasPermission(address,address,bytes32,bytes)":"fdef9106","setApp(bytes32,bytes32,address)":"ae5b2540","transferToVault(address)":"9d4941d8"},"abi":[{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getApp","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"namespace","type":"bytes32"},{"name":"name","type":"bytes32"},{"name":"app","type":"address"}],"name":"setApp","outputs":[{"name":"id","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"acl","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"},{"name":"where","type":"address"},{"name":"what","type":"bytes32"},{"name":"how","type":"bytes"}],"name":"hasPermission","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"namespace","type":"bytes32"},{"indexed":true,"name":"name","type":"bytes32"},{"indexed":true,"name":"id","type":"bytes32"},{"indexed":false,"name":"app","type":"address"}],"name":"SetApp","type":"event"}]};
let IKernel = new EmbarkJS.Blockchain.Contract(IKernelJSONConfig);
export default IKernel;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ILPVaultJSONConfig = {"contract_name":{"className":"ILPVault","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"authorizePayment(bytes32,address,address,uint256)":"a5426df1"},"abiDefinition":[{"constant":false,"inputs":[{"name":"_ref","type":"bytes32"},{"name":"_dest","type":"address"},{"name":"_token","type":"address"},{"name":"_amount","type":"uint256"}],"name":"authorizePayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/contracts/LiquidPledgingStorage.sol","originalFilename":"contracts/LiquidPledgingStorage.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/LiquidPledgingStorage.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"authorizePayment(bytes32,address,address,uint256)":"a5426df1"},"abi":[{"constant":false,"inputs":[{"name":"_ref","type":"bytes32"},{"name":"_dest","type":"address"},{"name":"_token","type":"address"},{"name":"_amount","type":"uint256"}],"name":"authorizePayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let ILPVault = new EmbarkJS.Blockchain.Contract(ILPVaultJSONConfig);
export default ILPVault;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ILiquidPledgingJSONConfig = {"contract_name":{"className":"ILiquidPledging","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"cancelPayment(uint64,uint256)":"e9c211e2","confirmPayment(uint64,uint256)":"2ee88808"},"abiDefinition":[{"constant":false,"inputs":[{"name":"idPledge","type":"uint64"},{"name":"amount","type":"uint256"}],"name":"confirmPayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"idPledge","type":"uint64"},{"name":"amount","type":"uint256"}],"name":"cancelPayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/contracts/LPVault.sol","originalFilename":"contracts/LPVault.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/LPVault.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"cancelPayment(uint64,uint256)":"e9c211e2","confirmPayment(uint64,uint256)":"2ee88808"},"abi":[{"constant":false,"inputs":[{"name":"idPledge","type":"uint64"},{"name":"amount","type":"uint256"}],"name":"confirmPayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"idPledge","type":"uint64"},{"name":"amount","type":"uint256"}],"name":"cancelPayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let ILiquidPledging = new EmbarkJS.Blockchain.Contract(ILiquidPledgingJSONConfig);
export default ILiquidPledging;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let ILiquidPledgingPluginJSONConfig = {"contract_name":{"className":"ILiquidPledgingPlugin","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"afterTransfer(uint64,uint64,uint64,uint64,address,uint256)":"0da5e18c","beforeTransfer(uint64,uint64,uint64,uint64,address,uint256)":"31c51a00"},"abiDefinition":[{"constant":false,"inputs":[{"name":"pledgeManager","type":"uint64"},{"name":"pledgeFrom","type":"uint64"},{"name":"pledgeTo","type":"uint64"},{"name":"context","type":"uint64"},{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"afterTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"pledgeManager","type":"uint64"},{"name":"pledgeFrom","type":"uint64"},{"name":"pledgeTo","type":"uint64"},{"name":"context","type":"uint64"},{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"beforeTransfer","outputs":[{"name":"maxAllowed","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/contracts/ILiquidPledgingPlugin.sol","originalFilename":"contracts/ILiquidPledgingPlugin.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/ILiquidPledgingPlugin.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"afterTransfer(uint64,uint64,uint64,uint64,address,uint256)":"0da5e18c","beforeTransfer(uint64,uint64,uint64,uint64,address,uint256)":"31c51a00"},"abi":[{"constant":false,"inputs":[{"name":"pledgeManager","type":"uint64"},{"name":"pledgeFrom","type":"uint64"},{"name":"pledgeTo","type":"uint64"},{"name":"context","type":"uint64"},{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"afterTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"pledgeManager","type":"uint64"},{"name":"pledgeFrom","type":"uint64"},{"name":"pledgeTo","type":"uint64"},{"name":"context","type":"uint64"},{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"beforeTransfer","outputs":[{"name":"maxAllowed","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let ILiquidPledgingPlugin = new EmbarkJS.Blockchain.Contract(ILiquidPledgingPluginJSONConfig);
export default ILiquidPledgingPlugin;

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let IVaultRecoverableJSONConfig = {"contract_name":{"className":"IVaultRecoverable","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"allowRecoverability(address)":"7e7db6e1","getRecoveryVault()":"32f0a3b5","transferToVault(address)":"9d4941d8"},"abiDefinition":[{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/IVaultRecoverable.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/IVaultRecoverable.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/common/IVaultRecoverable.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"allowRecoverability(address)":"7e7db6e1","getRecoveryVault()":"32f0a3b5","transferToVault(address)":"9d4941d8"},"abi":[{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let IVaultRecoverable = new EmbarkJS.Blockchain.Contract(IVaultRecoverableJSONConfig);
export default IVaultRecoverable;

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let IsContractJSONConfig = {"contract_name":{"className":"IsContract","args":[],"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a7230582042d22c9a2a1e0bc4cf554fcf77c69c5f4ebf54e8872e0ae884d45ca1ed98682b0029","runtimeBytecode":"6060604052600080fd00a165627a7a7230582042d22c9a2a1e0bc4cf554fcf77c69c5f4ebf54e8872e0ae884d45ca1ed98682b0029","realRuntimeBytecode":"6060604052600080fd00a165627a7a72305820","linkReferences":{},"swarmHash":"42d22c9a2a1e0bc4cf554fcf77c69c5f4ebf54e8872e0ae884d45ca1ed98682b","gasEstimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"isContract(address)":"infinite"}},"functionHashes":{},"abiDefinition":[],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/IsContract.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/IsContract.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/common/IsContract.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a7230582042d22c9a2a1e0bc4cf554fcf77c69c5f4ebf54e8872e0ae884d45ca1ed98682b0029","runtime_bytecode":"6060604052600080fd00a165627a7a7230582042d22c9a2a1e0bc4cf554fcf77c69c5f4ebf54e8872e0ae884d45ca1ed98682b0029","real_runtime_bytecode":"6060604052600080fd00a165627a7a72305820","swarm_hash":"42d22c9a2a1e0bc4cf554fcf77c69c5f4ebf54e8872e0ae884d45ca1ed98682b","gas_estimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"isContract(address)":"infinite"}},"function_hashes":{},"abi":[]};
let IsContract = new EmbarkJS.Blockchain.Contract(IsContractJSONConfig);
export default IsContract;

4
abi/contracts/Kernel.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
abi/contracts/LPVault.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let LiquidPledgingACLHelpersJSONConfig = {"contract_name":{"className":"LiquidPledgingACLHelpers","args":[],"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a723058200d230317887c7be4c73606ff816ab32fd8bc2f4b60898c2c831e339349ebe8700029","runtimeBytecode":"6060604052600080fd00a165627a7a723058200d230317887c7be4c73606ff816ab32fd8bc2f4b60898c2c831e339349ebe8700029","realRuntimeBytecode":"6060604052600080fd00a165627a7a72305820","linkReferences":{},"swarmHash":"0d230317887c7be4c73606ff816ab32fd8bc2f4b60898c2c831e339349ebe870","gasEstimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"arr(bool)":"infinite","arr(uint64,uint64,address,uint256,address)":"infinite"}},"functionHashes":{},"abiDefinition":[],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/contracts/LiquidPledgingACLHelpers.sol","originalFilename":"contracts/LiquidPledgingACLHelpers.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/LiquidPledgingACLHelpers.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a723058200d230317887c7be4c73606ff816ab32fd8bc2f4b60898c2c831e339349ebe8700029","runtime_bytecode":"6060604052600080fd00a165627a7a723058200d230317887c7be4c73606ff816ab32fd8bc2f4b60898c2c831e339349ebe8700029","real_runtime_bytecode":"6060604052600080fd00a165627a7a72305820","swarm_hash":"0d230317887c7be4c73606ff816ab32fd8bc2f4b60898c2c831e339349ebe870","gas_estimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"},"internal":{"arr(bool)":"infinite","arr(uint64,uint64,address,uint256,address)":"infinite"}},"function_hashes":{},"abi":[]};
let LiquidPledgingACLHelpers = new EmbarkJS.Blockchain.Contract(LiquidPledgingACLHelpersJSONConfig);
export default LiquidPledgingACLHelpers;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let LiquidPledgingStorageJSONConfig = {"contract_name":{"className":"LiquidPledgingStorage","args":[],"code":"60606040526005805460ff19169055341561001957600080fd5b610100806100286000396000f30060606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c8e85688114604d578063fbfa77cf146071575b600080fd5b3415605757600080fd5b605d60aa565b604051901515815260200160405180910390f35b3415607b57600080fd5b608160b3565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60055460ff1681565b600554610100900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820ced560428a0cee10c77194aa64b67077250a4e9e7d9948c504b5d9af3b2f73750029","runtimeBytecode":"60606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c8e85688114604d578063fbfa77cf146071575b600080fd5b3415605757600080fd5b605d60aa565b604051901515815260200160405180910390f35b3415607b57600080fd5b608160b3565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60055460ff1681565b600554610100900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820ced560428a0cee10c77194aa64b67077250a4e9e7d9948c504b5d9af3b2f73750029","realRuntimeBytecode":"60606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c8e85688114604d578063fbfa77cf146071575b600080fd5b3415605757600080fd5b605d60aa565b604051901515815260200160405180910390f35b3415607b57600080fd5b608160b3565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60055460ff1681565b600554610100900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820","linkReferences":{},"swarmHash":"ced560428a0cee10c77194aa64b67077250a4e9e7d9948c504b5d9af3b2f7375","gasEstimates":{"creation":{"codeDepositCost":"51200","executionCost":"20312","totalCost":"71512"},"external":{"vault()":"421","whitelistDisabled()":"385"}},"functionHashes":{"vault()":"fbfa77cf","whitelistDisabled()":"1c8e8568"},"abiDefinition":[{"constant":true,"inputs":[],"name":"whitelistDisabled","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/contracts/LiquidPledgingStorage.sol","originalFilename":"contracts/LiquidPledgingStorage.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/LiquidPledgingStorage.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"60606040526005805460ff19169055341561001957600080fd5b610100806100286000396000f30060606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c8e85688114604d578063fbfa77cf146071575b600080fd5b3415605757600080fd5b605d60aa565b604051901515815260200160405180910390f35b3415607b57600080fd5b608160b3565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60055460ff1681565b600554610100900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820ced560428a0cee10c77194aa64b67077250a4e9e7d9948c504b5d9af3b2f73750029","runtime_bytecode":"60606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c8e85688114604d578063fbfa77cf146071575b600080fd5b3415605757600080fd5b605d60aa565b604051901515815260200160405180910390f35b3415607b57600080fd5b608160b3565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60055460ff1681565b600554610100900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820ced560428a0cee10c77194aa64b67077250a4e9e7d9948c504b5d9af3b2f73750029","real_runtime_bytecode":"60606040526004361060485763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c8e85688114604d578063fbfa77cf146071575b600080fd5b3415605757600080fd5b605d60aa565b604051901515815260200160405180910390f35b3415607b57600080fd5b608160b3565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b60055460ff1681565b600554610100900473ffffffffffffffffffffffffffffffffffffffff16815600a165627a7a72305820","swarm_hash":"ced560428a0cee10c77194aa64b67077250a4e9e7d9948c504b5d9af3b2f7375","gas_estimates":{"creation":{"codeDepositCost":"51200","executionCost":"20312","totalCost":"71512"},"external":{"vault()":"421","whitelistDisabled()":"385"}},"function_hashes":{"vault()":"fbfa77cf","whitelistDisabled()":"1c8e8568"},"abi":[{"constant":true,"inputs":[],"name":"whitelistDisabled","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]};
let LiquidPledgingStorage = new EmbarkJS.Blockchain.Contract(LiquidPledgingStorageJSONConfig);
export default LiquidPledgingStorage;

File diff suppressed because one or more lines are too long

4
abi/contracts/Pledges.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let RecoveryVaultJSONConfig = {"contract_name":{"className":"RecoveryVault","args":[],"code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a72305820125ee52fe8e83b1d00614872f7665e9529d71c92525b9809cdd1e71fadc5085a0029","runtimeBytecode":"6060604052600080fd00a165627a7a72305820125ee52fe8e83b1d00614872f7665e9529d71c92525b9809cdd1e71fadc5085a0029","realRuntimeBytecode":"6060604052600080fd00a165627a7a72305820","linkReferences":{},"swarmHash":"125ee52fe8e83b1d00614872f7665e9529d71c92525b9809cdd1e71fadc5085a","gasEstimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"}},"functionHashes":{},"abiDefinition":[],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/contracts/test/RecoveryVault.sol","originalFilename":"contracts/test/RecoveryVault.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/test/RecoveryVault.sol","gas":"auto","type":"file","deploy":true,"_gasLimit":6000000,"error":false,"deploymentAccount":"0x1179823e34aBF984C52fC0CdD7b7b9F5dd394aB9","realArgs":[],"address":"0x835c1ab7CB9f0545164D7fE9827C5e43E3476809","deployedAddress":"0x835c1ab7CB9f0545164D7fE9827C5e43E3476809"},"address":"0x835c1ab7CB9f0545164D7fE9827C5e43E3476809","code":"60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a72305820125ee52fe8e83b1d00614872f7665e9529d71c92525b9809cdd1e71fadc5085a0029","runtime_bytecode":"6060604052600080fd00a165627a7a72305820125ee52fe8e83b1d00614872f7665e9529d71c92525b9809cdd1e71fadc5085a0029","real_runtime_bytecode":"6060604052600080fd00a165627a7a72305820","swarm_hash":"125ee52fe8e83b1d00614872f7665e9529d71c92525b9809cdd1e71fadc5085a","gas_estimates":{"creation":{"codeDepositCost":"10600","executionCost":"61","totalCost":"10661"}},"function_hashes":{},"abi":[]};
let RecoveryVault = new EmbarkJS.Blockchain.Contract(RecoveryVaultJSONConfig);
export default RecoveryVault;

4
abi/contracts/SNT.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,4 @@
import EmbarkJS from '../embarkjs';
let VaultRecoverableJSONConfig = {"contract_name":{"className":"VaultRecoverable","args":[],"code":"","runtimeBytecode":"","realRuntimeBytecode":"","linkReferences":{},"swarmHash":"","gasEstimates":null,"functionHashes":{"ETH()":"8322fff2","allowRecoverability(address)":"7e7db6e1","getRecoveryVault()":"32f0a3b5","transferToVault(address)":"9d4941d8"},"abiDefinition":[{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ETH","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"filename":"/Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/VaultRecoverable.sol","originalFilename":"contracts//Users/Barry/projects/status-im/liquid-funding/.embark/node_modules/@aragon/os/contracts/common/VaultRecoverable.sol","path":"/Users/Barry/projects/status-im/liquid-funding/contracts/.embark/node_modules/@aragon/os/contracts/common/VaultRecoverable.sol","gas":"auto","type":"file","deploy":false,"_gasLimit":6000000,"error":false},"code":"","runtime_bytecode":"","real_runtime_bytecode":"","swarm_hash":"","gas_estimates":null,"function_hashes":{"ETH()":"8322fff2","allowRecoverability(address)":"7e7db6e1","getRecoveryVault()":"32f0a3b5","transferToVault(address)":"9d4941d8"},"abi":[{"constant":true,"inputs":[],"name":"getRecoveryVault","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"}],"name":"allowRecoverability","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ETH","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"transferToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]};
let VaultRecoverable = new EmbarkJS.Blockchain.Contract(VaultRecoverableJSONConfig);
export default VaultRecoverable;

4
abi/contracts/cDAI.js Normal file

File diff suppressed because one or more lines are too long

4
abi/contracts/cETH.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,22 @@
var fs = require('fs');
function removeLine(textblock){
// break the textblock into an array of lines
var lines = textblock.split('\n');
// remove one line, starting at the first position
lines.splice(0,1);
// join the array back into a single string
var newtext = lines.join('\n');
return newtext
}
function printFirstLine(block){
var lines = block.split('\n');
console.log(lines[0])
}
fs.readFile('./LiquidPledging.json', 'utf8', function(err, contents) {
//let cleansed = removeLine(contents)
let parsed = JSON.parse(contents)
console.log(parsed)
});

62
abi/contracts/index.js Normal file
View File

@ -0,0 +1,62 @@
module.exports = {
"ERC20Basic": require('./ERC20Basic').default,
"RecoveryVault": require('./RecoveryVault').default,
"ERC20": require('./ERC20').default,
"ILiquidPledging": require('./ILiquidPledging').default,
"ILiquidPledgingPlugin": require('./ILiquidPledgingPlugin').default,
"LiquidPledgingStorage": require('./LiquidPledgingStorage').default,
"ACLOracle": require('./ACLOracle').default,
"LiquidPledgingACLHelpers": require('./LiquidPledgingACLHelpers').default,
"ACLHelpers": require('./ACLHelpers').default,
"AppProxyBase": require('./AppProxyBase').default,
"IACL": require('./IACL').default,
"ACLSyntaxSugar": require('./ACLSyntaxSugar').default,
"AppStorage": require('./AppStorage').default,
"ILPVault": require('./ILPVault').default,
"ERCProxy": require('./ERCProxy').default,
"DelegateProxy": require('./DelegateProxy').default,
"EtherTokenConstant": require('./EtherTokenConstant').default,
"Initializable": require('./Initializable').default,
"DepositableDelegateProxy": require('./DepositableDelegateProxy').default,
"IEVMScriptExecutor": require('./IEVMScriptExecutor').default,
"IVaultRecoverable": require('./IVaultRecoverable').default,
"EVMScriptRegistryConstants": require('./EVMScriptRegistryConstants').default,
"IsContract": require('./IsContract').default,
"VaultRecoverable": require('./VaultRecoverable').default,
"IKernel": require('./IKernel').default,
"IEVMScriptRegistry": require('./IEVMScriptRegistry').default,
"DelegateScriptTarget": require('./DelegateScriptTarget').default,
"LPConstants": require('./LPConstants').default,
"TestSimpleDelegatePluginFactory": require('./TestSimpleDelegatePluginFactory').default,
"EVMScriptRunner": require('./EVMScriptRunner').default,
"ScriptHelpers": require('./ScriptHelpers').default,
"CallsScript": require('./CallsScript').default,
"DelegateScript": require('./DelegateScript').default,
"DeployDelegateScript": require('./DeployDelegateScript').default,
"KernelConstants": require('./KernelConstants').default,
"KernelStorage": require('./KernelStorage').default,
"TestSimpleDelegatePlugin": require('./TestSimpleDelegatePlugin').default,
"TestSimpleProjectPlugin": require('./TestSimpleProjectPlugin').default,
"AppProxyUpgradeable": require('./AppProxyUpgradeable').default,
"SNT": require('./SNT').default,
"StandardToken": require('./StandardToken').default,
"AppProxyPinned": require('./AppProxyPinned').default,
"TestSimpleProjectPluginFactory": require('./TestSimpleProjectPluginFactory').default,
"AragonApp": require('./AragonApp').default,
"KernelProxy": require('./KernelProxy').default,
"Pledges": require('./Pledges').default,
"LiquidPledgingPlugins": require('./LiquidPledgingPlugins').default,
"EVMScriptRegistry": require('./EVMScriptRegistry').default,
"DAOFactory": require('./DAOFactory').default,
"AppProxyFactory": require('./AppProxyFactory').default,
"LPVault": require('./LPVault').default,
"ACL": require('./ACL').default,
"EVMScriptRegistryFactory": require('./EVMScriptRegistryFactory').default,
"PledgeAdmins": require('./PledgeAdmins').default,
"Kernel": require('./Kernel').default,
"LPFactory": require('./LPFactory').default,
"LiquidPledgingBase": require('./LiquidPledgingBase').default,
"LiquidPledging": require('./LiquidPledging').default,
"LiquidPledgingMock": require('./LiquidPledgingMock').default,
};

100
abi/embarkjs.js Normal file
View File

@ -0,0 +1,100 @@
/* eslint-disable */
const EmbarkJS = require("/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/modules/embarkjs").default || require("/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/modules/embarkjs");
global.EmbarkJS = EmbarkJS;
const Web3 = global.__Web3 || require('/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/modules/web3');
global.Web3 = Web3;/*global Web3*/
const embarkJSConnectorWeb3 = {};
embarkJSConnectorWeb3.init = function(config) {
global.web3 = config.web3 || global.web3;
// Check if the global web3 object uses the old web3 (0.x)
if (global.web3 && typeof global.web3.version !== 'string') {
// If so, use a new instance using 1.0, but use its provider
this.web3 = new Web3(global.web3.currentProvider);
} else {
this.web3 = global.web3 || new Web3();
}
global.web3 = this.web3;
};
embarkJSConnectorWeb3.getInstance = function () {
return this.web3;
};
embarkJSConnectorWeb3.getAccounts = function () {
return this.web3.eth.getAccounts(...arguments);
};
embarkJSConnectorWeb3.getNewProvider = function (providerName, ...args) {
return new Web3.providers[providerName](...args);
};
embarkJSConnectorWeb3.setProvider = function (provider) {
return this.web3.setProvider(provider);
};
embarkJSConnectorWeb3.getCurrentProvider = function () {
return this.web3.currentProvider;
};
embarkJSConnectorWeb3.getDefaultAccount = function () {
return this.web3.eth.defaultAccount;
};
embarkJSConnectorWeb3.setDefaultAccount = function (account) {
this.web3.eth.defaultAccount = account;
};
embarkJSConnectorWeb3.newContract = function (options) {
return new this.web3.eth.Contract(options.abi, options.address);
};
embarkJSConnectorWeb3.send = function () {
return this.web3.eth.sendTransaction(...arguments);
};
embarkJSConnectorWeb3.toWei = function () {
return this.web3.toWei(...arguments);
};
embarkJSConnectorWeb3.getNetworkId = function () {
return this.web3.eth.net.getId();
};
EmbarkJS.Blockchain.registerProvider('web3', embarkJSConnectorWeb3);
EmbarkJS.Blockchain.setProvider('web3', {});
if (!global.__Web3) {
const web3ConnectionConfig = require('/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/config/blockchain.json');
EmbarkJS.Blockchain.connect(web3ConnectionConfig, (err) => {if (err) { console.error(err); } });
}
var whenEnvIsLoaded = function(cb) {
if (typeof document !== 'undefined' && document !== null && !/comp|inter|loaded/.test(document.readyState)) {
document.addEventListener('DOMContentLoaded', cb);
} else {
cb();
}
}
var whenEnvIsLoaded = function(cb) {
if (typeof document !== 'undefined' && document !== null && !/comp|inter|loaded/.test(document.readyState)) {
document.addEventListener('DOMContentLoaded', cb);
} else {
cb();
}
}
var whenEnvIsLoaded = function(cb) {
if (typeof document !== 'undefined' && document !== null && !/comp|inter|loaded/.test(document.readyState)) {
document.addEventListener('DOMContentLoaded', cb);
} else {
cb();
}
}
export default EmbarkJS;
if (typeof module !== 'undefined' && module.exports) {
module.exports = EmbarkJS;
}
/* eslint-enable */

120
abi/embarkjs.node.js Normal file
View File

@ -0,0 +1,120 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/* eslint-disable */
const EmbarkJS = require("/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/modules/embarkjs").default || require("/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/modules/embarkjs");
global.EmbarkJS = EmbarkJS;
const Web3 = global.__Web3 || require('/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/modules/web3');
global.Web3 = Web3;
/*global Web3*/
const embarkJSConnectorWeb3 = {};
embarkJSConnectorWeb3.init = function (config) {
global.web3 = config.web3 || global.web3; // Check if the global web3 object uses the old web3 (0.x)
if (global.web3 && typeof global.web3.version !== 'string') {
// If so, use a new instance using 1.0, but use its provider
this.web3 = new Web3(global.web3.currentProvider);
} else {
this.web3 = global.web3 || new Web3();
}
global.web3 = this.web3;
};
embarkJSConnectorWeb3.getInstance = function () {
return this.web3;
};
embarkJSConnectorWeb3.getAccounts = function () {
return this.web3.eth.getAccounts(...arguments);
};
embarkJSConnectorWeb3.getNewProvider = function (providerName, ...args) {
return new Web3.providers[providerName](...args);
};
embarkJSConnectorWeb3.setProvider = function (provider) {
return this.web3.setProvider(provider);
};
embarkJSConnectorWeb3.getCurrentProvider = function () {
return this.web3.currentProvider;
};
embarkJSConnectorWeb3.getDefaultAccount = function () {
return this.web3.eth.defaultAccount;
};
embarkJSConnectorWeb3.setDefaultAccount = function (account) {
this.web3.eth.defaultAccount = account;
};
embarkJSConnectorWeb3.newContract = function (options) {
return new this.web3.eth.Contract(options.abi, options.address);
};
embarkJSConnectorWeb3.send = function () {
return this.web3.eth.sendTransaction(...arguments);
};
embarkJSConnectorWeb3.toWei = function () {
return this.web3.toWei(...arguments);
};
embarkJSConnectorWeb3.getNetworkId = function () {
return this.web3.eth.net.getId();
};
EmbarkJS.Blockchain.registerProvider('web3', embarkJSConnectorWeb3);
EmbarkJS.Blockchain.setProvider('web3', {});
if (!global.__Web3) {
const web3ConnectionConfig = require('/Users/Barry/projects/status-im/liquid-funding/src/embarkArtifacts/config/blockchain.json');
EmbarkJS.Blockchain.connect(web3ConnectionConfig, err => {
if (err) {
console.error(err);
}
});
}
var whenEnvIsLoaded = function (cb) {
if (typeof document !== 'undefined' && document !== null && !/comp|inter|loaded/.test(document.readyState)) {
document.addEventListener('DOMContentLoaded', cb);
} else {
cb();
}
};
var whenEnvIsLoaded = function (cb) {
if (typeof document !== 'undefined' && document !== null && !/comp|inter|loaded/.test(document.readyState)) {
document.addEventListener('DOMContentLoaded', cb);
} else {
cb();
}
};
var whenEnvIsLoaded = function (cb) {
if (typeof document !== 'undefined' && document !== null && !/comp|inter|loaded/.test(document.readyState)) {
document.addEventListener('DOMContentLoaded', cb);
} else {
cb();
}
};
var _default = EmbarkJS;
exports.default = _default;
if (typeof module !== 'undefined' && module.exports) {
module.exports = EmbarkJS;
}
/* eslint-enable */

1
abi/modules/embarkjs Symbolic link
View File

@ -0,0 +1 @@
/Users/Barry/projects/status-im/liquid-funding/node_modules/embarkjs/dist/node

1
abi/modules/web3 Symbolic link
View File

@ -0,0 +1 @@
/Users/Barry/projects/status-im/liquid-funding/node_modules/embark/node_modules/web3/src

686
subgraph/abis/Contract.json Normal file
View File

@ -0,0 +1,686 @@
[
{
"constant": false,
"inputs": [
{ "name": "idReceiver", "type": "uint64" },
{ "name": "donorAddress", "type": "address" },
{ "name": "token", "type": "address" },
{ "name": "amount", "type": "uint256" }
],
"name": "addGiverAndDonate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x007611c6"
},
{
"constant": true,
"inputs": [],
"name": "APP_ADDR_NAMESPACE",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x178e6079"
},
{
"constant": true,
"inputs": [],
"name": "whitelistDisabled",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x1c8e8568"
},
{
"constant": true,
"inputs": [{ "name": "projectId", "type": "uint64" }],
"name": "isProjectCanceled",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x2101a6ad"
},
{
"constant": true,
"inputs": [],
"name": "PLUGIN_MANAGER_ROLE",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x24fea3b0"
},
{
"constant": true,
"inputs": [],
"name": "numberOfPledges",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x2a8ec8cc"
},
{
"constant": false,
"inputs": [
{ "name": "idPledge", "type": "uint64" },
{ "name": "amount", "type": "uint256" }
],
"name": "confirmPayment",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x2ee88808"
},
{
"constant": true,
"inputs": [
{ "name": "idPledge", "type": "uint64" },
{ "name": "idxDelegate", "type": "uint64" }
],
"name": "getPledgeDelegate",
"outputs": [
{ "name": "idDelegate", "type": "uint64" },
{ "name": "addr", "type": "address" },
{ "name": "name", "type": "string" }
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x2f6b64ca"
},
{
"constant": false,
"inputs": [{ "name": "contractHashes", "type": "bytes32[]" }],
"name": "addValidPluginContracts",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x32ce8ebc"
},
{
"constant": true,
"inputs": [],
"name": "getRecoveryVault",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x32f0a3b5"
},
{
"constant": false,
"inputs": [{ "name": "useWhitelist", "type": "bool" }],
"name": "useWhitelist",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x38740291"
},
{
"constant": true,
"inputs": [{ "name": "idPledge", "type": "uint64" }],
"name": "getPledge",
"outputs": [
{ "name": "amount", "type": "uint256" },
{ "name": "owner", "type": "uint64" },
{ "name": "nDelegates", "type": "uint64" },
{ "name": "intendedProject", "type": "uint64" },
{ "name": "commitTime", "type": "uint64" },
{ "name": "oldPledge", "type": "uint64" },
{ "name": "token", "type": "address" },
{ "name": "pledgeState", "type": "uint8" }
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x3f657a46"
},
{
"constant": false,
"inputs": [
{ "name": "idPledge", "type": "uint64" },
{ "name": "amount", "type": "uint256" }
],
"name": "withdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x43387983"
},
{
"constant": false,
"inputs": [
{ "name": "idSender", "type": "uint64" },
{ "name": "idPledge", "type": "uint64" },
{ "name": "amount", "type": "uint256" },
{ "name": "idReceiver", "type": "uint64" }
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x47c5ef43"
},
{
"constant": false,
"inputs": [
{ "name": "idGiver", "type": "uint64" },
{ "name": "idReceiver", "type": "uint64" },
{ "name": "token", "type": "address" },
{ "name": "amount", "type": "uint256" }
],
"name": "donate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x4c4316c7"
},
{
"constant": true,
"inputs": [{ "name": "addr", "type": "address" }],
"name": "isValidPlugin",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x4eafbcd5"
},
{
"constant": false,
"inputs": [{ "name": "idPledge", "type": "uint64" }],
"name": "normalizePledge",
"outputs": [{ "name": "", "type": "uint64" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x50f8a803"
},
{
"constant": false,
"inputs": [
{ "name": "name", "type": "string" },
{ "name": "url", "type": "string" },
{ "name": "commitTime", "type": "uint64" },
{ "name": "plugin", "type": "address" }
],
"name": "addDelegate",
"outputs": [{ "name": "idDelegate", "type": "uint64" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x52dc7dcc"
},
{
"constant": true,
"inputs": [],
"name": "numberOfPledgeAdmins",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x5503d9ba"
},
{
"constant": false,
"inputs": [{ "name": "pledgesAmounts", "type": "uint256[]" }],
"name": "mWithdraw",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x57adafb6"
},
{
"constant": true,
"inputs": [],
"name": "EVMSCRIPT_REGISTRY_APP_ID",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x60b1e057"
},
{
"constant": false,
"inputs": [{ "name": "addr", "type": "address" }],
"name": "removeValidPluginInstance",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x6293c702"
},
{
"constant": false,
"inputs": [
{ "name": "idReceiver", "type": "uint64" },
{ "name": "token", "type": "address" },
{ "name": "amount", "type": "uint256" }
],
"name": "addGiverAndDonate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x6ba3cc87"
},
{
"constant": false,
"inputs": [
{ "name": "addr", "type": "address" },
{ "name": "name", "type": "string" },
{ "name": "url", "type": "string" },
{ "name": "commitTime", "type": "uint64" },
{ "name": "plugin", "type": "address" }
],
"name": "addGiver",
"outputs": [{ "name": "idGiver", "type": "uint64" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x6e802c6a"
},
{
"constant": false,
"inputs": [
{ "name": "name", "type": "string" },
{ "name": "url", "type": "string" },
{ "name": "projectAdmin", "type": "address" },
{ "name": "parentProject", "type": "uint64" },
{ "name": "commitTime", "type": "uint64" },
{ "name": "plugin", "type": "address" }
],
"name": "addProject",
"outputs": [{ "name": "idProject", "type": "uint64" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x72116e92"
},
{
"constant": false,
"inputs": [{ "name": "idProject", "type": "uint64" }],
"name": "cancelProject",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x796d5654"
},
{
"constant": false,
"inputs": [{ "name": "addr", "type": "address" }],
"name": "addValidPluginInstance",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x79f4542e"
},
{
"constant": true,
"inputs": [{ "name": "token", "type": "address" }],
"name": "allowRecoverability",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x7e7db6e1"
},
{
"constant": false,
"inputs": [
{ "name": "name", "type": "string" },
{ "name": "url", "type": "string" },
{ "name": "commitTime", "type": "uint64" },
{ "name": "plugin", "type": "address" }
],
"name": "addGiver",
"outputs": [{ "name": "idGiver", "type": "uint64" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x7f61fa93"
},
{
"constant": true,
"inputs": [],
"name": "appId",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x80afdea8"
},
{
"constant": true,
"inputs": [{ "name": "addr", "type": "address" }],
"name": "getCodeHash",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x81ea4408"
},
{
"constant": true,
"inputs": [],
"name": "ETH",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x8322fff2"
},
{
"constant": true,
"inputs": [],
"name": "getInitializationBlock",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x8b3dd749"
},
{
"constant": true,
"inputs": [],
"name": "EVMSCRIPT_REGISTRY_APP",
"outputs": [{ "name": "", "type": "bytes32" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x9b3fdf4c"
},
{
"constant": false,
"inputs": [{ "name": "_token", "type": "address" }],
"name": "transferToVault",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x9d4941d8"
},
{
"constant": true,
"inputs": [
{ "name": "_sender", "type": "address" },
{ "name": "_role", "type": "bytes32" },
{ "name": "params", "type": "uint256[]" }
],
"name": "canPerform",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xa1658fad"
},
{
"constant": false,
"inputs": [
{ "name": "idPledge", "type": "uint64" },
{ "name": "amount", "type": "uint256" }
],
"name": "cancelPledge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xaf9f4563"
},
{
"constant": false,
"inputs": [{ "name": "contractHash", "type": "bytes32" }],
"name": "removeValidPluginContract",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xb12b5f76"
},
{
"constant": false,
"inputs": [{ "name": "_vault", "type": "address" }],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xc4d66de8"
},
{
"constant": false,
"inputs": [{ "name": "contractHash", "type": "bytes32" }],
"name": "addValidPluginContract",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xc8ae070f"
},
{
"constant": false,
"inputs": [
{ "name": "idDelegate", "type": "uint64" },
{ "name": "newAddr", "type": "address" },
{ "name": "newName", "type": "string" },
{ "name": "newUrl", "type": "string" },
{ "name": "newCommitTime", "type": "uint64" }
],
"name": "updateDelegate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xcc19ecf7"
},
{
"constant": false,
"inputs": [{ "name": "pledges", "type": "uint64[]" }],
"name": "mNormalizePledge",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xce17273c"
},
{
"constant": true,
"inputs": [],
"name": "kernel",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xd4aae0c4"
},
{
"constant": false,
"inputs": [
{ "name": "idSender", "type": "uint64" },
{ "name": "pledgesAmounts", "type": "uint256[]" },
{ "name": "idReceiver", "type": "uint64" }
],
"name": "mTransfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xd639cd73"
},
{
"constant": false,
"inputs": [
{ "name": "idGiver", "type": "uint64" },
{ "name": "newAddr", "type": "address" },
{ "name": "newName", "type": "string" },
{ "name": "newUrl", "type": "string" },
{ "name": "newCommitTime", "type": "uint64" }
],
"name": "updateGiver",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xdb7c2314"
},
{
"constant": false,
"inputs": [
{ "name": "idPledge", "type": "uint64" },
{ "name": "amount", "type": "uint256" }
],
"name": "cancelPayment",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xe9c211e2"
},
{
"constant": true,
"inputs": [{ "name": "idAdmin", "type": "uint64" }],
"name": "getPledgeAdmin",
"outputs": [
{ "name": "adminType", "type": "uint8" },
{ "name": "addr", "type": "address" },
{ "name": "name", "type": "string" },
{ "name": "url", "type": "string" },
{ "name": "commitTime", "type": "uint64" },
{ "name": "parentProject", "type": "uint64" },
{ "name": "canceled", "type": "bool" },
{ "name": "plugin", "type": "address" }
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xeba8ba06"
},
{
"constant": false,
"inputs": [
{ "name": "idProject", "type": "uint64" },
{ "name": "newAddr", "type": "address" },
{ "name": "newName", "type": "string" },
{ "name": "newUrl", "type": "string" },
{ "name": "newCommitTime", "type": "uint64" }
],
"name": "updateProject",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xf6b24b1c"
},
{
"constant": true,
"inputs": [{ "name": "_script", "type": "bytes" }],
"name": "getExecutor",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xf92a79ff"
},
{
"constant": true,
"inputs": [],
"name": "vault",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xfbfa77cf"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "from", "type": "uint256" },
{ "indexed": true, "name": "to", "type": "uint256" },
{ "indexed": false, "name": "amount", "type": "uint256" }
],
"name": "Transfer",
"type": "event",
"signature": "0xaf6151f5085accf2d57e1e7bf7601d3b3982e0de7e9a90f032f8554de9c104f6"
},
{
"anonymous": false,
"inputs": [{ "indexed": true, "name": "idProject", "type": "uint256" }],
"name": "CancelProject",
"type": "event",
"signature": "0x74acb192d39829b88a66ad5363afa9120c5a306a458287a870351ae34a04d346"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "idGiver", "type": "uint64" },
{ "indexed": true, "name": "addr", "type": "address" },
{ "indexed": false, "name": "url", "type": "string" }
],
"name": "GiverAdded",
"type": "event",
"signature": "0xf5abb7d99fe692941bfd32625b4a8d7342036635d1fbb0e2a75754b8266c61a3"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "idGiver", "type": "uint64" },
{ "indexed": false, "name": "url", "type": "string" }
],
"name": "GiverUpdated",
"type": "event",
"signature": "0x4b2f87168338ea08f27c7f7b2dfe4e61feb620ffe9a6a6a18afeaf94546075bf"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "idDelegate", "type": "uint64" },
{ "indexed": false, "name": "url", "type": "string" }
],
"name": "DelegateAdded",
"type": "event",
"signature": "0xd921f0ff8d5f67ca22b52c5b4be3463a8cabd9d95c28a02dd7c86f9deb3329be"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "idDelegate", "type": "uint64" },
{ "indexed": false, "name": "url", "type": "string" }
],
"name": "DelegateUpdated",
"type": "event",
"signature": "0x6586deed9fa035704e9886588d904801e7e86d1ebd926905fa03a0018531b2fd"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "idProject", "type": "uint64" },
{ "indexed": false, "name": "url", "type": "string" }
],
"name": "ProjectAdded",
"type": "event",
"signature": "0x9958fc92731727637b02f1ac1e6caf2814442c27e1d962f0c477cd14280f586d"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "idProject", "type": "uint64" },
{ "indexed": false, "name": "url", "type": "string" }
],
"name": "ProjectUpdated",
"type": "event",
"signature": "0xab039fa652845d2aa9439ffe6f2130ee7203ed63f29b71bed5b3b74f27c58707"
}
]

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
type ExampleEntity @entity {
id: ID!
count: BigInt!
from: BigInt! # uint256
to: BigInt! # uint256
}

View File

@ -0,0 +1,44 @@
specVersion: 0.0.1
schema:
file: schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: rinkeby
source:
address: "0x07E92635AF5e524C20B20F2770aE0E0Ef597eD07"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Transfer
- CancelProject
- GiverAdded
- GiverUpdated
- DelegateAdded
- DelegateUpdated
- ProjectAdded
- ProjectUpdated
abis:
- name: Contract
file: Contract/abis/Contract.json
eventHandlers:
- event: Transfer(indexed uint256,indexed uint256,uint256)
handler: handleTransfer
- event: CancelProject(indexed uint256)
handler: handleCancelProject
- event: GiverAdded(indexed uint64,indexed address,string)
handler: handleGiverAdded
- event: GiverUpdated(indexed uint64,string)
handler: handleGiverUpdated
- event: DelegateAdded(indexed uint64,string)
handler: handleDelegateAdded
- event: DelegateUpdated(indexed uint64,string)
handler: handleDelegateUpdated
- event: ProjectAdded(indexed uint64,string)
handler: handleProjectAdded
- event: ProjectUpdated(indexed uint64,string)
handler: handleProjectUpdated
file: Contract/Contract.wasm

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,71 @@
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
import {
TypedMap,
Entity,
Value,
ValueKind,
store,
Address,
Bytes,
BigInt,
BigDecimal
} from "@graphprotocol/graph-ts";
export class ExampleEntity extends Entity {
constructor(id: string) {
super();
this.set("id", Value.fromString(id));
}
save(): void {
let id = this.get("id");
assert(id !== null, "Cannot save ExampleEntity entity without an ID");
assert(
id.kind == ValueKind.STRING,
"Cannot save ExampleEntity entity with non-string ID. " +
'Considering using .toHex() to convert the "id" to a string.'
);
store.set("ExampleEntity", id.toString(), this);
}
static load(id: string): ExampleEntity | null {
return store.get("ExampleEntity", id) as ExampleEntity | null;
}
get id(): string {
let value = this.get("id");
return value.toString();
}
set id(value: string) {
this.set("id", Value.fromString(value));
}
get count(): BigInt {
let value = this.get("count");
return value.toBigInt();
}
set count(value: BigInt) {
this.set("count", Value.fromBigInt(value));
}
get from(): BigInt {
let value = this.get("from");
return value.toBigInt();
}
set from(value: BigInt) {
this.set("from", Value.fromBigInt(value));
}
get to(): BigInt {
let value = this.get("to");
return value.toBigInt();
}
set to(value: BigInt) {
this.set("to", Value.fromBigInt(value));
}
}

16
subgraph/package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "liquid-funding-rinkeby",
"license": "UNLICENSED",
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ bgits/liquid-funding-rinkeby",
"create-local": "graph create --node http://localhost:8020/ bgits/liquid-funding-rinkeby",
"remove-local": "graph remove --node http://localhost:8020/ bgits/liquid-funding-rinkeby",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 bgits/liquid-funding-rinkeby"
},
"dependencies": {
"@graphprotocol/graph-cli": "0.14.0",
"@graphprotocol/graph-ts": "0.13.0"
}
}

6
subgraph/schema.graphql Normal file
View File

@ -0,0 +1,6 @@
type ExampleEntity @entity {
id: ID!
count: BigInt!
from: BigInt! # uint256
to: BigInt! # uint256
}

95
subgraph/src/mapping.ts Normal file
View File

@ -0,0 +1,95 @@
import { BigInt } from "@graphprotocol/graph-ts"
import {
Contract,
Transfer,
CancelProject,
GiverAdded,
GiverUpdated,
DelegateAdded,
DelegateUpdated,
ProjectAdded,
ProjectUpdated
} from "../generated/Contract/Contract"
import { ExampleEntity } from "../generated/schema"
export function handleTransfer(event: Transfer): void {
// Entities can be loaded from the store using a string ID; this ID
// needs to be unique across all entities of the same type
let entity = ExampleEntity.load(event.transaction.from.toHex())
// Entities only exist after they have been saved to the store;
// `null` checks allow to create entities on demand
if (entity == null) {
entity = new ExampleEntity(event.transaction.from.toHex())
// Entity fields can be set using simple assignments
entity.count = BigInt.fromI32(0)
}
// BigInt and BigDecimal math are supported
entity.count = entity.count + BigInt.fromI32(1)
// Entity fields can be set based on event parameters
entity.from = event.params.from
entity.to = event.params.to
// Entities can be written to the store with `.save()`
entity.save()
// Note: If a handler doesn't require existing field values, it is faster
// _not_ to load the entity from the store. Instead, create it fresh with
// `new Entity(...)`, set the fields that should be updated and save the
// entity back to the store. Fields that were not set or unset remain
// unchanged, allowing for partial updates to be applied.
// It is also possible to access smart contracts from mappings. For
// example, the contract that has emitted the event can be connected to
// with:
//
// let contract = Contract.bind(event.address)
//
// The following functions can then be called on this contract to access
// state variables and other data:
//
// - contract.APP_ADDR_NAMESPACE(...)
// - contract.whitelistDisabled(...)
// - contract.isProjectCanceled(...)
// - contract.PLUGIN_MANAGER_ROLE(...)
// - contract.numberOfPledges(...)
// - contract.getPledgeDelegate(...)
// - contract.getRecoveryVault(...)
// - contract.getPledge(...)
// - contract.isValidPlugin(...)
// - contract.normalizePledge(...)
// - contract.addDelegate(...)
// - contract.numberOfPledgeAdmins(...)
// - contract.EVMSCRIPT_REGISTRY_APP_ID(...)
// - contract.addGiver(...)
// - contract.addProject(...)
// - contract.allowRecoverability(...)
// - contract.addGiver(...)
// - contract.appId(...)
// - contract.getCodeHash(...)
// - contract.ETH(...)
// - contract.getInitializationBlock(...)
// - contract.EVMSCRIPT_REGISTRY_APP(...)
// - contract.canPerform(...)
// - contract.kernel(...)
// - contract.getPledgeAdmin(...)
// - contract.getExecutor(...)
// - contract.vault(...)
}
export function handleCancelProject(event: CancelProject): void {}
export function handleGiverAdded(event: GiverAdded): void {}
export function handleGiverUpdated(event: GiverUpdated): void {}
export function handleDelegateAdded(event: DelegateAdded): void {}
export function handleDelegateUpdated(event: DelegateUpdated): void {}
export function handleProjectAdded(event: ProjectAdded): void {}
export function handleProjectUpdated(event: ProjectUpdated): void {}

44
subgraph/subgraph.yaml Normal file
View File

@ -0,0 +1,44 @@
specVersion: 0.0.1
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: rinkeby
source:
address: "0x07E92635AF5e524C20B20F2770aE0E0Ef597eD07"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Transfer
- CancelProject
- GiverAdded
- GiverUpdated
- DelegateAdded
- DelegateUpdated
- ProjectAdded
- ProjectUpdated
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Transfer(indexed uint256,indexed uint256,uint256)
handler: handleTransfer
- event: CancelProject(indexed uint256)
handler: handleCancelProject
- event: GiverAdded(indexed uint64,indexed address,string)
handler: handleGiverAdded
- event: GiverUpdated(indexed uint64,string)
handler: handleGiverUpdated
- event: DelegateAdded(indexed uint64,string)
handler: handleDelegateAdded
- event: DelegateUpdated(indexed uint64,string)
handler: handleDelegateUpdated
- event: ProjectAdded(indexed uint64,string)
handler: handleProjectAdded
- event: ProjectUpdated(indexed uint64,string)
handler: handleProjectUpdated
file: ./src/mapping.ts

2607
subgraph/yarn.lock Normal file

File diff suppressed because it is too large Load Diff