Archanova solidity contracts
$ npm i @archanova/contracts -S
import {
ContractNames,
getContractAddress,
getContractAbi,
getContractByteCodeHash,
} from '@archanova/contracts';
console.log(
'AccountProvider mainnet address:',
getContractAddress(ContractNames.AccountProvider, '1'),
);
console.log(
'AccountProvider kovan address:',
getContractAddress(ContractNames.AccountProvider, '42'),
);
console.log(
'Account abi:',
getContractAbi(ContractNames.Account),
);
console.log(
'Account byteCodeHash:',
getContractByteCodeHash(ContractNames.Account),
);
Contracts:
Name | abi |
byteCodeHash |
addresses |
---|---|---|---|
Account |
✅ | ✅ | |
AccountProvider |
✅ | ✅ | |
AccountProxy |
✅ | ✅ | |
AccountFriendRecovery |
✅ | ✅ | |
ENSRegistry |
✅ | ✅ | |
ENSResolver |
✅ | ||
ExampleToken |
✅ | ||
ERC20Token |
✅ | ||
Guardian |
✅ | ||
VirtualPaymentManager |
✅ | ✅ |
$ git clone https://github.com/netgum/archanova-contracts.git
$ cd ./archanova-contracts
$ npm i
Name | Default Value |
---|---|
PROVIDER_MNEMONIC | - |
PROVIDER_ENDPOINT | http://localhost:8545 |
ENS_ADDRESS | - |
ENS_TOP_LABELS | archanova,smartsafe,pillar |
VIRTUAL_PAYMENT_LOCK_PERIOD | 30 * 24 * 60 * 60 |
$ npm run migrate:main
$ npm run migrate:ropsten
$ npm run migrate:rinkeby
$ npm run migrate:kovan
$ npm run migrate:sokol
$ npm run migrate:xdai
$ npm run build
$ npm test
The MIT License