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
--- a/runtime/src/lib.rs
+++ b/runtime/src/lib.rs
@@ -49,8 +49,8 @@
     },
     weights::{
         constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
-        DispatchInfo, GetDispatchInfo, IdentityFee, Pays, PostDispatchInfo, Weight,
-        WeightToFeePolynomial,
+        DispatchInfo, GetDispatchInfo, Pays, PostDispatchInfo, Weight,
+        WeightToFeePolynomial, WeightToFeeCoefficient, WeightToFeeCoefficients
     },
     StorageValue,
 };
@@ -60,6 +60,8 @@
     EnsureRoot, 
     limits::{BlockWeights, BlockLength}};
 use sp_std::{marker::PhantomData};
+use sp_arithmetic::{traits::{BaseArithmetic, Unsigned}};
+use smallvec::{smallvec, SmallVec};
 
 pub use pallet_timestamp::Call as TimestampCall;
 
@@ -217,11 +219,11 @@
 impl OnUnbalanced<NegativeImbalance> for DealWithFees {
 	fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item=NegativeImbalance>) {
 		if let Some(fees) = fees_then_tips.next() {
-			// for fees, 80% to treasury, 20% to author
-			let mut split = fees.ration(80, 20);
+			// for fees, 100% to treasury
+			let mut split = fees.ration(100, 0);
 			if let Some(tips) = fees_then_tips.next() {
-				// for tips, if any, 80% to treasury, 20% to author (though this can be anything)
-				tips.ration_merge_into(80, 20, &mut split);
+				// for tips, if any, 100% to treasury
+				tips.ration_merge_into(100, 0, &mut split);
 			}
 			Treasury::on_unbalanced(split.0);
 			// Author::on_unbalanced(split.1);
@@ -366,12 +368,13 @@
 	type WeightInfo = ();
 }
 
-pub const MILLICENTS: Balance = 1_000_000_000;
-pub const CENTS: Balance = 1_000 * MILLICENTS;
-pub const DOLLARS: Balance = 100 * CENTS;
+pub const MICROUNIQUE: Balance = 1_000_000_000;
+pub const MILLIUNIQUE: Balance = 1_000 * MICROUNIQUE;
+pub const CENTIUNIQUE: Balance = 10 * MILLIUNIQUE;
+pub const UNIQUE: Balance      = 100 * CENTIUNIQUE;
 
 pub const fn deposit(items: u32, bytes: u32) -> Balance {
-    items as Balance * 15 * CENTS + (bytes as Balance) * 6 * CENTS
+    items as Balance * 15 * CENTIUNIQUE + (bytes as Balance) * 6 * CENTIUNIQUE
 }
 
 parameter_types! {
@@ -383,7 +386,7 @@
 	pub const DepositPerStorageByte: Balance = deposit(0, 1);
 	pub const DepositPerStorageItem: Balance = deposit(1, 0);
 	pub RentFraction: Perbill = Perbill::from_rational_approximation(1u32, 30 * DAYS);
-	pub const SurchargeReward: Balance = 150 * MILLICENTS;
+	pub const SurchargeReward: Balance = 150 * MILLIUNIQUE;
 	pub const SignedClaimHandicap: u32 = 2;
 	pub const MaxDepth: u32 = 32;
 	pub const MaxValueSize: u32 = 16 * 1024;
@@ -422,36 +425,50 @@
 }
 
 parameter_types! {
-	pub const TransactionByteFee: Balance = 10 * MILLICENTS;
-	pub const TargetBlockFullness: Perquintill = Perquintill::from_percent(25);
-	pub AdjustmentVariable: Multiplier = Multiplier::saturating_from_rational(1, 100_000);
-	pub MinimumMultiplier: Multiplier = Multiplier::saturating_from_rational(1, 1_000_000_000u128);
+	pub const TransactionByteFee: Balance = 501 * MICROUNIQUE; // Targeting 0.1 Unique per NFT transfer 
 }
 
+/// Linear implementor of `WeightToFeePolynomial` 
+pub struct LinearFee<T>(sp_std::marker::PhantomData<T>);
+
+impl<T> WeightToFeePolynomial for LinearFee<T> where
+	T: BaseArithmetic + From<u32> + Copy + Unsigned
+{
+	type Balance = T;
+
+	fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
+		smallvec!(WeightToFeeCoefficient {
+			coeff_integer: 146_700u32.into(), // Targeting 0.1 Unique per NFT transfer
+			coeff_frac: Perbill::zero(),
+			negative: false,
+			degree: 1,
+		})
+	}
+}
+
 impl pallet_transaction_payment::Config for Runtime {
 	type OnChargeTransaction = CurrencyAdapter<Balances, DealWithFees>;
 	type TransactionByteFee = TransactionByteFee;
-	type WeightToFee = IdentityFee<Balance>;
-	type FeeMultiplierUpdate =
-		TargetedFeeAdjustment<Self, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>;
+	type WeightToFee = LinearFee<Balance>;
+	type FeeMultiplierUpdate = ();
 }
 
 parameter_types! {
 	pub const ProposalBond: Permill = Permill::from_percent(5);
-	pub const ProposalBondMinimum: Balance = 1 * DOLLARS;
+	pub const ProposalBondMinimum: Balance = 1 * UNIQUE;
 	pub const SpendPeriod: BlockNumber = 5 * MINUTES;
 	pub const Burn: Permill = Permill::from_percent(0);
 	pub const TipCountdown: BlockNumber = 1 * DAYS;
 	pub const TipFindersFee: Percent = Percent::from_percent(20);
-	pub const TipReportDepositBase: Balance = 1 * DOLLARS;
-	pub const DataDepositPerByte: Balance = 1 * CENTS;
-	pub const BountyDepositBase: Balance = 1 * DOLLARS;
+	pub const TipReportDepositBase: Balance = 1 * UNIQUE;
+	pub const DataDepositPerByte: Balance = 1 * CENTIUNIQUE;
+	pub const BountyDepositBase: Balance = 1 * UNIQUE;
 	pub const BountyDepositPayoutDelay: BlockNumber = 1 * DAYS;
 	pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry");
 	pub const BountyUpdatePeriod: BlockNumber = 14 * DAYS;
 	pub const MaximumReasonLength: u32 = 16384;
 	pub const BountyCuratorDeposit: Permill = Permill::from_percent(50);
-	pub const BountyValueMinimum: Balance = 5 * DOLLARS;
+	pub const BountyValueMinimum: Balance = 5 * UNIQUE;
 }
 
 impl pallet_treasury::Config for Runtime {
@@ -476,7 +493,7 @@
 }
 
 parameter_types! {
-	pub const MinVestedTransfer: Balance = 100 * DOLLARS;
+	pub const MinVestedTransfer: Balance = 10 * UNIQUE;
 }
 
 impl 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
1195 "@nodelib/fs.scandir" "2.1.4"1195 "@nodelib/fs.scandir" "2.1.4"
1196 fastq "^1.6.0"1196 fastq "^1.6.0"
11971197
1198"@polkadot/api-contract@^3.6.3":1198"@polkadot/api-contract@^3.6.4":
1199 version "3.6.3"1199 version "3.6.4"
1200 resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-3.6.3.tgz#0aaa6989d34d1c063c601ce8f1e19307ba112510"1200 resolved "https://registry.yarnpkg.com/@polkadot/api-contract/-/api-contract-3.6.4.tgz#3ede886af686f9d66faa7be3d5e5d14ee0dbdbed"
1201 integrity sha512-M2j4R8wdIEJCCmJpRFjn/L/n6d6fN85UvpWNRfYebb+yflr5600UANS2nIxtq+7cjoC1FyxTuuIDimoKKeL2ng==1201 integrity sha512-vj0J0CcqaCVCZiV0auUEw8gkVetiRovybmvWA8CcTsmvI4w1TWgCMMBgNlzonibWdL/eXmaOU7W34mjBJ4qNwA==
1202 dependencies:1202 dependencies:
1203 "@babel/runtime" "^7.12.5"1203 "@babel/runtime" "^7.12.5"
1204 "@polkadot/api" "3.6.3"1204 "@polkadot/api" "3.6.4"
1205 "@polkadot/types" "3.6.3"1205 "@polkadot/types" "3.6.4"
1206 "@polkadot/util" "^5.4.4"1206 "@polkadot/util" "^5.4.4"
1207 "@polkadot/x-rxjs" "^5.4.4"1207 "@polkadot/x-rxjs" "^5.4.4"
1208 bn.js "^4.11.9"1208 bn.js "^4.11.9"
12091209
1210"@polkadot/api-derive@3.6.3":1210"@polkadot/api-derive@3.6.4":
1211 version "3.6.3"1211 version "3.6.4"
1212 resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-3.6.3.tgz#9b01c83b20cfd1da55170eb1d994b538e0fc1b25"1212 resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-3.6.4.tgz#806f1cc61ec474bb53374088c1f510c4ba07da86"
1213 integrity sha512-S/8WxX5WUwjc6Qhc03Kdjgf5MRioYAkiX8beo5Q8uLyGvfyeA3rdRoeTHLGlIXRbbPSuI1hGEzNR2X7g2uKPOw==1213 integrity sha512-AOdJnQxqNnjKay4F788xHYJqpsSjJV8n+zSLfXY8Fm9nMj2wPZ2y/C6k4zpZDQN1kHetYHpzVt77cVONJladvg==
1214 dependencies:1214 dependencies:
1215 "@babel/runtime" "^7.12.5"1215 "@babel/runtime" "^7.12.5"
1216 "@polkadot/api" "3.6.3"1216 "@polkadot/api" "3.6.4"
1217 "@polkadot/rpc-core" "3.6.3"1217 "@polkadot/rpc-core" "3.6.4"
1218 "@polkadot/types" "3.6.3"1218 "@polkadot/types" "3.6.4"
1219 "@polkadot/util" "^5.4.4"1219 "@polkadot/util" "^5.4.4"
1220 "@polkadot/util-crypto" "^5.4.4"1220 "@polkadot/util-crypto" "^5.4.4"
1221 "@polkadot/x-rxjs" "^5.4.4"1221 "@polkadot/x-rxjs" "^5.4.4"
1222 bn.js "^4.11.9"1222 bn.js "^4.11.9"
12231223
1224"@polkadot/api@3.6.3", "@polkadot/api@^3.6.3":1224"@polkadot/api@3.6.4", "@polkadot/api@^3.6.4":
1225 version "3.6.3"1225 version "3.6.4"
1226 resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-3.6.3.tgz#eb3ae9b0877de7c0174afae3cd3005f90dbdae47"1226 resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-3.6.4.tgz#a7b02eb0f4c2a98b087003edc1c2f7ed4bea077a"
1227 integrity sha512-U/fzYxuSghPBDBhGenfRSCGiY5t6E9mIXFxuX65LN89meFAJn3ToNX2q7kP0Y9234jmy+EGu96ZIseW7WQB/xA==1227 integrity sha512-jsbBoL99OtBazGyufab9zkC1ORYdvrqzs5tHhLkhUl9zNrDBHyLVawyYNPXAyejtwLl3RMAWMMpnarDjlmjwPQ==
1228 dependencies:1228 dependencies:
1229 "@babel/runtime" "^7.12.5"1229 "@babel/runtime" "^7.12.5"
1230 "@polkadot/api-derive" "3.6.3"1230 "@polkadot/api-derive" "3.6.4"
1231 "@polkadot/keyring" "^5.4.4"1231 "@polkadot/keyring" "^5.4.4"
1232 "@polkadot/metadata" "3.6.3"1232 "@polkadot/metadata" "3.6.4"
1233 "@polkadot/rpc-core" "3.6.3"1233 "@polkadot/rpc-core" "3.6.4"
1234 "@polkadot/rpc-provider" "3.6.3"1234 "@polkadot/rpc-provider" "3.6.4"
1235 "@polkadot/types" "3.6.3"1235 "@polkadot/types" "3.6.4"
1236 "@polkadot/types-known" "3.6.3"1236 "@polkadot/types-known" "3.6.4"
1237 "@polkadot/util" "^5.4.4"1237 "@polkadot/util" "^5.4.4"
1238 "@polkadot/util-crypto" "^5.4.4"1238 "@polkadot/util-crypto" "^5.4.4"
1239 "@polkadot/x-rxjs" "^5.4.4"1239 "@polkadot/x-rxjs" "^5.4.4"
1316 "@polkadot/util" "5.4.4"1316 "@polkadot/util" "5.4.4"
1317 "@polkadot/util-crypto" "5.4.4"1317 "@polkadot/util-crypto" "5.4.4"
13181318
1319"@polkadot/metadata@3.6.3":1319"@polkadot/metadata@3.6.4":
1320 version "3.6.3"1320 version "3.6.4"
1321 resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-3.6.3.tgz#37a785e96acc908cb42d3b5a78be669abae2fed2"1321 resolved "https://registry.yarnpkg.com/@polkadot/metadata/-/metadata-3.6.4.tgz#033dad14d962c14b61cbcbfe5db7ef9700a4e771"
1322 integrity sha512-QFdy5dvnWq9c3ybHyR/qnVtCv2xi9z+lFURuyS24gMynwzjZFpEQwISMQ6omIhEqxV++9b1c+BrORK1Uw54Lyg==1322 integrity sha512-EPxpiRnaqUvySLyasAXRJk7lb7YS0xvRuLHDaMIuoPpjtr1TqXxvhH4q/VjzjHpXTtriAVPczNydD+NtKYXDiQ==
1323 dependencies:1323 dependencies:
1324 "@babel/runtime" "^7.12.5"1324 "@babel/runtime" "^7.12.5"
1325 "@polkadot/types" "3.6.3"1325 "@polkadot/types" "3.6.4"
1326 "@polkadot/types-known" "3.6.3"1326 "@polkadot/types-known" "3.6.4"
1327 "@polkadot/util" "^5.4.4"1327 "@polkadot/util" "^5.4.4"
1328 "@polkadot/util-crypto" "^5.4.4"1328 "@polkadot/util-crypto" "^5.4.4"
1329 bn.js "^4.11.9"1329 bn.js "^4.11.9"
1335 dependencies:1335 dependencies:
1336 "@babel/runtime" "^7.12.5"1336 "@babel/runtime" "^7.12.5"
13371337
1338"@polkadot/rpc-core@3.6.3":1338"@polkadot/rpc-core@3.6.4":
1339 version "3.6.3"1339 version "3.6.4"
1340 resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-3.6.3.tgz#5b584fa54e9f47a91650a73b6a08f4fafa8a4fa5"1340 resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-3.6.4.tgz#d436e0d1d65d3cbd9b1e437f1827e3cf8a26089b"
1341 integrity sha512-q9FUj0j3qonrqN/Yp72nWqD7eMHtmM7ISTIKXma++BHuUSVlSHdMZM2Rza/3lxGasoUaxOW5vwYzhfMljiRRVw==1341 integrity sha512-TzsmERRELrqB6mbf23GxLVObDhxInTrdSWkmle4a3qKXgAPfuGlEhxpqiaMMQZjo4LVHCeXStUc18VCHVY17ag==
1342 dependencies:1342 dependencies:
1343 "@babel/runtime" "^7.12.5"1343 "@babel/runtime" "^7.12.5"
1344 "@polkadot/metadata" "3.6.3"1344 "@polkadot/metadata" "3.6.4"
1345 "@polkadot/rpc-provider" "3.6.3"1345 "@polkadot/rpc-provider" "3.6.4"
1346 "@polkadot/types" "3.6.3"1346 "@polkadot/types" "3.6.4"
1347 "@polkadot/util" "^5.4.4"1347 "@polkadot/util" "^5.4.4"
1348 "@polkadot/x-rxjs" "^5.4.4"1348 "@polkadot/x-rxjs" "^5.4.4"
13491349
1350"@polkadot/rpc-provider@3.6.3":1350"@polkadot/rpc-provider@3.6.4":
1351 version "3.6.3"1351 version "3.6.4"
1352 resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-3.6.3.tgz#d2f31c80abdeacba7c747a7da9937d6373659a23"1352 resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-3.6.4.tgz#433572380264ed92c6cd06636057aea3967f659b"
1353 integrity sha512-9g0Ka3dwFicf5xvlECCUCFBdJ0QAL1vV8OT4Lk3h71HmcsyrXSTamcxyc9GOSZEkcfJb3zRE+h+Ql7A1SV+yPw==1353 integrity sha512-yWEgHdlO/lxqrkDXxq2kY87tuPg2xyR0OPw3LM+ZE8/UMubR/KWjAtk3/KI0iLimPMtKcCL4L3z/mazYN6A19Q==
1354 dependencies:1354 dependencies:
1355 "@babel/runtime" "^7.12.5"1355 "@babel/runtime" "^7.12.5"
1356 "@polkadot/types" "3.6.3"1356 "@polkadot/types" "3.6.4"
1357 "@polkadot/util" "^5.4.4"1357 "@polkadot/util" "^5.4.4"
1358 "@polkadot/util-crypto" "^5.4.4"1358 "@polkadot/util-crypto" "^5.4.4"
1359 "@polkadot/x-fetch" "^5.4.4"1359 "@polkadot/x-fetch" "^5.4.4"
1369 dependencies:1369 dependencies:
1370 "@types/chrome" "^0.0.127"1370 "@types/chrome" "^0.0.127"
13711371
1372"@polkadot/typegen@^3.6.3":1372"@polkadot/typegen@^3.6.4":
1373 version "3.6.3"1373 version "3.6.4"
1374 resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-3.6.3.tgz#c55dd31ad8e573e3620f1650ef7dcbc220bfcb50"1374 resolved "https://registry.yarnpkg.com/@polkadot/typegen/-/typegen-3.6.4.tgz#6473933e185c11c23c7f06b97207bf64c1e388fb"
1375 integrity sha512-WjeFJoI2OH4y2/4VdmRCD/FRzGXj93RbVXxx4BVTGSi5ePMiTkvgOieMv7tz9bbR/DoHjB1VtPQPwmytecplHw==1375 integrity sha512-VXVLm4WLTADk1X9QiGjq8LPfzRpt/z95s4bD+wQJkkKH1zw5FxBDIys/WAEB0Q2m5S0EAl5yTGNb2MKCcPxchg==
1376 dependencies:1376 dependencies:
1377 "@babel/core" "^7.12.10"1377 "@babel/core" "^7.12.10"
1378 "@babel/register" "^7.12.10"1378 "@babel/register" "^7.12.10"
1379 "@babel/runtime" "^7.12.5"1379 "@babel/runtime" "^7.12.5"
1380 "@polkadot/api" "3.6.3"1380 "@polkadot/api" "3.6.4"
1381 "@polkadot/metadata" "3.6.3"1381 "@polkadot/metadata" "3.6.4"
1382 "@polkadot/rpc-provider" "3.6.3"1382 "@polkadot/rpc-provider" "3.6.4"
1383 "@polkadot/types" "3.6.3"1383 "@polkadot/types" "3.6.4"
1384 "@polkadot/util" "^5.4.4"1384 "@polkadot/util" "^5.4.4"
1385 handlebars "^4.7.6"1385 handlebars "^4.7.6"
1386 websocket "^1.0.33"1386 websocket "^1.0.33"
1387 yargs "^16.2.0"1387 yargs "^16.2.0"
13881388
1389"@polkadot/types-known@3.6.3":1389"@polkadot/types-known@3.6.4":
1390 version "3.6.3"1390 version "3.6.4"
1391 resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-3.6.3.tgz#1a0639c463969e3f17ec20b06602c4ca4c25f500"1391 resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-3.6.4.tgz#765c212a7b8a9e4fa1538041911a0aa30302c5e4"
1392 integrity sha512-fgG4BwmJ/yhvHiJGGKfpcIVu0lsYuHutWthvW8KwDVOMjVIrSRoT7ct9+dD11+sA6rI1UiSOerQ70t7iv/qQ6w==1392 integrity sha512-wK2VN95h8isyHzkf9PD3/8udlj1pw54tOoSQYv9LPJ94EBLM0iAUYvz7dQX4MGy3H6kcJvwT21639Bt7aqWhzQ==
1393 dependencies:1393 dependencies:
1394 "@babel/runtime" "^7.12.5"1394 "@babel/runtime" "^7.12.5"
1395 "@polkadot/types" "3.6.3"1395 "@polkadot/types" "3.6.4"
1396 "@polkadot/util" "^5.4.4"1396 "@polkadot/util" "^5.4.4"
1397 bn.js "^4.11.9"1397 bn.js "^4.11.9"
13981398
1399"@polkadot/types@3.6.3":1399"@polkadot/types@3.6.4":
1400 version "3.6.3"1400 version "3.6.4"
1401 resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-3.6.3.tgz#d8ab3761956e3a9195c1436b4e650c8516ad9379"1401 resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-3.6.4.tgz#cdecfc317dd510b58854fe7c2f08e675f7c160b2"
1402 integrity sha512-R1S4N/LIJPceVMytMTDTcLV+EhkmlOkugcMElQlg0iShvEt/2ZuqfJlYaEKAaxmHfpEQuV5ct6pbcmZU5f0zBw==1402 integrity sha512-cfI5m08wk/1Cexxm0Qv+TELQPp1GQoWefuKBDMH2g8f4dbMD2lTelsmsAeRWvEoiS9Gd69PGjD0EwSIdjzj5ow==
1403 dependencies:1403 dependencies:
1404 "@babel/runtime" "^7.12.5"1404 "@babel/runtime" "^7.12.5"
1405 "@polkadot/metadata" "3.6.3"1405 "@polkadot/metadata" "3.6.4"
1406 "@polkadot/util" "^5.4.4"1406 "@polkadot/util" "^5.4.4"
1407 "@polkadot/util-crypto" "^5.4.4"1407 "@polkadot/util-crypto" "^5.4.4"
1408 "@polkadot/x-rxjs" "^5.4.4"1408 "@polkadot/x-rxjs" "^5.4.4"
1443 camelcase "^5.3.1"1443 camelcase "^5.3.1"
1444 ip-regex "^4.3.0"1444 ip-regex "^4.3.0"
14451445
1446"@polkadot/util@^3.6.3":1446"@polkadot/util@^3.6.4":
1447 version "3.7.1"1447 version "3.7.1"
1448 resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-3.7.1.tgz#b7585380a6177814f7e28dc2165814864ef2c67b"1448 resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-3.7.1.tgz#b7585380a6177814f7e28dc2165814864ef2c67b"
1449 integrity sha512-nvgzAbT/a213mpUd56YwK/zgbGKcQoMNLTmqcBHn1IP9u5J9XJcb1zPzqmCTg6mqnjrsgzJsWml9OpQftrcB6g==1449 integrity sha512-nvgzAbT/a213mpUd56YwK/zgbGKcQoMNLTmqcBHn1IP9u5J9XJcb1zPzqmCTg6mqnjrsgzJsWml9OpQftrcB6g==