Interface IResourceId

Resource ID is an identifier of a resource in the Webb system. A resource is any piece of code / logic that maintains state and has its state updated over time.

We use the resource ID to identify the resource in proposals that is being updated or being referenced in an update to another resource.

Hierarchy

  • IResourceId

Implemented by

Properties

chainId: number

4 bytes number (u32) of the chainId this also encoded in the last 4 bytes of the ResourceID.

Note: this value is optional here since we can read it from the ResourceID, but would be provided for you if you want to decode the proposal header from bytes.

chainType: ChainType

2 bytes (u16) encoded as the last 2 bytes of the resource id just before the chainId.

Note: this value is optional here since we can read it from the ResourceID, but would be provided for you if you want to decode the proposal header from bytes.

targetSystem: Uint8Array

The target system of the resource ID. This represents currently a 26-byte buffer representing a contract address or pallet and tree indicator.

Example

'0x000000000000aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

Example

'0x0000000000000000000000000000000000000000000000002301'

Methods

Generated using TypeDoc