/typus-dov

DeFi Option Vaults (DOV)

Primary LanguageMoveApache License 2.0Apache-2.0

Typus DeFi Option Vaults (DOV)

Vault

README

Covered Call

README

Deployment Manual

  1. deploy sui-dev-token
  2. update sui-dev-token README.md addresses
  3. deploy typus-oracle
  4. update typus-oracle Move.toml typus_oracle address
  5. send new_time, new_oracle transactions
    sui client call --gas-budget 10000 --package $TYPUS_ORACLE_ADDRESS --module "unix_time" --function "new_time"
    sui client call --gas-budget 10000 --package $TYPUS_ORACLE --module "oracle" --function "new_oracle" --type-args $BTC_CONTRACT_ADDRESS::btc::BTC --args 8
  6. update typus-cranker
  7. update typus-oracle README.md addresses
  8. deploy typus_framework
  9. update typus_framework Move.toml typus_framework address
  10. update typus_framework README.md addresses
  11. deploy covered_call
  12. update covered_call README.md addresses
  13. send new_covered_call_vault transaction
    sui client call --package $COVERED_CALL_PACKAGE_ADDRESS --module covered_call --function new_covered_call_vault --type-args 0x2::sui::SUI --args $COVERED_CALL_MANAGER_CAP_ADDRESS $COVERED_CALL_REGISTRY_ADDRESS 1672531200000 2000 --gas-budget 10000