Skip to content

PartnerAttribution pallet

Derived from live runtime metadata on TRN root (pallet index 53, captured 2026-05-02). For prose-style documentation see PartnerAttribution on the curated reference side.

Pallet index
53
Calls
7
Events
6
Errors
8
Storage items
5
Constants
0

Calls (extrinsics)

PartnerAttribution.register_partner_account

See [Pallet::register_partner_account].

ts
api.tx.partnerAttribution.register_partner_account(account: [u8;20])
ArgumentTypeDoc
account[u8;20]T::AccountId

Call index: 0

PartnerAttribution.update_partner_account

See [Pallet::update_partner_account].

ts
api.tx.partnerAttribution.update_partner_account(partner_id: Compact<u128>, partner_account: [u8;20])
ArgumentTypeDoc
partner_idCompact&lt;u128&gt;u128
partner_account[u8;20]T::AccountId

Call index: 1

PartnerAttribution.attribute_account

See [Pallet::attribute_account].

ts
api.tx.partnerAttribution.attribute_account(partner_id: u128)
ArgumentTypeDoc
partner_idu128u128

Call index: 2

PartnerAttribution.upgrade_partner

See [Pallet::upgrade_partner].

ts
api.tx.partnerAttribution.upgrade_partner(partner_id: Compact<u128>, fee_percentage: Compact<Permill>)
ArgumentTypeDoc
partner_idCompact&lt;u128&gt;u128
fee_percentageCompact&lt;Permill&gt;Permill

Call index: 3

PartnerAttribution.create_futurepass_with_partner

See [Pallet::create_futurepass_with_partner].

ts
api.tx.partnerAttribution.create_futurepass_with_partner(partner_id: u128, account: [u8;20])
ArgumentTypeDoc
partner_idu128u128
account[u8;20]T::AccountId

Call index: 4

PartnerAttribution.remove_partner

See [Pallet::remove_partner].

ts
api.tx.partnerAttribution.remove_partner(partner_id: Compact<u128>)
ArgumentTypeDoc
partner_idCompact&lt;u128&gt;u128

Call index: 5

PartnerAttribution.set_admin

See [Pallet::set_admin].

ts
api.tx.partnerAttribution.set_admin(new: [u8;20])
ArgumentTypeDoc
new[u8;20]T::AccountId

Call index: 6

Events

PartnerAttribution.PartnerRegistered

FieldTypeDoc
partner_idu128
partner{"owner":"SeedPrimitivesSignatureAccountId20","account":"SeedPrimitivesSignatureAccountId20","feePercentage":"Option&lt;Permill&gt;","accumulatedFees":"u128"}

PartnerAttribution.PartnerUpdated

FieldTypeDoc
partner_idu128
account[u8;20]

PartnerAttribution.PartnerRemoved

FieldTypeDoc
partner_idu128
account[u8;20]

PartnerAttribution.PartnerUpgraded

FieldTypeDoc
partner_idu128
account[u8;20]
fee_percentagePermill

PartnerAttribution.AccountAttributed

FieldTypeDoc
partner_idu128
account[u8;20]

PartnerAttribution.AdminAccountChanged

Admin Account changed

FieldTypeDoc
old_keyOption&lt;SeedPrimitivesSignatureAccountId20&gt;
new_key[u8;20]

Errors

PartnerAttribution.NoAvailableIds

No available ids

PartnerAttribution.PartnerNotFound

Partner not found

PartnerAttribution.PartnerAlreadyExists

Partner already exists

PartnerAttribution.Unauthorized

Unauthorized

PartnerAttribution.CallerNotFuturepass

Caller is not a futurepass account

PartnerAttribution.AccountAlreadyAttributed

Account already attributed to another partner

PartnerAttribution.MaxPartnersExceeded

Maximum number of partners exceeded

PartnerAttribution.RequireAdmin

Caller must be admin account

Storage

PartnerAttribution.NextPartnerId

The next available partner id

ts
await api.query.partnerAttribution.nextPartnerId()

Returns: u128

Modifier: Default

PartnerAttribution.PartnerCount

Current number of partners

ts
await api.query.partnerAttribution.partnerCount()

Returns: u32

Modifier: Default

PartnerAttribution.Partners

Partner information

ts
await api.query.partnerAttribution.partners(key1)
  • Key: u128 (hasher: Twox64Concat)
  • Returns: {"owner":"SeedPrimitivesSignatureAccountId20","account":"SeedPrimitivesSignatureAccountId20","feePercentage":"Option<Permill>","accumulatedFees":"u128"}

Modifier: Optional

PartnerAttribution.Attributions

User-partner attributions

ts
await api.query.partnerAttribution.attributions(key1)
  • Key: [u8;20] (hasher: Twox64Concat)
  • Returns: u128

Modifier: Optional

PartnerAttribution.AdminAccount

Admin account for Attribution Percentage operations

ts
await api.query.partnerAttribution.adminAccount()

Returns: [u8;20]

Modifier: Optional

Source: live chain metadata from wss://root.rootnet.live/archive/ws · captured 2026-05-02

Curated independently by Codeology. Source-attributed reference for The Root Network. Not affiliated with Futureverse / TRN Labs.