@canton-network/wallet-gateway-remote 0.5.1 → 0.6.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/README.md +8 -0
- package/dist/auth/jwt-auth-service.d.ts.map +1 -1
- package/dist/auth/jwt-auth-service.js +2 -3
- package/dist/auth/jwt-unsafe-auth-service.d.ts.map +1 -1
- package/dist/auth/jwt-unsafe-auth-service.js +2 -3
- package/dist/config/Config.d.ts +364 -344
- package/dist/config/Config.d.ts.map +1 -1
- package/dist/config/Config.js +2 -0
- package/dist/config/Config.test.js +7 -10
- package/dist/config/ConfigUtils.d.ts.map +1 -1
- package/dist/config/ConfigUtils.js +59 -1
- package/dist/dapp-api/rpc-gen/typings.d.ts +14 -0
- package/dist/dapp-api/rpc-gen/typings.d.ts.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +50 -2
- package/dist/ledger/party-allocation-service.d.ts +20 -0
- package/dist/ledger/party-allocation-service.d.ts.map +1 -1
- package/dist/ledger/party-allocation-service.js +22 -2
- package/dist/ledger/party-allocation-service.test.js +9 -5
- package/dist/user-api/controller.d.ts +2 -1
- package/dist/user-api/controller.d.ts.map +1 -1
- package/dist/user-api/controller.js +101 -84
- package/dist/user-api/rpc-gen/index.d.ts +6 -3
- package/dist/user-api/rpc-gen/index.d.ts.map +1 -1
- package/dist/user-api/rpc-gen/index.js +2 -1
- package/dist/user-api/rpc-gen/typings.d.ts +88 -33
- package/dist/user-api/rpc-gen/typings.d.ts.map +1 -1
- package/dist/user-api/server.test.js +5 -6
- package/dist/web/frontend/404/index.html +2 -2
- package/dist/web/frontend/approve/index.html +4 -4
- package/dist/web/frontend/assets/{404-C4ltj2Y3.js → 404-CXLFjs4t.js} +1 -1
- package/dist/web/frontend/assets/{approve-Drc1zW1z.js → approve-gdszLXiW.js} +1 -1
- package/dist/web/frontend/assets/{callback-BBgKxZBh.js → callback-DAqmeyV_.js} +1 -1
- package/dist/web/frontend/assets/{handle-errors-C_r_-A1k.js → handle-errors-D7N_0lCR.js} +1 -1
- package/dist/web/frontend/assets/{index-_AVK9fEz.js → index-DZurNsA2.js} +122 -115
- package/dist/web/frontend/assets/login-BT0j3jH9.js +159 -0
- package/dist/web/frontend/assets/{networks-DSlcKT60.js → networks-C7TB_OYA.js} +9 -9
- package/dist/web/frontend/assets/{state-BahUv9dS.js → state-ZaohYYFB.js} +2 -2
- package/dist/web/frontend/assets/wallets-B3XNkikq.js +244 -0
- package/dist/web/frontend/callback/index.html +2 -2
- package/dist/web/frontend/index.html +1 -1
- package/dist/web/frontend/login/index.html +3 -3
- package/dist/web/frontend/networks/index.html +4 -4
- package/dist/web/frontend/wallets/index.html +4 -4
- package/package.json +17 -15
- package/dist/web/frontend/assets/login-x46HxVRr.js +0 -159
- package/dist/web/frontend/assets/wallets-BXR4V066.js +0 -214
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
5
|
import { LedgerClient } from '@canton-network/core-ledger-client';
|
|
6
6
|
import buildController from './rpc-gen/index.js';
|
|
7
|
-
import { assertConnected, AuthTokenProvider, } from '@canton-network/core-wallet-auth';
|
|
7
|
+
import { assertConnected, authSchema, AuthTokenProvider, } from '@canton-network/core-wallet-auth';
|
|
8
8
|
import { SigningProvider, } from '@canton-network/core-signing-lib';
|
|
9
9
|
import { PartyAllocationService, } from '../ledger/party-allocation-service.js';
|
|
10
10
|
import { WalletSyncService } from '../ledger/wallet-sync-service.js';
|
|
@@ -16,79 +16,18 @@ export const userController = (kernelInfo, store, notificationService, authConte
|
|
|
16
16
|
const ledgerApi = {
|
|
17
17
|
baseUrl: network.ledgerApi ?? '',
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
identityProviderId: network.auth.identityProviderId,
|
|
24
|
-
issuer: network.auth.issuer ?? '',
|
|
25
|
-
configUrl: network.auth.configUrl ?? '',
|
|
26
|
-
audience: network.auth.audience ?? '',
|
|
27
|
-
scope: network.auth.scope ?? '',
|
|
28
|
-
clientId: network.auth.clientId ?? '',
|
|
29
|
-
admin: {
|
|
30
|
-
clientId: network.auth.admin?.clientId ?? '',
|
|
31
|
-
clientSecret: network.auth.admin?.clientSecret ?? '',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
else if (network.auth.type === 'password') {
|
|
36
|
-
auth = {
|
|
37
|
-
type: 'password',
|
|
38
|
-
identityProviderId: network.auth.identityProviderId,
|
|
39
|
-
issuer: network.auth.issuer ?? '',
|
|
40
|
-
configUrl: network.auth.configUrl ?? '',
|
|
41
|
-
tokenUrl: network.auth.tokenUrl ?? '',
|
|
42
|
-
grantType: network.auth.grantType ?? '',
|
|
43
|
-
scope: network.auth.scope ?? '',
|
|
44
|
-
clientId: network.auth.clientId ?? '',
|
|
45
|
-
audience: network.auth.audience ?? '',
|
|
46
|
-
admin: {
|
|
47
|
-
clientId: network.auth.admin?.clientId ?? '',
|
|
48
|
-
clientSecret: network.auth.admin?.clientSecret ?? '',
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
else if (network.auth.type === 'client_credentials') {
|
|
53
|
-
auth = {
|
|
54
|
-
type: 'client_credentials',
|
|
55
|
-
identityProviderId: network.auth.identityProviderId,
|
|
56
|
-
issuer: network.auth.issuer ?? '',
|
|
57
|
-
configUrl: network.auth.configUrl ?? '',
|
|
58
|
-
audience: network.auth.audience ?? '',
|
|
59
|
-
scope: network.auth.scope ?? '',
|
|
60
|
-
clientId: network.auth.clientId ?? '',
|
|
61
|
-
clientSecret: network.auth.clientSecret ?? '',
|
|
62
|
-
admin: {
|
|
63
|
-
clientId: network.auth.admin?.clientId ?? '',
|
|
64
|
-
clientSecret: network.auth.admin?.clientSecret ?? '',
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
else if (network.auth.type === 'self_signed') {
|
|
69
|
-
auth = {
|
|
70
|
-
type: 'self_signed',
|
|
71
|
-
identityProviderId: network.auth.identityProviderId,
|
|
72
|
-
issuer: network.auth.issuer ?? '',
|
|
73
|
-
audience: network.auth.audience ?? '',
|
|
74
|
-
scope: network.auth.scope ?? '',
|
|
75
|
-
clientId: network.auth.clientId ?? '',
|
|
76
|
-
clientSecret: network.auth.clientSecret ?? '',
|
|
77
|
-
admin: {
|
|
78
|
-
clientId: network.auth.admin?.clientId ?? '',
|
|
79
|
-
clientSecret: network.auth.admin?.clientSecret ?? '',
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
throw new Error(`Unsupported auth type: ${network.auth.type}`);
|
|
85
|
-
}
|
|
19
|
+
const auth = authSchema.parse(network.auth);
|
|
20
|
+
const adminAuth = network.adminAuth
|
|
21
|
+
? authSchema.parse(network.adminAuth)
|
|
22
|
+
: undefined;
|
|
86
23
|
const newNetwork = {
|
|
87
24
|
name: network.name,
|
|
88
25
|
id: network.id,
|
|
89
26
|
description: network.description,
|
|
90
27
|
synchronizerId: network.synchronizerId,
|
|
28
|
+
identityProviderId: network.identityProviderId,
|
|
91
29
|
auth,
|
|
30
|
+
adminAuth,
|
|
92
31
|
ledgerApi,
|
|
93
32
|
};
|
|
94
33
|
// TODO: Add an explicit updateNetwork method to the User API spec and controller
|
|
@@ -105,32 +44,39 @@ export const userController = (kernelInfo, store, notificationService, authConte
|
|
|
105
44
|
await store.removeNetwork(params.networkName);
|
|
106
45
|
return null;
|
|
107
46
|
},
|
|
47
|
+
listNetworks: async () => Promise.resolve({ networks: await store.listNetworks() }),
|
|
48
|
+
listIdps: async () => Promise.resolve({ idps: await store.listIdps() }),
|
|
108
49
|
createWallet: async (params) => {
|
|
109
50
|
logger.info(`Allocating party with params: ${JSON.stringify(params)}`);
|
|
51
|
+
const { signingProviderId, signingProviderContext, primary, networkId, partyHint, } = params;
|
|
110
52
|
const userId = assertConnected(authContext).userId;
|
|
111
53
|
const notifier = notificationService.getNotifier(userId);
|
|
112
54
|
const network = await store.getCurrentNetwork();
|
|
113
55
|
if (network === undefined) {
|
|
114
56
|
throw new Error('No network session found');
|
|
115
57
|
}
|
|
116
|
-
const
|
|
58
|
+
const idp = await store.getIdp(network.identityProviderId);
|
|
59
|
+
const tokenProvider = new AuthTokenProvider(idp, network.auth, network.adminAuth, logger);
|
|
117
60
|
const partyAllocator = new PartyAllocationService(network.synchronizerId, tokenProvider, network.ledgerApi.baseUrl, logger);
|
|
118
|
-
const driver = drivers[
|
|
61
|
+
const driver = drivers[signingProviderId]?.controller(userId);
|
|
119
62
|
if (!driver) {
|
|
120
|
-
throw new Error(`Signing provider ${
|
|
63
|
+
throw new Error(`Signing provider ${signingProviderId} not supported`);
|
|
121
64
|
}
|
|
122
65
|
let party;
|
|
123
66
|
let publicKey;
|
|
124
|
-
|
|
67
|
+
let txId = '';
|
|
68
|
+
let walletStatus = 'allocated';
|
|
69
|
+
let topologyTransactions = [];
|
|
70
|
+
switch (signingProviderId) {
|
|
125
71
|
case SigningProvider.PARTICIPANT: {
|
|
126
|
-
party = await partyAllocator.allocateParty(userId,
|
|
72
|
+
party = await partyAllocator.allocateParty(userId, partyHint);
|
|
127
73
|
break;
|
|
128
74
|
}
|
|
129
75
|
case SigningProvider.WALLET_KERNEL: {
|
|
130
76
|
const key = await driver.createKey({
|
|
131
|
-
name:
|
|
77
|
+
name: partyHint,
|
|
132
78
|
});
|
|
133
|
-
party = await partyAllocator.allocateParty(userId,
|
|
79
|
+
party = await partyAllocator.allocateParty(userId, partyHint, key.publicKey, async (hash) => {
|
|
134
80
|
const { signature } = await driver.signTransaction({
|
|
135
81
|
tx: '',
|
|
136
82
|
txHash: hash,
|
|
@@ -141,23 +87,95 @@ export const userController = (kernelInfo, store, notificationService, authConte
|
|
|
141
87
|
publicKey = key.publicKey;
|
|
142
88
|
break;
|
|
143
89
|
}
|
|
90
|
+
case SigningProvider.FIREBLOCKS: {
|
|
91
|
+
const keys = await driver.getKeys();
|
|
92
|
+
const key = keys?.keys?.find((k) => k.name === 'Canton Party');
|
|
93
|
+
if (!key)
|
|
94
|
+
throw new Error('Fireblocks key not found');
|
|
95
|
+
if (signingProviderContext) {
|
|
96
|
+
walletStatus = 'created';
|
|
97
|
+
const { signature, status } = await driver.getTransaction({
|
|
98
|
+
userId,
|
|
99
|
+
txId: signingProviderContext.externalTxId,
|
|
100
|
+
});
|
|
101
|
+
if (!['pending', 'signed'].includes(status)) {
|
|
102
|
+
await store.removeWallet(signingProviderContext.partyId);
|
|
103
|
+
}
|
|
104
|
+
if (signature) {
|
|
105
|
+
await partyAllocator.allocatePartyWithExistingWallet(signingProviderContext.namespace, signingProviderContext.topologyTransactions.split(', '), Buffer.from(signature, 'hex').toString('base64'), userId);
|
|
106
|
+
walletStatus = 'allocated';
|
|
107
|
+
}
|
|
108
|
+
party = {
|
|
109
|
+
partyId: signingProviderContext.partyId,
|
|
110
|
+
namespace: signingProviderContext.namespace,
|
|
111
|
+
hint: partyHint,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
const formattedPublicKey = Buffer.from(key.publicKey, 'hex').toString('base64');
|
|
116
|
+
const namespace = partyAllocator.createFingerprintFromKey(formattedPublicKey);
|
|
117
|
+
const transactions = await partyAllocator.generateTopologyTransactions(partyHint, formattedPublicKey);
|
|
118
|
+
topologyTransactions =
|
|
119
|
+
transactions.topologyTransactions;
|
|
120
|
+
let partyId = '';
|
|
121
|
+
const { status, txId: id } = await driver.signTransaction({
|
|
122
|
+
tx: '',
|
|
123
|
+
txHash: Buffer.from(transactions.multiHash, 'base64').toString('hex'),
|
|
124
|
+
publicKey: key.publicKey,
|
|
125
|
+
});
|
|
126
|
+
if (status === 'signed') {
|
|
127
|
+
const { signature } = await driver.getTransaction({
|
|
128
|
+
userId,
|
|
129
|
+
txId: id,
|
|
130
|
+
});
|
|
131
|
+
partyId =
|
|
132
|
+
await partyAllocator.allocatePartyWithExistingWallet(namespace, transactions.topologyTransactions, Buffer.from(signature, 'hex').toString('base64'), userId);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
txId = id;
|
|
136
|
+
walletStatus = 'created';
|
|
137
|
+
}
|
|
138
|
+
party = {
|
|
139
|
+
partyId,
|
|
140
|
+
namespace,
|
|
141
|
+
hint: partyHint,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
publicKey = key.publicKey;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
144
147
|
default:
|
|
145
|
-
throw new Error(`Unsupported signing provider: ${
|
|
148
|
+
throw new Error(`Unsupported signing provider: ${signingProviderId}`);
|
|
146
149
|
}
|
|
150
|
+
const { partyId, ...partyArgs } = party;
|
|
147
151
|
const wallet = {
|
|
148
|
-
signingProviderId
|
|
149
|
-
networkId
|
|
150
|
-
primary:
|
|
151
|
-
publicKey: publicKey ||
|
|
152
|
-
|
|
152
|
+
signingProviderId,
|
|
153
|
+
networkId,
|
|
154
|
+
primary: primary ?? false,
|
|
155
|
+
publicKey: publicKey || partyArgs.namespace,
|
|
156
|
+
externalTxId: txId,
|
|
157
|
+
topologyTransactions: topologyTransactions?.join(', ') ?? '',
|
|
158
|
+
status: walletStatus,
|
|
159
|
+
partyId: partyId !== ''
|
|
160
|
+
? partyId
|
|
161
|
+
: `${partyArgs.hint}::${partyArgs.namespace}`,
|
|
162
|
+
...partyArgs,
|
|
153
163
|
};
|
|
154
|
-
|
|
164
|
+
if (signingProviderContext && walletStatus === 'allocated') {
|
|
165
|
+
await store.updateWallet({
|
|
166
|
+
partyId: wallet.partyId,
|
|
167
|
+
status: wallet.status,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
else if (!signingProviderContext) {
|
|
171
|
+
await store.addWallet(wallet);
|
|
172
|
+
}
|
|
155
173
|
const wallets = await store.getWallets();
|
|
156
174
|
notifier?.emit('accountsChanged', wallets);
|
|
157
175
|
return { wallet };
|
|
158
176
|
},
|
|
159
177
|
setPrimaryWallet: async (params) => {
|
|
160
|
-
store.setPrimaryWallet(params.partyId);
|
|
178
|
+
await store.setPrimaryWallet(params.partyId);
|
|
161
179
|
const notifier = authContext?.userId
|
|
162
180
|
? notificationService.getNotifier(authContext.userId)
|
|
163
181
|
: undefined;
|
|
@@ -310,7 +328,6 @@ export const userController = (kernelInfo, store, notificationService, authConte
|
|
|
310
328
|
throw new Error(`Unsupported signing provider: ${wallet.signingProviderId}`);
|
|
311
329
|
}
|
|
312
330
|
},
|
|
313
|
-
listNetworks: async () => Promise.resolve({ networks: await store.listNetworks() }),
|
|
314
331
|
addSession: async function (params) {
|
|
315
332
|
try {
|
|
316
333
|
await store.setSession({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AddNetwork } from './typings.js';
|
|
2
2
|
import { RemoveNetwork } from './typings.js';
|
|
3
|
+
import { ListNetworks } from './typings.js';
|
|
4
|
+
import { ListIdps } from './typings.js';
|
|
3
5
|
import { CreateWallet } from './typings.js';
|
|
4
6
|
import { SetPrimaryWallet } from './typings.js';
|
|
5
7
|
import { RemoveWallet } from './typings.js';
|
|
@@ -7,12 +9,13 @@ import { ListWallets } from './typings.js';
|
|
|
7
9
|
import { SyncWallets } from './typings.js';
|
|
8
10
|
import { Sign } from './typings.js';
|
|
9
11
|
import { Execute } from './typings.js';
|
|
10
|
-
import { ListNetworks } from './typings.js';
|
|
11
12
|
import { AddSession } from './typings.js';
|
|
12
13
|
import { ListSessions } from './typings.js';
|
|
13
14
|
export type Methods = {
|
|
14
15
|
addNetwork: AddNetwork;
|
|
15
16
|
removeNetwork: RemoveNetwork;
|
|
17
|
+
listNetworks: ListNetworks;
|
|
18
|
+
listIdps: ListIdps;
|
|
16
19
|
createWallet: CreateWallet;
|
|
17
20
|
setPrimaryWallet: SetPrimaryWallet;
|
|
18
21
|
removeWallet: RemoveWallet;
|
|
@@ -20,13 +23,14 @@ export type Methods = {
|
|
|
20
23
|
syncWallets: SyncWallets;
|
|
21
24
|
sign: Sign;
|
|
22
25
|
execute: Execute;
|
|
23
|
-
listNetworks: ListNetworks;
|
|
24
26
|
addSession: AddSession;
|
|
25
27
|
listSessions: ListSessions;
|
|
26
28
|
};
|
|
27
29
|
declare function buildController(methods: Methods): {
|
|
28
30
|
addNetwork: AddNetwork;
|
|
29
31
|
removeNetwork: RemoveNetwork;
|
|
32
|
+
listNetworks: ListNetworks;
|
|
33
|
+
listIdps: ListIdps;
|
|
30
34
|
createWallet: CreateWallet;
|
|
31
35
|
setPrimaryWallet: SetPrimaryWallet;
|
|
32
36
|
removeWallet: RemoveWallet;
|
|
@@ -34,7 +38,6 @@ declare function buildController(methods: Methods): {
|
|
|
34
38
|
syncWallets: SyncWallets;
|
|
35
39
|
sign: Sign;
|
|
36
40
|
execute: Execute;
|
|
37
|
-
listNetworks: ListNetworks;
|
|
38
41
|
addSession: AddSession;
|
|
39
42
|
listSessions: ListSessions;
|
|
40
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user-api/rpc-gen/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user-api/rpc-gen/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,MAAM,OAAO,GAAG;IAClB,UAAU,EAAE,UAAU,CAAA;IACtB,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;IAC1B,QAAQ,EAAE,QAAQ,CAAA;IAClB,YAAY,EAAE,YAAY,CAAA;IAC1B,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,YAAY,EAAE,YAAY,CAAA;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,YAAY,CAAA;CAC7B,CAAA;AAED,iBAAS,eAAe,CAAC,OAAO,EAAE,OAAO;;;;;;;;;;;;;;EAgBxC;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -4,6 +4,8 @@ function buildController(methods) {
|
|
|
4
4
|
return {
|
|
5
5
|
addNetwork: methods.addNetwork,
|
|
6
6
|
removeNetwork: methods.removeNetwork,
|
|
7
|
+
listNetworks: methods.listNetworks,
|
|
8
|
+
listIdps: methods.listIdps,
|
|
7
9
|
createWallet: methods.createWallet,
|
|
8
10
|
setPrimaryWallet: methods.setPrimaryWallet,
|
|
9
11
|
removeWallet: methods.removeWallet,
|
|
@@ -11,7 +13,6 @@ function buildController(methods) {
|
|
|
11
13
|
syncWallets: methods.syncWallets,
|
|
12
14
|
sign: methods.sign,
|
|
13
15
|
execute: methods.execute,
|
|
14
|
-
listNetworks: methods.listNetworks,
|
|
15
16
|
addSession: methods.addSession,
|
|
16
17
|
listSessions: methods.listSessions,
|
|
17
18
|
};
|
|
@@ -22,39 +22,30 @@ export type Description = string;
|
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
export type SynchronizerId = string;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* Identity Provider ID
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
26
30
|
export type IdentityProviderId = string;
|
|
27
|
-
export type
|
|
28
|
-
export type GrantType = string;
|
|
31
|
+
export type Method = string;
|
|
29
32
|
export type Scope = string;
|
|
30
33
|
export type ClientId = string;
|
|
31
34
|
export type ClientSecret = string;
|
|
32
35
|
export type Issuer = string;
|
|
33
|
-
export type ConfigUrl = string;
|
|
34
36
|
export type Audience = string;
|
|
35
|
-
export interface Admin {
|
|
36
|
-
clientId: ClientId;
|
|
37
|
-
clientSecret: ClientSecret;
|
|
38
|
-
[k: string]: any;
|
|
39
|
-
}
|
|
40
37
|
/**
|
|
41
38
|
*
|
|
42
|
-
* Represents the type of auth
|
|
39
|
+
* Represents the type of auth for a specified network
|
|
43
40
|
*
|
|
44
41
|
*/
|
|
45
42
|
export interface Auth {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
grantType?: GrantType;
|
|
50
|
-
scope?: Scope;
|
|
51
|
-
clientId?: ClientId;
|
|
43
|
+
method: Method;
|
|
44
|
+
scope: Scope;
|
|
45
|
+
clientId: ClientId;
|
|
52
46
|
clientSecret?: ClientSecret;
|
|
53
|
-
issuer
|
|
54
|
-
|
|
55
|
-
audience?: Audience;
|
|
56
|
-
admin?: Admin;
|
|
57
|
-
[k: string]: any;
|
|
47
|
+
issuer?: Issuer;
|
|
48
|
+
audience: Audience;
|
|
58
49
|
}
|
|
59
50
|
/**
|
|
60
51
|
*
|
|
@@ -72,7 +63,9 @@ export interface Network {
|
|
|
72
63
|
name: Name;
|
|
73
64
|
description: Description;
|
|
74
65
|
synchronizerId: SynchronizerId;
|
|
66
|
+
identityProviderId: IdentityProviderId;
|
|
75
67
|
auth: Auth;
|
|
68
|
+
adminAuth?: Auth;
|
|
76
69
|
ledgerApi: LedgerApi;
|
|
77
70
|
}
|
|
78
71
|
/**
|
|
@@ -100,6 +93,36 @@ export type PartyHint = string;
|
|
|
100
93
|
*/
|
|
101
94
|
export type SigningProviderId = string;
|
|
102
95
|
export type PartyId = string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Gateway.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
export type ExternalTxId = string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* The topology transactions
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
export type TopologyTransactions = string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* The namespace of the party.
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
export type Namespace = string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* Indicates that the wallet has been created in the database but hasn't yet been allocated by the participant.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export interface SigningProviderContext {
|
|
120
|
+
partyId: PartyId;
|
|
121
|
+
externalTxId: ExternalTxId;
|
|
122
|
+
topologyTransactions: TopologyTransactions;
|
|
123
|
+
namespace: Namespace;
|
|
124
|
+
[k: string]: any;
|
|
125
|
+
}
|
|
103
126
|
/**
|
|
104
127
|
*
|
|
105
128
|
* Filter wallets by network IDs.
|
|
@@ -132,24 +155,49 @@ export type PreparedTransactionHash = string;
|
|
|
132
155
|
export type CommandId = string;
|
|
133
156
|
export type Signature = string;
|
|
134
157
|
export type SignedBy = string;
|
|
158
|
+
export type Networks = Network[];
|
|
135
159
|
/**
|
|
136
160
|
*
|
|
137
|
-
*
|
|
161
|
+
* ID of the identity provider
|
|
138
162
|
*
|
|
139
163
|
*/
|
|
140
|
-
export type
|
|
164
|
+
export type Id = string;
|
|
141
165
|
/**
|
|
142
166
|
*
|
|
143
|
-
*
|
|
167
|
+
* Type of identity provider (OAuth2 or Self-Signed)
|
|
144
168
|
*
|
|
145
169
|
*/
|
|
146
|
-
export type
|
|
170
|
+
export type Type = string;
|
|
147
171
|
/**
|
|
148
172
|
*
|
|
149
|
-
*
|
|
173
|
+
* URL to fetch the identity provider configuration
|
|
150
174
|
*
|
|
151
175
|
*/
|
|
152
|
-
export type
|
|
176
|
+
export type ConfigUrl = string;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* Structure representing the Identity Providers
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
export interface Idp {
|
|
183
|
+
id: Id;
|
|
184
|
+
type: Type;
|
|
185
|
+
issuer: Issuer;
|
|
186
|
+
configUrl?: ConfigUrl;
|
|
187
|
+
}
|
|
188
|
+
export type Idps = Idp[];
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* The party hint and name of the wallet.
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
export type Hint = string;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* The public key of the party.
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
export type PublicKey = string;
|
|
153
201
|
/**
|
|
154
202
|
*
|
|
155
203
|
* Structure representing a wallet
|
|
@@ -163,11 +211,12 @@ export interface Wallet {
|
|
|
163
211
|
namespace: Namespace;
|
|
164
212
|
networkId: NetworkId;
|
|
165
213
|
signingProviderId: SigningProviderId;
|
|
214
|
+
externalTxId?: ExternalTxId;
|
|
215
|
+
topologyTransactions?: TopologyTransactions;
|
|
166
216
|
[k: string]: any;
|
|
167
217
|
}
|
|
168
218
|
export type Added = Wallet[];
|
|
169
219
|
export type Removed = Wallet[];
|
|
170
|
-
export type Networks = Network[];
|
|
171
220
|
/**
|
|
172
221
|
*
|
|
173
222
|
* The access token for the session.
|
|
@@ -199,6 +248,7 @@ export interface CreateWalletParams {
|
|
|
199
248
|
partyHint: PartyHint;
|
|
200
249
|
networkId: NetworkId;
|
|
201
250
|
signingProviderId: SigningProviderId;
|
|
251
|
+
signingProviderContext?: SigningProviderContext;
|
|
202
252
|
[k: string]: any;
|
|
203
253
|
}
|
|
204
254
|
export interface SetPrimaryWalletParams {
|
|
@@ -237,6 +287,14 @@ export interface AddSessionParams {
|
|
|
237
287
|
*
|
|
238
288
|
*/
|
|
239
289
|
export type Null = null;
|
|
290
|
+
export interface ListNetworksResult {
|
|
291
|
+
networks: Networks;
|
|
292
|
+
[k: string]: any;
|
|
293
|
+
}
|
|
294
|
+
export interface ListIdpsResult {
|
|
295
|
+
idps: Idps;
|
|
296
|
+
[k: string]: any;
|
|
297
|
+
}
|
|
240
298
|
export interface CreateWalletResult {
|
|
241
299
|
wallet: Wallet;
|
|
242
300
|
[k: string]: any;
|
|
@@ -269,10 +327,6 @@ export interface SignResult {
|
|
|
269
327
|
export interface ExecuteResult {
|
|
270
328
|
[key: string]: any;
|
|
271
329
|
}
|
|
272
|
-
export interface ListNetworksResult {
|
|
273
|
-
networks: Networks;
|
|
274
|
-
[k: string]: any;
|
|
275
|
-
}
|
|
276
330
|
/**
|
|
277
331
|
*
|
|
278
332
|
* Structure representing the connected network session
|
|
@@ -294,6 +348,8 @@ export interface ListSessionsResult {
|
|
|
294
348
|
*/
|
|
295
349
|
export type AddNetwork = (params: AddNetworkParams) => Promise<Null>;
|
|
296
350
|
export type RemoveNetwork = (params: RemoveNetworkParams) => Promise<Null>;
|
|
351
|
+
export type ListNetworks = () => Promise<ListNetworksResult>;
|
|
352
|
+
export type ListIdps = () => Promise<ListIdpsResult>;
|
|
297
353
|
export type CreateWallet = (params: CreateWalletParams) => Promise<CreateWalletResult>;
|
|
298
354
|
export type SetPrimaryWallet = (params: SetPrimaryWalletParams) => Promise<Null>;
|
|
299
355
|
export type RemoveWallet = (params: RemoveWalletParams) => Promise<RemovePartyResult>;
|
|
@@ -301,7 +357,6 @@ export type ListWallets = (params: ListWalletsParams) => Promise<ListWalletsResu
|
|
|
301
357
|
export type SyncWallets = () => Promise<SyncWalletsResult>;
|
|
302
358
|
export type Sign = (params: SignParams) => Promise<SignResult>;
|
|
303
359
|
export type Execute = (params: ExecuteParams) => Promise<ExecuteResult>;
|
|
304
|
-
export type ListNetworks = () => Promise<ListNetworksResult>;
|
|
305
360
|
export type AddSession = (params: AddSessionParams) => Promise<AddSessionResult>;
|
|
306
361
|
export type ListSessions = () => Promise<ListSessionsResult>;
|
|
307
362
|
//# sourceMappingURL=typings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../src/user-api/rpc-gen/typings.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAC9B;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAA;AACzB;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAChC;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA;AACnC
|
|
1
|
+
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../src/user-api/rpc-gen/typings.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAC9B;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAA;AACzB;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAChC;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA;AACnC;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAA;AACvC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAC3B,MAAM,MAAM,KAAK,GAAG,MAAM,CAAA;AAC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M,YAAY,GAAG,CACvB,MAAM,EAAE,kBAAkB,KACzB,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAChC,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;AAChF,MAAM,MAAM,YAAY,GAAG,CACvB,MAAM,EAAE,kBAAkB,KACzB,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAC/B,MAAM,MAAM,WAAW,GAAG,CACtB,MAAM,EAAE,iBAAiB,KACxB,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAC/B,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;AAC1D,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;AACvE,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,gBAAgB,CAAC,CAAA;AAChF,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAA"}
|
|
@@ -30,10 +30,9 @@ test('call listNetworks rpc', async () => {
|
|
|
30
30
|
.set('Accept', 'application/json');
|
|
31
31
|
const json = await response.body.result;
|
|
32
32
|
expect(response.statusCode).toBe(200);
|
|
33
|
-
expect(json.networks.length).toBe(
|
|
34
|
-
expect(json.networks[0].name).toBe('Local (
|
|
35
|
-
expect(json.networks[1].name).toBe('Local (OAuth IDP)');
|
|
36
|
-
expect(json.networks[2].name).toBe('Local (
|
|
37
|
-
expect(json.networks[3].name).toBe('
|
|
38
|
-
expect(json.networks[4].name).toBe('Devnet (Auth0)');
|
|
33
|
+
expect(json.networks.length).toBe(4);
|
|
34
|
+
expect(json.networks[0].name).toBe('Local (OAuth IDP)');
|
|
35
|
+
expect(json.networks[1].name).toBe('Local (OAuth IDP - Client Credentials)');
|
|
36
|
+
expect(json.networks[2].name).toBe('Local (Self signed)');
|
|
37
|
+
expect(json.networks[3].name).toBe('Devnet (Auth0)');
|
|
39
38
|
});
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>Wallet Kernel - Not found</title>
|
|
6
|
-
<script type="module" crossorigin src="/assets/404-
|
|
7
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/404-CXLFjs4t.js"></script>
|
|
7
|
+
<link rel="modulepreload" crossorigin href="/assets/index-DZurNsA2.js">
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-HEe9--Xd.css">
|
|
9
9
|
</head>
|
|
10
10
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>Wallet Kernel - Approve Write Request</title>
|
|
6
|
-
<script type="module" crossorigin src="/assets/approve-
|
|
7
|
-
<link rel="modulepreload" crossorigin href="/assets/index-
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/assets/state-
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/handle-errors-
|
|
6
|
+
<script type="module" crossorigin src="/assets/approve-gdszLXiW.js"></script>
|
|
7
|
+
<link rel="modulepreload" crossorigin href="/assets/index-DZurNsA2.js">
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/assets/state-ZaohYYFB.js">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/assets/handle-errors-D7N_0lCR.js">
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-HEe9--Xd.css">
|
|
11
11
|
</head>
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as k,a as z,x as O,t as P}from"./index-
|
|
1
|
+
import{i as k,a as z,x as O,t as P}from"./index-DZurNsA2.js";var C=Object.create,s=Object.defineProperty,E=Object.getOwnPropertyDescriptor,b=(r,e)=>(e=Symbol[r])?e:Symbol.for("Symbol."+r),h=r=>{throw TypeError(r)},I=(r,e,a)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[e]=a,j=(r,e)=>s(r,"name",{value:e,configurable:!0}),A=r=>[,,,C((r==null?void 0:r[b("metadata")])??null)],D=["class","method","getter","setter","accessor","field","value","get","set"],w=r=>r!==void 0&&typeof r!="function"?h("Function expected"):r,F=(r,e,a,i,t)=>({kind:D[r],name:e,metadata:i,addInitializer:o=>a._?h("Already initialized"):t.push(w(o||null))}),M=(r,e)=>I(e,b("metadata"),r[3]),N=(r,e,a,i)=>{for(var t=0,o=r[e>>1],n=o&&o.length;t<n;t++)o[t].call(a);return i},T=(r,e,a,i,t,o)=>{var n,u,f,l=e&7,m=!1,x=0,g=r[x]||(r[x]=[]),d=l&&(t=t.prototype,l<5&&(l>3||!m)&&E(t,a));j(t,a);for(var _=i.length-1;_>=0;_--)f=F(l,a,u={},r[3],g),n=(0,i[_])(t,f),u._=1,w(n)&&(t=n);return M(r,t),d&&s(t,a,d),m?l^4?o:d:t},y,v,S;y=[P("user-ui-404")];const p=class p extends(S=k){connectedCallback(){super.connectedCallback()}render(){return O`
|
|
2
2
|
<div class="wrapper">
|
|
3
3
|
<not-found />
|
|
4
4
|
</div>
|