Skip to content

Commit 2160d07

Browse files
committed
feat: update endpoint version
1 parent 7b5a819 commit 2160d07

File tree

4 files changed

+776
-890
lines changed

4 files changed

+776
-890
lines changed

local-tests/setup/tinny-environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ export class TinnyEnvironment {
480480
debug: this.processEnvs.DEBUG,
481481
rpc: this.rpc,
482482
customContext: networkContext,
483-
network: 'custom',
483+
network: LIT_NETWORK.Custom,
484484
});
485485
} else if (
486486
CENTRALISATION_BY_NETWORK[this.network] === 'decentralised' ||

packages/constants/src/lib/constants/endpoints.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export const LIT_ENDPOINT_VERSION = {
22
V0: '/',
33
V1: '/v1',
4+
V2: '/v2',
45
};
56

67
export const LIT_ENDPOINT = {
@@ -10,15 +11,15 @@ export const LIT_ENDPOINT = {
1011
},
1112
SIGN_SESSION_KEY: {
1213
path: '/web/sign_session_key',
13-
version: LIT_ENDPOINT_VERSION.V1,
14+
version: LIT_ENDPOINT_VERSION.V2,
1415
},
1516
EXECUTE_JS: {
1617
path: '/web/execute',
17-
version: LIT_ENDPOINT_VERSION.V1,
18+
version: LIT_ENDPOINT_VERSION.V2,
1819
},
1920
PKP_SIGN: {
2021
path: '/web/pkp/sign',
21-
version: LIT_ENDPOINT_VERSION.V1,
22+
version: LIT_ENDPOINT_VERSION.V2,
2223
},
2324
PKP_CLAIM: {
2425
path: '/web/pkp/claim',
@@ -30,6 +31,6 @@ export const LIT_ENDPOINT = {
3031
},
3132
ENCRYPTION_SIGN: {
3233
path: '/web/encryption/sign',
33-
version: LIT_ENDPOINT_VERSION.V0,
34+
version: LIT_ENDPOINT_VERSION.V2,
3435
},
3536
};

packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,9 @@ export class LitNodeClientNodeJs
22252225
capabilities,
22262226
issuedAt: new Date().toISOString(),
22272227
expiration: sessionExpiration,
2228+
2229+
// FIX ME: This is a dummy value for now
2230+
maxPrice: '0x1234567890abcdef1234567890abcdef12345678',
22282231
};
22292232

22302233
const signatures: SessionSigsMap = {};

0 commit comments

Comments
 (0)