Skip to content

chore: release 0.34.1 #821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"typedoc": "^0.23.0",
"typescript": "^4.8.3"
},
"version": "0.34.0",
"version": "0.34.1-rc.1",
"packageManager": "yarn@3.3.1"
}
2 changes: 1 addition & 1 deletion packages/asset-did/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/asset-did",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/augment-api/metadata/spiritnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/augment-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/augment-api",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"types": "./lib/index.d.ts",
"type": "module",
Expand Down
4 changes: 1 addition & 3 deletions packages/augment-api/src/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ declare module '@polkadot/api-base/types/submittable' {
* - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
* of the funds the account has, causing the sender account to be killed (false), or
* transfer everything except at least the existential deposit, which will guarantee to
* keep the sender account alive (true).
*
* ## Complexity
* keep the sender account alive (true). ## Complexity
* - O(1). Just like transfer, but reading the user's transferable balance first.
**/
transferAll: AugmentedSubmittable<(dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
Expand Down
24 changes: 23 additions & 1 deletion packages/augment-api/src/interfaces/augment-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// this is required to allow for ambient/previous definitions
import '@polkadot/types/types/registry';

import type { DidApiAccountId, PublicCredentialError, PublicCredentialFilter, RawDidLinkedInfo, StakingRates } from '@kiltprotocol/augment-api/extraDefs';
import type { BlindedLeaves, BlindedValue, CompleteMerkleProof, DidApiAccountId, DidIdentityProviderError, DidKeyMerkleKey, DidKeyMerkleValue, DidMerkleProofError, DipProofRequest, IdentityCommitmentVersion, KeyId, KeyRelationship, LinkedAccountMerkleKey, LinkedAccountMerkleValue, LinkedDidIdentityProviderError, MerkleProof, MerkleRoot, PublicCredentialError, PublicCredentialFilter, RawDidLinkedInfo, RevealedLeaf, RevealedLeaves, RuntimeApiDipProofError, StakingRates, VerificationRelationship, Web3NameMerkleKey, Web3NameMerkleValue } from '@kiltprotocol/augment-api/extraDefs';
import type { Data, StorageKey } from '@polkadot/types';
import type { BitVec, Bool, Bytes, F32, F64, I128, I16, I256, I32, I64, I8, ISize, Json, Null, OptionBool, Raw, Text, Type, U128, U16, U256, U32, U64, U8, USize, bool, f32, f64, i128, i16, i256, i32, i64, i8, isize, u128, u16, u256, u32, u64, u8, usize } from '@polkadot/types-codec';
import type { AssetApproval, AssetApprovalKey, AssetBalance, AssetDestroyWitness, AssetDetails, AssetMetadata, TAssetBalance, TAssetDepositBalance } from '@polkadot/types/interfaces/assets';
Expand Down Expand Up @@ -171,6 +171,8 @@ declare module '@polkadot/types/types/registry' {
Bidder: Bidder;
BidKind: BidKind;
BitVec: BitVec;
BlindedLeaves: BlindedLeaves;
BlindedValue: BlindedValue;
Block: Block;
BlockAttestations: BlockAttestations;
BlockHash: BlockHash;
Expand Down Expand Up @@ -243,6 +245,7 @@ declare module '@polkadot/types/types/registry' {
CompactAssignmentsWith24: CompactAssignmentsWith24;
CompactScore: CompactScore;
CompactScoreCompact: CompactScoreCompact;
CompleteMerkleProof: CompleteMerkleProof;
ConfigData: ConfigData;
Consensus: Consensus;
ConsensusEngineId: ConsensusEngineId;
Expand Down Expand Up @@ -334,9 +337,14 @@ declare module '@polkadot/types/types/registry' {
DepositBalanceOf: DepositBalanceOf;
DestroyWitness: DestroyWitness;
DidApiAccountId: DidApiAccountId;
DidIdentityProviderError: DidIdentityProviderError;
DidKeyMerkleKey: DidKeyMerkleKey;
DidKeyMerkleValue: DidKeyMerkleValue;
DidMerkleProofError: DidMerkleProofError;
Digest: Digest;
DigestItem: DigestItem;
DigestOf: DigestOf;
DipProofRequest: DipProofRequest;
DispatchClass: DispatchClass;
DispatchError: DispatchError;
DispatchErrorModule: DispatchErrorModule;
Expand Down Expand Up @@ -557,6 +565,7 @@ declare module '@polkadot/types/types/registry' {
i8: i8;
I8: I8;
IdentificationTuple: IdentificationTuple;
IdentityCommitmentVersion: IdentityCommitmentVersion;
IdentityFields: IdentityFields;
IdentityInfo: IdentityInfo;
IdentityInfoAdditional: IdentityInfoAdditional;
Expand Down Expand Up @@ -609,7 +618,9 @@ declare module '@polkadot/types/types/registry' {
JustificationNotification: JustificationNotification;
Justifications: Justifications;
Key: Key;
KeyId: KeyId;
KeyOwnerProof: KeyOwnerProof;
KeyRelationship: KeyRelationship;
Keys: Keys;
KeyType: KeyType;
KeyTypeId: KeyTypeId;
Expand All @@ -624,6 +635,9 @@ declare module '@polkadot/types/types/registry' {
LegacyTransaction: LegacyTransaction;
Limits: Limits;
LimitsTo264: LimitsTo264;
LinkedAccountMerkleKey: LinkedAccountMerkleKey;
LinkedAccountMerkleValue: LinkedAccountMerkleValue;
LinkedDidIdentityProviderError: LinkedDidIdentityProviderError;
LocalValidationData: LocalValidationData;
LockIdentifier: LockIdentifier;
LookupSource: LookupSource;
Expand All @@ -633,6 +647,8 @@ declare module '@polkadot/types/types/registry' {
MaybeVrf: MaybeVrf;
MemberCount: MemberCount;
MembershipProof: MembershipProof;
MerkleProof: MerkleProof;
MerkleRoot: MerkleRoot;
MessageData: MessageData;
MessageId: MessageId;
MessageIngestionType: MessageIngestionType;
Expand Down Expand Up @@ -893,11 +909,14 @@ declare module '@polkadot/types/types/registry' {
ResponseV2Error: ResponseV2Error;
ResponseV2Result: ResponseV2Result;
Retriable: Retriable;
RevealedLeaf: RevealedLeaf;
RevealedLeaves: RevealedLeaves;
RewardDestination: RewardDestination;
RewardPoint: RewardPoint;
RoundSnapshot: RoundSnapshot;
RoundState: RoundState;
RpcMethods: RpcMethods;
RuntimeApiDipProofError: RuntimeApiDipProofError;
RuntimeApiMetadataLatest: RuntimeApiMetadataLatest;
RuntimeApiMetadataV15: RuntimeApiMetadataV15;
RuntimeApiMethodMetadataV15: RuntimeApiMethodMetadataV15;
Expand Down Expand Up @@ -1154,6 +1173,7 @@ declare module '@polkadot/types/types/registry' {
ValidityAttestation: ValidityAttestation;
ValidTransaction: ValidTransaction;
VecInboundHrmpMessage: VecInboundHrmpMessage;
VerificationRelationship: VerificationRelationship;
VersionedMultiAsset: VersionedMultiAsset;
VersionedMultiAssets: VersionedMultiAssets;
VersionedMultiLocation: VersionedMultiLocation;
Expand All @@ -1178,6 +1198,8 @@ declare module '@polkadot/types/types/registry' {
VrfData: VrfData;
VrfOutput: VrfOutput;
VrfProof: VrfProof;
Web3NameMerkleKey: Web3NameMerkleKey;
Web3NameMerkleValue: Web3NameMerkleValue;
Weight: Weight;
WeightLimitV2: WeightLimitV2;
WeightMultiplier: WeightMultiplier;
Expand Down
127 changes: 124 additions & 3 deletions packages/augment-api/src/interfaces/extraDefs/types.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,97 @@
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */

import type { Enum, Option, Struct, Text, Vec } from '@polkadot/types-codec';
import type { AccountId32, Hash, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { Bytes, Enum, Null, Option, Struct, Text, Vec, bool, u16 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, BlockNumber, Hash, Perquintill } from '@polkadot/types/interfaces/runtime';
// FIXME: manually added as they are not automatically imported
import type { DidServiceEndpointsDidEndpoint, DidDidDetails, PalletDidLookupLinkableAccountLinkableAccountId } from '@polkadot/types/lookup'
import type { DidServiceEndpointsDidEndpoint, DidDidDetails, DidDidDetailsDidPublicKeyDetails, PalletDidLookupLinkableAccountLinkableAccountId } from '@polkadot/types/lookup'

/** @name BlindedLeaves */
export interface BlindedLeaves extends Vec<BlindedValue> {}

/** @name BlindedValue */
export interface BlindedValue extends Bytes {}

/** @name CompleteMerkleProof */
export interface CompleteMerkleProof extends Struct {
readonly root: MerkleRoot;
readonly proof: MerkleProof;
}

/** @name DidApiAccountId */
export interface DidApiAccountId extends PalletDidLookupLinkableAccountLinkableAccountId {}

/** @name DidIdentityProviderError */
export interface DidIdentityProviderError extends Enum {
readonly isDidNotFound: boolean;
readonly isInternal: boolean;
readonly type: 'DidNotFound' | 'Internal';
}

/** @name DidKeyMerkleKey */
export interface DidKeyMerkleKey extends ITuple<[KeyId, KeyRelationship]> {}

/** @name DidKeyMerkleValue */
export interface DidKeyMerkleValue extends DidDidDetailsDidPublicKeyDetails {}

/** @name DidMerkleProofError */
export interface DidMerkleProofError extends Enum {
readonly isUnsupportedVersion: boolean;
readonly isKeyNotFound: boolean;
readonly isLinkedAccountNotFound: boolean;
readonly isWeb3NameNotFound: boolean;
readonly isInternal: boolean;
readonly type: 'UnsupportedVersion' | 'KeyNotFound' | 'LinkedAccountNotFound' | 'Web3NameNotFound' | 'Internal';
}

/** @name DipProofRequest */
// @ts-expect-error Property `keys` is confused with the `keys` property of an iterator.
export interface DipProofRequest extends Struct {
readonly identifier: AccountId32;
readonly version: IdentityCommitmentVersion;
readonly keys: Vec<Hash>;
readonly accounts: Vec<PalletDidLookupLinkableAccountLinkableAccountId>;
readonly shouldIncludeWeb3Name: bool;
}

/** @name IdentityCommitmentVersion */
export interface IdentityCommitmentVersion extends u16 {}

/** @name KeyId */
export interface KeyId extends Hash {}

/** @name KeyRelationship */
export interface KeyRelationship extends Enum {
readonly isEncryption: boolean;
readonly isVerification: boolean;
readonly asVerification: VerificationRelationship;
readonly type: 'Encryption' | 'Verification';
}

/** @name LinkedAccountMerkleKey */
export interface LinkedAccountMerkleKey extends PalletDidLookupLinkableAccountLinkableAccountId {}

/** @name LinkedAccountMerkleValue */
export interface LinkedAccountMerkleValue extends Null {}

/** @name LinkedDidIdentityProviderError */
export interface LinkedDidIdentityProviderError extends Enum {
readonly isDidNotFound: boolean;
readonly isDidDeleted: boolean;
readonly isInternal: boolean;
readonly type: 'DidNotFound' | 'DidDeleted' | 'Internal';
}

/** @name MerkleProof */
export interface MerkleProof extends Struct {
readonly blinded: BlindedLeaves;
readonly revealed: RevealedLeaves;
}

/** @name MerkleRoot */
export interface MerkleRoot extends Hash {}

/** @name PublicCredentialError */
export interface PublicCredentialError extends Enum {
readonly isInvalidSubjectId: boolean;
Expand All @@ -33,6 +116,29 @@ export interface RawDidLinkedInfo extends Struct {
readonly details: DidDidDetails;
}

/** @name RevealedLeaf */
export interface RevealedLeaf extends Enum {
readonly isDidKey: boolean;
readonly asDidKey: ITuple<[DidKeyMerkleKey, DidKeyMerkleValue]>;
readonly isWeb3Name: boolean;
readonly asWeb3Name: ITuple<[Web3NameMerkleKey, Web3NameMerkleValue]>;
readonly isLinkedAccount: boolean;
readonly asLinkedAccount: ITuple<[LinkedAccountMerkleKey, LinkedAccountMerkleValue]>;
readonly type: 'DidKey' | 'Web3Name' | 'LinkedAccount';
}

/** @name RevealedLeaves */
export interface RevealedLeaves extends Vec<RevealedLeaf> {}

/** @name RuntimeApiDipProofError */
export interface RuntimeApiDipProofError extends Enum {
readonly isIdentityProvider: boolean;
readonly asIdentityProvider: LinkedDidIdentityProviderError;
readonly isMerkleProof: boolean;
readonly asMerkleProof: DidMerkleProofError;
readonly type: 'IdentityProvider' | 'MerkleProof';
}

/** @name StakingRates */
export interface StakingRates extends Struct {
readonly collatorStakingRate: Perquintill;
Expand All @@ -41,4 +147,19 @@ export interface StakingRates extends Struct {
readonly delegatorRewardRate: Perquintill;
}

/** @name VerificationRelationship */
export interface VerificationRelationship extends Enum {
readonly isAuthentication: boolean;
readonly isCapabilityDelegation: boolean;
readonly isCapabilityInvocation: boolean;
readonly isAssertionMethod: boolean;
readonly type: 'Authentication' | 'CapabilityDelegation' | 'CapabilityInvocation' | 'AssertionMethod';
}

/** @name Web3NameMerkleKey */
export interface Web3NameMerkleKey extends Text {}

/** @name Web3NameMerkleValue */
export interface Web3NameMerkleValue extends BlockNumber {}

export type PHANTOM_EXTRADEFS = 'extraDefs';
2 changes: 1 addition & 1 deletion packages/chain-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/chain-helpers",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/config",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"type": "commonjs",
"main": "./lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/core",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/did/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/did",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/did/src/DidDetails/FullDidDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const methodMapping: Record<string, VerificationKeyRelationship | undefined> = {
'did.submitDidCall': undefined,
didLookup: 'authentication',
publicCredentials: 'assertionMethod',
dipProvider: 'authentication',
web3Names: 'authentication',
}

Expand Down
2 changes: 1 addition & 1 deletion packages/messaging/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/messaging",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/sdk-js",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kiltprotocol/type-definitions",
"version": "0.34.0",
"version": "0.34.1-rc.1",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down
Loading
Loading