@canton-network/wallet-gateway-remote 1.10.0 → 1.11.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.
@@ -4,9 +4,10 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Wallet Gateway - Create Party</title>
7
- <script type="module" crossorigin src="../../assets/addParty-SChbVsEF.js"></script>
7
+ <script type="module" crossorigin src="../../assets/addParty-BQLGvzJS.js"></script>
8
8
  <link rel="modulepreload" crossorigin href="../../assets/index-BhzcMGYw.js">
9
9
  <link rel="modulepreload" crossorigin href="../../assets/index-D-NXyb6u.js">
10
+ <link rel="modulepreload" crossorigin href="../../assets/common-Byz7o2Qs.js">
10
11
  </head>
11
12
  <body>
12
13
  <user-app>
@@ -0,0 +1,17 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Wallet Gateway - Edit Party</title>
7
+ <script type="module" crossorigin src="../../assets/editParty-Oe0m1yB6.js"></script>
8
+ <link rel="modulepreload" crossorigin href="../../assets/index-BhzcMGYw.js">
9
+ <link rel="modulepreload" crossorigin href="../../assets/index-D-NXyb6u.js">
10
+ <link rel="modulepreload" crossorigin href="../../assets/common-Byz7o2Qs.js">
11
+ </head>
12
+ <body>
13
+ <user-app>
14
+ <user-ui-edit-party></user-ui-edit-party>
15
+ </user-app>
16
+ </body>
17
+ </html>
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@canton-network/wallet-gateway-remote",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
+ "type": "module",
4
5
  "description": "A server-side Wallet Gateway implementation over HTTP",
6
+ "license": "Apache-2.0",
7
+ "author": "Alex Matson <alex.matson@digitalasset.com>",
5
8
  "main": "dist/index.js",
6
9
  "bin": {
7
10
  "wallet-gateway": "dist/index.js",
8
11
  "wallet-gateway-remote": "dist/index.js"
9
12
  },
10
- "type": "module",
11
- "keywords": [],
12
- "author": "",
13
- "license": "ISC",
14
13
  "files": [
15
14
  "dist/**"
16
15
  ],
@@ -18,6 +17,26 @@
18
17
  "access": "public"
19
18
  },
20
19
  "dependencies": {
20
+ "@canton-network/core-ledger-client": "^1.12.0",
21
+ "@canton-network/core-rpc-errors": "^1.11.0",
22
+ "@canton-network/core-rpc-transport": "^1.12.0",
23
+ "@canton-network/core-signing-bitgo": "^1.2.0",
24
+ "@canton-network/core-signing-blockdaemon": "^1.12.0",
25
+ "@canton-network/core-signing-dfns": "^0.13.0",
26
+ "@canton-network/core-signing-fireblocks": "^1.12.0",
27
+ "@canton-network/core-signing-internal": "^1.13.0",
28
+ "@canton-network/core-signing-lib": "^1.12.0",
29
+ "@canton-network/core-signing-participant": "^1.12.0",
30
+ "@canton-network/core-signing-securosys": "^0.4.0",
31
+ "@canton-network/core-signing-store-sql": "1.13.0",
32
+ "@canton-network/core-tx-visualizer": "^1.11.0",
33
+ "@canton-network/core-types": "^1.12.0",
34
+ "@canton-network/core-wallet-auth": "^1.12.0",
35
+ "@canton-network/core-wallet-dapp-rpc-client": "^1.12.0",
36
+ "@canton-network/core-wallet-store": "^1.13.0",
37
+ "@canton-network/core-wallet-store-sql": "1.13.0",
38
+ "@canton-network/core-wallet-ui-components": "^1.14.0",
39
+ "@canton-network/core-wallet-user-rpc-client": "^1.13.0",
21
40
  "@commander-js/extra-typings": "^14.0.0",
22
41
  "@logtape/adaptor-pino": "^2.3.1",
23
42
  "@logtape/logtape": "^2.3.1",
@@ -34,29 +53,10 @@
34
53
  "uuid": "^14.0.1",
35
54
  "vite": "^7.3.6",
36
55
  "vite-express": "^0.22.1",
37
- "zod": "^4.4.3",
38
- "@canton-network/core-ledger-client": "^1.11.0",
39
- "@canton-network/core-rpc-errors": "^1.10.0",
40
- "@canton-network/core-signing-blockdaemon": "^1.11.0",
41
- "@canton-network/core-rpc-transport": "^1.11.0",
42
- "@canton-network/core-signing-bitgo": "^1.1.0",
43
- "@canton-network/core-signing-dfns": "^0.12.0",
44
- "@canton-network/core-signing-fireblocks": "^1.11.0",
45
- "@canton-network/core-signing-internal": "^1.12.0",
46
- "@canton-network/core-signing-lib": "^1.11.0",
47
- "@canton-network/core-signing-participant": "^1.11.0",
48
- "@canton-network/core-signing-securosys": "^0.3.0",
49
- "@canton-network/core-signing-store-sql": "1.12.0",
50
- "@canton-network/core-tx-visualizer": "^1.10.0",
51
- "@canton-network/core-types": "^1.11.0",
52
- "@canton-network/core-wallet-auth": "^1.11.0",
53
- "@canton-network/core-wallet-store": "^1.12.0",
54
- "@canton-network/core-wallet-dapp-rpc-client": "^1.11.0",
55
- "@canton-network/core-wallet-store-sql": "1.12.0",
56
- "@canton-network/core-wallet-user-rpc-client": "^1.12.0",
57
- "@canton-network/core-wallet-ui-components": "^1.13.0"
56
+ "zod": "^4.4.3"
58
57
  },
59
58
  "devDependencies": {
59
+ "@canton-network/core-wallet-store-inmemory": "^1.14.0",
60
60
  "@open-wc/testing-helpers": "^3.0.1",
61
61
  "@types/cors": "^2.8.19",
62
62
  "@types/express": "^5.0.6",
@@ -69,8 +69,7 @@
69
69
  "supertest": "^7.2.2",
70
70
  "tsx": "^4.23.0",
71
71
  "typescript": "^5.9.3",
72
- "vitest": "^4.1.10",
73
- "@canton-network/core-wallet-store-inmemory": "^1.13.0"
72
+ "vitest": "^4.1.10"
74
73
  },
75
74
  "nx": {
76
75
  "targets": {
@@ -1,43 +0,0 @@
1
- import{r as w,s as W,V as ne,d as M,c as U,a as N,m as oe,f as D,z as ce,b as F,v as B,i as de,x as le,t as ge}from"./index-BhzcMGYw.js";import{S,W as L}from"./index-D-NXyb6u.js";var pe=Object.create,j=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,R=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),m=e=>{throw TypeError(e)},ue=(e,t,r)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ve=e=>[,,,pe(e?.[R("metadata")]??null)],q=["class","method","getter","setter","accessor","field","value","get","set"],f=e=>e!==void 0&&typeof e!="function"?m("Function expected"):e,he=(e,t,r,a,i)=>({kind:q[e],name:t,metadata:a,addInitializer:s=>r._?m("Already initialized"):i.push(f(s||null))}),ye=(e,t)=>ue(t,R("metadata"),e[3]),l=(e,t,r,a)=>{for(var i=0,s=e[t>>1],n=s&&s.length;i<n;i++)t&1?s[i].call(r):a=s[i].call(r,a);return a},$=(e,t,r,a,i,s)=>{for(var n,c,h,d,v,y=t&7,k=!1,b=!1,g=e.length+1,re=q[y+5],ie=e[g-1]=[],ae=e[g]||(e[g]=[]),p=(i=i.prototype,_e({get[r](){return be(this,s)},set[r](_){return fe(this,s,_)}},r)),C=a.length-1;C>=0;C--)d=he(y,r,h={},e[3],ae),d.static=k,d.private=b,v=d.access={has:_=>r in _},v.get=_=>_[r],v.set=(_,se)=>_[r]=se,c=(0,a[C])({get:p.get,set:p.set},d),h._=1,c===void 0?f(c)&&(p[re]=c):typeof c!="object"||c===null?m("Object expected"):(f(n=c.get)&&(p.get=n),f(n=c.set)&&(p.set=n),f(n=c.init)&&ie.unshift(n));return p&&j(i,r,p),i},H=(e,t,r)=>t.has(e)||m("Cannot "+r),be=(e,t,r)=>(H(e,t,"read from private field"),t.get(e)),P=(e,t,r)=>t.has(e)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),fe=(e,t,r,a)=>(H(e,t,"write to private field"),t.set(e,r),r),V,G,Z,J,O,o,T,E,x,A;class u extends(O=B,J=[w()],Z=[w()],G=[w()],V=[w()],O){constructor(){super(...arguments),this.signingProviders=Object.values(S),P(this,T,l(o,8,this,!1)),l(o,11,this),P(this,E,l(o,12,this,[])),l(o,15,this),P(this,x,l(o,16,this,!1)),l(o,19,this),P(this,A,l(o,20,this,"")),l(o,23,this)}navigateBack(){W(ne("/parties"))}async getSigningProviderKeys(t){this.publicKeysLoading=!0;const r=await M();try{const a=await U(await N.accessToken.get(r)),{keys:i}=await a.request({method:"listSigningProviderKeys",params:{signingProviderId:t}});this.publicKeys=i.sort((s,n)=>s.name.localeCompare(n.name)),i.length===0&&this.showToast&&oe("No public keys found","No public keys are available for the selected signing provider.","info")}catch(a){D(a)}finally{this.publicKeysLoading=!1}}async onSigningProviderChange(t){this.publicKeys=[];const{signingProviderId:r}=t;this.selectedSigningProvider=r,r!==S.PARTICIPANT&&await this.getSigningProviderKeys(r)}render(){return F`
2
- <div class="page-header">
3
- <h1 class="h4 fw-semibold mb-0">${this.pageTitle}</h1>
4
- <button
5
- class="btn btn-link btn-sm text-body text-decoration-none p-0 d-inline-flex align-items-center gap-1"
6
- type="button"
7
- @click=${this.navigateBack}
8
- >
9
- ${ce}
10
- <span>Back</span>
11
- </button>
12
- </div>
13
-
14
- <div class="form-wrap">${this.form}</div>
15
- `}}o=ve(O);T=new WeakMap;E=new WeakMap;x=new WeakMap;A=new WeakMap;$(o,4,"submitting",J,u,T);$(o,4,"publicKeys",Z,u,E);$(o,4,"publicKeysLoading",G,u,x);$(o,4,"selectedSigningProvider",V,u,A);ye(o,u);u.styles=[B.styles,de`
16
- :host {
17
- display: block;
18
- }
19
-
20
- .page-header {
21
- display: flex;
22
- align-items: center;
23
- justify-content: space-between;
24
- margin-bottom: var(--wg-space-4);
25
- gap: var(--wg-space-3);
26
- }
27
-
28
- .form-wrap {
29
- width: 100%;
30
- }
31
- `];var me=Object.create,I=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Q=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),X=e=>{throw TypeError(e)},Pe=(e,t,r)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Se=(e,t)=>I(e,"name",{value:t,configurable:!0}),$e=e=>[,,,me(e?.[Q("metadata")]??null)],ke=["class","method","getter","setter","accessor","field","value","get","set"],Y=e=>e!==void 0&&typeof e!="function"?X("Function expected"):e,Ce=(e,t,r,a,i)=>({kind:ke[e],name:t,metadata:a,addInitializer:s=>r._?X("Already initialized"):i.push(Y(s||null))}),Le=(e,t)=>Pe(t,Q("metadata"),e[3]),Oe=(e,t,r,a)=>{for(var i=0,s=e[t>>1],n=s&&s.length;i<n;i++)s[i].call(r);return a},Ke=(e,t,r,a,i,s)=>{var n,c,h,d=t&7,v=!1,y=0,k=e[y]||(e[y]=[]),b=d&&(i=i.prototype,d<5&&(d>3||!v)&&we(i,r));Se(i,r);for(var g=a.length-1;g>=0;g--)h=Ce(d,r,c={},e[3],k),n=(0,a[g])(i,h),c._=1,Y(n)&&(i=n);return Le(e,i),b&&I(i,r,b),v?d^4?s:b:i},ee,z,te;ee=[ge("user-ui-add-party")];class K extends(te=u){constructor(){super(...arguments),this.pageTitle="Create a new party"}get showToast(){return this.selectedSigningProvider===S.FIREBLOCKS}async onCreateParty(t){this.submitting=!0;try{const r=await M(),i=await(await U(await N.accessToken.get(r))).request({method:"createWallet",params:{primary:t.primary,partyHint:t.partyHint,signingProviderId:t.signingProviderId,...t.keyName&&{keyName:t.keyName}}}),n={allocated:L.WALLET_ALLOCATED,initialized:L.WALLET_INITIALIZED,removed:L.WALLET_REMOVED}[i.wallet.status];W(`${le("/parties/")}?createPartyStatus=${n}`)}catch(r){this.submitting=!1,D(r)}}get form(){return F`
32
- <wg-wallet-create-form
33
- .signingProviders=${this.signingProviders}
34
- .keySigningProviders=${[S.FIREBLOCKS]}
35
- .selectedSigningProvider=${this.selectedSigningProvider}
36
- .publicKeys=${this.publicKeys}
37
- .submitLabel=${"Create party"}
38
- ?submitting=${this.submitting}
39
- ?publicKeysLoading=${this.publicKeysLoading}
40
- @wallet-create=${this.onCreateParty}
41
- @signing-provider-change=${this.onSigningProviderChange}
42
- ></wg-wallet-create-form>
43
- `}}z=$e(te);K=Ke(z,0,"UserUiAddParty",ee,K);Oe(z,1,K);