@dedot/chaintypes 0.22.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "7d0e168ee5d8b75f1347e3aef51660afab6c9839",
22
+ "gitHead": "3b65d909903b18f2dc5e32b02fcb19ddb39215cc",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
package/rococo/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedRococoApi<Rv extends RpcVersion> extends GenericSubstr
23
23
 
24
24
  /**
25
25
  * @name: RococoApi
26
- * @specVersion: 1016000
26
+ * @specVersion: 1016001
27
27
  **/
28
28
  export interface RococoApi {
29
29
  legacy: VersionedRococoApi<RpcLegacy>;
@@ -1303,7 +1303,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1303
1303
  *
1304
1304
  * Otherwise function returns a JSON representation of the built-in, named
1305
1305
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
1306
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1306
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1307
1307
  * (potentially nested) key-value pairs that are intended for customizing the default
1308
1308
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
1309
1309
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
@@ -23,7 +23,7 @@ export interface VersionedRococoAssetHubApi<Rv extends RpcVersion> extends Gener
23
23
 
24
24
  /**
25
25
  * @name: RococoAssetHubApi
26
- * @specVersion: 1016000
26
+ * @specVersion: 1016001
27
27
  **/
28
28
  export interface RococoAssetHubApi {
29
29
  legacy: VersionedRococoAssetHubApi<RpcLegacy>;
@@ -694,7 +694,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
694
694
  *
695
695
  * Otherwise function returns a JSON representation of the built-in, named
696
696
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
697
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
697
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
698
698
  * (potentially nested) key-value pairs that are intended for customizing the default
699
699
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
700
700
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
@@ -23,7 +23,7 @@ export interface VersionedWestendApi<Rv extends RpcVersion> extends GenericSubst
23
23
 
24
24
  /**
25
25
  * @name: WestendApi
26
- * @specVersion: 1016000
26
+ * @specVersion: 1016001
27
27
  **/
28
28
  export interface WestendApi {
29
29
  legacy: VersionedWestendApi<RpcLegacy>;
@@ -1483,7 +1483,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1483
1483
  *
1484
1484
  * Otherwise function returns a JSON representation of the built-in, named
1485
1485
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
1486
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1486
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
1487
1487
  * (potentially nested) key-value pairs that are intended for customizing the default
1488
1488
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
1489
1489
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
23
23
 
24
24
  /**
25
25
  * @name: WestendAssetHubApi
26
- * @specVersion: 1016000
26
+ * @specVersion: 1016001
27
27
  **/
28
28
  export interface WestendAssetHubApi {
29
29
  legacy: VersionedWestendAssetHubApi<RpcLegacy>;
@@ -766,7 +766,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
766
766
  *
767
767
  * Otherwise function returns a JSON representation of the built-in, named
768
768
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
769
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
769
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
770
770
  * (potentially nested) key-value pairs that are intended for customizing the default
771
771
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
772
772
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
@@ -370,6 +370,58 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
370
370
  **/
371
371
  [name: string]: any;
372
372
  };
373
+ /**
374
+ * Pallet `Proxy`'s constants
375
+ **/
376
+ proxy: {
377
+ /**
378
+ * The base amount of currency needed to reserve for creating a proxy.
379
+ *
380
+ * This is held for an additional storage item whose value size is
381
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
382
+ **/
383
+ proxyDepositBase: bigint;
384
+
385
+ /**
386
+ * The amount of currency needed per proxy added.
387
+ *
388
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
389
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
390
+ * into account `32 + proxy_type.encode().len()` bytes of data.
391
+ **/
392
+ proxyDepositFactor: bigint;
393
+
394
+ /**
395
+ * The maximum amount of proxies allowed for a single account.
396
+ **/
397
+ maxProxies: number;
398
+
399
+ /**
400
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
401
+ **/
402
+ maxPending: number;
403
+
404
+ /**
405
+ * The base amount of currency needed to reserve for creating an announcement.
406
+ *
407
+ * This is held when a new storage item holding a `Balance` is created (typically 16
408
+ * bytes).
409
+ **/
410
+ announcementDepositBase: bigint;
411
+
412
+ /**
413
+ * The amount of currency needed per announcement made.
414
+ *
415
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
416
+ * into a pre-existing storage value.
417
+ **/
418
+ announcementDepositFactor: bigint;
419
+
420
+ /**
421
+ * Generic pallet constant
422
+ **/
423
+ [name: string]: any;
424
+ };
373
425
  /**
374
426
  * Pallet `Identity`'s constants
375
427
  **/
@@ -627,6 +627,55 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
627
627
  **/
628
628
  [error: string]: GenericPalletError<Rv>;
629
629
  };
630
+ /**
631
+ * Pallet `Proxy`'s errors
632
+ **/
633
+ proxy: {
634
+ /**
635
+ * There are too many proxies registered or too many announcements pending.
636
+ **/
637
+ TooMany: GenericPalletError<Rv>;
638
+
639
+ /**
640
+ * Proxy registration not found.
641
+ **/
642
+ NotFound: GenericPalletError<Rv>;
643
+
644
+ /**
645
+ * Sender is not a proxy of the account to be proxied.
646
+ **/
647
+ NotProxy: GenericPalletError<Rv>;
648
+
649
+ /**
650
+ * A call which is incompatible with the proxy type's filter was attempted.
651
+ **/
652
+ Unproxyable: GenericPalletError<Rv>;
653
+
654
+ /**
655
+ * Account is already a proxy.
656
+ **/
657
+ Duplicate: GenericPalletError<Rv>;
658
+
659
+ /**
660
+ * Call may not be made by proxy because it may escalate its privileges.
661
+ **/
662
+ NoPermission: GenericPalletError<Rv>;
663
+
664
+ /**
665
+ * Announcement, if made at all, was made too recently.
666
+ **/
667
+ Unannounced: GenericPalletError<Rv>;
668
+
669
+ /**
670
+ * Cannot add self as proxy.
671
+ **/
672
+ NoSelfProxy: GenericPalletError<Rv>;
673
+
674
+ /**
675
+ * Generic pallet error
676
+ **/
677
+ [error: string]: GenericPalletError<Rv>;
678
+ };
630
679
  /**
631
680
  * Pallet `Identity`'s errors
632
681
  **/
@@ -16,6 +16,7 @@ import type {
16
16
  CumulusPrimitivesCoreAggregateMessageOrigin,
17
17
  FrameSupportMessagesProcessMessageError,
18
18
  PalletMultisigTimepoint,
19
+ PeopleWestendRuntimeProxyType,
19
20
  } from './types';
20
21
 
21
22
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
@@ -918,6 +919,56 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
918
919
  **/
919
920
  [prop: string]: GenericPalletEvent<Rv>;
920
921
  };
922
+ /**
923
+ * Pallet `Proxy`'s events
924
+ **/
925
+ proxy: {
926
+ /**
927
+ * A proxy was executed correctly, with the given.
928
+ **/
929
+ ProxyExecuted: GenericPalletEvent<Rv, 'Proxy', 'ProxyExecuted', { result: Result<[], DispatchError> }>;
930
+
931
+ /**
932
+ * A pure account has been created by new proxy with given
933
+ * disambiguation index and proxy type.
934
+ **/
935
+ PureCreated: GenericPalletEvent<
936
+ Rv,
937
+ 'Proxy',
938
+ 'PureCreated',
939
+ { pure: AccountId32; who: AccountId32; proxyType: PeopleWestendRuntimeProxyType; disambiguationIndex: number }
940
+ >;
941
+
942
+ /**
943
+ * An announcement was placed to make a call in the future.
944
+ **/
945
+ Announced: GenericPalletEvent<Rv, 'Proxy', 'Announced', { real: AccountId32; proxy: AccountId32; callHash: H256 }>;
946
+
947
+ /**
948
+ * A proxy was added.
949
+ **/
950
+ ProxyAdded: GenericPalletEvent<
951
+ Rv,
952
+ 'Proxy',
953
+ 'ProxyAdded',
954
+ { delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleWestendRuntimeProxyType; delay: number }
955
+ >;
956
+
957
+ /**
958
+ * A proxy was removed.
959
+ **/
960
+ ProxyRemoved: GenericPalletEvent<
961
+ Rv,
962
+ 'Proxy',
963
+ 'ProxyRemoved',
964
+ { delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleWestendRuntimeProxyType; delay: number }
965
+ >;
966
+
967
+ /**
968
+ * Generic pallet event
969
+ **/
970
+ [prop: string]: GenericPalletEvent<Rv>;
971
+ };
921
972
  /**
922
973
  * Pallet `Identity`'s events
923
974
  **/
@@ -23,7 +23,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
23
23
 
24
24
  /**
25
25
  * @name: WestendPeopleApi
26
- * @specVersion: 1016000
26
+ * @specVersion: 1016001
27
27
  **/
28
28
  export interface WestendPeopleApi {
29
29
  legacy: VersionedWestendPeopleApi<RpcLegacy>;
@@ -54,6 +54,8 @@ import type {
54
54
  CumulusPrimitivesCoreAggregateMessageOrigin,
55
55
  PalletMessageQueuePage,
56
56
  PalletMultisigMultisig,
57
+ PalletProxyProxyDefinition,
58
+ PalletProxyAnnouncement,
57
59
  PalletIdentityRegistration,
58
60
  PalletIdentityRegistrarInfo,
59
61
  PalletIdentityAuthorityProperties,
@@ -1114,6 +1116,40 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1114
1116
  **/
1115
1117
  [storage: string]: GenericStorageQuery<Rv>;
1116
1118
  };
1119
+ /**
1120
+ * Pallet `Proxy`'s storage queries
1121
+ **/
1122
+ proxy: {
1123
+ /**
1124
+ * The set of account proxies. Maps the account which has delegated to the accounts
1125
+ * which are being delegated to, together with the amount held on deposit.
1126
+ *
1127
+ * @param {AccountId32Like} arg
1128
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1129
+ **/
1130
+ proxies: GenericStorageQuery<
1131
+ Rv,
1132
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1133
+ AccountId32
1134
+ >;
1135
+
1136
+ /**
1137
+ * The announcements made by the proxy (key).
1138
+ *
1139
+ * @param {AccountId32Like} arg
1140
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1141
+ **/
1142
+ announcements: GenericStorageQuery<
1143
+ Rv,
1144
+ (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
1145
+ AccountId32
1146
+ >;
1147
+
1148
+ /**
1149
+ * Generic pallet storage query
1150
+ **/
1151
+ [storage: string]: GenericStorageQuery<Rv>;
1152
+ };
1117
1153
  /**
1118
1154
  * Pallet `Identity`'s storage queries
1119
1155
  **/
@@ -607,7 +607,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
607
607
  *
608
608
  * Otherwise function returns a JSON representation of the built-in, named
609
609
  * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
610
- * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
610
+ * exist. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
611
611
  * (potentially nested) key-value pairs that are intended for customizing the default
612
612
  * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
613
613
  * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
@@ -29,6 +29,7 @@ import type {
29
29
  CumulusPrimitivesCoreAggregateMessageOrigin,
30
30
  PeopleWestendRuntimeOriginCaller,
31
31
  PalletMultisigTimepoint,
32
+ PeopleWestendRuntimeProxyType,
32
33
  PeopleWestendRuntimePeopleIdentityInfo,
33
34
  PalletIdentityJudgement,
34
35
  } from './types';
@@ -2179,6 +2180,373 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2179
2180
  **/
2180
2181
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2181
2182
  };
2183
+ /**
2184
+ * Pallet `Proxy`'s transaction calls
2185
+ **/
2186
+ proxy: {
2187
+ /**
2188
+ * Dispatch the given `call` from an account that the sender is authorised for through
2189
+ * `add_proxy`.
2190
+ *
2191
+ * The dispatch origin for this call must be _Signed_.
2192
+ *
2193
+ * Parameters:
2194
+ * - `real`: The account that the proxy will make a call on behalf of.
2195
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
2196
+ * - `call`: The call to be made by the `real` account.
2197
+ *
2198
+ * @param {MultiAddressLike} real
2199
+ * @param {PeopleWestendRuntimeProxyType | undefined} forceProxyType
2200
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
2201
+ **/
2202
+ proxy: GenericTxCall<
2203
+ Rv,
2204
+ (
2205
+ real: MultiAddressLike,
2206
+ forceProxyType: PeopleWestendRuntimeProxyType | undefined,
2207
+ call: PeopleWestendRuntimeRuntimeCallLike,
2208
+ ) => ChainSubmittableExtrinsic<
2209
+ Rv,
2210
+ {
2211
+ pallet: 'Proxy';
2212
+ palletCall: {
2213
+ name: 'Proxy';
2214
+ params: {
2215
+ real: MultiAddressLike;
2216
+ forceProxyType: PeopleWestendRuntimeProxyType | undefined;
2217
+ call: PeopleWestendRuntimeRuntimeCallLike;
2218
+ };
2219
+ };
2220
+ }
2221
+ >
2222
+ >;
2223
+
2224
+ /**
2225
+ * Register a proxy account for the sender that is able to make calls on its behalf.
2226
+ *
2227
+ * The dispatch origin for this call must be _Signed_.
2228
+ *
2229
+ * Parameters:
2230
+ * - `proxy`: The account that the `caller` would like to make a proxy.
2231
+ * - `proxy_type`: The permissions allowed for this proxy account.
2232
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
2233
+ * zero.
2234
+ *
2235
+ * @param {MultiAddressLike} delegate
2236
+ * @param {PeopleWestendRuntimeProxyType} proxyType
2237
+ * @param {number} delay
2238
+ **/
2239
+ addProxy: GenericTxCall<
2240
+ Rv,
2241
+ (
2242
+ delegate: MultiAddressLike,
2243
+ proxyType: PeopleWestendRuntimeProxyType,
2244
+ delay: number,
2245
+ ) => ChainSubmittableExtrinsic<
2246
+ Rv,
2247
+ {
2248
+ pallet: 'Proxy';
2249
+ palletCall: {
2250
+ name: 'AddProxy';
2251
+ params: { delegate: MultiAddressLike; proxyType: PeopleWestendRuntimeProxyType; delay: number };
2252
+ };
2253
+ }
2254
+ >
2255
+ >;
2256
+
2257
+ /**
2258
+ * Unregister a proxy account for the sender.
2259
+ *
2260
+ * The dispatch origin for this call must be _Signed_.
2261
+ *
2262
+ * Parameters:
2263
+ * - `proxy`: The account that the `caller` would like to remove as a proxy.
2264
+ * - `proxy_type`: The permissions currently enabled for the removed proxy account.
2265
+ *
2266
+ * @param {MultiAddressLike} delegate
2267
+ * @param {PeopleWestendRuntimeProxyType} proxyType
2268
+ * @param {number} delay
2269
+ **/
2270
+ removeProxy: GenericTxCall<
2271
+ Rv,
2272
+ (
2273
+ delegate: MultiAddressLike,
2274
+ proxyType: PeopleWestendRuntimeProxyType,
2275
+ delay: number,
2276
+ ) => ChainSubmittableExtrinsic<
2277
+ Rv,
2278
+ {
2279
+ pallet: 'Proxy';
2280
+ palletCall: {
2281
+ name: 'RemoveProxy';
2282
+ params: { delegate: MultiAddressLike; proxyType: PeopleWestendRuntimeProxyType; delay: number };
2283
+ };
2284
+ }
2285
+ >
2286
+ >;
2287
+
2288
+ /**
2289
+ * Unregister all proxy accounts for the sender.
2290
+ *
2291
+ * The dispatch origin for this call must be _Signed_.
2292
+ *
2293
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
2294
+ * the unreserved fees will be inaccessible. **All access to this account will be lost.**
2295
+ *
2296
+ **/
2297
+ removeProxies: GenericTxCall<
2298
+ Rv,
2299
+ () => ChainSubmittableExtrinsic<
2300
+ Rv,
2301
+ {
2302
+ pallet: 'Proxy';
2303
+ palletCall: {
2304
+ name: 'RemoveProxies';
2305
+ };
2306
+ }
2307
+ >
2308
+ >;
2309
+
2310
+ /**
2311
+ * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
2312
+ * initialize it with a proxy of `proxy_type` for `origin` sender.
2313
+ *
2314
+ * Requires a `Signed` origin.
2315
+ *
2316
+ * - `proxy_type`: The type of the proxy that the sender will be registered as over the
2317
+ * new account. This will almost always be the most permissive `ProxyType` possible to
2318
+ * allow for maximum flexibility.
2319
+ * - `index`: A disambiguation index, in case this is called multiple times in the same
2320
+ * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
2321
+ * want to use `0`.
2322
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
2323
+ * zero.
2324
+ *
2325
+ * Fails with `Duplicate` if this has already been called in this transaction, from the
2326
+ * same sender, with the same parameters.
2327
+ *
2328
+ * Fails if there are insufficient funds to pay for deposit.
2329
+ *
2330
+ * @param {PeopleWestendRuntimeProxyType} proxyType
2331
+ * @param {number} delay
2332
+ * @param {number} index
2333
+ **/
2334
+ createPure: GenericTxCall<
2335
+ Rv,
2336
+ (
2337
+ proxyType: PeopleWestendRuntimeProxyType,
2338
+ delay: number,
2339
+ index: number,
2340
+ ) => ChainSubmittableExtrinsic<
2341
+ Rv,
2342
+ {
2343
+ pallet: 'Proxy';
2344
+ palletCall: {
2345
+ name: 'CreatePure';
2346
+ params: { proxyType: PeopleWestendRuntimeProxyType; delay: number; index: number };
2347
+ };
2348
+ }
2349
+ >
2350
+ >;
2351
+
2352
+ /**
2353
+ * Removes a previously spawned pure proxy.
2354
+ *
2355
+ * WARNING: **All access to this account will be lost.** Any funds held in it will be
2356
+ * inaccessible.
2357
+ *
2358
+ * Requires a `Signed` origin, and the sender account must have been created by a call to
2359
+ * `pure` with corresponding parameters.
2360
+ *
2361
+ * - `spawner`: The account that originally called `pure` to create this account.
2362
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
2363
+ * - `proxy_type`: The proxy type originally passed to `pure`.
2364
+ * - `height`: The height of the chain when the call to `pure` was processed.
2365
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
2366
+ *
2367
+ * Fails with `NoPermission` in case the caller is not a previously created pure
2368
+ * account whose `pure` call has corresponding parameters.
2369
+ *
2370
+ * @param {MultiAddressLike} spawner
2371
+ * @param {PeopleWestendRuntimeProxyType} proxyType
2372
+ * @param {number} index
2373
+ * @param {number} height
2374
+ * @param {number} extIndex
2375
+ **/
2376
+ killPure: GenericTxCall<
2377
+ Rv,
2378
+ (
2379
+ spawner: MultiAddressLike,
2380
+ proxyType: PeopleWestendRuntimeProxyType,
2381
+ index: number,
2382
+ height: number,
2383
+ extIndex: number,
2384
+ ) => ChainSubmittableExtrinsic<
2385
+ Rv,
2386
+ {
2387
+ pallet: 'Proxy';
2388
+ palletCall: {
2389
+ name: 'KillPure';
2390
+ params: {
2391
+ spawner: MultiAddressLike;
2392
+ proxyType: PeopleWestendRuntimeProxyType;
2393
+ index: number;
2394
+ height: number;
2395
+ extIndex: number;
2396
+ };
2397
+ };
2398
+ }
2399
+ >
2400
+ >;
2401
+
2402
+ /**
2403
+ * Publish the hash of a proxy-call that will be made in the future.
2404
+ *
2405
+ * This must be called some number of blocks before the corresponding `proxy` is attempted
2406
+ * if the delay associated with the proxy relationship is greater than zero.
2407
+ *
2408
+ * No more than `MaxPending` announcements may be made at any one time.
2409
+ *
2410
+ * This will take a deposit of `AnnouncementDepositFactor` as well as
2411
+ * `AnnouncementDepositBase` if there are no other pending announcements.
2412
+ *
2413
+ * The dispatch origin for this call must be _Signed_ and a proxy of `real`.
2414
+ *
2415
+ * Parameters:
2416
+ * - `real`: The account that the proxy will make a call on behalf of.
2417
+ * - `call_hash`: The hash of the call to be made by the `real` account.
2418
+ *
2419
+ * @param {MultiAddressLike} real
2420
+ * @param {H256} callHash
2421
+ **/
2422
+ announce: GenericTxCall<
2423
+ Rv,
2424
+ (
2425
+ real: MultiAddressLike,
2426
+ callHash: H256,
2427
+ ) => ChainSubmittableExtrinsic<
2428
+ Rv,
2429
+ {
2430
+ pallet: 'Proxy';
2431
+ palletCall: {
2432
+ name: 'Announce';
2433
+ params: { real: MultiAddressLike; callHash: H256 };
2434
+ };
2435
+ }
2436
+ >
2437
+ >;
2438
+
2439
+ /**
2440
+ * Remove a given announcement.
2441
+ *
2442
+ * May be called by a proxy account to remove a call they previously announced and return
2443
+ * the deposit.
2444
+ *
2445
+ * The dispatch origin for this call must be _Signed_.
2446
+ *
2447
+ * Parameters:
2448
+ * - `real`: The account that the proxy will make a call on behalf of.
2449
+ * - `call_hash`: The hash of the call to be made by the `real` account.
2450
+ *
2451
+ * @param {MultiAddressLike} real
2452
+ * @param {H256} callHash
2453
+ **/
2454
+ removeAnnouncement: GenericTxCall<
2455
+ Rv,
2456
+ (
2457
+ real: MultiAddressLike,
2458
+ callHash: H256,
2459
+ ) => ChainSubmittableExtrinsic<
2460
+ Rv,
2461
+ {
2462
+ pallet: 'Proxy';
2463
+ palletCall: {
2464
+ name: 'RemoveAnnouncement';
2465
+ params: { real: MultiAddressLike; callHash: H256 };
2466
+ };
2467
+ }
2468
+ >
2469
+ >;
2470
+
2471
+ /**
2472
+ * Remove the given announcement of a delegate.
2473
+ *
2474
+ * May be called by a target (proxied) account to remove a call that one of their delegates
2475
+ * (`delegate`) has announced they want to execute. The deposit is returned.
2476
+ *
2477
+ * The dispatch origin for this call must be _Signed_.
2478
+ *
2479
+ * Parameters:
2480
+ * - `delegate`: The account that previously announced the call.
2481
+ * - `call_hash`: The hash of the call to be made.
2482
+ *
2483
+ * @param {MultiAddressLike} delegate
2484
+ * @param {H256} callHash
2485
+ **/
2486
+ rejectAnnouncement: GenericTxCall<
2487
+ Rv,
2488
+ (
2489
+ delegate: MultiAddressLike,
2490
+ callHash: H256,
2491
+ ) => ChainSubmittableExtrinsic<
2492
+ Rv,
2493
+ {
2494
+ pallet: 'Proxy';
2495
+ palletCall: {
2496
+ name: 'RejectAnnouncement';
2497
+ params: { delegate: MultiAddressLike; callHash: H256 };
2498
+ };
2499
+ }
2500
+ >
2501
+ >;
2502
+
2503
+ /**
2504
+ * Dispatch the given `call` from an account that the sender is authorized for through
2505
+ * `add_proxy`.
2506
+ *
2507
+ * Removes any corresponding announcement(s).
2508
+ *
2509
+ * The dispatch origin for this call must be _Signed_.
2510
+ *
2511
+ * Parameters:
2512
+ * - `real`: The account that the proxy will make a call on behalf of.
2513
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
2514
+ * - `call`: The call to be made by the `real` account.
2515
+ *
2516
+ * @param {MultiAddressLike} delegate
2517
+ * @param {MultiAddressLike} real
2518
+ * @param {PeopleWestendRuntimeProxyType | undefined} forceProxyType
2519
+ * @param {PeopleWestendRuntimeRuntimeCallLike} call
2520
+ **/
2521
+ proxyAnnounced: GenericTxCall<
2522
+ Rv,
2523
+ (
2524
+ delegate: MultiAddressLike,
2525
+ real: MultiAddressLike,
2526
+ forceProxyType: PeopleWestendRuntimeProxyType | undefined,
2527
+ call: PeopleWestendRuntimeRuntimeCallLike,
2528
+ ) => ChainSubmittableExtrinsic<
2529
+ Rv,
2530
+ {
2531
+ pallet: 'Proxy';
2532
+ palletCall: {
2533
+ name: 'ProxyAnnounced';
2534
+ params: {
2535
+ delegate: MultiAddressLike;
2536
+ real: MultiAddressLike;
2537
+ forceProxyType: PeopleWestendRuntimeProxyType | undefined;
2538
+ call: PeopleWestendRuntimeRuntimeCallLike;
2539
+ };
2540
+ };
2541
+ }
2542
+ >
2543
+ >;
2544
+
2545
+ /**
2546
+ * Generic pallet tx call
2547
+ **/
2548
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2549
+ };
2182
2550
  /**
2183
2551
  * Pallet `Identity`'s transaction calls
2184
2552
  **/
@@ -60,6 +60,7 @@ export type PeopleWestendRuntimeRuntimeEvent =
60
60
  | { pallet: 'MessageQueue'; palletEvent: PalletMessageQueueEvent }
61
61
  | { pallet: 'Utility'; palletEvent: PalletUtilityEvent }
62
62
  | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent }
63
+ | { pallet: 'Proxy'; palletEvent: PalletProxyEvent }
63
64
  | { pallet: 'Identity'; palletEvent: PalletIdentityEvent }
64
65
  | { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
65
66
 
@@ -1135,6 +1136,54 @@ export type PalletMultisigEvent =
1135
1136
 
1136
1137
  export type PalletMultisigTimepoint = { height: number; index: number };
1137
1138
 
1139
+ /**
1140
+ * The `Event` enum of this pallet
1141
+ **/
1142
+ export type PalletProxyEvent =
1143
+ /**
1144
+ * A proxy was executed correctly, with the given.
1145
+ **/
1146
+ | { name: 'ProxyExecuted'; data: { result: Result<[], DispatchError> } }
1147
+ /**
1148
+ * A pure account has been created by new proxy with given
1149
+ * disambiguation index and proxy type.
1150
+ **/
1151
+ | {
1152
+ name: 'PureCreated';
1153
+ data: {
1154
+ pure: AccountId32;
1155
+ who: AccountId32;
1156
+ proxyType: PeopleWestendRuntimeProxyType;
1157
+ disambiguationIndex: number;
1158
+ };
1159
+ }
1160
+ /**
1161
+ * An announcement was placed to make a call in the future.
1162
+ **/
1163
+ | { name: 'Announced'; data: { real: AccountId32; proxy: AccountId32; callHash: H256 } }
1164
+ /**
1165
+ * A proxy was added.
1166
+ **/
1167
+ | {
1168
+ name: 'ProxyAdded';
1169
+ data: { delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleWestendRuntimeProxyType; delay: number };
1170
+ }
1171
+ /**
1172
+ * A proxy was removed.
1173
+ **/
1174
+ | {
1175
+ name: 'ProxyRemoved';
1176
+ data: { delegator: AccountId32; delegatee: AccountId32; proxyType: PeopleWestendRuntimeProxyType; delay: number };
1177
+ };
1178
+
1179
+ export type PeopleWestendRuntimeProxyType =
1180
+ | 'Any'
1181
+ | 'NonTransfer'
1182
+ | 'CancelProxy'
1183
+ | 'Identity'
1184
+ | 'IdentityJudgement'
1185
+ | 'Collator';
1186
+
1138
1187
  /**
1139
1188
  * The `Event` enum of this pallet
1140
1189
  **/
@@ -3750,6 +3799,7 @@ export type PeopleWestendRuntimeRuntimeCall =
3750
3799
  | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCall }
3751
3800
  | { pallet: 'Utility'; palletCall: PalletUtilityCall }
3752
3801
  | { pallet: 'Multisig'; palletCall: PalletMultisigCall }
3802
+ | { pallet: 'Proxy'; palletCall: PalletProxyCall }
3753
3803
  | { pallet: 'Identity'; palletCall: PalletIdentityCall }
3754
3804
  | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
3755
3805
 
@@ -3767,6 +3817,7 @@ export type PeopleWestendRuntimeRuntimeCallLike =
3767
3817
  | { pallet: 'MessageQueue'; palletCall: PalletMessageQueueCallLike }
3768
3818
  | { pallet: 'Utility'; palletCall: PalletUtilityCallLike }
3769
3819
  | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
3820
+ | { pallet: 'Proxy'; palletCall: PalletProxyCallLike }
3770
3821
  | { pallet: 'Identity'; palletCall: PalletIdentityCallLike }
3771
3822
  | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
3772
3823
 
@@ -4063,6 +4114,349 @@ export type PalletMultisigCallLike =
4063
4114
  };
4064
4115
  };
4065
4116
 
4117
+ /**
4118
+ * Contains a variant per dispatchable extrinsic that this pallet has.
4119
+ **/
4120
+ export type PalletProxyCall =
4121
+ /**
4122
+ * Dispatch the given `call` from an account that the sender is authorised for through
4123
+ * `add_proxy`.
4124
+ *
4125
+ * The dispatch origin for this call must be _Signed_.
4126
+ *
4127
+ * Parameters:
4128
+ * - `real`: The account that the proxy will make a call on behalf of.
4129
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
4130
+ * - `call`: The call to be made by the `real` account.
4131
+ **/
4132
+ | {
4133
+ name: 'Proxy';
4134
+ params: {
4135
+ real: MultiAddress;
4136
+ forceProxyType?: PeopleWestendRuntimeProxyType | undefined;
4137
+ call: PeopleWestendRuntimeRuntimeCall;
4138
+ };
4139
+ }
4140
+ /**
4141
+ * Register a proxy account for the sender that is able to make calls on its behalf.
4142
+ *
4143
+ * The dispatch origin for this call must be _Signed_.
4144
+ *
4145
+ * Parameters:
4146
+ * - `proxy`: The account that the `caller` would like to make a proxy.
4147
+ * - `proxy_type`: The permissions allowed for this proxy account.
4148
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
4149
+ * zero.
4150
+ **/
4151
+ | { name: 'AddProxy'; params: { delegate: MultiAddress; proxyType: PeopleWestendRuntimeProxyType; delay: number } }
4152
+ /**
4153
+ * Unregister a proxy account for the sender.
4154
+ *
4155
+ * The dispatch origin for this call must be _Signed_.
4156
+ *
4157
+ * Parameters:
4158
+ * - `proxy`: The account that the `caller` would like to remove as a proxy.
4159
+ * - `proxy_type`: The permissions currently enabled for the removed proxy account.
4160
+ **/
4161
+ | { name: 'RemoveProxy'; params: { delegate: MultiAddress; proxyType: PeopleWestendRuntimeProxyType; delay: number } }
4162
+ /**
4163
+ * Unregister all proxy accounts for the sender.
4164
+ *
4165
+ * The dispatch origin for this call must be _Signed_.
4166
+ *
4167
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
4168
+ * the unreserved fees will be inaccessible. **All access to this account will be lost.**
4169
+ **/
4170
+ | { name: 'RemoveProxies' }
4171
+ /**
4172
+ * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
4173
+ * initialize it with a proxy of `proxy_type` for `origin` sender.
4174
+ *
4175
+ * Requires a `Signed` origin.
4176
+ *
4177
+ * - `proxy_type`: The type of the proxy that the sender will be registered as over the
4178
+ * new account. This will almost always be the most permissive `ProxyType` possible to
4179
+ * allow for maximum flexibility.
4180
+ * - `index`: A disambiguation index, in case this is called multiple times in the same
4181
+ * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
4182
+ * want to use `0`.
4183
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
4184
+ * zero.
4185
+ *
4186
+ * Fails with `Duplicate` if this has already been called in this transaction, from the
4187
+ * same sender, with the same parameters.
4188
+ *
4189
+ * Fails if there are insufficient funds to pay for deposit.
4190
+ **/
4191
+ | { name: 'CreatePure'; params: { proxyType: PeopleWestendRuntimeProxyType; delay: number; index: number } }
4192
+ /**
4193
+ * Removes a previously spawned pure proxy.
4194
+ *
4195
+ * WARNING: **All access to this account will be lost.** Any funds held in it will be
4196
+ * inaccessible.
4197
+ *
4198
+ * Requires a `Signed` origin, and the sender account must have been created by a call to
4199
+ * `pure` with corresponding parameters.
4200
+ *
4201
+ * - `spawner`: The account that originally called `pure` to create this account.
4202
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
4203
+ * - `proxy_type`: The proxy type originally passed to `pure`.
4204
+ * - `height`: The height of the chain when the call to `pure` was processed.
4205
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
4206
+ *
4207
+ * Fails with `NoPermission` in case the caller is not a previously created pure
4208
+ * account whose `pure` call has corresponding parameters.
4209
+ **/
4210
+ | {
4211
+ name: 'KillPure';
4212
+ params: {
4213
+ spawner: MultiAddress;
4214
+ proxyType: PeopleWestendRuntimeProxyType;
4215
+ index: number;
4216
+ height: number;
4217
+ extIndex: number;
4218
+ };
4219
+ }
4220
+ /**
4221
+ * Publish the hash of a proxy-call that will be made in the future.
4222
+ *
4223
+ * This must be called some number of blocks before the corresponding `proxy` is attempted
4224
+ * if the delay associated with the proxy relationship is greater than zero.
4225
+ *
4226
+ * No more than `MaxPending` announcements may be made at any one time.
4227
+ *
4228
+ * This will take a deposit of `AnnouncementDepositFactor` as well as
4229
+ * `AnnouncementDepositBase` if there are no other pending announcements.
4230
+ *
4231
+ * The dispatch origin for this call must be _Signed_ and a proxy of `real`.
4232
+ *
4233
+ * Parameters:
4234
+ * - `real`: The account that the proxy will make a call on behalf of.
4235
+ * - `call_hash`: The hash of the call to be made by the `real` account.
4236
+ **/
4237
+ | { name: 'Announce'; params: { real: MultiAddress; callHash: H256 } }
4238
+ /**
4239
+ * Remove a given announcement.
4240
+ *
4241
+ * May be called by a proxy account to remove a call they previously announced and return
4242
+ * the deposit.
4243
+ *
4244
+ * The dispatch origin for this call must be _Signed_.
4245
+ *
4246
+ * Parameters:
4247
+ * - `real`: The account that the proxy will make a call on behalf of.
4248
+ * - `call_hash`: The hash of the call to be made by the `real` account.
4249
+ **/
4250
+ | { name: 'RemoveAnnouncement'; params: { real: MultiAddress; callHash: H256 } }
4251
+ /**
4252
+ * Remove the given announcement of a delegate.
4253
+ *
4254
+ * May be called by a target (proxied) account to remove a call that one of their delegates
4255
+ * (`delegate`) has announced they want to execute. The deposit is returned.
4256
+ *
4257
+ * The dispatch origin for this call must be _Signed_.
4258
+ *
4259
+ * Parameters:
4260
+ * - `delegate`: The account that previously announced the call.
4261
+ * - `call_hash`: The hash of the call to be made.
4262
+ **/
4263
+ | { name: 'RejectAnnouncement'; params: { delegate: MultiAddress; callHash: H256 } }
4264
+ /**
4265
+ * Dispatch the given `call` from an account that the sender is authorized for through
4266
+ * `add_proxy`.
4267
+ *
4268
+ * Removes any corresponding announcement(s).
4269
+ *
4270
+ * The dispatch origin for this call must be _Signed_.
4271
+ *
4272
+ * Parameters:
4273
+ * - `real`: The account that the proxy will make a call on behalf of.
4274
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
4275
+ * - `call`: The call to be made by the `real` account.
4276
+ **/
4277
+ | {
4278
+ name: 'ProxyAnnounced';
4279
+ params: {
4280
+ delegate: MultiAddress;
4281
+ real: MultiAddress;
4282
+ forceProxyType?: PeopleWestendRuntimeProxyType | undefined;
4283
+ call: PeopleWestendRuntimeRuntimeCall;
4284
+ };
4285
+ };
4286
+
4287
+ export type PalletProxyCallLike =
4288
+ /**
4289
+ * Dispatch the given `call` from an account that the sender is authorised for through
4290
+ * `add_proxy`.
4291
+ *
4292
+ * The dispatch origin for this call must be _Signed_.
4293
+ *
4294
+ * Parameters:
4295
+ * - `real`: The account that the proxy will make a call on behalf of.
4296
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
4297
+ * - `call`: The call to be made by the `real` account.
4298
+ **/
4299
+ | {
4300
+ name: 'Proxy';
4301
+ params: {
4302
+ real: MultiAddressLike;
4303
+ forceProxyType?: PeopleWestendRuntimeProxyType | undefined;
4304
+ call: PeopleWestendRuntimeRuntimeCallLike;
4305
+ };
4306
+ }
4307
+ /**
4308
+ * Register a proxy account for the sender that is able to make calls on its behalf.
4309
+ *
4310
+ * The dispatch origin for this call must be _Signed_.
4311
+ *
4312
+ * Parameters:
4313
+ * - `proxy`: The account that the `caller` would like to make a proxy.
4314
+ * - `proxy_type`: The permissions allowed for this proxy account.
4315
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
4316
+ * zero.
4317
+ **/
4318
+ | {
4319
+ name: 'AddProxy';
4320
+ params: { delegate: MultiAddressLike; proxyType: PeopleWestendRuntimeProxyType; delay: number };
4321
+ }
4322
+ /**
4323
+ * Unregister a proxy account for the sender.
4324
+ *
4325
+ * The dispatch origin for this call must be _Signed_.
4326
+ *
4327
+ * Parameters:
4328
+ * - `proxy`: The account that the `caller` would like to remove as a proxy.
4329
+ * - `proxy_type`: The permissions currently enabled for the removed proxy account.
4330
+ **/
4331
+ | {
4332
+ name: 'RemoveProxy';
4333
+ params: { delegate: MultiAddressLike; proxyType: PeopleWestendRuntimeProxyType; delay: number };
4334
+ }
4335
+ /**
4336
+ * Unregister all proxy accounts for the sender.
4337
+ *
4338
+ * The dispatch origin for this call must be _Signed_.
4339
+ *
4340
+ * WARNING: This may be called on accounts created by `pure`, however if done, then
4341
+ * the unreserved fees will be inaccessible. **All access to this account will be lost.**
4342
+ **/
4343
+ | { name: 'RemoveProxies' }
4344
+ /**
4345
+ * Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
4346
+ * initialize it with a proxy of `proxy_type` for `origin` sender.
4347
+ *
4348
+ * Requires a `Signed` origin.
4349
+ *
4350
+ * - `proxy_type`: The type of the proxy that the sender will be registered as over the
4351
+ * new account. This will almost always be the most permissive `ProxyType` possible to
4352
+ * allow for maximum flexibility.
4353
+ * - `index`: A disambiguation index, in case this is called multiple times in the same
4354
+ * transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
4355
+ * want to use `0`.
4356
+ * - `delay`: The announcement period required of the initial proxy. Will generally be
4357
+ * zero.
4358
+ *
4359
+ * Fails with `Duplicate` if this has already been called in this transaction, from the
4360
+ * same sender, with the same parameters.
4361
+ *
4362
+ * Fails if there are insufficient funds to pay for deposit.
4363
+ **/
4364
+ | { name: 'CreatePure'; params: { proxyType: PeopleWestendRuntimeProxyType; delay: number; index: number } }
4365
+ /**
4366
+ * Removes a previously spawned pure proxy.
4367
+ *
4368
+ * WARNING: **All access to this account will be lost.** Any funds held in it will be
4369
+ * inaccessible.
4370
+ *
4371
+ * Requires a `Signed` origin, and the sender account must have been created by a call to
4372
+ * `pure` with corresponding parameters.
4373
+ *
4374
+ * - `spawner`: The account that originally called `pure` to create this account.
4375
+ * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
4376
+ * - `proxy_type`: The proxy type originally passed to `pure`.
4377
+ * - `height`: The height of the chain when the call to `pure` was processed.
4378
+ * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
4379
+ *
4380
+ * Fails with `NoPermission` in case the caller is not a previously created pure
4381
+ * account whose `pure` call has corresponding parameters.
4382
+ **/
4383
+ | {
4384
+ name: 'KillPure';
4385
+ params: {
4386
+ spawner: MultiAddressLike;
4387
+ proxyType: PeopleWestendRuntimeProxyType;
4388
+ index: number;
4389
+ height: number;
4390
+ extIndex: number;
4391
+ };
4392
+ }
4393
+ /**
4394
+ * Publish the hash of a proxy-call that will be made in the future.
4395
+ *
4396
+ * This must be called some number of blocks before the corresponding `proxy` is attempted
4397
+ * if the delay associated with the proxy relationship is greater than zero.
4398
+ *
4399
+ * No more than `MaxPending` announcements may be made at any one time.
4400
+ *
4401
+ * This will take a deposit of `AnnouncementDepositFactor` as well as
4402
+ * `AnnouncementDepositBase` if there are no other pending announcements.
4403
+ *
4404
+ * The dispatch origin for this call must be _Signed_ and a proxy of `real`.
4405
+ *
4406
+ * Parameters:
4407
+ * - `real`: The account that the proxy will make a call on behalf of.
4408
+ * - `call_hash`: The hash of the call to be made by the `real` account.
4409
+ **/
4410
+ | { name: 'Announce'; params: { real: MultiAddressLike; callHash: H256 } }
4411
+ /**
4412
+ * Remove a given announcement.
4413
+ *
4414
+ * May be called by a proxy account to remove a call they previously announced and return
4415
+ * the deposit.
4416
+ *
4417
+ * The dispatch origin for this call must be _Signed_.
4418
+ *
4419
+ * Parameters:
4420
+ * - `real`: The account that the proxy will make a call on behalf of.
4421
+ * - `call_hash`: The hash of the call to be made by the `real` account.
4422
+ **/
4423
+ | { name: 'RemoveAnnouncement'; params: { real: MultiAddressLike; callHash: H256 } }
4424
+ /**
4425
+ * Remove the given announcement of a delegate.
4426
+ *
4427
+ * May be called by a target (proxied) account to remove a call that one of their delegates
4428
+ * (`delegate`) has announced they want to execute. The deposit is returned.
4429
+ *
4430
+ * The dispatch origin for this call must be _Signed_.
4431
+ *
4432
+ * Parameters:
4433
+ * - `delegate`: The account that previously announced the call.
4434
+ * - `call_hash`: The hash of the call to be made.
4435
+ **/
4436
+ | { name: 'RejectAnnouncement'; params: { delegate: MultiAddressLike; callHash: H256 } }
4437
+ /**
4438
+ * Dispatch the given `call` from an account that the sender is authorized for through
4439
+ * `add_proxy`.
4440
+ *
4441
+ * Removes any corresponding announcement(s).
4442
+ *
4443
+ * The dispatch origin for this call must be _Signed_.
4444
+ *
4445
+ * Parameters:
4446
+ * - `real`: The account that the proxy will make a call on behalf of.
4447
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
4448
+ * - `call`: The call to be made by the `real` account.
4449
+ **/
4450
+ | {
4451
+ name: 'ProxyAnnounced';
4452
+ params: {
4453
+ delegate: MultiAddressLike;
4454
+ real: MultiAddressLike;
4455
+ forceProxyType?: PeopleWestendRuntimeProxyType | undefined;
4456
+ call: PeopleWestendRuntimeRuntimeCallLike;
4457
+ };
4458
+ };
4459
+
4066
4460
  /**
4067
4461
  * Identity pallet declaration.
4068
4462
  **/
@@ -4682,6 +5076,51 @@ export type PalletMultisigError =
4682
5076
  **/
4683
5077
  | 'AlreadyStored';
4684
5078
 
5079
+ export type PalletProxyProxyDefinition = {
5080
+ delegate: AccountId32;
5081
+ proxyType: PeopleWestendRuntimeProxyType;
5082
+ delay: number;
5083
+ };
5084
+
5085
+ export type PalletProxyAnnouncement = { real: AccountId32; callHash: H256; height: number };
5086
+
5087
+ /**
5088
+ * The `Error` enum of this pallet.
5089
+ **/
5090
+ export type PalletProxyError =
5091
+ /**
5092
+ * There are too many proxies registered or too many announcements pending.
5093
+ **/
5094
+ | 'TooMany'
5095
+ /**
5096
+ * Proxy registration not found.
5097
+ **/
5098
+ | 'NotFound'
5099
+ /**
5100
+ * Sender is not a proxy of the account to be proxied.
5101
+ **/
5102
+ | 'NotProxy'
5103
+ /**
5104
+ * A call which is incompatible with the proxy type's filter was attempted.
5105
+ **/
5106
+ | 'Unproxyable'
5107
+ /**
5108
+ * Account is already a proxy.
5109
+ **/
5110
+ | 'Duplicate'
5111
+ /**
5112
+ * Call may not be made by proxy because it may escalate its privileges.
5113
+ **/
5114
+ | 'NoPermission'
5115
+ /**
5116
+ * Announcement, if made at all, was made too recently.
5117
+ **/
5118
+ | 'Unannounced'
5119
+ /**
5120
+ * Cannot add self as proxy.
5121
+ **/
5122
+ | 'NoSelfProxy';
5123
+
4685
5124
  export type PalletIdentityRegistration = {
4686
5125
  judgements: Array<[number, PalletIdentityJudgement]>;
4687
5126
  deposit: bigint;
@@ -4935,4 +5374,5 @@ export type PeopleWestendRuntimeRuntimeError =
4935
5374
  | { pallet: 'MessageQueue'; palletError: PalletMessageQueueError }
4936
5375
  | { pallet: 'Utility'; palletError: PalletUtilityError }
4937
5376
  | { pallet: 'Multisig'; palletError: PalletMultisigError }
5377
+ | { pallet: 'Proxy'; palletError: PalletProxyError }
4938
5378
  | { pallet: 'Identity'; palletError: PalletIdentityError };