Events
Events are emitted for certain operations on the runtime. The following sections describe the events that are part of the default runtime.
control
OrgCreated(org_id: Hash, creator: AccountId, treasury_id: AccountId, created_at: BlockNumber, realm_index: u64)
Hash, creator: AccountId, treasury_id: AccountId, created_at: BlockNumber, realm_index: u64)interface:
api.events.control.OrgCreated.issummary: Org was successfully created.
OrgEnabled(Hash)
Hash)interface:
api.events.control.OrgEnabled.issummary: Org was enabled and it's state become Active.
OrgDisabled(Hash)
Hash)interface:
api.events.control.OrgDisabled.issummary: Org was disabled and it's state become Inactive.
MemberAdded(org_id: Hash, who: AccountId, block_number: BlockNumber)
Hash, who: AccountId, block_number: BlockNumber)interface:
api.events.control.MemberAdded.issummary: A member has been added to the Org.
MemberRemoved(org_id: Hash, who: AccountId, block_number: BlockNumber)
Hash, who: AccountId, block_number: BlockNumber)interface:
api.events.control.MemberRemoved.issummary: A member has been removed from the Org.
OrgUpdated(org_id: Hash, prime_id: Option<AccountId>, org_type: Option<OrgType>, access_model: Option<AccessModel>, member_limit: Option<MemberLimit>, fee_model: Option<FeeModel>, membership_fee: Option<Balance>, block_number: BlockNumber)
Hash, prime_id: Option<AccountId>, org_type: Option<OrgType>, access_model: Option<AccessModel>, member_limit: Option<MemberLimit>, fee_model: Option<FeeModel>, membership_fee: Option<Balance>, block_number: BlockNumber)interface:
api.events.control.OrgUpdated.issummary:
FundsSpended(org_id: Hash, beneficiary: AccountId, amount: Balance, currency_id: CurrencyId, block_number: BlockNumber)
Hash, beneficiary: AccountId, amount: Balance, currency_id: CurrencyId, block_number: BlockNumber)interface:
api.events.control.FundsSpended.issummary:
flow
Created(campaign_id: Hash, creator: AccountId, admin: AccountId, target: Balance, deposit: Balance, expiry: BlockNumber, name: BoundedVec<u8, StringLimit>)
Hash, creator: AccountId, admin: AccountId, target: Balance, deposit: Balance, expiry: BlockNumber, name: BoundedVec<u8, StringLimit>)interface:
api.events.flow.Created.issummary: Campaign was successfully created.
Activated(campaign_id: Hash)
Hash)interface:
api.events.flow.Activated.issummary:
Contributed(campaign_id: Hash, sender: AccountId, contribution: Balance, block_number: BlockNumber)
Hash, sender: AccountId, contribution: Balance, block_number: BlockNumber)interface:
api.events.flow.Contributed.issummary: Campaign was contributed.
Succeeded(campaign_id: Hash, campaign_balance: Balance, block_number: BlockNumber)
Hash, campaign_balance: Balance, block_number: BlockNumber)interface:
api.events.flow.Succeeded.issummary: Campaign was finalized.
Failed(campaign_id: Hash, campaign_balance: Balance, block_number: BlockNumber)
Hash, campaign_balance: Balance, block_number: BlockNumber)interface:
api.events.flow.Failed.issummary: Campaign failed - successfully reverted.
sense
EntityCreated(account_id: AccountId, block_number: BlockNumber)
AccountId, block_number: BlockNumber)interface:
api.events.sense.EntityCreated.issummary: New Sense Entity was created.
PropertyUpdated(property_type: PropertyType, account_id: AccountId, block_number: BlockNumber)
PropertyType, account_id: AccountId, block_number: BlockNumber)interface:
api.events.sense.PropertyUpdated.issummary: Property was updated.
signal
Voted(account: AccountId, proposal_id: Hash, voted: bool, yes: VotingPower, no: VotingPower, vote_power: VotingPower)
AccountId, proposal_id: Hash, voted: bool, yes: VotingPower, no: VotingPower, vote_power: VotingPower)interface:
api.events.signal.Voted.issummary:
Created(account: AccountId, proposal_id: Hash, org_id: Hash, campaign_id: Option<Hash>, amount: Option<Balance>, start: BlockNumber, expiry: BlockNumber)
AccountId, proposal_id: Hash, org_id: Hash, campaign_id: Option<Hash>, amount: Option<Balance>, start: BlockNumber, expiry: BlockNumber)interface:
api.events.signal.Created.issummary:
Activated(proposal_id: Hash)
Hash)interface:
api.events.signal.Activated.issummary:
Accepted(proposal_id: Hash)
Hash)interface:
api.events.signal.Accepted.issummary:
Rejected(proposal_id: Hash)
Hash)interface:
api.events.signal.Rejected.issummary:
Expired(proposal_id: Hash)
Hash)interface:
api.events.signal.Expired.issummary:
Aborted(proposal_id: Hash)
Hash)interface:
api.events.signal.Aborted.issummary:
Finalized(proposal_id: Hash)
Hash)interface:
api.events.signal.Finalized.issummary:
Last updated