@canton-network/core-wallet-store-sql 0.11.0 → 0.12.0
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/bootstrap.d.ts.map +1 -1
- package/dist/index.cjs +129 -161
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +130 -162
- package/dist/index.js.map +1 -1
- package/dist/migrations/001-init.d.ts.map +1 -1
- package/dist/migrations/001-init.js +10 -13
- package/dist/schema.d.ts +15 -18
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +33 -117
- package/dist/store-sql.d.ts +11 -4
- package/dist/store-sql.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -5,30 +5,24 @@ export async function up(db) {
|
|
|
5
5
|
await db.schema
|
|
6
6
|
.createTable('idps')
|
|
7
7
|
.ifNotExists()
|
|
8
|
-
.addColumn('
|
|
8
|
+
.addColumn('id', 'text', (col) => col.primaryKey())
|
|
9
9
|
.addColumn('type', 'text', (col) => col.notNull())
|
|
10
10
|
.addColumn('issuer', 'text', (col) => col.notNull())
|
|
11
|
-
.addColumn('config_url', 'text'
|
|
12
|
-
.addColumn('audience', 'text', (col) => col.notNull())
|
|
13
|
-
.addColumn('token_url', 'text')
|
|
14
|
-
.addColumn('grant_type', 'text')
|
|
15
|
-
.addColumn('scope', 'text', (col) => col.notNull())
|
|
16
|
-
.addColumn('client_id', 'text', (col) => col.notNull())
|
|
17
|
-
.addColumn('client_secret', 'text')
|
|
18
|
-
.addColumn('admin_client_id', 'text')
|
|
19
|
-
.addColumn('admin_client_secret', 'text')
|
|
11
|
+
.addColumn('config_url', 'text')
|
|
20
12
|
.execute();
|
|
21
13
|
// --- networks ---
|
|
22
14
|
await db.schema
|
|
23
15
|
.createTable('networks')
|
|
24
16
|
.ifNotExists()
|
|
25
|
-
.addColumn('
|
|
17
|
+
.addColumn('id', 'text', (col) => col.primaryKey())
|
|
26
18
|
.addColumn('name', 'text', (col) => col.notNull())
|
|
27
19
|
.addColumn('synchronizer_id', 'text', (col) => col.notNull())
|
|
28
20
|
.addColumn('description', 'text')
|
|
29
21
|
.addColumn('ledger_api_base_url', 'text', (col) => col.notNull())
|
|
30
22
|
.addColumn('user_id', 'text') // optional/global if null
|
|
31
|
-
.addColumn('identity_provider_id', 'text', (col) => col.references('idps.
|
|
23
|
+
.addColumn('identity_provider_id', 'text', (col) => col.references('idps.id').onDelete('cascade'))
|
|
24
|
+
.addColumn('auth', 'jsonb', (col) => col.notNull())
|
|
25
|
+
.addColumn('admin_auth', 'jsonb')
|
|
32
26
|
.execute();
|
|
33
27
|
// --- wallets ---
|
|
34
28
|
await db.schema
|
|
@@ -40,8 +34,11 @@ export async function up(db) {
|
|
|
40
34
|
.addColumn('public_key', 'text', (col) => col.notNull())
|
|
41
35
|
.addColumn('namespace', 'text', (col) => col.notNull())
|
|
42
36
|
.addColumn('user_id', 'text', (col) => col.notNull())
|
|
43
|
-
.addColumn('
|
|
37
|
+
.addColumn('network_id', 'text', (col) => col.references('networks.id').onDelete('cascade'))
|
|
44
38
|
.addColumn('signing_provider_id', 'text', (col) => col.notNull())
|
|
39
|
+
.addColumn('status', 'text')
|
|
40
|
+
.addColumn('external_tx_id', 'text')
|
|
41
|
+
.addColumn('topology_transactions', 'text')
|
|
45
42
|
.execute();
|
|
46
43
|
// --- transactions ---
|
|
47
44
|
await db.schema
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Idp, UserId } from '@canton-network/core-wallet-auth';
|
|
2
2
|
import { Wallet, Transaction, Session, Network } from '@canton-network/core-wallet-store';
|
|
3
3
|
interface MigrationTable {
|
|
4
4
|
name: string;
|
|
5
5
|
executedAt: string;
|
|
6
6
|
}
|
|
7
7
|
interface IdpTable {
|
|
8
|
-
|
|
9
|
-
type:
|
|
8
|
+
id: string;
|
|
9
|
+
type: 'oauth' | 'self_signed';
|
|
10
10
|
issuer: string;
|
|
11
|
-
configUrl: string;
|
|
12
|
-
audience: string;
|
|
13
|
-
tokenUrl: string;
|
|
14
|
-
grantType: string;
|
|
15
|
-
scope: string;
|
|
16
|
-
clientId: string;
|
|
17
|
-
clientSecret: string;
|
|
18
|
-
adminClientId: string;
|
|
19
|
-
adminClientSecret: string;
|
|
11
|
+
configUrl: string | undefined;
|
|
20
12
|
}
|
|
21
13
|
interface NetworkTable {
|
|
14
|
+
id: string;
|
|
22
15
|
name: string;
|
|
23
|
-
chainId: string;
|
|
24
16
|
synchronizerId: string;
|
|
25
17
|
description: string;
|
|
26
18
|
ledgerApiBaseUrl: string;
|
|
27
|
-
userId: UserId | undefined;
|
|
28
19
|
identityProviderId: string;
|
|
20
|
+
userId: UserId | undefined;
|
|
21
|
+
auth: string;
|
|
22
|
+
adminAuth: string | undefined;
|
|
29
23
|
}
|
|
30
24
|
interface WalletTable {
|
|
31
25
|
primary: number;
|
|
@@ -33,9 +27,12 @@ interface WalletTable {
|
|
|
33
27
|
hint: string;
|
|
34
28
|
publicKey: string;
|
|
35
29
|
namespace: string;
|
|
36
|
-
|
|
30
|
+
networkId: string;
|
|
37
31
|
signingProviderId: string;
|
|
38
32
|
userId: UserId;
|
|
33
|
+
externalTxId?: string;
|
|
34
|
+
topologyTransactions?: string;
|
|
35
|
+
status?: string;
|
|
39
36
|
}
|
|
40
37
|
interface TransactionTable {
|
|
41
38
|
status: string;
|
|
@@ -56,9 +53,9 @@ export interface DB {
|
|
|
56
53
|
transactions: TransactionTable;
|
|
57
54
|
sessions: SessionTable;
|
|
58
55
|
}
|
|
59
|
-
export declare const
|
|
60
|
-
export declare const
|
|
61
|
-
export declare const toNetwork: (table: NetworkTable
|
|
56
|
+
export declare const toIdp: (table: IdpTable) => Idp;
|
|
57
|
+
export declare const fromIdp: (idp: Idp) => IdpTable;
|
|
58
|
+
export declare const toNetwork: (table: NetworkTable) => Network;
|
|
62
59
|
export declare const fromNetwork: (network: Network, userId?: UserId) => NetworkTable;
|
|
63
60
|
export declare const fromWallet: (wallet: Wallet, userId: UserId) => WalletTable;
|
|
64
61
|
export declare const toWallet: (table: WalletTable) => Wallet;
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,GAAG,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC1E,OAAO,EACH,MAAM,EACN,WAAW,EACX,OAAO,EACP,OAAO,EACV,MAAM,mCAAmC,CAAA;AAE1C,UAAU,cAAc;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACrB;AAED,UAAU,QAAQ;IACd,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,GAAG,aAAa,CAAA;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAChC;AAED,UAAU,YAAY;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAE1B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;CAChC;AAED,UAAU,WAAW;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,MAAM,CAAA;IACzB,M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@@
|
|
|
1
1
|
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
3
|
+
import { authSchema } from '@canton-network/core-wallet-auth';
|
|
4
|
+
export const toIdp = (table) => {
|
|
4
5
|
switch (table.type) {
|
|
5
|
-
case '
|
|
6
|
+
case 'oauth': {
|
|
7
|
+
if (!table.configUrl) {
|
|
8
|
+
throw new Error(`Missing configUrl for oauth IdP: ${table.id}`);
|
|
9
|
+
}
|
|
6
10
|
return {
|
|
7
|
-
|
|
11
|
+
id: table.id,
|
|
8
12
|
type: table.type,
|
|
9
13
|
issuer: table.issuer,
|
|
10
14
|
configUrl: table.configUrl,
|
|
11
|
-
audience: table.audience,
|
|
12
|
-
tokenUrl: table.tokenUrl || '',
|
|
13
|
-
grantType: table.grantType || '',
|
|
14
|
-
scope: table.scope,
|
|
15
|
-
clientId: table.clientId,
|
|
16
|
-
admin: {
|
|
17
|
-
clientId: table.adminClientId,
|
|
18
|
-
clientSecret: table.adminClientSecret,
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
case 'implicit':
|
|
22
|
-
return {
|
|
23
|
-
identityProviderId: table.identityProviderId,
|
|
24
|
-
type: table.type,
|
|
25
|
-
issuer: table.issuer,
|
|
26
|
-
configUrl: table.configUrl,
|
|
27
|
-
audience: table.audience,
|
|
28
|
-
scope: table.scope,
|
|
29
|
-
clientId: table.clientId,
|
|
30
|
-
admin: {
|
|
31
|
-
clientId: table.adminClientId,
|
|
32
|
-
clientSecret: table.adminClientSecret,
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
case 'client_credentials':
|
|
36
|
-
return {
|
|
37
|
-
identityProviderId: table.identityProviderId,
|
|
38
|
-
type: table.type,
|
|
39
|
-
issuer: table.issuer,
|
|
40
|
-
configUrl: table.configUrl,
|
|
41
|
-
audience: table.audience,
|
|
42
|
-
scope: table.scope,
|
|
43
|
-
clientId: table.clientId,
|
|
44
|
-
clientSecret: table.clientSecret,
|
|
45
|
-
admin: {
|
|
46
|
-
clientId: table.adminClientId,
|
|
47
|
-
clientSecret: table.adminClientSecret,
|
|
48
|
-
},
|
|
49
15
|
};
|
|
16
|
+
}
|
|
50
17
|
case 'self_signed':
|
|
51
18
|
return {
|
|
52
|
-
|
|
19
|
+
id: table.id,
|
|
53
20
|
type: table.type,
|
|
54
21
|
issuer: table.issuer,
|
|
55
|
-
audience: table.audience,
|
|
56
|
-
scope: table.scope,
|
|
57
|
-
clientId: table.clientId,
|
|
58
|
-
clientSecret: table.clientSecret,
|
|
59
|
-
admin: {
|
|
60
|
-
clientId: table.adminClientId,
|
|
61
|
-
clientSecret: table.adminClientSecret,
|
|
62
|
-
},
|
|
63
22
|
};
|
|
64
|
-
default:
|
|
65
|
-
throw new Error(`Unknown auth type: ${table.type}`);
|
|
66
23
|
}
|
|
67
24
|
};
|
|
68
|
-
export const
|
|
69
|
-
switch (
|
|
70
|
-
case '
|
|
71
|
-
return {
|
|
72
|
-
identityProviderId: auth.identityProviderId,
|
|
73
|
-
type: auth.type,
|
|
74
|
-
issuer: auth.issuer,
|
|
75
|
-
configUrl: auth.configUrl,
|
|
76
|
-
audience: auth.audience,
|
|
77
|
-
tokenUrl: auth.tokenUrl,
|
|
78
|
-
grantType: auth.grantType,
|
|
79
|
-
scope: auth.scope,
|
|
80
|
-
clientId: auth.clientId,
|
|
81
|
-
clientSecret: '',
|
|
82
|
-
adminClientId: auth.admin?.clientId || '',
|
|
83
|
-
adminClientSecret: auth.admin?.clientSecret || '',
|
|
84
|
-
};
|
|
85
|
-
case 'implicit':
|
|
86
|
-
return {
|
|
87
|
-
identityProviderId: auth.identityProviderId,
|
|
88
|
-
type: auth.type,
|
|
89
|
-
issuer: auth.issuer,
|
|
90
|
-
configUrl: auth.configUrl,
|
|
91
|
-
audience: auth.audience,
|
|
92
|
-
tokenUrl: '',
|
|
93
|
-
grantType: '',
|
|
94
|
-
scope: auth.scope,
|
|
95
|
-
clientId: auth.clientId,
|
|
96
|
-
clientSecret: '',
|
|
97
|
-
adminClientId: auth.admin?.clientId || '',
|
|
98
|
-
adminClientSecret: auth.admin?.clientSecret || '',
|
|
99
|
-
};
|
|
100
|
-
case 'client_credentials':
|
|
25
|
+
export const fromIdp = (idp) => {
|
|
26
|
+
switch (idp.type) {
|
|
27
|
+
case 'oauth':
|
|
101
28
|
return {
|
|
102
|
-
|
|
103
|
-
type:
|
|
104
|
-
issuer:
|
|
105
|
-
configUrl:
|
|
106
|
-
audience: auth.audience,
|
|
107
|
-
tokenUrl: '',
|
|
108
|
-
grantType: '',
|
|
109
|
-
scope: auth.scope,
|
|
110
|
-
clientId: auth.clientId,
|
|
111
|
-
clientSecret: auth.clientSecret,
|
|
112
|
-
adminClientId: auth.admin?.clientId || '',
|
|
113
|
-
adminClientSecret: auth.admin?.clientSecret || '',
|
|
29
|
+
id: idp.id,
|
|
30
|
+
type: idp.type,
|
|
31
|
+
issuer: idp.issuer,
|
|
32
|
+
configUrl: idp.configUrl,
|
|
114
33
|
};
|
|
115
34
|
case 'self_signed':
|
|
116
35
|
return {
|
|
117
|
-
|
|
118
|
-
type:
|
|
119
|
-
issuer:
|
|
120
|
-
configUrl:
|
|
121
|
-
audience: auth.audience,
|
|
122
|
-
tokenUrl: '',
|
|
123
|
-
grantType: '',
|
|
124
|
-
scope: auth.scope,
|
|
125
|
-
clientId: auth.clientId,
|
|
126
|
-
clientSecret: auth.clientSecret,
|
|
127
|
-
adminClientId: auth.admin?.clientId || '',
|
|
128
|
-
adminClientSecret: auth.admin?.clientSecret || '',
|
|
36
|
+
id: idp.id,
|
|
37
|
+
type: idp.type,
|
|
38
|
+
issuer: idp.issuer,
|
|
39
|
+
configUrl: undefined,
|
|
129
40
|
};
|
|
130
41
|
}
|
|
131
42
|
};
|
|
132
|
-
export const toNetwork = (table
|
|
133
|
-
if (!authTable) {
|
|
134
|
-
throw new Error(`Missing auth table for network: ${table.name}`);
|
|
135
|
-
}
|
|
43
|
+
export const toNetwork = (table) => {
|
|
136
44
|
return {
|
|
137
45
|
name: table.name,
|
|
138
|
-
|
|
46
|
+
id: table.id,
|
|
139
47
|
synchronizerId: table.synchronizerId,
|
|
48
|
+
identityProviderId: table.identityProviderId,
|
|
140
49
|
description: table.description,
|
|
141
50
|
ledgerApi: {
|
|
142
51
|
baseUrl: table.ledgerApiBaseUrl,
|
|
143
52
|
},
|
|
144
|
-
auth:
|
|
53
|
+
auth: authSchema.parse(JSON.parse(table.auth)),
|
|
54
|
+
adminAuth: table.adminAuth
|
|
55
|
+
? authSchema.parse(JSON.parse(table.adminAuth))
|
|
56
|
+
: undefined,
|
|
145
57
|
};
|
|
146
58
|
};
|
|
147
59
|
export const fromNetwork = (network, userId) => {
|
|
148
60
|
return {
|
|
149
61
|
name: network.name,
|
|
150
|
-
|
|
62
|
+
id: network.id,
|
|
151
63
|
synchronizerId: network.synchronizerId,
|
|
152
64
|
description: network.description,
|
|
153
65
|
ledgerApiBaseUrl: network.ledgerApi.baseUrl,
|
|
154
66
|
userId: userId,
|
|
155
|
-
identityProviderId: network.
|
|
67
|
+
identityProviderId: network.identityProviderId,
|
|
68
|
+
auth: JSON.stringify(network.auth),
|
|
69
|
+
adminAuth: network.adminAuth
|
|
70
|
+
? JSON.stringify(network.adminAuth)
|
|
71
|
+
: undefined,
|
|
156
72
|
};
|
|
157
73
|
};
|
|
158
74
|
export const fromWallet = (wallet, userId) => {
|
package/dist/store-sql.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from 'pino';
|
|
2
|
-
import { AuthContext, AuthAware } from '@canton-network/core-wallet-auth';
|
|
3
|
-
import { Store as BaseStore, Wallet, PartyId, Session, WalletFilter, Transaction, Network, StoreConfig } from '@canton-network/core-wallet-store';
|
|
2
|
+
import { AuthContext, AuthAware, Idp } from '@canton-network/core-wallet-auth';
|
|
3
|
+
import { Store as BaseStore, Wallet, PartyId, Session, WalletFilter, Transaction, Network, StoreConfig, UpdateWallet } from '@canton-network/core-wallet-store';
|
|
4
4
|
import { Kysely } from 'kysely';
|
|
5
5
|
import { DB } from './schema.js';
|
|
6
6
|
export declare class StoreSql implements BaseStore, AuthAware<StoreSql> {
|
|
@@ -14,15 +14,22 @@ export declare class StoreSql implements BaseStore, AuthAware<StoreSql> {
|
|
|
14
14
|
getPrimaryWallet(): Promise<Wallet | undefined>;
|
|
15
15
|
setPrimaryWallet(partyId: PartyId): Promise<void>;
|
|
16
16
|
addWallet(wallet: Wallet): Promise<void>;
|
|
17
|
+
updateWallet({ status, partyId }: UpdateWallet): Promise<void>;
|
|
18
|
+
removeWallet(partyId: PartyId): Promise<void>;
|
|
17
19
|
getSession(): Promise<Session | undefined>;
|
|
18
20
|
setSession(session: Session): Promise<void>;
|
|
19
21
|
removeSession(): Promise<void>;
|
|
20
|
-
|
|
22
|
+
getIdp(idpId: string): Promise<Idp>;
|
|
23
|
+
listIdps(): Promise<Array<Idp>>;
|
|
24
|
+
updateIdp(idp: Idp): Promise<void>;
|
|
25
|
+
addIdp(idp: Idp): Promise<void>;
|
|
26
|
+
removeIdp(idpId: string): Promise<void>;
|
|
27
|
+
getNetwork(networkId: string): Promise<Network>;
|
|
21
28
|
getCurrentNetwork(): Promise<Network>;
|
|
22
29
|
listNetworks(): Promise<Array<Network>>;
|
|
23
30
|
updateNetwork(network: Network): Promise<void>;
|
|
24
31
|
addNetwork(network: Network): Promise<void>;
|
|
25
|
-
removeNetwork(
|
|
32
|
+
removeNetwork(networkId: string): Promise<void>;
|
|
26
33
|
setTransaction(transaction: Transaction): Promise<void>;
|
|
27
34
|
getTransaction(commandId: string): Promise<Transaction | undefined>;
|
|
28
35
|
}
|
package/dist/store-sql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-sql.d.ts","sourceRoot":"","sources":["../src/store-sql.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;A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"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "github:hyperledger-labs/splice-wallet-kernel",
|
|
6
6
|
"description": "SQL implementation of the Store API",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"test": "yarn node --experimental-vm-modules $(yarn bin jest)"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@canton-network/core-ledger-client": "^0.
|
|
30
|
-
"@canton-network/core-rpc-errors": "^0.
|
|
31
|
-
"@canton-network/core-wallet-auth": "^0.
|
|
32
|
-
"@canton-network/core-wallet-store": "^0.
|
|
29
|
+
"@canton-network/core-ledger-client": "^0.18.0",
|
|
30
|
+
"@canton-network/core-rpc-errors": "^0.8.0",
|
|
31
|
+
"@canton-network/core-wallet-auth": "^0.12.0",
|
|
32
|
+
"@canton-network/core-wallet-store": "^0.11.0",
|
|
33
33
|
"better-sqlite3": "^12.2.0",
|
|
34
34
|
"commander": "^14.0.0",
|
|
35
35
|
"kysely": "^0.28.5",
|