@canton-network/dapp-sdk 0.9.0 → 0.10.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/gateways.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"name": "Canton Wallet Gateway (Local)",
|
|
4
|
-
"rpcUrl": "http://localhost:
|
|
4
|
+
"rpcUrl": "http://localhost:3030/api/v0/dapp"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
"name": "Example2",
|
|
8
|
-
"rpcUrl": "http://localhost:
|
|
8
|
+
"rpcUrl": "http://localhost:3030/api/v0/dapp"
|
|
9
9
|
}
|
|
10
10
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/provider/request.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,6CAA6C,CAAA;AAQtE,wBAAsB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/provider/request.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,6CAA6C,CAAA;AAQtE,wBAAsB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAyC9D;AAED,wBAAsB,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAI5D;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAI1E;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAI9E;AAED,wBAAsB,cAAc,CAChC,MAAM,EAAE,OAAO,CAAC,oBAAoB,GACrC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAKvC;AAED,wBAAsB,SAAS,CAC3B,MAAM,EAAE,OAAO,CAAC,eAAe,GAChC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAKlC"}
|
package/dist/provider/request.js
CHANGED
|
@@ -28,10 +28,17 @@ export async function connect() {
|
|
|
28
28
|
return response;
|
|
29
29
|
})
|
|
30
30
|
.catch((err) => {
|
|
31
|
+
let details = JSON.stringify(err);
|
|
32
|
+
if (err instanceof Error) {
|
|
33
|
+
details = err.message;
|
|
34
|
+
}
|
|
35
|
+
if ('message' in err) {
|
|
36
|
+
details = err.message;
|
|
37
|
+
}
|
|
31
38
|
throw {
|
|
32
39
|
status: 'error',
|
|
33
40
|
error: ErrorCode.Other,
|
|
34
|
-
details
|
|
41
|
+
details,
|
|
35
42
|
};
|
|
36
43
|
});
|
|
37
44
|
}
|
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,cAAc,EACd,aAAa,EAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACH,cAAc,EACd,cAAc,EAGjB,MAAM,4BAA4B,CAAA;AAenC;;;GAGG;AACH,qBAAa,QAAS,YAAW,cAAc;IAC3C,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,YAAY,CAAC,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAC,CAAgB;gBAE3B,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC,EAAE,MAAM;IAetE,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;IAmC5C,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,cAAc;IAIhE,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,G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GAAI,UAAU,cAAc;;;;;;;;;;CA4FjD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/dapp-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "Browser SDK for dApp development on the Canton Network",
|
|
6
6
|
"repository": "github:hyperledger-labs/splice-wallet-kernel",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"test": "echo \"Warning: no test specified\""
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@canton-network/core-splice-provider": "",
|
|
20
|
-
"@canton-network/core-types": "",
|
|
21
|
-
"@canton-network/core-wallet-dapp-remote-rpc-client": "",
|
|
22
|
-
"@canton-network/core-wallet-dapp-rpc-client": "",
|
|
23
|
-
"@canton-network/core-wallet-ui-components": ""
|
|
19
|
+
"@canton-network/core-splice-provider": "^0.9.0",
|
|
20
|
+
"@canton-network/core-types": "^0.9.0",
|
|
21
|
+
"@canton-network/core-wallet-dapp-remote-rpc-client": "^0.5.0",
|
|
22
|
+
"@canton-network/core-wallet-dapp-rpc-client": "^0.10.0",
|
|
23
|
+
"@canton-network/core-wallet-ui-components": "^0.9.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "^5.8.3"
|
package/src/gateways.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"name": "Canton Wallet Gateway (Local)",
|
|
4
|
-
"rpcUrl": "http://localhost:
|
|
4
|
+
"rpcUrl": "http://localhost:3030/api/v0/dapp"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
"name": "Example2",
|
|
8
|
-
"rpcUrl": "http://localhost:
|
|
8
|
+
"rpcUrl": "http://localhost:3030/api/v0/dapp"
|
|
9
9
|
}
|
|
10
10
|
]
|