Skip to content

Latest commit

 

History

History

solv-voucher

solv-voucher

solv-voucher contains the core smart contracts of Voucher and its VestingPool, along with the initialization scripts and deployment information.

As an implementation of the VNFT token standard, the smart contracts of solv-voucher allow digital assets to be transformed into Vouchers representing investment allocations as splittable, composable NFTs.

Contracts

  • ICToken

    • ICToken is the core smart contract for Vouchers, which inherits from VNFTCore. The contract provides all abilities of Vouchers, including minting, claiming, splitting, merging, transferring, etc.
  • VestingPool

    • VestingPool implements release rules and the internal logic of Vouchers. The contract handles all operations related to the underlying assets of any Vouchers.
  • VestingLibrary

    • VestingLibrary defines the Vesting structure to maintain the amount of the underlying assets. The contract also provides methods to calculate the amount of underlying assets in the process of minting, claiming, splitting, merging, transferring, etc.

Deploy and Test

Deployment

# for local deployment, run:
yarn deploy:localhost

# for deployment with target network(see: hardhat.config.ts), run:
yarn deploy --network `network`

Initialization

# for local deployment, run:
yarn init:localhost

# for deployment with target network(see: hardhat.config.ts), run:
yarn init --network `network`

Test

# for local deployment, run:
yarn test:localhost

# for deployment with target network(see: hardhat.config.ts), run:
yarn test --network `network`