1.0.0 • Published 3 years ago
viv-contracts v1.0.0
viv-contracts
Secured transactions are based on Smart contracts Supporting multiple public chains and covering dozens of transaction scenarios, leading digital currency trading platforms through smart contracts.
wallets
- multi-signature wallet
- secure tansfer
- fund collection
transactions
- one-time transaction
- installments
- recurring
- auction
- DAO
- crowdfunding
- NFT lending
- trust fund
Local deployment
In order to deploy this code to a local testnet, you should install the npm package @viv/contracts and import bytecode imported from artifacts located at @viv/contracts/artifacts/contracts/*.json.
For example:
import {
abi as VIV_DAO_ABI,
bytecode as VIV_DAO_BYTECODE,
} from '@viv/contracts/artifacts/artifacts/contracts/trades/VivDao.sol/VivDao.json'
This will ensure that you are testing against the same bytecode that is deployed to mainnet and public testnets, and all viv code will correctly interoperate with your local deployment.
Using solidity interfaces
import '@viv/contracts/trades/VivDao.sol';
contract MyContract {
VivDao dao;
function doSomethingWithDao() {
// dao.purchase;
}
}
1.0.0
3 years ago