Skip to content

vivcrypto/viv-contracts

Repository files navigation

viv-contracts

Docs NPM Package Tests Lint

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
  • transactions

    • one-time transaction

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_NORMAL_ABI,
        bytecode as VIV_NORMAL_BYTECODE,
    } from '@viv/contracts/artifacts/contracts/trades/VivNormal.sol/VivNormal.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/VivNormal.sol';

contract MyContract {
  VivNormal trans;

  function doSomethingWithNormal() {
    // trans.purchase;
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published