@novasamatech/host-papp 0.5.0-12 → 0.5.0-14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/papp.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createLazyClient, createPapiStatementStoreAdapter } from '@novasamatech/statement-store';
2
2
  import { createLocalStorageAdapter } from '@novasamatech/storage-adapter';
3
3
  import { getWsProvider } from '@polkadot-api/ws-provider';
4
- import { SS_STABLE_STAGE_ENDPOINTS } from './constants.js';
4
+ import { SS_UNSTABLE_STAGE_ENDPOINTS } from './constants.js';
5
5
  import { createIdentityRepository } from './identity/impl.js';
6
6
  import { createIdentityRpcAdapter } from './identity/rpcAdapter.js';
7
7
  import { createAuth } from './sso/auth/impl.js';
@@ -9,7 +9,7 @@ import { createSsoSessionManager } from './sso/sessionManager/impl.js';
9
9
  import { createUserSecretRepository } from './sso/userSecretRepository.js';
10
10
  import { createUserSessionRepository } from './sso/userSessionRepository.js';
11
11
  export function createPappAdapter({ appId, metadata, adapters }) {
12
- const lazyClient = adapters?.lazyClient ?? createLazyClient(getWsProvider(SS_STABLE_STAGE_ENDPOINTS));
12
+ const lazyClient = adapters?.lazyClient ?? createLazyClient(getWsProvider(SS_UNSTABLE_STAGE_ENDPOINTS));
13
13
  const statementStore = adapters?.statementStore ?? createPapiStatementStoreAdapter(lazyClient);
14
14
  const identities = adapters?.identities ?? createIdentityRpcAdapter(lazyClient);
15
15
  const storage = adapters?.storage ?? createLocalStorageAdapter(appId);
@@ -15,7 +15,7 @@ export declare const RemoteMessageCodec: import("scale-ts").Codec<{
15
15
  blockNumber: `0x${string}`;
16
16
  era: `0x${string}`;
17
17
  genesisHash: `0x${string}`;
18
- method: string;
18
+ method: `0x${string}`;
19
19
  nonce: `0x${string}`;
20
20
  specVersion: `0x${string}`;
21
21
  tip: `0x${string}`;
@@ -23,6 +23,7 @@ export declare const RemoteMessageCodec: import("scale-ts").Codec<{
23
23
  signedExtensions: string[];
24
24
  version: number;
25
25
  assetId: `0x${string}` | undefined;
26
+ metadataHash: `0x${string}` | undefined;
26
27
  mode: number | undefined;
27
28
  withSignedTransaction: boolean | undefined;
28
29
  };
@@ -6,7 +6,7 @@ export declare const SignPayloadRequestCodec: import("scale-ts").Codec<{
6
6
  blockNumber: `0x${string}`;
7
7
  era: `0x${string}`;
8
8
  genesisHash: `0x${string}`;
9
- method: string;
9
+ method: `0x${string}`;
10
10
  nonce: `0x${string}`;
11
11
  specVersion: `0x${string}`;
12
12
  tip: `0x${string}`;
@@ -14,6 +14,7 @@ export declare const SignPayloadRequestCodec: import("scale-ts").Codec<{
14
14
  signedExtensions: string[];
15
15
  version: number;
16
16
  assetId: `0x${string}` | undefined;
17
+ metadataHash: `0x${string}` | undefined;
17
18
  mode: number | undefined;
18
19
  withSignedTransaction: boolean | undefined;
19
20
  }>;
@@ -6,7 +6,7 @@ export const SignPayloadRequestCodec = Struct({
6
6
  blockNumber: hexCodec,
7
7
  era: hexCodec,
8
8
  genesisHash: hexCodec,
9
- method: str,
9
+ method: hexCodec,
10
10
  nonce: hexCodec,
11
11
  specVersion: hexCodec,
12
12
  tip: hexCodec,
@@ -14,6 +14,7 @@ export const SignPayloadRequestCodec = Struct({
14
14
  signedExtensions: Vector(str),
15
15
  version: u32,
16
16
  assetId: Option(hexCodec),
17
+ metadataHash: Option(hexCodec),
17
18
  mode: Option(u32),
18
19
  withSignedTransaction: Option(bool),
19
20
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-papp",
3
3
  "type": "module",
4
- "version": "0.5.0-12",
4
+ "version": "0.5.0-14",
5
5
  "description": "Polkadot app integration",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -28,9 +28,9 @@
28
28
  "@noble/ciphers": "2.1.1",
29
29
  "@noble/curves": "2.0.1",
30
30
  "@noble/hashes": "2.0.1",
31
- "@novasamatech/host-api": "0.5.0-12",
32
- "@novasamatech/statement-store": "0.5.0-12",
33
- "@novasamatech/storage-adapter": "0.5.0-12",
31
+ "@novasamatech/host-api": "0.5.0-14",
32
+ "@novasamatech/statement-store": "0.5.0-14",
33
+ "@novasamatech/storage-adapter": "0.5.0-14",
34
34
  "@polkadot-api/substrate-bindings": "^0.16.5",
35
35
  "@polkadot-labs/hdkd-helpers": "^0.0.27",
36
36
  "@scure/sr25519": "1.0.0",