@tari-project/wallet-daemon-signer 0.8.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,28 +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
- dry_run: req.is_dry_run,
130
- is_seal_signer_authorized: req.is_seal_signer_authorized,
131
- },
118
+ V1: req.transaction,
132
119
  },
133
120
  signing_key_index: req.account_id,
134
- autofill_inputs: [],
135
121
  detect_inputs: true,
136
122
  proof_ids: [],
137
123
  detect_inputs_use_unversioned: req.detect_inputs_use_unversioned,
138
124
  };
139
- const res = req.is_dry_run
125
+ const res = req.transaction.dry_run
140
126
  ? await this.client.submitTransactionDryRun(params)
141
127
  : await this.client.submitTransaction(params);
142
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.8.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.9.0",
13
+ "@tari-project/typescript-bindings": ">=1.9.1",
14
14
  "@tari-project/wallet_jrpc_client": "^1.6.0",
15
- "@tari-project/tari-permissions": "^0.8.0",
16
- "@tari-project/tari-signer": "^0.8.0",
17
- "@tari-project/tarijs-types": "^0.8.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",