Browse Source

types: update augment types

Mokhtar Naamani 4 years ago
parent
commit
445eaab2ca

+ 3 - 0
types/augment-codec/augment-api-consts.ts

@@ -66,6 +66,9 @@ declare module '@polkadot/metadata/Decorated/consts/types' {
        **/
       maxWorkerNumberLimit: AugmentedConst<u32>;
     };
+    members: {
+      screenedMemberMaxInitialBalance: AugmentedConst<BalanceOf>;
+    };
     proposalsCodex: {
       /**
        * Exports max wasm code length of the runtime upgrade proposal const.

+ 7 - 1
types/augment-codec/augment-api-tx.ts

@@ -613,7 +613,13 @@ declare module '@polkadot/api/types/submittable' {
       heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
     };
     members: {
-      addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
+      /**
+       * Screened members are awarded a initial locked balance that can only be slashed or used
+       * for fees, and is not transferable. The screening authority must ensure that the provided
+       * new_member_account was verified to avoid applying locks arbitrarily to accounts not controlled
+       * by the member.
+       **/
+      addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array, initialBalance: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
       /**
        * Non-members can buy membership
        **/

+ 3 - 0
types/augment/augment-api-consts.ts

@@ -66,6 +66,9 @@ declare module '@polkadot/metadata/Decorated/consts/types' {
        **/
       maxWorkerNumberLimit: AugmentedConst<u32>;
     };
+    members: {
+      screenedMemberMaxInitialBalance: AugmentedConst<BalanceOf>;
+    };
     proposalsCodex: {
       /**
        * Exports max wasm code length of the runtime upgrade proposal const.

+ 7 - 1
types/augment/augment-api-tx.ts

@@ -613,7 +613,13 @@ declare module '@polkadot/api/types/submittable' {
       heartbeat: AugmentedSubmittable<(heartbeat: Heartbeat | { blockNumber?: any; networkState?: any; sessionIndex?: any; authorityIndex?: any; validatorsLen?: any } | string | Uint8Array, signature: Signature | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
     };
     members: {
-      addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
+      /**
+       * Screened members are awarded a initial locked balance that can only be slashed or used
+       * for fees, and is not transferable. The screening authority must ensure that the provided
+       * new_member_account was verified to avoid applying locks arbitrarily to accounts not controlled
+       * by the member.
+       **/
+      addScreenedMember: AugmentedSubmittable<(newMemberAccount: AccountId | string | Uint8Array, handle: Option<Bytes> | null | object | string | Uint8Array, avatarUri: Option<Bytes> | null | object | string | Uint8Array, about: Option<Bytes> | null | object | string | Uint8Array, initialBalance: Option<BalanceOf> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
       /**
        * Non-members can buy membership
        **/