@tari-project/wallet-daemon-signer 0.6.0 → 0.9.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/signer.js CHANGED
@@ -115,27 +115,14 @@ export class WalletDaemonTariSigner {
115
115
  async submitTransaction(req) {
116
116
  const params = {
117
117
  transaction: {
118
- V1: {
119
- network: req.network,
120
- instructions: req.instructions,
121
- fee_instructions: req.fee_instructions,
122
- inputs: req.required_substates.map((s) => ({
123
- // TODO: Hmm The bindings want a SubstateId object, but the wallet only wants a string. Any is used to skip type checking here
124
- substate_id: s.substate_id,
125
- version: s.version ?? null,
126
- })),
127
- min_epoch: null,
128
- max_epoch: null,
129
- is_seal_signer_authorized: req.is_seal_signer_authorized,
130
- },
118
+ V1: req.transaction,
131
119
  },
132
120
  signing_key_index: req.account_id,
133
- autofill_inputs: [],
134
121
  detect_inputs: true,
135
122
  proof_ids: [],
136
123
  detect_inputs_use_unversioned: req.detect_inputs_use_unversioned,
137
124
  };
138
- const res = req.is_dry_run
125
+ const res = req.transaction.dry_run
139
126
  ? await this.client.submitTransactionDryRun(params)
140
127
  : await this.client.submitTransaction(params);
141
128
  return { transaction_id: res.transaction_id };
package/dist/webrtc.js CHANGED
@@ -1,4 +1,4 @@
1
- class SignaligServer {
1
+ class SignalingServer {
2
2
  _token;
3
3
  _server_url;
4
4
  constructor(server_url) {
@@ -70,7 +70,7 @@ export class TariConnection {
70
70
  constructor(signalig_server_url, config) {
71
71
  this._peerConnection = new RTCPeerConnection(config || this.config());
72
72
  this._dataChannel = this._peerConnection.createDataChannel("tari-data");
73
- this._signalingServer = new SignaligServer(signalig_server_url);
73
+ this._signalingServer = new SignalingServer(signalig_server_url);
74
74
  this._callbacks = {};
75
75
  }
76
76
  get token() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/wallet-daemon-signer",
3
- "version": "0.6.0",
3
+ "version": "0.9.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -10,11 +10,11 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@tari-project/typescript-bindings": "^1.5.5",
14
- "@tari-project/wallet_jrpc_client": "^1.5.4",
15
- "@tari-project/tari-permissions": "^0.6.0",
16
- "@tari-project/tarijs-types": "^0.6.0",
17
- "@tari-project/tari-signer": "^0.6.0"
13
+ "@tari-project/typescript-bindings": ">=1.9.1",
14
+ "@tari-project/wallet_jrpc_client": "^1.6.0",
15
+ "@tari-project/tari-permissions": "^0.9.0",
16
+ "@tari-project/tari-signer": "^0.9.0",
17
+ "@tari-project/tarijs-types": "^0.9.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^22.13.1",