-
Notifications
You must be signed in to change notification settings - Fork 23
Implement extrinsics and RPCs for Intents and Intent Groups #2564
Copy link
Copy link
Closed
Milestone
Description
Description
The following modifications to existing extrinsics are proposed:
propose_to_create_schema_v2,create_schema_via_governance_v2,create_schema_v3,propose_to_create_schema_name, andcreate_schema_name_via_governance(deprecated)- Deprecated extrinsics will simply reject until fully removed in a future release
- All extrinsics related to Delegations that reference
SchemaIdwill be changed to referenceIntentId. Since the
data type isu16for both, the binary API will not change.
The following new extrinsics are proposed:
| Extrinsic | Parameters | Description |
|---|---|---|
| propose_to_create_intent create_intent |
protocol_name: ProtocolNameintent_name: NameDescriptorpayload_location: PayloadLocationsettings: IntentSettings |
Propose to create an Intent Create an Intent |
| create_intent_via_governance | creator_key: AccountIdprotocol_name: ProtocolNameintent_name: NameDescriptorpayload_location: PayloadLocationsettings: IntentSettings |
Create an Intent via Governance |
| propose_to_create_intent_group create_intent_group |
protocol_name: ProtocolNamegroup_name: NameDescriptorintent_ids: BoundedVec<IntentId, MAX_INTENTS_PER_GROUP> |
Propose to create a IntentGroup Create an IntentGroup |
| create_intent_group_via_governance | creator_key: AccountIdprotocol_name: ProtocolNamegroup_name: NameDescriptorintent_ids: BoundedVec<IntentId, MAX_INTENTS_PER_GROUP> |
Create an IntentGroup via Governance |
| propose_to_update_intent_group update_intent_group |
group_id: IntentGroupidintent_ids: BoundedVec<IntentId, MAX_INTENTS_PER_GROUP> |
Propose to update an IntentGroup Update an IntentGroup |
| update_intent_group_via_governance | creator_key: AccountIdgroup_id: IntentGroupidintent_ids: BoundedVec<IntentId, MAX_INTENTS_PER_GROUP> |
Update an IntentGroup via Governance |
12. Runtime Calls
The following new Custom Runtime functions are proposed:
| Custom Runtime Function | Parameters | Description |
|---|---|---|
| get_registered_entities_by_name | protocol_name: ProtocolNamedescriptor_name: Option<DescriptorName> |
Resolve a name to a registered ID or list of IDs |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels