git.delta.rocks / unique-network / refs/commits / 6693c698eecb

difftreelog

Make NFT Transfer fee close to 0.1 Unique

Greg Zaitsev2021-01-28parent: #735c2a4.patch.diff
in: master

7 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3468,7 +3468,9 @@
  "pallet-vesting",
  "parity-scale-codec",
  "serde",
+ "smallvec 1.6.1",
  "sp-api",
+ "sp-arithmetic",
  "sp-block-builder",
  "sp-consensus-aura",
  "sp-core",
modifiedruntime/Cargo.tomldiffbeforeafterboth
--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -48,6 +48,7 @@
 pallet-treasury = { version = "2.0.1", default-features = false, git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 pallet-vesting = { version = "2.0.1", default-features = false, git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 sp-api = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
+sp-arithmetic = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 sp-block-builder = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 sp-consensus-aura = { default-features = false, version = '0.8.0' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 sp-core = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
@@ -58,6 +59,7 @@
 sp-std = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 sp-transaction-pool = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
 sp-version = { default-features = false, version = '2.0.1' , git = 'https://github.com/usetech-llc/substrate.git', branch = 'unique' }
+smallvec = "1.4.1"
 
 [features]
 default = ['std']
modifiedruntime/src/lib.rsdiffbeforeafterboth
49 },49 },
50 weights::{50 weights::{
51 constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},51 constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
52 DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,52 DispatchInfo, GetDispatchInfo, Pays, PostDispatchInfo, Weight,
53 WeightToFeePolynomial,53 WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients
54 },54 },
55 StorageValue,55 StorageValue,
56};56};
60 EnsureRoot, 60 EnsureRoot,
61 limits::{BlockWeights, BlockLength}};61 limits::{BlockWeights, BlockLength}};
62use sp_std::{marker::PhantomData};62use sp_std::{marker::PhantomData};
63use sp_arithmetic::{traits::{BaseArithmetic, Unsigned}};
64use smallvec::{smallvec, SmallVec};
6365
64pub use pallet_timestamp::Call as TimestampCall;66pub use pallet_timestamp::Call as TimestampCall;
6567
217impl OnUnbalanced<NegativeImbalance> for DealWithFees {219impl OnUnbalanced<NegativeImbalance> for DealWithFees {
218 fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item=NegativeImbalance>) {220 fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item=NegativeImbalance>) {
219 if let Some(fees) = fees_then_tips.next() {221 if let Some(fees) = fees_then_tips.next() {
220 // for fees, 80% to treasury, 20% to author222 // for fees, 100% to treasury
221 let mut split = fees.ration(80, 20);223 let mut split = fees.ration(100, 0);
222 if let Some(tips) = fees_then_tips.next() {224 if let Some(tips) = fees_then_tips.next() {
223 // for tips, if any, 80% to treasury, 20% to author (though this can be anything)225 // for tips, if any, 100% to treasury
224 tips.ration_merge_into(80, 20, &mut split);226 tips.ration_merge_into(100, 0, &mut split);
225 }227 }
226 Treasury::on_unbalanced(split.0);228 Treasury::on_unbalanced(split.0);
227 // Author::on_unbalanced(split.1);229 // Author::on_unbalanced(split.1);
366 type WeightInfo = ();368 type WeightInfo = ();
367}369}
368370
369pub const MILLICENTS: Balance = 1_000_000_000;371pub const MICROUNIQUE: Balance = 1_000_000_000;
370pub const CENTS: Balance = 1_000 * MILLICENTS;372pub const MILLIUNIQUE: Balance = 1_000 * MICROUNIQUE;
373pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;
371pub const DOLLARS: Balance = 100 * CENTS;374pub const UNIQUE: Balance = 100 * CENTIUNIQUE;
372375
373pub const fn deposit(items: u32, bytes: u32) -> Balance {376pub const fn deposit(items: u32, bytes: u32) -> Balance {
374 items as Balance * 15 * CENTS + (bytes as Balance) * 6 * CENTS377 items as Balance * 15 * CENTIUNIQUE + (bytes as Balance) * 6 * CENTIUNIQUE
375}378}
376379
377parameter_types! {380parameter_types! {
383 pub const DepositPerStorageByte: Balance = deposit(0, 1);386 pub const DepositPerStorageByte: Balance = deposit(0, 1);
384 pub const DepositPerStorageItem: Balance = deposit(1, 0);387 pub const DepositPerStorageItem: Balance = deposit(1, 0);
385 pub RentFraction: Perbill = Perbill::from_rational_approximation(1u32, 30 * DAYS);388 pub RentFraction: Perbill = Perbill::from_rational_approximation(1u32, 30 * DAYS);
386 pub const SurchargeReward: Balance = 150 * MILLICENTS;389 pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;
387 pub const SignedClaimHandicap: u32 = 2;390 pub const SignedClaimHandicap: u32 = 2;
388 pub const MaxDepth: u32 = 32;391 pub const MaxDepth: u32 = 32;
389 pub const MaxValueSize: u32 = 16 * 1024;392 pub const MaxValueSize: u32 = 16 * 1024;
421 type DeletionWeightLimit = DeletionWeightLimit;424 type DeletionWeightLimit = DeletionWeightLimit;
422}425}
423426
424parameter_types! {427parameter_types! {
425 pub const TransactionByteFee: Balance = 10 * MILLICENTS;428 pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer
429}
430
431/// Linear implementor of `WeightToFeePolynomial`
426 pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25);432pub struct LinearFee<T>(sp_std::marker::PhantomData<T>);
433
434impl<T> WeightToFeePolynomial for LinearFee<T> where
435 T: BaseArithmetic + From<u32> + Copy + Unsigned
436{
437 type Balance = T;
438
439 fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
440 smallvec!(WeightToFeeCoefficient {
441 coeff_integer: 146_700u32.into(), // Targeting 0.1 Unique per NFT transfer
427 pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(1, 100_000);442 coeff_frac: Perbill::zero(),
428 pub MinimumMultiplier: Multiplier = Multiplier::saturating_from_rational(1, 1_000_000_000u128);443 negative: false,
429}444 degree: 1,
445 })
446 }
447}
430448
431impl pallet_transaction_payment::Config for Runtime {449impl pallet_transaction_payment::Config for Runtime {
432 type OnChargeTransaction = CurrencyAdapter<Balances, DealWithFees>;450 type OnChargeTransaction = CurrencyAdapter<Balances, DealWithFees>;
433 type TransactionByteFee = TransactionByteFee;451 type TransactionByteFee = TransactionByteFee;
434 type WeightToFee = IdentityFee<Balance>;452 type WeightToFee = LinearFee<Balance>;
435 type FeeMultiplierUpdate =453 type FeeMultiplierUpdate = ();
436 TargetedFeeAdjustment<Self, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>;
437}454}
438455
439parameter_types! {456parameter_types! {
440 pub const ProposalBond: Permill = Permill::from_percent(5);457 pub const ProposalBond: Permill = Permill::from_percent(5);
441 pub const ProposalBondMinimum: Balance = 1 * DOLLARS;458 pub const ProposalBondMinimum: Balance = 1 * UNIQUE;
442 pub const SpendPeriod: BlockNumber = 5 * MINUTES;459 pub const SpendPeriod: BlockNumber = 5 * MINUTES;
443 pub const Burn: Permill = Permill::from_percent(0);460 pub const Burn: Permill = Permill::from_percent(0);
444 pub const TipCountdown: BlockNumber = 1 * DAYS;461 pub const TipCountdown: BlockNumber = 1 * DAYS;
445 pub const TipFindersFee: Percent = Percent::from_percent(20);462 pub const TipFindersFee: Percent = Percent::from_percent(20);
446 pub const TipReportDepositBase: Balance = 1 * DOLLARS;463 pub const TipReportDepositBase: Balance = 1 * UNIQUE;
447 pub const DataDepositPerByte: Balance = 1 * CENTS;464 pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;
448 pub const BountyDepositBase: Balance = 1 * DOLLARS;465 pub const BountyDepositBase: Balance = 1 * UNIQUE;
449 pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;466 pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;
450 pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");467 pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
451 pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;468 pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;
452 pub const MaximumReasonLength: u32 = 16384;469 pub const MaximumReasonLength: u32 = 16384;
453 pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);470 pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
454 pub const BountyValueMinimum: Balance = 5 * DOLLARS;471 pub const BountyValueMinimum: Balance = 5 * UNIQUE;
455}472}
456473
457impl pallet_treasury::Config for Runtime {474impl pallet_treasury::Config for Runtime {
476}493}
477494
478parameter_types! {495parameter_types! {
479 pub const MinVestedTransfer: Balance = 100 * DOLLARS;496 pub const MinVestedTransfer: Balance = 10 * UNIQUE;
480}497}
481498
482impl pallet_vesting::Config for Runtime {499impl pallet_vesting::Config for Runtime {
modifiedtests/package.jsondiffbeforeafterboth
--- a/tests/package.json
+++ b/tests/package.json
@@ -6,7 +6,7 @@
   "devDependencies": {
     "@polkadot/dev": "^0.61.24",
     "@polkadot/ts": "^0.3.59",
-    "@polkadot/typegen": "^3.6.3",
+    "@polkadot/typegen": "^3.6.4",
     "@polkadot/util-crypto": "^5.4.4",
     "@types/chai": "^4.2.12",
     "@types/chai-as-promised": "^7.1.3",
@@ -32,15 +32,16 @@
     "testToggleContractWhiteList": "mocha --timeout 9999999 -r ts-node/register ./**/toggleContractWhiteList.test.ts",
     "testAddToContractWhiteList": "mocha --timeout 9999999 -r ts-node/register ./**/addToContractWhiteList.test.ts",
     "testTransfer": "mocha --timeout 9999999 -r ts-node/register ./**/transfer.test.ts",
-    "testBurnItem": "mocha --timeout 9999999 -r ts-node/register ./**/burnItem.test.ts"
+    "testBurnItem": "mocha --timeout 9999999 -r ts-node/register ./**/burnItem.test.ts",
+    "testCreditFeesToTreasury": "mocha --timeout 9999999 -r ts-node/register ./**/creditFeesToTreasury.test.ts"
   },
   "author": "",
   "license": "SEE LICENSE IN ../LICENSE",
   "homepage": "",
   "dependencies": {
-    "@polkadot/api": "^3.6.3",
-    "@polkadot/api-contract": "^3.6.3",
-    "@polkadot/util": "^3.6.3",
+    "@polkadot/api": "^3.6.4",
+    "@polkadot/api-contract": "^3.6.4",
+    "@polkadot/util": "^3.6.4",
     "bignumber.js": "^9.0.0",
     "chai-as-promised": "^7.1.1"
   },
modifiedtests/src/creditFeesToTreasury.test.tsdiffbeforeafterboth
--- a/tests/src/creditFeesToTreasury.test.ts
+++ b/tests/src/creditFeesToTreasury.test.ts
@@ -9,16 +9,32 @@
 import { alicesPublicKey, bobsPublicKey } from "./accounts";
 import privateKey from "./substrate/privateKey";
 import { BigNumber } from 'bignumber.js';
-import { createCollectionExpectSuccess, getGenericResult } from './util/helpers';
+import { IKeyringPair } from '@polkadot/types/types';
+import { 
+  createCollectionExpectSuccess, 
+  createItemExpectSuccess,
+  getGenericResult,
+  transferExpectSuccess
+} from './util/helpers';
 
 chai.use(chaiAsPromised);
 const expect = chai.expect;
 
 const Treasury = "5EYCAe5ijiYfyeZ2JJCGq56LmPyNRAKzpG4QkoQkkQNB5e6Z";
-const saneMinimumFee = 0.0001;
-const saneMaximumFee = 0.01;
+const saneMinimumFee = 0.05;
+const saneMaximumFee = 0.5;
+
+let alice: IKeyringPair;
+let bob: IKeyringPair;
 
 describe('integration test: Fees must be credited to Treasury:', () => {
+  before(async () => {
+    await usingApi(async (api) => {
+      alice = privateKey('//Alice');
+      bob = privateKey('//Bob');
+    });
+  });
+
   it('Total issuance does not change', async () => {
     await usingApi(async (api) => {
       const totalBefore = new BigNumber((await api.query.balances.totalIssuance()).toString());
@@ -107,5 +123,22 @@
     });
   });
 
+  it('NFT Transfer fee is close to 0.1 Unique', async () => {
+    await usingApi(async (api) => {
+      const collectionId = await createCollectionExpectSuccess();
+      const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT');
+
+      const aliceBalanceBefore = new BigNumber((await api.query.system.account(alicesPublicKey)).data.free.toString());
+      await transferExpectSuccess(collectionId, tokenId, alice, bob, 1, 'NFT');
+      const aliceBalanceAfter = new BigNumber((await api.query.system.account(alicesPublicKey)).data.free.toString());
+      const fee = aliceBalanceBefore.minus(aliceBalanceAfter);
+
+      console.log(fee.toString());
+      const expectedTransferFee = 0.1;
+      const tolerance = 0.00001;
+      expect(fee.dividedBy(1e15).minus(expectedTransferFee).abs().toNumber()).to.be.lessThan(tolerance);
+    });
+  });
+
 });
 
modifiedtests/src/substrate/substrate-api.tsdiffbeforeafterboth
--- a/tests/src/substrate/substrate-api.ts
+++ b/tests/src/substrate/substrate-api.ts
@@ -23,12 +23,12 @@
 
   // TODO: Remove, this is temporary: Filter unneeded API output 
   // (Jaco promised it will be removed in the next version)
-  const consoleLog = console.log;
-  console.log = (message: string) => {
-    if (!(message.includes("API/INIT: Capabilities detected") || message.includes("2021-"))) {
-      consoleLog(message);
-    }
-  };
+  // const consoleLog = console.log;
+  // console.log = (message: string) => {
+  //   if (!(message.includes("API/INIT: Capabilities detected") || message.includes("2021-"))) {
+  //     consoleLog(message);
+  //   }
+  // };
 
   try {
     await promisifySubstrate(api, async () => {
@@ -39,7 +39,7 @@
     })();
   } finally {
     await api.disconnect();
-    console.log = consoleLog;
+    // console.log = consoleLog;
   }
 }
 
modifiedtests/yarn.lockdiffbeforeafterboth
--- a/tests/yarn.lock
+++ b/tests/yarn.lock
@@ -1195,45 +1195,45 @@
     "@nodelib/fs.scandir" "2.1.4"
     fastq "^1.6.0"
 
-"@polkadot/api-contract@^3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-3.6.3.tgz#0aaa6989d34d1c063c601ce8f1e19307ba112510"
-  integrity sha512-M2j4R8wdIEJCCmJpRFjn/L/n6d6fN85UvpWNRfYebb+yflr5600UANS2nIxtq+7cjoC1FyxTuuIDimoKKeL2ng==
+"@polkadot/api-contract@^3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-3.6.4.tgz#3ede886af686f9d66faa7be3d5e5d14ee0dbdbed"
+  integrity sha512-vj0J0CcqaCVCZiV0auUEw8gkVetiRovybmvWA8CcTsmvI4w1TWgCMMBgNlzonibWdL/eXmaOU7W34mjBJ4qNwA==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/api" "3.6.3"
-    "@polkadot/types" "3.6.3"
+    "@polkadot/api" "3.6.4"
+    "@polkadot/types" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/x-rxjs" "^5.4.4"
     bn.js "^4.11.9"
 
-"@polkadot/api-derive@3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-3.6.3.tgz#9b01c83b20cfd1da55170eb1d994b538e0fc1b25"
-  integrity sha512-S/8WxX5WUwjc6Qhc03Kdjgf5MRioYAkiX8beo5Q8uLyGvfyeA3rdRoeTHLGlIXRbbPSuI1hGEzNR2X7g2uKPOw==
+"@polkadot/api-derive@3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-3.6.4.tgz#806f1cc61ec474bb53374088c1f510c4ba07da86"
+  integrity sha512-AOdJnQxqNnjKay4F788xHYJqpsSjJV8n+zSLfXY8Fm9nMj2wPZ2y/C6k4zpZDQN1kHetYHpzVt77cVONJladvg==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/api" "3.6.3"
-    "@polkadot/rpc-core" "3.6.3"
-    "@polkadot/types" "3.6.3"
+    "@polkadot/api" "3.6.4"
+    "@polkadot/rpc-core" "3.6.4"
+    "@polkadot/types" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/util-crypto" "^5.4.4"
     "@polkadot/x-rxjs" "^5.4.4"
     bn.js "^4.11.9"
 
-"@polkadot/api@3.6.3", "@polkadot/api@^3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-3.6.3.tgz#eb3ae9b0877de7c0174afae3cd3005f90dbdae47"
-  integrity sha512-U/fzYxuSghPBDBhGenfRSCGiY5t6E9mIXFxuX65LN89meFAJn3ToNX2q7kP0Y9234jmy+EGu96ZIseW7WQB/xA==
+"@polkadot/api@3.6.4", "@polkadot/api@^3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-3.6.4.tgz#a7b02eb0f4c2a98b087003edc1c2f7ed4bea077a"
+  integrity sha512-jsbBoL99OtBazGyufab9zkC1ORYdvrqzs5tHhLkhUl9zNrDBHyLVawyYNPXAyejtwLl3RMAWMMpnarDjlmjwPQ==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/api-derive" "3.6.3"
+    "@polkadot/api-derive" "3.6.4"
     "@polkadot/keyring" "^5.4.4"
-    "@polkadot/metadata" "3.6.3"
-    "@polkadot/rpc-core" "3.6.3"
-    "@polkadot/rpc-provider" "3.6.3"
-    "@polkadot/types" "3.6.3"
-    "@polkadot/types-known" "3.6.3"
+    "@polkadot/metadata" "3.6.4"
+    "@polkadot/rpc-core" "3.6.4"
+    "@polkadot/rpc-provider" "3.6.4"
+    "@polkadot/types" "3.6.4"
+    "@polkadot/types-known" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/util-crypto" "^5.4.4"
     "@polkadot/x-rxjs" "^5.4.4"
@@ -1316,14 +1316,14 @@
     "@polkadot/util" "5.4.4"
     "@polkadot/util-crypto" "5.4.4"
 
-"@polkadot/metadata@3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-3.6.3.tgz#37a785e96acc908cb42d3b5a78be669abae2fed2"
-  integrity sha512-QFdy5dvnWq9c3ybHyR/qnVtCv2xi9z+lFURuyS24gMynwzjZFpEQwISMQ6omIhEqxV++9b1c+BrORK1Uw54Lyg==
+"@polkadot/metadata@3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-3.6.4.tgz#033dad14d962c14b61cbcbfe5db7ef9700a4e771"
+  integrity sha512-EPxpiRnaqUvySLyasAXRJk7lb7YS0xvRuLHDaMIuoPpjtr1TqXxvhH4q/VjzjHpXTtriAVPczNydD+NtKYXDiQ==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/types" "3.6.3"
-    "@polkadot/types-known" "3.6.3"
+    "@polkadot/types" "3.6.4"
+    "@polkadot/types-known" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/util-crypto" "^5.4.4"
     bn.js "^4.11.9"
@@ -1335,25 +1335,25 @@
   dependencies:
     "@babel/runtime" "^7.12.5"
 
-"@polkadot/rpc-core@3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-3.6.3.tgz#5b584fa54e9f47a91650a73b6a08f4fafa8a4fa5"
-  integrity sha512-q9FUj0j3qonrqN/Yp72nWqD7eMHtmM7ISTIKXma++BHuUSVlSHdMZM2Rza/3lxGasoUaxOW5vwYzhfMljiRRVw==
+"@polkadot/rpc-core@3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-3.6.4.tgz#d436e0d1d65d3cbd9b1e437f1827e3cf8a26089b"
+  integrity sha512-TzsmERRELrqB6mbf23GxLVObDhxInTrdSWkmle4a3qKXgAPfuGlEhxpqiaMMQZjo4LVHCeXStUc18VCHVY17ag==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/metadata" "3.6.3"
-    "@polkadot/rpc-provider" "3.6.3"
-    "@polkadot/types" "3.6.3"
+    "@polkadot/metadata" "3.6.4"
+    "@polkadot/rpc-provider" "3.6.4"
+    "@polkadot/types" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/x-rxjs" "^5.4.4"
 
-"@polkadot/rpc-provider@3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-3.6.3.tgz#d2f31c80abdeacba7c747a7da9937d6373659a23"
-  integrity sha512-9g0Ka3dwFicf5xvlECCUCFBdJ0QAL1vV8OT4Lk3h71HmcsyrXSTamcxyc9GOSZEkcfJb3zRE+h+Ql7A1SV+yPw==
+"@polkadot/rpc-provider@3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-3.6.4.tgz#433572380264ed92c6cd06636057aea3967f659b"
+  integrity sha512-yWEgHdlO/lxqrkDXxq2kY87tuPg2xyR0OPw3LM+ZE8/UMubR/KWjAtk3/KI0iLimPMtKcCL4L3z/mazYN6A19Q==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/types" "3.6.3"
+    "@polkadot/types" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/util-crypto" "^5.4.4"
     "@polkadot/x-fetch" "^5.4.4"
@@ -1369,40 +1369,40 @@
   dependencies:
     "@types/chrome" "^0.0.127"
 
-"@polkadot/typegen@^3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-3.6.3.tgz#c55dd31ad8e573e3620f1650ef7dcbc220bfcb50"
-  integrity sha512-WjeFJoI2OH4y2/4VdmRCD/FRzGXj93RbVXxx4BVTGSi5ePMiTkvgOieMv7tz9bbR/DoHjB1VtPQPwmytecplHw==
+"@polkadot/typegen@^3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-3.6.4.tgz#6473933e185c11c23c7f06b97207bf64c1e388fb"
+  integrity sha512-VXVLm4WLTADk1X9QiGjq8LPfzRpt/z95s4bD+wQJkkKH1zw5FxBDIys/WAEB0Q2m5S0EAl5yTGNb2MKCcPxchg==
   dependencies:
     "@babel/core" "^7.12.10"
     "@babel/register" "^7.12.10"
     "@babel/runtime" "^7.12.5"
-    "@polkadot/api" "3.6.3"
-    "@polkadot/metadata" "3.6.3"
-    "@polkadot/rpc-provider" "3.6.3"
-    "@polkadot/types" "3.6.3"
+    "@polkadot/api" "3.6.4"
+    "@polkadot/metadata" "3.6.4"
+    "@polkadot/rpc-provider" "3.6.4"
+    "@polkadot/types" "3.6.4"
     "@polkadot/util" "^5.4.4"
     handlebars "^4.7.6"
     websocket "^1.0.33"
     yargs "^16.2.0"
 
-"@polkadot/types-known@3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-3.6.3.tgz#1a0639c463969e3f17ec20b06602c4ca4c25f500"
-  integrity sha512-fgG4BwmJ/yhvHiJGGKfpcIVu0lsYuHutWthvW8KwDVOMjVIrSRoT7ct9+dD11+sA6rI1UiSOerQ70t7iv/qQ6w==
+"@polkadot/types-known@3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-3.6.4.tgz#765c212a7b8a9e4fa1538041911a0aa30302c5e4"
+  integrity sha512-wK2VN95h8isyHzkf9PD3/8udlj1pw54tOoSQYv9LPJ94EBLM0iAUYvz7dQX4MGy3H6kcJvwT21639Bt7aqWhzQ==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/types" "3.6.3"
+    "@polkadot/types" "3.6.4"
     "@polkadot/util" "^5.4.4"
     bn.js "^4.11.9"
 
-"@polkadot/types@3.6.3":
-  version "3.6.3"
-  resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-3.6.3.tgz#d8ab3761956e3a9195c1436b4e650c8516ad9379"
-  integrity sha512-R1S4N/LIJPceVMytMTDTcLV+EhkmlOkugcMElQlg0iShvEt/2ZuqfJlYaEKAaxmHfpEQuV5ct6pbcmZU5f0zBw==
+"@polkadot/types@3.6.4":
+  version "3.6.4"
+  resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-3.6.4.tgz#cdecfc317dd510b58854fe7c2f08e675f7c160b2"
+  integrity sha512-cfI5m08wk/1Cexxm0Qv+TELQPp1GQoWefuKBDMH2g8f4dbMD2lTelsmsAeRWvEoiS9Gd69PGjD0EwSIdjzj5ow==
   dependencies:
     "@babel/runtime" "^7.12.5"
-    "@polkadot/metadata" "3.6.3"
+    "@polkadot/metadata" "3.6.4"
     "@polkadot/util" "^5.4.4"
     "@polkadot/util-crypto" "^5.4.4"
     "@polkadot/x-rxjs" "^5.4.4"
@@ -1443,7 +1443,7 @@
     camelcase "^5.3.1"
     ip-regex "^4.3.0"
 
-"@polkadot/util@^3.6.3":
+"@polkadot/util@^3.6.4":
   version "3.7.1"
   resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-3.7.1.tgz#b7585380a6177814f7e28dc2165814864ef2c67b"
   integrity sha512-nvgzAbT/a213mpUd56YwK/zgbGKcQoMNLTmqcBHn1IP9u5J9XJcb1zPzqmCTg6mqnjrsgzJsWml9OpQftrcB6g==