Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
tjwelde committed Sep 26, 2022
2 parents db6b6da + 100158b commit e94e74c
Show file tree
Hide file tree
Showing 108 changed files with 4,507 additions and 5,527 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"dependencies": {
"@kiltprotocol/sdk-js": "workspace:*",
"@polkadot/keyring": "^10.0.0",
"@polkadot/types": "^9.0.0",
"@polkadot/types": "^9.4.1",
"@polkadot/util": "^10.0.0",
"typescript-logging": "^0.6.4",
"@polkadot/util-crypto": "^10.0.0",
"testcontainers": "^8.6.1"
}
}
}
3 changes: 0 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module.exports = {
'!**/lib/**',
'!**/test/**',
'!**/kilt/*',
'!**/blockchainApiConnection/*',
'!**/types/**/*',
'!**/SDKErrors.ts',
'!utils/src/json-schema/*',
Expand All @@ -34,8 +33,6 @@ module.exports = {
'!**/*.chain.ts',
'!did/src/Did.chain.ts',
'!did/src/Did.utils.ts',
'!did/src/DidDetails/LightDidDetails.utils.ts',
'!did/src/DidDetails/FullDidDetails.utils.ts',
'!utils/src/jsonabc.ts',
],
resolver: "ts-jest-resolver",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"ts-jest": "^27.1.2",
"ts-jest-resolver": "^2.0.0",
"typedoc": "^0.22.15",
"typescript": "^4.5.4"
"typescript": "^4.8.3"
},
"version": "0.29.0-rc.1",
"version": "0.30.0-18",
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/augment-api/metadata/spiritnet.json

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions 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.29.0-rc.1",
"version": "0.30.0-18",
"description": "",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -36,14 +36,17 @@
"bugs": "https://github.com/KILTprotocol/sdk-js/issues",
"homepage": "https://github.com/KILTprotocol/sdk-js#readme",
"devDependencies": {
"@polkadot/api": "^9.0.0",
"@polkadot/typegen": "^9.0.0",
"@polkadot/api": "^9.4.1",
"@polkadot/typegen": "^9.4.1",
"@types/websocket": "^1.0.0",
"glob": "^7.1.1",
"rimraf": "^3.0.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.4",
"typescript": "^4.8.3",
"websocket": "^1.0.31",
"yargs": "^16.2.0"
},
"dependencies": {
"@kiltprotocol/type-definitions": "^0.2.0"
}
}
6 changes: 2 additions & 4 deletions packages/augment-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
* found in the LICENSE file in the root directory of this source tree.
*/

import './interfaces/augment-api-consts.js'
import './interfaces/augment-api-query.js'
import './interfaces/augment-api-rpc.js'
import './interfaces/augment-api-tx.js'
import './interfaces/augment-api.js'
import './interfaces/augment-types.js'
import './interfaces/registry.js'
import './interfaces/types-lookup.js'

export * from './types.js'
21 changes: 21 additions & 0 deletions packages/augment-api/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ declare module '@polkadot/api-base/types/errors' {
* these are removed, either through `unvote` or `reap_vote`.
**/
VotesExist: AugmentedError<ApiType>;
/**
* Voting period too low
**/
VotingPeriodLow: AugmentedError<ApiType>;
/**
* Invalid upper bound.
**/
Expand Down Expand Up @@ -525,6 +529,8 @@ declare module '@polkadot/api-base/types/errors' {
**/
Unknown: AugmentedError<ApiType>;
};
dynFilter: {
};
indices: {
/**
* The index was not available.
Expand Down Expand Up @@ -848,6 +854,8 @@ declare module '@polkadot/api-base/types/errors' {
**/
Unproxyable: AugmentedError<ApiType>;
};
relayMigration: {
};
scheduler: {
/**
* Failed to schedule a call
Expand Down Expand Up @@ -969,6 +977,10 @@ declare module '@polkadot/api-base/types/errors' {
* Not a member.
**/
NotMember: AugmentedError<ApiType>;
/**
* Too many members.
**/
TooManyMembers: AugmentedError<ApiType>;
};
tips: {
/**
Expand Down Expand Up @@ -1005,8 +1017,17 @@ declare module '@polkadot/api-base/types/errors' {
* Not a member.
**/
NotMember: AugmentedError<ApiType>;
/**
* Too many members.
**/
TooManyMembers: AugmentedError<ApiType>;
};
treasury: {
/**
* The spend origin is valid but the amount it is allowed to spend is lower than the
* amount to be spent.
**/
InsufficientPermission: AugmentedError<ApiType>;
/**
* Proposer's balance is too low.
**/
Expand Down
46 changes: 37 additions & 9 deletions packages/augment-api/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Perquintill } from '@polkadot/types/interfaces/runtime';
import type { DelegationDelegationHierarchyPermissions, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, RuntimeCommonAuthorizationAuthorizationId, SpRuntimeDispatchError, SpiritnetRuntimeProxyType, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
import type { DelegationDelegationHierarchyPermissions, FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletDynFilterSettingFilterSettings, RuntimeCommonAuthorizationAuthorizationId, SpRuntimeDispatchError, SpiritnetRuntimeProxyType, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';

export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;

Expand Down Expand Up @@ -224,6 +224,10 @@ declare module '@polkadot/api-base/types/events' {
* A proposal preimage was removed and used (the deposit was returned).
**/
PreimageUsed: AugmentedEvent<ApiType, [proposalHash: H256, provider: AccountId32, deposit: u128], { proposalHash: H256, provider: AccountId32, deposit: u128 }>;
/**
* A proposal got canceled.
**/
ProposalCanceled: AugmentedEvent<ApiType, [propIndex: u32], { propIndex: u32 }>;
/**
* A motion has been proposed by a public account.
**/
Expand Down Expand Up @@ -311,6 +315,9 @@ declare module '@polkadot/api-base/types/events' {
**/
WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64 }>;
};
dynFilter: {
NewFilterRules: AugmentedEvent<ApiType, [rules: PalletDynFilterSettingFilterSettings], { rules: PalletDynFilterSettingFilterSettings }>;
};
indices: {
/**
* A account index was assigned.
Expand Down Expand Up @@ -626,6 +633,16 @@ declare module '@polkadot/api-base/types/events' {
**/
ProxyRemoved: AugmentedEvent<ApiType, [delegator: AccountId32, delegatee: AccountId32, proxyType: SpiritnetRuntimeProxyType, delay: u64], { delegator: AccountId32, delegatee: AccountId32, proxyType: SpiritnetRuntimeProxyType, delay: u64 }>;
};
relayMigration: {
/**
* The parachain lease swap was initiated.
**/
LeaseSwapInitiated: AugmentedEvent<ApiType, []>;
/**
* The requirement for associated relay block numbers was set
**/
RelayNumberCheckSet: AugmentedEvent<ApiType, [strict: bool], { strict: bool }>;
};
scheduler: {
/**
* The call for the provided hash was not found so the task has been aborted.
Expand Down Expand Up @@ -783,6 +800,13 @@ declare module '@polkadot/api-base/types/events' {
**/
MembersSwapped: AugmentedEvent<ApiType, []>;
};
transactionPayment: {
/**
* A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
* has been paid by `who`.
**/
TransactionFeePaid: AugmentedEvent<ApiType, [who: AccountId32, actualFee: u128, tip: u128], { who: AccountId32, actualFee: u128, tip: u128 }>;
};
treasury: {
/**
* Some funds have been allocated.
Expand All @@ -808,6 +832,10 @@ declare module '@polkadot/api-base/types/events' {
* Spending has finished; this is the amount that rolls over until next spend.
**/
Rollover: AugmentedEvent<ApiType, [rolloverBalance: u128], { rolloverBalance: u128 }>;
/**
* A new spend proposal has been approved.
**/
SpendApproved: AugmentedEvent<ApiType, [proposalIndex: u32, amount: u128, beneficiary: AccountId32], { proposalIndex: u32, amount: u128, beneficiary: AccountId32 }>;
/**
* We have ended a spend period and will now allocate funds.
**/
Expand Down Expand Up @@ -873,35 +901,35 @@ declare module '@polkadot/api-base/types/events' {
/**
* Bad XCM format used.
**/
BadFormat: AugmentedEvent<ApiType, [Option<H256>]>;
BadFormat: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;
/**
* Bad XCM version used.
**/
BadVersion: AugmentedEvent<ApiType, [Option<H256>]>;
BadVersion: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;
/**
* Some XCM failed.
**/
Fail: AugmentedEvent<ApiType, [Option<H256>, XcmV2TraitsError]>;
Fail: AugmentedEvent<ApiType, [messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64], { messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64 }>;
/**
* An XCM exceeded the individual message weight budget.
**/
OverweightEnqueued: AugmentedEvent<ApiType, [u32, u32, u64, u64]>;
OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: u64], { sender: u32, sentAt: u32, index: u64, required: u64 }>;
/**
* An XCM from the overweight queue was executed with the given actual weight used.
**/
OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;
OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: u64], { index: u64, used: u64 }>;
/**
* Some XCM was executed ok.
**/
Success: AugmentedEvent<ApiType, [Option<H256>]>;
Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: u64], { messageHash: Option<H256>, weight: u64 }>;
/**
* An upward message was sent to the relay chain.
**/
UpwardMessageSent: AugmentedEvent<ApiType, [Option<H256>]>;
UpwardMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;
/**
* An HRMP message was sent to a sibling parachain.
**/
XcmpMessageSent: AugmentedEvent<ApiType, [Option<H256>]>;
XcmpMessageSent: AugmentedEvent<ApiType, [messageHash: Option<H256>], { messageHash: Option<H256> }>;
};
} // AugmentedEvents
} // declare module
Loading

0 comments on commit e94e74c

Please sign in to comment.