The token module handles various token-related actions, including information retrieval, balance checking, and token transfer.
- Tag: Action: Info
- Description: Retrieves information about the token.
- Required Properties:
Target
: The recipient of the token information.
- Tag: Action: Balance
- Description: Retrieves the balance of a specific account.
- Required Properties:
Owner
: The account whose balance is being checked.
- Tag: Action: TokenBalances
- Description: Retrieves the balances of all accounts.
- Required Properties: None.
- Tag: Action: Transfer
- Description: Transfers tokens from one account to another.
- Required Properties:
Recipient
: The account receiving the tokens.Quantity
: The amount of tokens to transfer.
- Description: Mints new tokens.
- Required Properties:
Action
: Must be "Credit-Notice".From-Process
: Must match the specified CRED identifier.
- Description: Allows the process itself to mint new tokens.
- Required Properties:
From
: Must match the process ID.Action
: "SelfMint".Quantity
: The amount of tokens to mint.
The proposal module enables DAO members to submit and vote on proposals.
- Tag: Action: Propose
- Description: Submits a new proposal for consideration.
- Required Properties:
Stake
: The amount of tokens staked with the proposal.Title
: The name of the proposal.Description
: The proposal's details.Meme-Frame-Id
: (Optional) An associated MemeFrame ID.
- Tag: Action: Vote
- Description: Casts a vote on a proposal.
- Required Properties:
ProposalId
: The ID of the proposal being voted on.Vote
: The vote cast ("yay" or "nay").Stake
: The amount of tokens staked on the vote.
- Tag: Action: GetProposals
- Description: Retrieves proposals.
- Required Properties: None. Specific proposals can be requested.
Handlers for subscribing and unsubscribing from notifications.
- Tag: Action: Subscribe
- Description: Subscribes to notifications.
- Required Properties:
Target
: The account subscribing.
- Tag: Action: Unsubscribe
- Description: Unsubscribes from notifications.
- Required Properties:
Target
: The account unsubscribing.