PalletIndex¶
Calls¶
claim_task¶
See [Pallet::claim_task
].
Attributes¶
Name | Type |
---|---|
task_id | TaskId |
fee | u128 |
Python¶
call = substrate.compose_call(
'PalletIndex', 'claim_task', {'fee': 'u128', 'task_id': '[u8; 32]'}
)
deposit_task¶
See [Pallet::deposit_task
].
Attributes¶
Name | Type |
---|---|
asset | XcmAssetId |
amount | u128 |
recipient | Vec<u8> |
worker | T::AccountId |
task_id | TaskId |
task | Vec<u8> |
Python¶
call = substrate.compose_call(
'PalletIndex', 'deposit_task', {
'amount': 'u128',
'asset': {
'Abstract': '[u8; 32]',
'Concrete': {
'interior': {
'Here': None,
'X1': {
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': {
'block_hash': '[u8; 32]',
'block_number': 'u64',
},
'ByGenesis': '[u8; 32]',
'Ethereum': {
'chain_id': 'u64',
},
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': {
'Administration': None,
'Defense': None,
'Executive': None,
'Index': 'u32',
'Judicial': None,
'Legislative': None,
'Moniker': '[u8; 4]',
'Technical': None,
'Treasury': None,
'Unit': None,
},
'part': {
'AtLeastProportion': 'InnerStruct',
'Fraction': 'InnerStruct',
'Members': 'InnerStruct',
'MoreThanProportion': 'InnerStruct',
'Voice': None,
},
},
},
'X2': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
'X3': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
'X4': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
'X5': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
'X6': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
'X7': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
'X8': (
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
{
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::56',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::56',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::56',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::59',
'part': 'scale_info::60',
},
},
),
},
'parents': 'u8',
},
},
'recipient': 'Bytes',
'task': 'Bytes',
'task_id': '[u8; 32]',
'worker': 'AccountId',
}
)
force_add_worker¶
See [Pallet::force_add_worker
].
Attributes¶
Name | Type |
---|---|
worker | T::AccountId |
Python¶
call = substrate.compose_call(
'PalletIndex', 'force_add_worker', {'worker': 'AccountId'}
)
force_remove_worker¶
See [Pallet::force_remove_worker
].
Attributes¶
Name | Type |
---|---|
worker | T::AccountId |
Python¶
call = substrate.compose_call(
'PalletIndex', 'force_remove_worker', {'worker': 'AccountId'}
)
Events¶
Claimed¶
Task has been claimed.
Attributes¶
Name | Type | Composition |
---|---|---|
tasks | Vec<TaskId> |
['[u8; 32]'] |
fee | u128 |
u128 |
NewTask¶
New task saved.
Attributes¶
Name | Type | Composition |
---|---|---|
deposit_info | DepositInfo<T::AccountId> |
{'sender': 'AccountId', 'asset': {'Concrete': {'parents': 'u8', 'interior': {'Here': None, 'X1': {'Parachain': 'u32', 'AccountId32': 'InnerStruct', 'AccountIndex64': 'InnerStruct', 'AccountKey20': 'InnerStruct', 'PalletInstance': 'u8', 'GeneralIndex': 'u128', 'GeneralKey': 'InnerStruct', 'OnlyChild': None, 'Plurality': 'InnerStruct', 'GlobalConsensus': 'scale_info::56'}, 'X2': ('scale_info::53', 'scale_info::53'), 'X3': ('scale_info::53', 'scale_info::53', 'scale_info::53'), 'X4': ('scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53'), 'X5': ('scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53'), 'X6': ('scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53'), 'X7': ('scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53'), 'X8': ('scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53', 'scale_info::53')}}, 'Abstract': '[u8; 32]'}, 'amount': 'u128', 'recipient': 'Bytes', 'task': 'Bytes'} |
WorkerAdd¶
Worker is set.
Attributes¶
Name | Type | Composition |
---|---|---|
worker | T::AccountId |
AccountId |
WorkerRemove¶
Worker is set.
Attributes¶
Name | Type | Composition |
---|---|---|
worker | T::AccountId |
AccountId |
Storage functions¶
ActivedTasks¶
Mapping the worker account and its actived task queue
Python¶
result = substrate.query(
'PalletIndex', 'ActivedTasks', ['AccountId']
)
Return value¶
['[u8; 32]']
DepositRecords¶
Mapping task_id to the full deposit data
Python¶
result = substrate.query(
'PalletIndex', 'DepositRecords', ['[u8; 32]']
)
Return value¶
{
'amount': 'u128',
'asset': {
'Abstract': '[u8; 32]',
'Concrete': {
'interior': {
'Here': None,
'X1': {
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::56',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
'X2': ('scale_info::53', 'scale_info::53'),
'X3': ('scale_info::53', 'scale_info::53', 'scale_info::53'),
'X4': (
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
),
'X5': (
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
),
'X6': (
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
),
'X7': (
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
),
'X8': (
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
'scale_info::53',
),
},
'parents': 'u8',
},
},
'recipient': 'Bytes',
'sender': 'AccountId',
'task': 'Bytes',
}
Workers¶
Pre-set index worker account
Python¶
result = substrate.query(
'PalletIndex', 'Workers', ['AccountId']
)
Return value¶
'bool'
Constants¶
FeeReserveAccount¶
Fee reserve account
Value¶
'41jWo4Q2ogXXHCHofUvkwrXjkxyWNdZdpCf92tdqdTB2ZeHP'
Python¶
constant = substrate.get_constant('PalletIndex', 'FeeReserveAccount')