All Projects → portto → blt-contracts

portto / blt-contracts

Licence: other
Blocto Token Smart Contracts

Programming Languages

Cadence
7 projects
go
31211 projects - #10 most used programming language
rust
11053 projects
typescript
32286 projects
solidity
1140 projects

Blocto Token Contracts

Setup Flow CLI

https://docs.onflow.org/flow-cli/install

Run Scripts/Transactions - Examples

Setup Blocto Token Vault

flow transactions send ./transactions/token/setupBloctoTokenVault.cdc \
  --network testnet \
  --signer blt-user-testnet \
  --gas-limit 1000

Transfer Blocto Token

flow transactions send ./transactions/token/transferBloctoToken.cdc \
  --network testnet \
  --arg UFix64:100.0 \
  --arg Address:0x03d1e02a48354e2b \
  --signer blt-admin-testnet \
  --gas-limit 1000

Setup BloctoPass Collection

flow transactions send ./transactions/token/setupBloctoPassCollection.cdc \
  --network testnet \
  --signer blt-user-testnet \
  --gas-limit 1000

Mint BloctoPass NFT

flow transactions send ./transactions/token/mintBloctoPass.cdc \
  --network testnet \
  --signer blt-admin-testnet \
  --gas-limit 1000

Get Blocto Token Balance

flow scripts execute ./scripts/token/getBloctoTokenBalance.cdc \
  --network testnet \
  --arg Address:0x03d1e02a48354e2b

Stake BLT into BloctoPass

flow transactions send ./transactions/staking/stakeNewTokens.cdc \
  --network testnet \
  --arg UFix64:1000.0 \
  --signer blt-user-testnet \
  --gas-limit 1000

Get Staking Info

flow scripts execute ./scripts/staking/getStakingInfo.cdc \
  --network testnet \
  --arg Address:0x03d1e02a48354e2b

Switch Epoch

flow transactions send ./transactions/staking/switchEpoch.cdc \
  --network testnet \
  --signer blt-admin-testnet \
  --gas-limit 1000
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].