Cascadia
  • Welcome to Cascadia
    • Brand Guidelines
    • Official Links
  • Artificial Intelligence
    • Incentives
  • Developers
    • Addresses
    • CosmWasm
      • Smart Contracts
      • Install Requirements
      • Set your Environment
      • Optimization
      • Deployment
      • Multi-Chain Contracts
        • The Actor Model
      • CW1 Subkeys Contract
        • Guide
      • CW20 Base Contract
        • Guide
      • C721 Base Contract
        • Guide
      • Upload Contract
        • Create a WASM File
      • Sign and Verify
        • Guide
    • Solidity
      • Deployment
      • Verification
        • Block Explorer
        • Hardhat
  • Directory
    • Address
    • API
    • Applications
    • Explorer
    • Faucet
    • Genesis
    • Governance
    • GRPC
    • Guide
    • Peers
    • RPC
    • Snapshot
    • State Sync
    • Website
    • Websocket
  • Governance
    • Align
      • Cooldown Period
      • Functions
    • Off-Chain
    • On-Chain
      • Voting
    • Proposals
      • On-Chain Voting via CLI
      • Proposal (Example)
    • VeTokenomics
      • Model
      • Voting Power Calculation
    • Analytics
  • Network
    • ChainID & Address Prefix
    • Configuration
    • Consensus
    • Denomination
    • Distribution
      • Block Rewards
      • Gas Fees
    • ESG
    • Faucet
    • Modules
    • Parameters
    • Peers
  • Security
    • Disclosure Policy
    • Multisignature
  • Staking
    • Claim
    • Delegate
    • Manual
    • Redelegate
    • Undelegate
  • Use Cases
    • Business Development and Marketing
    • Consumer Relationship Management
  • Node
    • Cloud Platforms
      • Amazon Web Services
      • Google Cloud Platform
    • Snapshot
    • State-Sync
    • Upgrade
      • Automated
      • Manual
  • Validators
    • System Requirements
    • Installation
    • Reference
      • Customization
  • Community
    • Discord
    • Telegram
    • Twitter
  • Legal
    • Privacy Policy
    • Terms & Conditions
Powered by GitBook
On this page
Edit on GitHub
  1. Developers
  2. CosmWasm
  3. CW1 Subkeys Contract

Guide

Step 1: Instantiate

You need to determine if you want the contract admin rights to be alterable post-creation.

If you opt for this, remember that should you desire a different admin address later, a fresh contract will be necessary.

You can designate multiple admin addresses by using the provided add (+) function.

Step 2: Query

From the Cascadia dashboard, it's feasible to obtain data from any CW1 contract. Also, all queries mandate the CW1 contract address as a foundational input:

Allowance

The limit set by the admin for another address concerning sending, transferring, or redelegating.

Spender address

All Allowances

Overview of all set limits by the admin.

-

Permissions

A record of rights assigned by the admin to a specific address.

Address under scrutiny

All Permissions

A comprehensive list showcasing all addresses alongside their respective permissions.

-

Can Execute

Verifies an address's capability to run a specific message.

Refer to Execute segment

Step 3: Execute

You can find a list of possible messages below.

Send:

bank: {
  send: {
    from_address: messages.contractAddress,
    to_address: wallet.address,
    amount: [coin(1000000, 'cascadiatoken')],
  },
}

Delegate:

staking: {
  delegate: {
    validator: 'cascadiavaloperXYZ',
    amount: coin(1000000, 'cascadiatoken'),
  },
}

Undelegate:

staking: {
  undelegate: {
    validator: 'cascadiavaloperXYZ',
    amount: coin(1000000, 'cascadiatoken'),
  },
}

Redelegate:

staking: {
  redelegate: {
    src_validator: 'cascadiavaloperXYZ',
    dst_validator: 'cascadiavaloperABC',
    amount: coin(1000000, 'cascadiatoken'),
  },
}

Freeze*

For contracts set as ''Mutable'', admins can lock the contract, halting the addition of fresh admin entities.

Update Admins

Introduce a new set of admins, replacing pre-existing ones.

Increase Allowance

Boost the spending limit of an address, contingent on the contract's current balance.

Decrease Allowance

Scale down an address's allowance according to the contract balance.

Set Permissions*

Assign fresh permissions to an address.

Actions marked with an asterisk (*) are strictly admin-exclusive.

Following every execution, a transaction hash will be presented for your reference.

PreviousCW1 Subkeys ContractNextCW20 Base Contract

Last updated 1 year ago