Skip to content

Commit

Permalink
remove multisig proxytype
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Apr 4, 2024
1 parent 11e2407 commit fd313dd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion chain-metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion query-node/chain-metadata/2003.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,6 @@ pub enum ProxyType {
Governance,
Referendum,
Staking,
Multisig,
StorageTransactor,
}
impl Default for ProxyType {
Expand Down Expand Up @@ -1894,7 +1893,6 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
| RuntimeCall::Referendum(referendum::Call::release_vote_stake { .. })
),
ProxyType::Staking => matches!(c, RuntimeCall::Staking(..)),
ProxyType::Multisig => matches!(c, RuntimeCall::Multisig(..)),
ProxyType::StorageTransactor => matches!(
c,
RuntimeCall::Storage(storage::Call::accept_pending_data_objects { .. })
Expand Down
12 changes: 6 additions & 6 deletions types/src/augment/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4392,7 +4392,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `delay`: The announcement period required of the initial proxy. Will generally be
* zero.
**/
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, JoystreamNodeRuntimeProxyType, u32]>;
addProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, JoystreamNodeRuntimeProxyType, u32]>;
/**
* Publish the hash of a proxy-call that will be made in the future.
*
Expand Down Expand Up @@ -4431,7 +4431,7 @@ declare module '@polkadot/api-base/types/submittable' {
*
* Fails if there are insufficient funds to pay for deposit.
**/
createPure: AugmentedSubmittable<(proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [JoystreamNodeRuntimeProxyType, u32, u16]>;
createPure: AugmentedSubmittable<(proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [JoystreamNodeRuntimeProxyType, u32, u16]>;
/**
* Removes a previously spawned pure proxy.
*
Expand All @@ -4450,7 +4450,7 @@ declare module '@polkadot/api-base/types/submittable' {
* Fails with `NoPermission` in case the caller is not a previously created pure
* account whose `pure` call has corresponding parameters.
**/
killPure: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, JoystreamNodeRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
killPure: AugmentedSubmittable<(spawner: AccountId32 | string | Uint8Array, proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<u32> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, JoystreamNodeRuntimeProxyType, u16, Compact<u32>, Compact<u32>]>;
/**
* Dispatch the given `call` from an account that the sender is authorised for through
* `add_proxy`.
Expand All @@ -4462,7 +4462,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
* - `call`: The call to be made by the `real` account.
**/
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<JoystreamNodeRuntimeProxyType> | null | Uint8Array | JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<JoystreamNodeRuntimeProxyType>, Call]>;
proxy: AugmentedSubmittable<(real: AccountId32 | string | Uint8Array, forceProxyType: Option<JoystreamNodeRuntimeProxyType> | null | Uint8Array | JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<JoystreamNodeRuntimeProxyType>, Call]>;
/**
* Dispatch the given `call` from an account that the sender is authorized for through
* `add_proxy`.
Expand All @@ -4476,7 +4476,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
* - `call`: The call to be made by the `real` account.
**/
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<JoystreamNodeRuntimeProxyType> | null | Uint8Array | JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<JoystreamNodeRuntimeProxyType>, Call]>;
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, real: AccountId32 | string | Uint8Array, forceProxyType: Option<JoystreamNodeRuntimeProxyType> | null | Uint8Array | JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor' | number, call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32, Option<JoystreamNodeRuntimeProxyType>, Call]>;
/**
* Remove the given announcement of a delegate.
*
Expand Down Expand Up @@ -4521,7 +4521,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `proxy`: The account that the `caller` would like to remove as a proxy.
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
**/
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, JoystreamNodeRuntimeProxyType, u32]>;
removeProxy: AugmentedSubmittable<(delegate: AccountId32 | string | Uint8Array, proxyType: JoystreamNodeRuntimeProxyType | 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor' | number | Uint8Array, delay: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, JoystreamNodeRuntimeProxyType, u32]>;
};
referendum: {
/**
Expand Down
2 changes: 1 addition & 1 deletion types/src/augment/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1988,7 +1988,7 @@ export default {
* Lookup251: joystream_node_runtime::ProxyType
**/
JoystreamNodeRuntimeProxyType: {
_enum: ['Any', 'NonTransfer', 'Governance', 'Referendum', 'Staking', 'Multisig', 'StorageTransactor']
_enum: ['Any', 'NonTransfer', 'Governance', 'Referendum', 'Staking', 'StorageTransactor']
},
/**
* Lookup253: frame_system::Phase
Expand Down
3 changes: 1 addition & 2 deletions types/src/augment/types-lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2425,9 +2425,8 @@ declare module '@polkadot/types/lookup' {
readonly isGovernance: boolean;
readonly isReferendum: boolean;
readonly isStaking: boolean;
readonly isMultisig: boolean;
readonly isStorageTransactor: boolean;
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'Multisig' | 'StorageTransactor';
readonly type: 'Any' | 'NonTransfer' | 'Governance' | 'Referendum' | 'Staking' | 'StorageTransactor';
}

/** @name FrameSystemPhase (253) */
Expand Down

0 comments on commit fd313dd

Please sign in to comment.