git.delta.rocks / unique-network / refs/commits / bad94bc8367a

difftreelog

fix configuration

Igor Kozyrev2022-02-10parent: #e862576.patch.diff
in: master

5 files changed

modifiedREADME.mddiffbeforeafterboth
--- a/README.md
+++ b/README.md
@@ -337,8 +337,8 @@
 
 ## Karura token transfer
 
-To get started, you need to open the hrmr channel.
-Next, we need to register our asset in Karura.
+To get started, you need to open inbound and outbound hrmp channels.
+Next, we need to register our asset at Karura.
 
 ```
 assetRegistry -> registerForeignAsset(location, metadata)
@@ -347,11 +347,11 @@
 metadata:
 	name         OPL
 	symbol       OPL
-	decimals     15
+	decimals     18
 minimalBalance	 1
 ```
 
-Next, we can send tokens of our chain:
+Next, we can send tokens from Opal to Karura:
 ```
 polkadotXcm -> reserveTransferAssets
 dest:
@@ -370,7 +370,7 @@
 tokens -> accounts	
 
 
-To send tokens from karura:
+To send tokens from Karura to Opal:
 
 ```
 xtokens -> transfer
modifiedlaunch-config.jsondiffbeforeafterboth
--- a/launch-config.json
+++ b/launch-config.json
@@ -114,40 +114,21 @@
                     ]
 				}
 			]
-		},
-        {
-            "bin": "../cumulus/target/release/polkadot-collator",
-            "id": "3000",
-            "chain": "statemint-dev",
-            "balance": "1000000000000000000000000",
-            "nodes": [
-                {
-                    "wsPort": 9947,
-                    "port": 31203,
-                    "name": "alice",
-                    "flags": [
-                        "--rpc-cors=all",
-                        "--unsafe-rpc-external",
-                        "--unsafe-ws-external",
-                        "-lxcm=trace"
-                    ]
-                }
-            ]
-        }
+		}
     ],
     "simpleParachains": [],
     "hrmpChannels": [
         {
             "sender": 2000,
             "recipient": 1000,
-            "maxCapacity": 8,
-            "maxMessageSize": 512
+            "maxCapacity": 1000,
+            "maxMessageSize": 102400
         },
         {
             "sender": 1000,
             "recipient": 2000,
-            "maxCapacity": 8,
-            "maxMessageSize": 512
+            "maxCapacity": 1000,
+            "maxMessageSize": 102400
         }
     ],
     "finalization": false
modifiedruntime/Cargo.tomldiffbeforeafterboth
--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -377,7 +377,6 @@
 scale-info = { version = "1.0.0", default-features = false, features = [
     "derive",
 ] }
-log = '0.4.14'
 derivative = "2.2.0"
 pallet-unique = { path = '../pallets/unique', default-features = false }
 up-rpc = { path = "../primitives/rpc", default-features = false }
modifiedtests/package.jsondiffbeforeafterboth
before · tests/package.json
1{2  "name": "unique-tests",3  "version": "1.0.0",4  "description": "Unique Chain Tests",5  "main": "",6  "devDependencies": {7    "@polkadot/dev": "0.63.18",8    "@polkadot/ts": "0.4.12",9    "@polkadot/typegen": "6.6.2-5",10    "@types/chai": "^4.2.22",11    "@types/chai-as-promised": "^7.1.4",12    "@types/mocha": "^9.0.0",13    "@types/node": "^16.11.6",14    "@typescript-eslint/eslint-plugin": "^5.3.0",15    "@typescript-eslint/parser": "^5.3.0",16    "chai": "^4.3.4",17    "eslint": "^8.1.0",18    "mocha": "^9.1.3",19    "ts-node": "^10.4.0",20    "tslint": "^6.1.3",21    "typescript": "^4.4.4"22  },23  "mocha": {24    "timeout": 9999999,25    "require": "ts-node/register"26  },27  "scripts": {28    "lint": "eslint --ext .ts,.js src/",29    "fix": "eslint --ext .ts,.js src/ --fix",30    "test": "mocha --timeout 9999999 -r ts-node/register './**/*.test.ts'",31    "testEth": "mocha --timeout 9999999 -r ts-node/register './**/eth/**/*.test.ts'",32    "testEthMarketplace": "mocha --timeout 9999999 -r ts-node/register './**/eth/marketplace/**/*.test.ts'",33    "load": "mocha --timeout 9999999 -r ts-node/register './**/*.load.ts'",34    "loadTransfer": "ts-node src/transfer.nload.ts",35    "testCollision": "mocha --timeout 9999999 -r ts-node/register ./src/collision-tests/*.test.ts",36    "testEvent": "mocha --timeout 9999999 -r ts-node/register ./src/check-event/*.test.ts",37    "testAddCollectionAdmin": "mocha --timeout 9999999 -r ts-node/register ./**/addCollectionAdmin.test.ts",38    "testSetSchemaVersion": "mocha --timeout 9999999 -r ts-node/register ./**/setSchemaVersion.test.ts",39    "testSetVariableMetaData": "mocha --timeout 9999999 -r ts-node/register ./**/setVariableMetaData.test.ts",40    "testSetCollectionLimits": "mocha --timeout 9999999 -r ts-node/register ./**/setCollectionLimits.test.ts",41    "testSetCollectionSponsor": "mocha --timeout 9999999 -r ts-node/register ./**/setCollectionSponsor.test.ts",42    "testConfirmSponsorship": "mocha --timeout 9999999 -r ts-node/register ./**/confirmSponsorship.test.ts",43    "testRemoveCollectionAdmin": "mocha --timeout 9999999 -r ts-node/register ./**/removeCollectionAdmin.test.ts",44    "testRemoveCollectionSponsor": "mocha --timeout 9999999 -r ts-node/register ./**/removeCollectionSponsor.test.ts",45    "testRemoveFromAllowList": "mocha --timeout 9999999 -r ts-node/register ./**/removeFromAllowList.test.ts",46    "testConnection": "mocha --timeout 9999999 -r ts-node/register ./**/connection.test.ts",47    "testCollection": "mocha --timeout 9999999 -r ts-node/register ./**/createCollection.test.ts",48    "testContracts": "mocha --timeout 9999999 -r ts-node/register ./**/contracts.test.ts",49    "testCreateItem": "mocha --timeout 9999999 -r ts-node/register ./**/createItem.test.ts",50    "testCreateMultipleItems": "mocha --timeout 9999999 -r ts-node/register ./**/createMultipleItems.test.ts",51    "testApprove": "mocha --timeout 9999999 -r ts-node/register ./**/approve.test.ts",52    "testTransferFrom": "mocha --timeout 9999999 -r ts-node/register ./**/transferFrom.test.ts",53    "testCreateCollection": "mocha --timeout 9999999 -r ts-node/register ./**/createCollection.test.ts",54    "testToggleContractAllowList": "mocha --timeout 9999999 -r ts-node/register ./**/toggleContractAllowList.test.ts",55    "testAddToContractAllowList": "mocha --timeout 9999999 -r ts-node/register ./**/addToContractAllowList.test.ts",56    "testTransfer": "mocha --timeout 9999999 -r ts-node/register ./**/transfer.test.ts",57    "testBurnItem": "mocha --timeout 9999999 -r ts-node/register ./**/burnItem.test.ts",58    "testSetMintPermission": "mocha --timeout 9999999 -r ts-node/register ./**/setMintPermission.test.ts",59    "testCreditFeesToTreasury": "mocha --timeout 9999999 -r ts-node/register ./**/creditFeesToTreasury.test.ts",60    "testEnableContractSponsoring": "mocha --timeout 9999999 -r ts-node/register ./**/enableContractSponsoring.test.ts",61    "testRemoveFromContractAllowList": "mocha --timeout 9999999 -r ts-node/register ./**/removeFromContractAllowList.test.ts",62    "testSetContractSponsoringRateLimit": "mocha --timeout 9999999 -r ts-node/register ./**/setContractSponsoringRateLimit.test.ts",63    "testSetOffchainSchema": "mocha --timeout 9999999 -r ts-node/register ./**/setOffchainSchema.test.ts",64    "testOverflow": "mocha --timeout 9999999 -r ts-node/register ./**/overflow.test.ts",65    "testSetVariableMetadataSponsoringRateLimit": "mocha --timeout 9999999 -r ts-node/register ./**/setVariableMetadataSponsoringRateLimit.test.ts",66    "testInflation": "mocha --timeout 9999999 -r ts-node/register ./**/inflation.test.ts",67    "testXcmTransfer": "mocha --timeout 9999999 -r ts-node/register ./**/xcmTransfer.test.ts",68    "testPalletPresence": "mocha --timeout 9999999 -r ts-node/register ./**/pallet-presence.test.ts",69    "testBlockProduction": "mocha --timeout 9999999 -r ts-node/register ./**/block-production.test.ts",70    "testEnableDisableTransfers": "mocha --timeout 9999999 -r ts-node/register ./**/enableDisableTransfer.test.ts",71    "testXcm": "mocha --timeout 9999999 -r ts-node/register ./**/xcmTransfer.test.ts",72    "polkadot-types-from-defs": "ts-node ./node_modules/.bin/polkadot-types-from-defs --input src/interfaces/ --package .",73    "polkadot-types-from-chain": "ts-node ./node_modules/.bin/polkadot-types-from-chain --endpoint ws://localhost:9944 --output src/interfaces/ --package .",74    "polkadot-types": "yarn polkadot-types-from-defs && yarn polkadot-types-from-chain"75  },76  "author": "",77  "license": "SEE LICENSE IN ../LICENSE",78  "homepage": "",79  "dependencies": {80    "@polkadot/api": "6.6.2-5",81    "@polkadot/api-contract": "6.6.2-5",82    "@polkadot/util-crypto": "^7.7.1",83    "bignumber.js": "^9.0.1",84    "chai-as-promised": "^7.1.1",85    "solc": "^0.8.9",86    "web3": "^1.6.0"87  },88  "standard": {89    "globals": [90      "it",91      "assert",92      "beforeEach",93      "afterEach",94      "describe",95      "contract",96      "artifacts"97    ]98  }99}
modifiedtests/src/xcmTransfer.test.tsdiffbeforeafterboth
--- a/tests/src/xcmTransfer.test.ts
+++ b/tests/src/xcmTransfer.test.ts
@@ -51,7 +51,7 @@
       {
         name: 'OPL',
         symbol: 'OPL',
-        decimals: 15,
+        decimals: 18,
         minimalBalance: 1,
       };