@crossmint/wallets-sdk 0.18.10 → 0.18.11
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/api/client.cjs +4 -4
- package/dist/api/client.js +3 -3
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.js +1 -1
- package/dist/api/index.cjs +4 -4
- package/dist/api/index.js +3 -3
- package/dist/{chunk-CQNVHQHH.js → chunk-66OKXCYL.js} +2 -2
- package/dist/{chunk-NIHJXITI.js → chunk-6DRR3LG4.js} +2 -2
- package/dist/{chunk-73EJIGRV.js → chunk-AJIUH7J4.js} +2 -2
- package/dist/{chunk-LVSVT2VD.js → chunk-EDBSUNF2.js} +1 -1
- package/dist/{chunk-ZJUXMOUB.js → chunk-FQRYO6LZ.js} +1 -1
- package/dist/{chunk-R5TY6M5Z.js → chunk-GAGVFMN7.js} +2 -2
- package/dist/{chunk-OFQDCA2H.cjs → chunk-HZKNKBU5.cjs} +1 -1
- package/dist/{chunk-IYTDGUGZ.js → chunk-JFIN435P.js} +2 -2
- package/dist/{chunk-UXNFYAIS.cjs → chunk-KWII4S3U.cjs} +21 -21
- package/dist/{chunk-GRAV7BTN.cjs → chunk-PSKZR36J.cjs} +9 -9
- package/dist/{chunk-QXJZ75GW.cjs → chunk-QKDQHKDJ.cjs} +38 -38
- package/dist/{chunk-5KFST6KH.cjs → chunk-THJFGWWT.cjs} +17 -17
- package/dist/{chunk-YNLL6GP4.js → chunk-UCHEZUU2.js} +2 -2
- package/dist/{chunk-TYN3KL7U.cjs → chunk-UH62INDA.cjs} +9 -9
- package/dist/{chunk-NBDHZJ44.cjs → chunk-WACETVEE.cjs} +7 -7
- package/dist/{chunk-AZIXXLMP.cjs → chunk-WDYAGKXG.cjs} +12 -12
- package/dist/{chunk-OWGPEA2A.cjs → chunk-WRIOKE3W.cjs} +3 -3
- package/dist/{chunk-KMHPLOVX.js → chunk-XCBU56Z2.js} +3 -3
- package/dist/index.cjs +10 -10
- package/dist/index.js +9 -9
- package/dist/logger/index.cjs +3 -3
- package/dist/logger/index.js +2 -2
- package/dist/logger/init.cjs +3 -3
- package/dist/logger/init.js +2 -2
- package/dist/sdk.cjs +7 -7
- package/dist/sdk.js +6 -6
- package/dist/utils/constants.cjs +2 -2
- package/dist/utils/constants.js +1 -1
- package/dist/wallets/evm.cjs +5 -5
- package/dist/wallets/evm.js +4 -4
- package/dist/wallets/solana.cjs +5 -5
- package/dist/wallets/solana.js +4 -4
- package/dist/wallets/stellar.cjs +5 -5
- package/dist/wallets/stellar.js +4 -4
- package/dist/wallets/wallet-factory.cjs +5 -5
- package/dist/wallets/wallet-factory.js +4 -4
- package/dist/wallets/wallet.cjs +4 -4
- package/dist/wallets/wallet.js +3 -3
- package/package.json +4 -4
package/dist/api/client.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkWDYAGKXGcjs = require('../chunk-WDYAGKXG.cjs');
|
|
4
4
|
require('../chunk-XC2V34TS.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-WRIOKE3W.cjs');
|
|
6
|
+
require('../chunk-HZKNKBU5.cjs');
|
|
7
7
|
require('../chunk-UO2J2ZB2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ApiClient =
|
|
10
|
+
exports.ApiClient = _chunkWDYAGKXGcjs.ApiClient;
|
package/dist/api/client.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiClient
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-66OKXCYL.js";
|
|
4
4
|
import "../chunk-SGINWAB6.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-FQRYO6LZ.js";
|
|
6
|
+
import "../chunk-EDBSUNF2.js";
|
|
7
7
|
import "../chunk-ASE2FXWP.js";
|
|
8
8
|
export {
|
|
9
9
|
ApiClient
|
package/dist/api/gen/index.cjs
CHANGED
package/dist/api/gen/index.js
CHANGED
|
@@ -86,8 +86,8 @@ import {
|
|
|
86
86
|
walletsV2025ControllerSubmitSignatureApprovals2,
|
|
87
87
|
walletsVerifyRecipientControllerVerifyWalletOwnership2
|
|
88
88
|
} from "../../chunk-BMMZIPXT.js";
|
|
89
|
-
import "../../chunk-YMRXMNME.js";
|
|
90
89
|
import "../../chunk-KT3CVXFG.js";
|
|
90
|
+
import "../../chunk-YMRXMNME.js";
|
|
91
91
|
import "../../chunk-ASE2FXWP.js";
|
|
92
92
|
export {
|
|
93
93
|
balanceControllerFundWallet2,
|
package/dist/api/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6HXIZLEQ.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWDYAGKXGcjs = require('../chunk-WDYAGKXG.cjs');
|
|
5
5
|
require('../chunk-XC2V34TS.cjs');
|
|
6
6
|
require('../chunk-ECAM5KTH.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-WRIOKE3W.cjs');
|
|
8
|
+
require('../chunk-HZKNKBU5.cjs');
|
|
9
9
|
require('../chunk-UO2J2ZB2.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
exports.ApiClient =
|
|
12
|
+
exports.ApiClient = _chunkWDYAGKXGcjs.ApiClient;
|
package/dist/api/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-5IFDVB4Y.js";
|
|
2
2
|
import {
|
|
3
3
|
ApiClient
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-66OKXCYL.js";
|
|
5
5
|
import "../chunk-SGINWAB6.js";
|
|
6
6
|
import "../chunk-KBJA7JDT.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-FQRYO6LZ.js";
|
|
8
|
+
import "../chunk-EDBSUNF2.js";
|
|
9
9
|
import "../chunk-ASE2FXWP.js";
|
|
10
10
|
export {
|
|
11
11
|
ApiClient
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-SGINWAB6.js";
|
|
4
4
|
import {
|
|
5
5
|
walletsLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FQRYO6LZ.js";
|
|
7
7
|
import {
|
|
8
8
|
SDK_NAME,
|
|
9
9
|
SDK_VERSION
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EDBSUNF2.js";
|
|
11
11
|
import {
|
|
12
12
|
__async
|
|
13
13
|
} from "./chunk-ASE2FXWP.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZP4ZZCIE.js";
|
|
5
5
|
import {
|
|
6
6
|
Wallet
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JFIN435P.js";
|
|
8
8
|
import {
|
|
9
9
|
assembleSigner
|
|
10
10
|
} from "./chunk-UZN67GMO.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-SGINWAB6.js";
|
|
15
15
|
import {
|
|
16
16
|
walletsLogger
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FQRYO6LZ.js";
|
|
18
18
|
import {
|
|
19
19
|
__async,
|
|
20
20
|
__decorateClass,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Wallet
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JFIN435P.js";
|
|
4
4
|
import {
|
|
5
5
|
SolanaExternalWalletSigner
|
|
6
6
|
} from "./chunk-PIFD6KNH.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-SGINWAB6.js";
|
|
10
10
|
import {
|
|
11
11
|
walletsLogger
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FQRYO6LZ.js";
|
|
13
13
|
import {
|
|
14
14
|
__async,
|
|
15
15
|
__decorateClass
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Wallet
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JFIN435P.js";
|
|
4
4
|
import {
|
|
5
5
|
InvalidTypedDataError,
|
|
6
6
|
SignatureNotCreatedError,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-NJTKHWXR.js";
|
|
12
12
|
import {
|
|
13
13
|
walletsLogger
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FQRYO6LZ.js";
|
|
15
15
|
import {
|
|
16
16
|
__async,
|
|
17
17
|
__decorateClass
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
} from "./chunk-SGINWAB6.js";
|
|
19
19
|
import {
|
|
20
20
|
walletsLogger
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FQRYO6LZ.js";
|
|
22
22
|
import {
|
|
23
23
|
STATUS_POLLING_INTERVAL_MS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EDBSUNF2.js";
|
|
25
25
|
import {
|
|
26
26
|
__async,
|
|
27
27
|
__decorateClass,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQKDQHKDJcjs = require('./chunk-QKDQHKDJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ var _chunkXC2V34TScjs = require('./chunk-XC2V34TS.cjs');
|
|
|
11
11
|
var _chunkGROJZ247cjs = require('./chunk-GROJZ247.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkWRIOKE3Wcjs = require('./chunk-WRIOKE3W.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
|
|
|
20
20
|
// src/wallets/evm.ts
|
|
21
21
|
var _viem = require('viem');
|
|
22
22
|
var _commonsdkbase = require('@crossmint/common-sdk-base');
|
|
23
|
-
var _EVMWallet = class _EVMWallet extends
|
|
23
|
+
var _EVMWallet = class _EVMWallet extends _chunkQKDQHKDJcjs.Wallet {
|
|
24
24
|
constructor(wallet) {
|
|
25
25
|
super(
|
|
26
26
|
{
|
|
@@ -28,10 +28,10 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
28
28
|
address: wallet.address,
|
|
29
29
|
owner: wallet.owner,
|
|
30
30
|
signer: wallet.signer,
|
|
31
|
-
options:
|
|
31
|
+
options: _chunkQKDQHKDJcjs.Wallet.getOptions(wallet),
|
|
32
32
|
alias: wallet.alias
|
|
33
33
|
},
|
|
34
|
-
|
|
34
|
+
_chunkQKDQHKDJcjs.Wallet.getApiClient(wallet)
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
static from(wallet) {
|
|
@@ -43,12 +43,12 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
43
43
|
sendTransaction(params) {
|
|
44
44
|
return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
|
|
45
45
|
var _a;
|
|
46
|
-
|
|
46
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.sendTransaction.start");
|
|
47
47
|
yield this.preAuthIfNeeded();
|
|
48
48
|
const builtTransaction = this.buildTransaction(params);
|
|
49
49
|
const createdTransaction = yield this.createTransaction(builtTransaction, params.options);
|
|
50
50
|
if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
|
|
51
|
-
|
|
51
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.sendTransaction.prepared", {
|
|
52
52
|
transactionId: createdTransaction.id
|
|
53
53
|
});
|
|
54
54
|
return {
|
|
@@ -58,7 +58,7 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
const result = yield this.approveTransactionAndWait(createdTransaction.id);
|
|
61
|
-
|
|
61
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.sendTransaction.success", {
|
|
62
62
|
transactionId: createdTransaction.id,
|
|
63
63
|
hash: result.hash
|
|
64
64
|
});
|
|
@@ -68,7 +68,7 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
68
68
|
signMessage(params) {
|
|
69
69
|
return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
|
|
70
70
|
var _a;
|
|
71
|
-
|
|
71
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.signMessage.start");
|
|
72
72
|
yield this.preAuthIfNeeded();
|
|
73
73
|
const signatureCreationResponse = yield this.apiClient.createSignature(this.walletLocator, {
|
|
74
74
|
type: "message",
|
|
@@ -79,11 +79,11 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
if ("error" in signatureCreationResponse) {
|
|
82
|
-
|
|
82
|
+
_chunkWRIOKE3Wcjs.walletsLogger.error("evmWallet.signMessage.error", { error: signatureCreationResponse });
|
|
83
83
|
throw new (0, _chunkXC2V34TScjs.SignatureNotCreatedError)(JSON.stringify(signatureCreationResponse));
|
|
84
84
|
}
|
|
85
85
|
if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
|
|
86
|
-
|
|
86
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.signMessage.prepared", {
|
|
87
87
|
signatureId: signatureCreationResponse.id
|
|
88
88
|
});
|
|
89
89
|
return {
|
|
@@ -92,23 +92,23 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
const result = yield this.approveSignatureAndWait(signatureCreationResponse.id);
|
|
95
|
-
|
|
95
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.signMessage.success", { signatureId: signatureCreationResponse.id });
|
|
96
96
|
return result;
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
signTypedData(params) {
|
|
100
100
|
return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
|
|
101
101
|
var _a;
|
|
102
|
-
|
|
102
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.signTypedData.start");
|
|
103
103
|
yield this.preAuthIfNeeded();
|
|
104
104
|
const { domain, message, primaryType, types, chain } = params;
|
|
105
105
|
if (!domain || !message || !types || !chain) {
|
|
106
|
-
|
|
106
|
+
_chunkWRIOKE3Wcjs.walletsLogger.error("evmWallet.signTypedData.error", { error: "Invalid typed data" });
|
|
107
107
|
throw new (0, _chunkXC2V34TScjs.InvalidTypedDataError)("Invalid typed data");
|
|
108
108
|
}
|
|
109
109
|
const { name, version, chainId, verifyingContract, salt } = domain;
|
|
110
110
|
if (!name || !version || !chainId || !verifyingContract) {
|
|
111
|
-
|
|
111
|
+
_chunkWRIOKE3Wcjs.walletsLogger.error("evmWallet.signTypedData.error", { error: "Invalid typed data domain" });
|
|
112
112
|
throw new (0, _chunkXC2V34TScjs.InvalidTypedDataError)("Invalid typed data domain");
|
|
113
113
|
}
|
|
114
114
|
const signatureCreationResponse = yield this.apiClient.createSignature(this.walletLocator, {
|
|
@@ -131,11 +131,11 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
if ("error" in signatureCreationResponse) {
|
|
134
|
-
|
|
134
|
+
_chunkWRIOKE3Wcjs.walletsLogger.error("evmWallet.signTypedData.error", { error: signatureCreationResponse });
|
|
135
135
|
throw new (0, _chunkXC2V34TScjs.SignatureNotCreatedError)(JSON.stringify(signatureCreationResponse));
|
|
136
136
|
}
|
|
137
137
|
if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
|
|
138
|
-
|
|
138
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.signTypedData.prepared", {
|
|
139
139
|
signatureId: signatureCreationResponse.id
|
|
140
140
|
});
|
|
141
141
|
return {
|
|
@@ -144,7 +144,7 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
const result = yield this.approveSignatureAndWait(signatureCreationResponse.id);
|
|
147
|
-
|
|
147
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("evmWallet.signTypedData.success", { signatureId: signatureCreationResponse.id });
|
|
148
148
|
return result;
|
|
149
149
|
});
|
|
150
150
|
}
|
|
@@ -200,7 +200,7 @@ var _EVMWallet = class _EVMWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
200
200
|
};
|
|
201
201
|
_chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
|
|
202
202
|
_commonsdkbase.WithLoggerContext.call(void 0, {
|
|
203
|
-
logger:
|
|
203
|
+
logger: _chunkWRIOKE3Wcjs.walletsLogger,
|
|
204
204
|
methodName: "evmWallet.sendTransaction",
|
|
205
205
|
buildContext(thisArg) {
|
|
206
206
|
return { chain: thisArg.chain, address: thisArg.address };
|
|
@@ -209,7 +209,7 @@ _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
|
|
|
209
209
|
], _EVMWallet.prototype, "sendTransaction", 1);
|
|
210
210
|
_chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
|
|
211
211
|
_commonsdkbase.WithLoggerContext.call(void 0, {
|
|
212
|
-
logger:
|
|
212
|
+
logger: _chunkWRIOKE3Wcjs.walletsLogger,
|
|
213
213
|
methodName: "evmWallet.signMessage",
|
|
214
214
|
buildContext(thisArg) {
|
|
215
215
|
return { chain: thisArg.chain, address: thisArg.address };
|
|
@@ -218,7 +218,7 @@ _chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
|
|
|
218
218
|
], _EVMWallet.prototype, "signMessage", 1);
|
|
219
219
|
_chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
|
|
220
220
|
_commonsdkbase.WithLoggerContext.call(void 0, {
|
|
221
|
-
logger:
|
|
221
|
+
logger: _chunkWRIOKE3Wcjs.walletsLogger,
|
|
222
222
|
methodName: "evmWallet.signTypedData",
|
|
223
223
|
buildContext(thisArg) {
|
|
224
224
|
return { chain: thisArg.chain, address: thisArg.address };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQKDQHKDJcjs = require('./chunk-QKDQHKDJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkXC2V34TScjs = require('./chunk-XC2V34TS.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkWRIOKE3Wcjs = require('./chunk-WRIOKE3W.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ var _chunkUO2J2ZB2cjs = require('./chunk-UO2J2ZB2.cjs');
|
|
|
14
14
|
|
|
15
15
|
// src/wallets/stellar.ts
|
|
16
16
|
var _commonsdkbase = require('@crossmint/common-sdk-base');
|
|
17
|
-
var _StellarWallet = class _StellarWallet extends
|
|
17
|
+
var _StellarWallet = class _StellarWallet extends _chunkQKDQHKDJcjs.Wallet {
|
|
18
18
|
constructor(wallet) {
|
|
19
19
|
super(
|
|
20
20
|
{
|
|
@@ -22,10 +22,10 @@ var _StellarWallet = class _StellarWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
22
22
|
address: wallet.address,
|
|
23
23
|
owner: wallet.owner,
|
|
24
24
|
signer: wallet.signer,
|
|
25
|
-
options:
|
|
25
|
+
options: _chunkQKDQHKDJcjs.Wallet.getOptions(wallet),
|
|
26
26
|
alias: wallet.alias
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
_chunkQKDQHKDJcjs.Wallet.getApiClient(wallet)
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
static from(wallet) {
|
|
@@ -37,11 +37,11 @@ var _StellarWallet = class _StellarWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
37
37
|
sendTransaction(params) {
|
|
38
38
|
return _chunkUO2J2ZB2cjs.__async.call(void 0, this, null, function* () {
|
|
39
39
|
var _a;
|
|
40
|
-
|
|
40
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("stellarWallet.sendTransaction.start");
|
|
41
41
|
yield this.preAuthIfNeeded();
|
|
42
42
|
const createdTransaction = yield this.createTransaction(params);
|
|
43
43
|
if ((_a = params.options) == null ? void 0 : _a.experimental_prepareOnly) {
|
|
44
|
-
|
|
44
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("stellarWallet.sendTransaction.prepared", {
|
|
45
45
|
transactionId: createdTransaction.id
|
|
46
46
|
});
|
|
47
47
|
return {
|
|
@@ -52,7 +52,7 @@ var _StellarWallet = class _StellarWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
52
52
|
}
|
|
53
53
|
const options = {};
|
|
54
54
|
const result = yield this.approveTransactionAndWait(createdTransaction.id, options);
|
|
55
|
-
|
|
55
|
+
_chunkWRIOKE3Wcjs.walletsLogger.info("stellarWallet.sendTransaction.success", {
|
|
56
56
|
transactionId: createdTransaction.id,
|
|
57
57
|
hash: result.hash
|
|
58
58
|
});
|
|
@@ -96,7 +96,7 @@ var _StellarWallet = class _StellarWallet extends _chunkQXJZ75GWcjs.Wallet {
|
|
|
96
96
|
};
|
|
97
97
|
_chunkUO2J2ZB2cjs.__decorateClass.call(void 0, [
|
|
98
98
|
_commonsdkbase.WithLoggerContext.call(void 0, {
|
|
99
|
-
logger:
|
|
99
|
+
logger: _chunkWRIOKE3Wcjs.walletsLogger,
|
|
100
100
|
methodName: "stellarWallet.sendTransaction",
|
|
101
101
|
buildContext(thisArg) {
|
|
102
102
|
return { chain: thisArg.chain, address: thisArg.address };
|