Skip to content

Commit

Permalink
Merge pull request #171 from logion-network/feature/polkadot-v0.9.43
Browse files Browse the repository at this point in the history
Upgrade to polkadot-v0.9.43
  • Loading branch information
gdethier authored Jul 5, 2023
2 parents 1babc8a + 853540a commit ab65f3f
Show file tree
Hide file tree
Showing 9 changed files with 217 additions and 104 deletions.
6 changes: 3 additions & 3 deletions packages/client/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
image: logionnetwork/logion-node:${NODE_TAG:-latest}
environment:
- NODE_KEY=c12b6d18942f5ee8528c8e2baf4e147b5c5c18710926ea492d09cbd9f6c9f82a
- CUSTOM_OPTIONS=--alice --no-mdns --ws-external --rpc-cors all
- CUSTOM_OPTIONS=--alice --no-mdns --rpc-external --rpc-cors all
- CHAIN_SPEC=test
backend1:
image: logionnetwork/logion-backend:${BACKEND_TAG:-latest}
Expand Down Expand Up @@ -72,7 +72,7 @@ services:
image: logionnetwork/logion-node:${NODE_TAG:-latest}
environment:
- NODE_KEY=6ce3be907dbcabf20a9a5a60a712b4256a54196000a8ed4050d352bc113f8c58
- CUSTOM_OPTIONS=--bob --no-mdns --bootnodes /dns4/node1/tcp/30333/p2p/12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2 --ws-external --rpc-cors all
- CUSTOM_OPTIONS=--bob --no-mdns --bootnodes /dns4/node1/tcp/30333/p2p/12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2 --rpc-external --rpc-cors all
- CHAIN_SPEC=test
depends_on:
- node1
Expand Down Expand Up @@ -136,7 +136,7 @@ services:
image: logionnetwork/logion-node:${NODE_TAG:-latest}
environment:
- NODE_KEY=3a9d5b35b9fb4c42aafadeca046f6bf56107bd2579687f069b42646684b94d9e
- CUSTOM_OPTIONS=--charlie --no-mdns --bootnodes /dns4/node1/tcp/30333/p2p/12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2 --ws-external --rpc-cors all
- CUSTOM_OPTIONS=--charlie --no-mdns --bootnodes /dns4/node1/tcp/30333/p2p/12D3KooWBmAwcd4PJNJvfV89HwE48nwkRmAgo8Vy3uQEyNNHBox2 --rpc-external --rpc-cors all
- CHAIN_SPEC=test
depends_on:
- node1
Expand Down
2 changes: 1 addition & 1 deletion packages/node-api/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ services:
environment:
- CHAIN_SPEC=dev
- NODE_KEY=c12b6d18942f5ee8528c8e2baf4e147b5c5c18710926ea492d09cbd9f6c9f82a
- CUSTOM_OPTIONS=--alice --ws-external
- CUSTOM_OPTIONS=--alice --rpc-external
2 changes: 1 addition & 1 deletion packages/node-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logion/node-api",
"version": "0.17.1-2",
"version": "0.17.1-3",
"description": "logion API",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
8 changes: 8 additions & 0 deletions packages/node-api/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ declare module '@polkadot/api-base/types/events' {
* Some asset `asset_id` was thawed.
**/
AssetThawed: AugmentedEvent<ApiType, [assetId: u64], { assetId: u64 }>;
/**
* Some account `who` was blocked.
**/
Blocked: AugmentedEvent<ApiType, [assetId: u64, who: AccountId32], { assetId: u64, who: AccountId32 }>;
/**
* Some assets were destroyed.
**/
Expand Down Expand Up @@ -97,6 +101,10 @@ declare module '@polkadot/api-base/types/events' {
* Some account `who` was thawed.
**/
Thawed: AugmentedEvent<ApiType, [assetId: u64, who: AccountId32], { assetId: u64, who: AccountId32 }>;
/**
* Some account `who` was created with a deposit from `depositor`.
**/
Touched: AugmentedEvent<ApiType, [assetId: u64, who: AccountId32, depositor: AccountId32], { assetId: u64, who: AccountId32, depositor: AccountId32 }>;
/**
* Some assets were transferred.
**/
Expand Down
58 changes: 47 additions & 11 deletions packages/node-api/src/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ declare module '@polkadot/api-base/types/submittable' {
* Weight: `O(1)`
**/
approveTransfer: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, delegate: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, MultiAddress, Compact<u128>]>;
/**
* Disallow further unprivileged transfers of an asset `id` to and from an account `who`.
*
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
*
* - `id`: The identifier of the account's asset.
* - `who`: The account to be unblocked.
*
* Emits `Blocked`.
*
* Weight: `O(1)`
**/
block: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, MultiAddress]>;
/**
* Reduce the balance of `who` by as much as possible up to `amount` assets of `id`.
*
Expand Down Expand Up @@ -272,7 +285,9 @@ declare module '@polkadot/api-base/types/submittable' {
**/
forceTransfer: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, source: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, dest: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, MultiAddress, MultiAddress, Compact<u128>]>;
/**
* Disallow further unprivileged transfers from an account.
* Disallow further unprivileged transfers of an asset `id` from an account `who`. `who`
* must already exist as an entry in `Account`s of the asset. If you want to freeze an
* account that does not have an entry, use `touch_other` first.
*
* Origin must be Signed and the sender should be the Freezer of the asset `id`.
*
Expand Down Expand Up @@ -312,16 +327,31 @@ declare module '@polkadot/api-base/types/submittable' {
**/
mint: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, beneficiary: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array, amount: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, MultiAddress, Compact<u128>]>;
/**
* Return the deposit (if any) of an asset account.
* Return the deposit (if any) of an asset account or a consumer reference (if any) of an
* account.
*
* The origin must be Signed.
*
* - `id`: The identifier of the asset for the account to be created.
* - `id`: The identifier of the asset for which the caller would like the deposit
* refunded.
* - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
*
* Emits `Refunded` event when successful.
**/
refund: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, allowBurn: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, bool]>;
/**
* Return the deposit (if any) of a target asset account. Useful if you are the depositor.
*
* The origin must be Signed and either the account owner, depositor, or asset `Admin`. In
* order to burn a non-zero balance of the asset, the caller must be the account and should
* use `refund`.
*
* - `id`: The identifier of the asset for the account holding a deposit.
* - `who`: The account to refund.
*
* Emits `Refunded` event when successful.
**/
refundOther: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, MultiAddress]>;
/**
* Set the metadata for an asset.
*
Expand Down Expand Up @@ -386,7 +416,7 @@ declare module '@polkadot/api-base/types/submittable' {
**/
startDestroy: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
/**
* Allow unprivileged transfers from an account again.
* Allow unprivileged transfers to and from an account again.
*
* Origin must be Signed and the sender should be the Admin of the asset `id`.
*
Expand Down Expand Up @@ -422,6 +452,19 @@ declare module '@polkadot/api-base/types/submittable' {
* Emits `Touched` event when successful.
**/
touch: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64]>;
/**
* Create an asset account for `who`.
*
* A deposit will be taken from the signer account.
*
* - `origin`: Must be Signed by `Freezer` or `Admin` of the asset `id`; the signer account
* must have sufficient funds for a deposit to be taken.
* - `id`: The identifier of the asset for the account to be created.
* - `who`: The account to be created.
*
* Emits `Touched` event when successful.
**/
touchOther: AugmentedSubmittable<(id: u64 | AnyNumber | Uint8Array, who: MultiAddress | { Id: any } | { Index: any } | { Raw: any } | { Address32: any } | { Address20: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u64, MultiAddress]>;
/**
* Move some assets from the sender account to another.
*
Expand Down Expand Up @@ -1179,7 +1222,6 @@ declare module '@polkadot/api-base/types/submittable' {
/**
* Make some on-chain remark.
*
* ## Complexity
* - `O(1)`
**/
remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
Expand All @@ -1189,16 +1231,10 @@ declare module '@polkadot/api-base/types/submittable' {
remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* Set the new runtime code.
*
* ## Complexity
* - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`
**/
setCode: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
* Set the new runtime code without doing any checks of the given `code`.
*
* ## Complexity
* - `O(C)` where `C` length of `code`
**/
setCodeWithoutChecks: AugmentedSubmittable<(code: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
/**
Expand Down
1 change: 1 addition & 0 deletions packages/node-api/src/interfaces/default/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default {
"V13AcknowledgeItems",
"V14HashLocPublicData",
"V15AddTokenIssuance",
"V16MoveTokenIssuance",
]
},
Requester: {
Expand Down
Loading

0 comments on commit ab65f3f

Please sign in to comment.