https://github.com/blocto/blt-contracts
Blocto Token Smart Contracts
https://github.com/blocto/blt-contracts
Last synced: 20 days ago
JSON representation
Blocto Token Smart Contracts
- Host: GitHub
- URL: https://github.com/blocto/blt-contracts
- Owner: blocto
- Created: 2021-05-12T02:18:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T07:33:53.000Z (about 1 year ago)
- Last Synced: 2024-12-29T00:15:58.455Z (12 months ago)
- Language: Cadence
- Size: 1.86 MB
- Stars: 16
- Watchers: 11
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```