Extrinsics
The following sections contain Extrinsics methods are part of the default runtime. On the api, these are exposed via
api.tx.<module>.<method>
.- interface:
api.tx.control.create_org
- summary: Create an on chain organization
name
: org name.cid
: ipfs content identifier.org_type
: individual | company | dao | hybrid.access_model
:fee_model
:member_limit
: max members. default: maxmembers.membership_fee
:gov_currency
:pay_currency
:deposit
: initial deposit for the org treasury (in protocol tokens).
EmitsOrgCreated
event when successful.Weight:O(1)
- interface:
api.tx.control.update_org
- summary: Update OrgAllowed origins: Root or prime if OrgType::Individual
org_id
: org hash.prime_id
: new prime id.org_type
:access_model
: new access model.member_limit
: new member limit.fee_model
: new fee model.membership_fee
: new membership fee.
EmitsOrgUpdated
event when successful.Weight:O(1)
- interface:
api.tx.control.enable_org
- summary: Enable OrgEnables an Org to be used and changes it's state to Active. Allowed origins: Root or prime if OrgType::Individual
org_id
: org hash.
EmitsOrgEnabled
event when successful.Weight:O(1)
- interface:
api.tx.control.disable_org
- summary: Disable OrgDisables an Org to be used and changes it's state to Inactive. Allowed origins: Root or prime if OrgType::Individual
org_id
: org hash.
EmitsOrgDisabled
event when successful.Weight:O(1)
- interface:
api.tx.control.add_member
- summary: Add Member to OrgAllowed origins: Root or prime if OrgType::Individual
org_id
: org id.who
: account to be added.
EmitsMemberAdded
event when successful.Weight:O(log n)
- interface:
api.tx.control.remove_member
- summary: Remove member from OrgAllowed origins: Root or prime if OrgType::Individual
org_id
: org id.who
: account to be removed.
EmitsMemberRemoved
event when successful.Weight:O(log n)
- interface:
api.tx.control.spend_funds
- summary: Make spending from the org treasuryAllowed origins: Root or prime if OrgType::Individual
org_id
: org id.currency_id
: currency to be spent.beneficiary
: receiver account.amount
: amount to be spent.
EmitsFundsSpended
event when successful.Weight:O(1)
create_campaign(org_id: Hash
, admin_id: AccountId
, name: BoundedVec<u8, StringLimit>
, target: Balance
, deposit: Balance
, expiry: BlockNumber
, protocol: FlowProtocol
, governance: FlowGovernance
, cid: BoundedVec<u8, StringLimit>
, start: Option<BlockNumber>
, token_symbol: Option<BoundedVec<u8, StringLimit>>
, token_name: Option<BoundedVec<u8, StringLimit>>
)
Hash
, admin_id: AccountId
, name: BoundedVec<u8, StringLimit>
, target: Balance
, deposit: Balance
, expiry: BlockNumber
, protocol: FlowProtocol
, governance: FlowGovernance
, cid: BoundedVec<u8, StringLimit>
, start: Option<BlockNumber>
, token_symbol: Option<BoundedVec<u8, StringLimit>>
, token_name: Option<BoundedVec<u8, StringLimit>>
)- interface:
api.tx.flow.create_campaign
- summary:
- interface:
api.tx.flow.contribute
- summary: Contribute to project
campaign_id
:contribution
:
EmitsCampaignContributed
event when successful.Weight: O(1)
- interface:
api.tx.sense.create_entity
- summary: Create a Sense Entity for the account.
account_id
: account id.cid
: ipfs content identifier.
EmitsEntityCreated
event when successful.Weight:O(1)
- interface:
api.tx.sense.update_property
- summary: Modifies a property of the account.
account_id
: account id.property_type
: property type (experience, reputation, trust).value
: value to be incremented to property.
EmitsPropertyUpdated
event when successful.Weight:O(1)
proposal(proposal_type: ProposalType
, org_id: Hash
, title: BoundedVec<u8, StringLimit>
, cid: BoundedVec<u8, StringLimit>
, expiry: BlockNumber
, majority: Majority
, unit: Unit
, scale: Scale
, start: Option<BlockNumber>
, quorum: Option<Permill>
, deposit: Option<Balance>
, campaign_id: Option<Hash>
, amount: Option<Balance>
, beneficiary: Option<AccountId>
, currency_id: Option<CurrencyId>
)
ProposalType
, org_id: Hash
, title: BoundedVec<u8, StringLimit>
, cid: BoundedVec<u8, StringLimit>
, expiry: BlockNumber
, majority: Majority
, unit: Unit
, scale: Scale
, start: Option<BlockNumber>
, quorum: Option<Permill>
, deposit: Option<Balance>
, campaign_id: Option<Hash>
, amount: Option<Balance>
, beneficiary: Option<AccountId>
, currency_id: Option<CurrencyId>
)- interface:
api.tx.signal.proposal
- summary:
- interface:
api.tx.signal.vote
- summary:
Last modified 5mo ago