Browse Source

update js types, add app id for development (#4048)

Bartosz Dryl 1 year ago
parent
commit
9a0e058819

+ 1 - 1
packages/atlas/package.json

@@ -39,7 +39,7 @@
     "@hookform/resolvers": "^2.9.10",
     "@hookform/resolvers": "^2.9.10",
     "@joystream/js": "^1.4.0",
     "@joystream/js": "^1.4.0",
     "@joystream/metadata-protobuf": "2.8.1",
     "@joystream/metadata-protobuf": "2.8.1",
-    "@joystream/types": "0.20.5",
+    "@joystream/types": "2.1.0",
     "@livesession/sdk": "^1.1.4",
     "@livesession/sdk": "^1.1.4",
     "@loadable/component": "^5.15.2",
     "@loadable/component": "^5.15.2",
     "@lottiefiles/react-lottie-player": "^3.5.0",
     "@lottiefiles/react-lottie-player": "^3.5.0",

+ 2 - 2
packages/atlas/src/.env

@@ -4,7 +4,7 @@
 VITE_ENV=development
 VITE_ENV=development
 
 
 # App configuration
 # App configuration
-VITE_APP_ID=
+VITE_APP_ID=4414-2
 
 
 VITE_AVATAR_SERVICE_URL=https://atlas-services.joystream.org/avatars
 VITE_AVATAR_SERVICE_URL=https://atlas-services.joystream.org/avatars
 VITE_GEOLOCATION_SERVICE_URL=https://geolocation.joystream.org
 VITE_GEOLOCATION_SERVICE_URL=https://geolocation.joystream.org
@@ -22,7 +22,7 @@ VITE_PRODUCTION_NODE_URL=wss://rpc.joystream.org:9944
 VITE_PRODUCTION_FAUCET_URL=https://faucet.joystream.org/member-faucet/register
 VITE_PRODUCTION_FAUCET_URL=https://faucet.joystream.org/member-faucet/register
 
 
 # Development env URLs - this is the default configuration if VITE_ENV != production
 # Development env URLs - this is the default configuration if VITE_ENV != production
-VITE_DEVELOPMENT_ORION_URL=https://atlas-dev.joystream.org/orion-v2/graphql
+VITE_DEVELOPMENT_ORION_URL=https://atlas-dev.joystream.org/orion-v2/graphql 
 VITE_DEVELOPMENT_QUERY_NODE_SUBSCRIPTION_URL=wss://atlas-dev.joystream.org/orion-v2/graphql
 VITE_DEVELOPMENT_QUERY_NODE_SUBSCRIPTION_URL=wss://atlas-dev.joystream.org/orion-v2/graphql
 VITE_DEVELOPMENT_NODE_URL=wss://atlas-dev.joystream.org/ws-rpc
 VITE_DEVELOPMENT_NODE_URL=wss://atlas-dev.joystream.org/ws-rpc
 VITE_DEVELOPMENT_FAUCET_URL=https://atlas-dev.joystream.org/member-faucet/register
 VITE_DEVELOPMENT_FAUCET_URL=https://atlas-dev.joystream.org/member-faucet/register

+ 1 - 1
packages/atlas/src/joystream-lib/extrinsics.ts

@@ -162,7 +162,7 @@ export class JoystreamLibExtrinsics {
     await this.ensureApi()
     await this.ensureApi()
 
 
     const metadata = wrapMetadata(MemberRemarked.encode(msg).finish()).unwrap()
     const metadata = wrapMetadata(MemberRemarked.encode(msg).finish()).unwrap()
-    const tx = this.api.tx.members.memberRemark(memberId, metadata)
+    const tx = this.api.tx.members.memberRemark(memberId, metadata, null)
     return tx
     return tx
   }
   }
 
 

+ 2 - 18
yarn.lock

@@ -3567,7 +3567,7 @@ __metadata:
     "@joystream/js": ^1.4.0
     "@joystream/js": ^1.4.0
     "@joystream/metadata-protobuf": 2.8.1
     "@joystream/metadata-protobuf": 2.8.1
     "@joystream/prettier-config": ^1.0.0
     "@joystream/prettier-config": ^1.0.0
-    "@joystream/types": 0.20.5
+    "@joystream/types": 2.1.0
     "@livesession/sdk": ^1.1.4
     "@livesession/sdk": ^1.1.4
     "@loadable/component": ^5.15.2
     "@loadable/component": ^5.15.2
     "@lottiefiles/react-lottie-player": ^3.5.0
     "@lottiefiles/react-lottie-player": ^3.5.0
@@ -3707,23 +3707,7 @@ __metadata:
   languageName: node
   languageName: node
   linkType: hard
   linkType: hard
 
 
-"@joystream/types@npm:0.20.5":
-  version: 0.20.5
-  resolution: "@joystream/types@npm:0.20.5"
-  dependencies:
-    "@polkadot/api": 8.9.1
-    "@polkadot/keyring": 9.5.1
-    "@polkadot/types": 8.9.1
-    "@types/lodash": ^4.14.157
-    "@types/vfile": ^4.0.0
-    ajv: ^6.11.0
-    lodash: ^4.17.15
-    moment: ^2.24.0
-  checksum: a3e310f358d7aa6d51a39d639f6ceec5052959abd38bc3ef34339a3c411ea91647d4fe50d09361d2aecd7d254da5d90b774e44dc67656cf1a5cd72aa89b0ba7b
-  languageName: node
-  linkType: hard
-
-"@joystream/types@npm:^2.0.0":
+"@joystream/types@npm:2.1.0, @joystream/types@npm:^2.0.0":
   version: 2.1.0
   version: 2.1.0
   resolution: "@joystream/types@npm:2.1.0"
   resolution: "@joystream/types@npm:2.1.0"
   dependencies:
   dependencies: