Readonly
chain4 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.
Readonly
chain2 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.
Readonly
targetThe target system of the resource ID. This represents currently a 26-byte buffer representing a contract address or pallet and tree indicator.
'0x000000000000aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
'0x0000000000000000000000000000000000000000000000002301'
Generated using TypeDoc
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.