@ledgerhq/live-common 34.37.0-next.0 → 34.37.0-next.2
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/lib/__tests__/test-helpers/bridge.d.ts.map +1 -1
- package/lib/__tests__/test-helpers/bridge.js +4 -0
- package/lib/__tests__/test-helpers/bridge.js.map +1 -1
- package/lib/bridge/impl.d.ts.map +1 -1
- package/lib/bridge/impl.js +3 -40
- package/lib/bridge/impl.js.map +1 -1
- package/lib/config/index.d.ts +2 -3
- package/lib/config/index.d.ts.map +1 -1
- package/lib/config/index.js +1 -9
- package/lib/config/index.js.map +1 -1
- package/lib/config/sharedConfig.d.ts.map +1 -1
- package/lib/config/sharedConfig.js +0 -7
- package/lib/config/sharedConfig.js.map +1 -1
- package/lib/hw/connectAppEventMapper.d.ts.map +1 -1
- package/lib/hw/connectAppEventMapper.js +4 -4
- package/lib/hw/connectAppEventMapper.js.map +1 -1
- package/lib-es/__tests__/test-helpers/bridge.d.ts.map +1 -1
- package/lib-es/__tests__/test-helpers/bridge.js +4 -0
- package/lib-es/__tests__/test-helpers/bridge.js.map +1 -1
- package/lib-es/bridge/impl.d.ts.map +1 -1
- package/lib-es/bridge/impl.js +3 -40
- package/lib-es/bridge/impl.js.map +1 -1
- package/lib-es/config/index.d.ts +2 -3
- package/lib-es/config/index.d.ts.map +1 -1
- package/lib-es/config/index.js +1 -8
- package/lib-es/config/index.js.map +1 -1
- package/lib-es/config/sharedConfig.d.ts.map +1 -1
- package/lib-es/config/sharedConfig.js +0 -7
- package/lib-es/config/sharedConfig.js.map +1 -1
- package/lib-es/hw/connectAppEventMapper.d.ts.map +1 -1
- package/lib-es/hw/connectAppEventMapper.js +5 -5
- package/lib-es/hw/connectAppEventMapper.js.map +1 -1
- package/package.json +9 -9
- package/src/__tests__/test-helpers/bridge.ts +4 -1
- package/src/bridge/impl.ts +5 -64
- package/src/config/index.ts +2 -11
- package/src/config/sharedConfig.ts +0 -8
- package/src/hw/connectAppEventMapper.ts +4 -4
- package/lib/sanction/errors.d.ts +0 -13
- package/lib/sanction/errors.d.ts.map +0 -1
- package/lib/sanction/errors.js +0 -36
- package/lib/sanction/errors.js.map +0 -1
- package/lib/sanction/index.d.ts +0 -3
- package/lib/sanction/index.d.ts.map +0 -1
- package/lib/sanction/index.js +0 -51
- package/lib/sanction/index.js.map +0 -1
- package/lib-es/sanction/errors.d.ts +0 -13
- package/lib-es/sanction/errors.d.ts.map +0 -1
- package/lib-es/sanction/errors.js +0 -29
- package/lib-es/sanction/errors.js.map +0 -1
- package/lib-es/sanction/index.d.ts +0 -3
- package/lib-es/sanction/index.d.ts.map +0 -1
- package/lib-es/sanction/index.js +0 -44
- package/lib-es/sanction/index.js.map +0 -1
- package/src/sanction/errors.ts +0 -31
- package/src/sanction/index.ts +0 -59
package/lib-es/config/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { CryptoCurrency, CryptoCurrencyId } from "@ledgerhq/types-cryptoassets";
|
2
2
|
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";
|
3
|
-
import { CurrencyConfig
|
3
|
+
import { CurrencyConfig } from "@ledgerhq/coin-framework/config";
|
4
4
|
export type CurrencyLiveConfigDefinition = Partial<Record<`config_currency_${CryptoCurrencyId}`, ConfigInfo>>;
|
5
|
-
declare const getSharedConfiguration: () => SharedConfig;
|
6
5
|
declare const getCurrencyConfiguration: <T extends CurrencyConfig>(currency: CryptoCurrency) => T & Record<string, unknown>;
|
7
|
-
export { getCurrencyConfiguration
|
6
|
+
export { getCurrencyConfiguration };
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAc,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAc,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAChD,MAAM,CAAC,mBAAmB,gBAAgB,EAAE,EAAE,UAAU,CAAC,CAC1D,CAAC;AAEF,QAAA,MAAM,wBAAwB,uCAClB,cAAc,gCAQzB,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
package/lib-es/config/index.js
CHANGED
@@ -1,11 +1,4 @@
|
|
1
1
|
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
2
|
-
const getSharedConfiguration = () => {
|
3
|
-
const config = LiveConfig.getValueByKey("config_currency");
|
4
|
-
if (!config) {
|
5
|
-
throw new Error("Configuration config_currency not found, please check Firebase Remote Config");
|
6
|
-
}
|
7
|
-
return config;
|
8
|
-
};
|
9
2
|
const getCurrencyConfiguration = (currency) => {
|
10
3
|
const currencyData = LiveConfig.getValueByKey(`config_currency_${currency.id}`);
|
11
4
|
if (!currencyData) {
|
@@ -13,5 +6,5 @@ const getCurrencyConfiguration = (currency) => {
|
|
13
6
|
}
|
14
7
|
return currencyData;
|
15
8
|
};
|
16
|
-
export { getCurrencyConfiguration
|
9
|
+
export { getCurrencyConfiguration };
|
17
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAO1E,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAO1E,MAAM,wBAAwB,GAAG,CAC/B,QAAwB,EACK,EAAE;IAC/B,MAAM,YAAY,GAAG,UAAU,CAAC,aAAa,CAAC,mBAAmB,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;IAChF,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,2CAA2C,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;KAC3E;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sharedConfig.d.ts","sourceRoot":"","sources":["../../src/config/sharedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
1
|
+
{"version":3,"file":"sharedConfig.d.ts","sourceRoot":"","sources":["../../src/config/sharedConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AA0ChE,eAAO,MAAM,UAAU,EAAE,YA2BxB,CAAC"}
|
@@ -33,12 +33,6 @@ const countervaluesConfig = {
|
|
33
33
|
default: 20,
|
34
34
|
},
|
35
35
|
};
|
36
|
-
const sharedCurrencyConfig = {
|
37
|
-
config_currency: {
|
38
|
-
type: "object",
|
39
|
-
default: {},
|
40
|
-
},
|
41
|
-
};
|
42
36
|
const liveCommonConfig = {
|
43
37
|
...appConfig,
|
44
38
|
};
|
@@ -69,6 +63,5 @@ export const liveConfig = {
|
|
69
63
|
...iconConfig,
|
70
64
|
...tonConfig,
|
71
65
|
...suiConfig,
|
72
|
-
...sharedCurrencyConfig,
|
73
66
|
};
|
74
67
|
//# sourceMappingURL=sharedConfig.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sharedConfig.js","sourceRoot":"","sources":["../../src/config/sharedConfig.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d.ts","sourceRoot":"","sources":["../../src/hw/connectAppEventMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiC,MAAM,MAAM,CAAC;AAEjE,OAAO,KAAK,EACV,mBAAmB,EAGnB,6BAA6B,EAI9B,MAAM,iCAAiC,CAAC;AAWzC,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AAWnC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,qBAAqB;IAQ9B,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IAVhB,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,mBAAmB,CAAkB;IAC7C,OAAO,CAAC,kBAAkB,CAAkB;IAC5C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,YAAY,CAAkC;gBAG5C,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,6BAA6B,CAC3C,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,CAC9B;IAGH,GAAG,IAAI,UAAU,CAAC,eAAe,CAAC;IAqClC,OAAO,CAAC,iBAAiB;
|
1
|
+
{"version":3,"file":"connectAppEventMapper.d.ts","sourceRoot":"","sources":["../../src/hw/connectAppEventMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAiC,MAAM,MAAM,CAAC;AAEjE,OAAO,KAAK,EACV,mBAAmB,EAGnB,6BAA6B,EAI9B,MAAM,iCAAiC,CAAC;AAWzC,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,EAC9B,MAAM,2BAA2B,CAAC;AAWnC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,qBAAqB;IAQ9B,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IAVhB,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,mBAAmB,CAAkB;IAC7C,OAAO,CAAC,kBAAkB,CAAkB;IAC5C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,YAAY,CAAkC;gBAG5C,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,6BAA6B,CAC3C,kBAAkB,EAClB,iBAAiB,EACjB,6BAA6B,CAC9B;IAGH,GAAG,IAAI,UAAU,CAAC,eAAe,CAAC;IAqClC,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,WAAW;IAqBnB,OAAO,CAAC,kBAAkB;IAoC1B,OAAO,CAAC,iBAAiB;IAyCzB,OAAO,CAAC,oBAAoB;IAuB5B,OAAO,CAAC,gBAAgB;IAsCxB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,iBAAiB;CAmD1B"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Observable, Subject, of, share, takeUntil } from "rxjs";
|
2
2
|
import { catchError, tap, withLatestFrom } from "rxjs/operators";
|
3
|
-
import { DeviceActionStatus, DeviceLockedError, DeviceSessionStateType,
|
3
|
+
import { DeviceActionStatus, DeviceDisconnectedWhileSendingError, DeviceLockedError, DeviceSessionStateType, UserInteractionRequired, OutOfMemoryDAError, SecureChannelError, UnsupportedFirmwareDAError, } from "@ledgerhq/device-management-kit";
|
4
4
|
import { UserRefusedAllowManager, UserRefusedOnDevice, LatestFirmwareVersionRequired, } from "@ledgerhq/errors";
|
5
5
|
import { SkipReason } from "../apps/types";
|
6
6
|
import { parseDeviceInfo } from "../deviceSDK/tasks/getDeviceInfo";
|
@@ -48,10 +48,7 @@ export class ConnectAppEventMapper {
|
|
48
48
|
if (deviceState.sessionStateType === DeviceSessionStateType.Connected) {
|
49
49
|
return;
|
50
50
|
}
|
51
|
-
if (deviceState.
|
52
|
-
this.eventSubject.next({ type: "disconnected", expected: false });
|
53
|
-
}
|
54
|
-
else if (deviceState.firmwareVersion?.metadata &&
|
51
|
+
if (deviceState.firmwareVersion?.metadata &&
|
55
52
|
deviceState.firmwareUpdateContext &&
|
56
53
|
!this.lastSeenDeviceSent) {
|
57
54
|
this.lastSeenDeviceSent = true;
|
@@ -193,6 +190,9 @@ export class ConnectAppEventMapper {
|
|
193
190
|
else if (error instanceof SecureChannelError) {
|
194
191
|
this.eventSubject.error(new UserRefusedAllowManager());
|
195
192
|
}
|
193
|
+
else if (error instanceof DeviceDisconnectedWhileSendingError) {
|
194
|
+
this.eventSubject.next({ type: "disconnected", expected: false });
|
195
|
+
}
|
196
196
|
else if ("_tag" in error && error._tag === "WebHidSendReportError") {
|
197
197
|
this.eventSubject.next({ type: "disconnected", expected: false });
|
198
198
|
this.eventSubject.complete();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connectAppEventMapper.js","sourceRoot":"","sources":["../../src/hw/connectAppEventMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUjE,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,
|
1
|
+
{"version":3,"file":"connectAppEventMapper.js","sourceRoot":"","sources":["../../src/hw/connectAppEventMapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,GA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;gBAC7B,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE;gBACpB,8BAA8B,EAAE,GAAG,CAAC,iBAAiB;gBACrD,sDAAsD;gBACtD,WAAW,EAAE,SAAS;gBACtB,YAAY,EAAE,SAAS;gBACvB,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,EAAE;gBACR,aAAa,EAAE,EAAE;gBACjB,kBAAkB,EAAE,EAAE;gBACtB,eAAe,EAAE,EAAE;gBACnB,SAAS,EAAE,EAAE;gBACb,kCAAkC,EAAE,EAAE;aACvC;YACD,KAAK,EAAE;gBACL,EAAE,EAAE,KAAK,CAAC,EAAE;gBACZ,IAAI,EAAE,KAAK,CAAC,OAAO;gBACnB,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE;gBAC9B,YAAY,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE;gBACrC,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE;gBACtB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;gBACvB,YAAY,EAAE,KAAK,CAAC,WAAW;gBAC/B,sDAAsD;gBACtD,WAAW,EAAE,SAAS;gBACtB,YAAY,EAAE,SAAS;gBACvB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,CAAC;gBACd,aAAa,EAAE,EAAE;gBACjB,kBAAkB,EAAE,EAAE;gBACtB,eAAe,EAAE,EAAE;gBACnB,oBAAoB,EAAE,EAAE;gBACxB,YAAY,EAAE,EAAE;gBAChB,SAAS,EAAE,EAAE;aACd;YACD,cAAc,EAAE,eAAe,CAAC,iBAAiB;SAClD,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ledgerhq/live-common",
|
3
3
|
"description": "Common ground for the Ledger Live apps",
|
4
|
-
"version": "34.37.0-next.
|
4
|
+
"version": "34.37.0-next.2",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "https://github.com/LedgerHQ/ledger-live.git"
|
@@ -106,7 +106,7 @@
|
|
106
106
|
"@dfinity/agent": "^0.21.0",
|
107
107
|
"@dfinity/candid": "^0.21.0",
|
108
108
|
"@dfinity/principal": "^0.15.6",
|
109
|
-
"@ledgerhq/device-management-kit": "0.0.0-connect-app-
|
109
|
+
"@ledgerhq/device-management-kit": "0.0.0-connect-app-20250609094118",
|
110
110
|
"@ledgerhq/live-app-sdk": "^0.8.1",
|
111
111
|
"@ledgerhq/wallet-api-client": "^1.9.0",
|
112
112
|
"@ledgerhq/wallet-api-core": "^1.21.0",
|
@@ -175,8 +175,8 @@
|
|
175
175
|
"@ledgerhq/coin-hedera": "^1.7.1-next.0",
|
176
176
|
"@ledgerhq/coin-icon": "^0.10.9-next.0",
|
177
177
|
"@ledgerhq/coin-internet_computer": "^1.7.9-next.0",
|
178
|
-
"@ledgerhq/coin-mina": "^1.1.8-next.0",
|
179
178
|
"@ledgerhq/coin-multiversx": "^0.4.9-next.0",
|
179
|
+
"@ledgerhq/coin-mina": "^1.1.8-next.0",
|
180
180
|
"@ledgerhq/coin-near": "^0.11.9-next.0",
|
181
181
|
"@ledgerhq/coin-polkadot": "^6.2.0-next.0",
|
182
182
|
"@ledgerhq/coin-solana": "^0.25.1-next.0",
|
@@ -197,7 +197,6 @@
|
|
197
197
|
"@ledgerhq/hw-app-aptos": "^6.34.2",
|
198
198
|
"@ledgerhq/hw-app-btc": "^10.9.2",
|
199
199
|
"@ledgerhq/hw-app-celo": "^6.33.5-next.0",
|
200
|
-
"@ledgerhq/hw-app-cosmos": "^6.32.2",
|
201
200
|
"@ledgerhq/hw-app-eth": "^6.45.7-next.0",
|
202
201
|
"@ledgerhq/hw-app-exchange": "^0.10.2",
|
203
202
|
"@ledgerhq/hw-app-hedera": "^1.2.2",
|
@@ -210,14 +209,14 @@
|
|
210
209
|
"@ledgerhq/hw-app-tezos": "^6.31.2",
|
211
210
|
"@ledgerhq/hw-app-trx": "^6.31.2",
|
212
211
|
"@ledgerhq/hw-app-vet": "^0.5.6-next.0",
|
212
|
+
"@ledgerhq/hw-app-cosmos": "^6.32.2",
|
213
213
|
"@ledgerhq/hw-app-xrp": "^6.32.0-next.0",
|
214
|
-
"@ledgerhq/hw-transport": "^6.31.6",
|
215
214
|
"@ledgerhq/hw-transport-mocker": "^6.29.6",
|
216
215
|
"@ledgerhq/ledger-cal-service": "^0.5.1-next.0",
|
217
216
|
"@ledgerhq/live-config": "^3.1.0",
|
218
|
-
"@ledgerhq/live-countervalues": "^0.5.9-next.0",
|
219
217
|
"@ledgerhq/live-dmk-shared": "^0.9.0",
|
220
218
|
"@ledgerhq/live-countervalues-react": "^0.2.38-next.0",
|
219
|
+
"@ledgerhq/live-countervalues": "^0.5.9-next.0",
|
221
220
|
"@ledgerhq/live-env": "^2.10.0-next.0",
|
222
221
|
"@ledgerhq/live-hooks": "0.1.0",
|
223
222
|
"@ledgerhq/live-network": "^2.0.10-next.0",
|
@@ -226,10 +225,11 @@
|
|
226
225
|
"@ledgerhq/live-signer-evm": "^0.5.2-next.0",
|
227
226
|
"@ledgerhq/live-signer-solana": "^0.2.1-next.0",
|
228
227
|
"@ledgerhq/live-wallet": "^0.11.0-next.0",
|
229
|
-
"@ledgerhq/logs": "^6.13.0",
|
230
228
|
"@ledgerhq/speculos-transport": "^0.2.3-next.0",
|
229
|
+
"@ledgerhq/hw-transport": "^6.31.6",
|
231
230
|
"@ledgerhq/wallet-api-acre-module": "^0.5.0",
|
232
|
-
"@ledgerhq/wallet-api-exchange-module": "^0.13.0"
|
231
|
+
"@ledgerhq/wallet-api-exchange-module": "^0.13.0",
|
232
|
+
"@ledgerhq/logs": "^6.13.0"
|
233
233
|
},
|
234
234
|
"devDependencies": {
|
235
235
|
"@solana/web3.js": "1.95.4",
|
@@ -277,9 +277,9 @@
|
|
277
277
|
"undici": "6.19.2",
|
278
278
|
"uuid": "^8.3.2",
|
279
279
|
"ws": "7",
|
280
|
-
"@ledgerhq/device-react": "^0.2.33-next.0",
|
281
280
|
"@ledgerhq/types-cryptoassets": "^7.23.0",
|
282
281
|
"@ledgerhq/types-devices": "^6.25.3",
|
282
|
+
"@ledgerhq/device-react": "^0.2.33-next.0",
|
283
283
|
"@ledgerhq/types-live": "^6.73.0-next.0"
|
284
284
|
},
|
285
285
|
"scripts": {
|
@@ -382,7 +382,10 @@ export function testBridge<T extends TransactionCommon>(data: DatasetTest<T>): v
|
|
382
382
|
});
|
383
383
|
}
|
384
384
|
}
|
385
|
-
|
385
|
+
makeTest("bridge ref equality", async () => {
|
386
|
+
const account = await getSynced();
|
387
|
+
expect(bridge).toBe(getAccountBridge(account, null)); // Original strict equality check
|
388
|
+
});
|
386
389
|
makeTest("account have no NaN values", async () => {
|
387
390
|
const account = await getSynced();
|
388
391
|
[account, ...(account.subAccounts || [])].forEach(a => {
|
package/src/bridge/impl.ts
CHANGED
@@ -1,22 +1,13 @@
|
|
1
|
-
import { isAddressSanctioned } from "../sanction";
|
2
1
|
import { CurrencyNotSupported } from "@ledgerhq/errors";
|
3
|
-
import { getEnv } from "@ledgerhq/live-env";
|
4
|
-
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
|
5
|
-
import {
|
6
|
-
Account,
|
7
|
-
AccountBridge,
|
8
|
-
AccountLike,
|
9
|
-
CurrencyBridge,
|
10
|
-
TransactionStatusCommon,
|
11
|
-
} from "@ledgerhq/types-live";
|
12
2
|
import { decodeAccountId, getMainAccount } from "../account";
|
3
|
+
import { getEnv } from "@ledgerhq/live-env";
|
13
4
|
import { checkAccountSupported } from "../account/index";
|
14
5
|
import jsBridges from "../generated/bridge/js";
|
15
6
|
import mockBridges from "../generated/bridge/mock";
|
16
|
-
import {
|
7
|
+
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
|
8
|
+
import { Account, AccountBridge, AccountLike, CurrencyBridge } from "@ledgerhq/types-live";
|
17
9
|
import { getAlpacaCurrencyBridge } from "./generic-alpaca/currencyBridge";
|
18
10
|
import { getAlpacaAccountBridge } from "./generic-alpaca/accountBridge";
|
19
|
-
import { TransactionCommon } from "@ledgerhq/types-live";
|
20
11
|
|
21
12
|
const alpacaized = {
|
22
13
|
xrp: true,
|
@@ -91,57 +82,7 @@ export function getAccountBridgeByFamily(family: string, accountId?: string): Ac
|
|
91
82
|
|
92
83
|
const jsBridge = jsBridges[family];
|
93
84
|
if (!jsBridge) {
|
94
|
-
throw new CurrencyNotSupported("account
|
95
|
-
}
|
96
|
-
return wrapAccountBridge(jsBridge.accountBridge);
|
97
|
-
}
|
98
|
-
|
99
|
-
function wrapAccountBridge<T extends TransactionCommon>(
|
100
|
-
bridge: AccountBridge<T>,
|
101
|
-
): AccountBridge<T> {
|
102
|
-
return {
|
103
|
-
...bridge,
|
104
|
-
getTransactionStatus: async (...args) => {
|
105
|
-
const blockchainSpecific = await bridge.getTransactionStatus(...args);
|
106
|
-
const common = await commonGetTransactionStatus(...args);
|
107
|
-
const merged = mergeResults(blockchainSpecific, common);
|
108
|
-
return merged;
|
109
|
-
},
|
110
|
-
};
|
111
|
-
}
|
112
|
-
|
113
|
-
function mergeResults(
|
114
|
-
blockchainSpecific: TransactionStatusCommon,
|
115
|
-
common: Partial<TransactionStatusCommon>,
|
116
|
-
): TransactionStatusCommon {
|
117
|
-
const errors = { ...blockchainSpecific.errors, ...common.errors };
|
118
|
-
const warnings = { ...blockchainSpecific.warnings, ...common.warnings };
|
119
|
-
return { ...blockchainSpecific, errors, warnings };
|
120
|
-
}
|
121
|
-
|
122
|
-
async function commonGetTransactionStatus(
|
123
|
-
account: Account,
|
124
|
-
transaction: TransactionCommon,
|
125
|
-
): Promise<Partial<TransactionStatusCommon>> {
|
126
|
-
const errors: Record<string, Error> = {};
|
127
|
-
const warnings: Record<string, Error> = {};
|
128
|
-
|
129
|
-
let recipientIsBlacklisted = false;
|
130
|
-
if (transaction.recipient && transaction.recipient !== "") {
|
131
|
-
recipientIsBlacklisted = await isAddressSanctioned(account.currency, transaction.recipient);
|
132
|
-
if (recipientIsBlacklisted) {
|
133
|
-
errors.recipient = new RecipientAddressSanctionedError();
|
134
|
-
}
|
85
|
+
throw new CurrencyNotSupported("account bridge not found " + family);
|
135
86
|
}
|
136
|
-
|
137
|
-
const userIsBlacklisted = await isAddressSanctioned(account.currency, account.freshAddress);
|
138
|
-
if (userIsBlacklisted) {
|
139
|
-
errors.amount = new UserAddressSanctionedError();
|
140
|
-
}
|
141
|
-
|
142
|
-
if (userIsBlacklisted || recipientIsBlacklisted) {
|
143
|
-
// Send log
|
144
|
-
}
|
145
|
-
|
146
|
-
return { errors, warnings };
|
87
|
+
return jsBridge.accountBridge;
|
147
88
|
}
|
package/src/config/index.ts
CHANGED
@@ -1,20 +1,11 @@
|
|
1
1
|
import { CryptoCurrency, CryptoCurrencyId } from "@ledgerhq/types-cryptoassets";
|
2
2
|
import { ConfigInfo, LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
3
|
-
import { CurrencyConfig
|
3
|
+
import { CurrencyConfig } from "@ledgerhq/coin-framework/config";
|
4
4
|
|
5
5
|
export type CurrencyLiveConfigDefinition = Partial<
|
6
6
|
Record<`config_currency_${CryptoCurrencyId}`, ConfigInfo>
|
7
7
|
>;
|
8
8
|
|
9
|
-
const getSharedConfiguration = (): SharedConfig => {
|
10
|
-
const config = LiveConfig.getValueByKey("config_currency");
|
11
|
-
if (!config) {
|
12
|
-
throw new Error("Configuration config_currency not found, please check Firebase Remote Config");
|
13
|
-
}
|
14
|
-
|
15
|
-
return config;
|
16
|
-
};
|
17
|
-
|
18
9
|
const getCurrencyConfiguration = <T extends CurrencyConfig>(
|
19
10
|
currency: CryptoCurrency,
|
20
11
|
): T & Record<string, unknown> => {
|
@@ -26,4 +17,4 @@ const getCurrencyConfiguration = <T extends CurrencyConfig>(
|
|
26
17
|
return currencyData;
|
27
18
|
};
|
28
19
|
|
29
|
-
export { getCurrencyConfiguration
|
20
|
+
export { getCurrencyConfiguration };
|
@@ -36,13 +36,6 @@ const countervaluesConfig: ConfigSchema = {
|
|
36
36
|
},
|
37
37
|
};
|
38
38
|
|
39
|
-
const sharedCurrencyConfig: ConfigSchema = {
|
40
|
-
config_currency: {
|
41
|
-
type: "object",
|
42
|
-
default: {},
|
43
|
-
},
|
44
|
-
};
|
45
|
-
|
46
39
|
const liveCommonConfig: ConfigSchema = {
|
47
40
|
...appConfig,
|
48
41
|
};
|
@@ -74,5 +67,4 @@ export const liveConfig: ConfigSchema = {
|
|
74
67
|
...iconConfig,
|
75
68
|
...tonConfig,
|
76
69
|
...suiConfig,
|
77
|
-
...sharedCurrencyConfig,
|
78
70
|
};
|
@@ -11,9 +11,9 @@ import type {
|
|
11
11
|
} from "@ledgerhq/device-management-kit";
|
12
12
|
import {
|
13
13
|
DeviceActionStatus,
|
14
|
+
DeviceDisconnectedWhileSendingError,
|
14
15
|
DeviceLockedError,
|
15
16
|
DeviceSessionStateType,
|
16
|
-
DeviceStatus,
|
17
17
|
UserInteractionRequired,
|
18
18
|
OutOfMemoryDAError,
|
19
19
|
SecureChannelError,
|
@@ -96,9 +96,7 @@ export class ConnectAppEventMapper {
|
|
96
96
|
return;
|
97
97
|
}
|
98
98
|
|
99
|
-
if (
|
100
|
-
this.eventSubject.next({ type: "disconnected", expected: false });
|
101
|
-
} else if (
|
99
|
+
if (
|
102
100
|
deviceState.firmwareVersion?.metadata &&
|
103
101
|
deviceState.firmwareUpdateContext &&
|
104
102
|
!this.lastSeenDeviceSent
|
@@ -259,6 +257,8 @@ export class ConnectAppEventMapper {
|
|
259
257
|
this.eventSubject.complete();
|
260
258
|
} else if (error instanceof SecureChannelError) {
|
261
259
|
this.eventSubject.error(new UserRefusedAllowManager());
|
260
|
+
} else if (error instanceof DeviceDisconnectedWhileSendingError) {
|
261
|
+
this.eventSubject.next({ type: "disconnected", expected: false });
|
262
262
|
} else if ("_tag" in error && error._tag === "WebHidSendReportError") {
|
263
263
|
this.eventSubject.next({ type: "disconnected", expected: false });
|
264
264
|
this.eventSubject.complete();
|
package/lib/sanction/errors.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
export declare class UserAddressSanctionedError extends Error {
|
2
|
-
constructor();
|
3
|
-
}
|
4
|
-
export declare class UserAddressSanctionedForSendError extends Error {
|
5
|
-
constructor();
|
6
|
-
}
|
7
|
-
export declare class UserAddressSanctionedForStakingError extends Error {
|
8
|
-
constructor();
|
9
|
-
}
|
10
|
-
export declare class RecipientAddressSanctionedError extends Error {
|
11
|
-
constructor();
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/sanction/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,0BAA2B,SAAQ,KAAK;;CAMpD;AAED,qBAAa,iCAAkC,SAAQ,KAAK;;CAM3D;AAED,qBAAa,oCAAqC,SAAQ,KAAK;;CAM9D;AAED,qBAAa,+BAAgC,SAAQ,KAAK;;CAMzD"}
|
package/lib/sanction/errors.js
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RecipientAddressSanctionedError = exports.UserAddressSanctionedForStakingError = exports.UserAddressSanctionedForSendError = exports.UserAddressSanctionedError = void 0;
|
4
|
-
class UserAddressSanctionedError extends Error {
|
5
|
-
constructor() {
|
6
|
-
super();
|
7
|
-
this.message = this.constructor.name;
|
8
|
-
this.name = this.constructor.name;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
exports.UserAddressSanctionedError = UserAddressSanctionedError;
|
12
|
-
class UserAddressSanctionedForSendError extends Error {
|
13
|
-
constructor() {
|
14
|
-
super();
|
15
|
-
this.message = this.constructor.name;
|
16
|
-
this.name = this.constructor.name;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
exports.UserAddressSanctionedForSendError = UserAddressSanctionedForSendError;
|
20
|
-
class UserAddressSanctionedForStakingError extends Error {
|
21
|
-
constructor() {
|
22
|
-
super();
|
23
|
-
this.message = this.constructor.name;
|
24
|
-
this.name = this.constructor.name;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
exports.UserAddressSanctionedForStakingError = UserAddressSanctionedForStakingError;
|
28
|
-
class RecipientAddressSanctionedError extends Error {
|
29
|
-
constructor() {
|
30
|
-
super();
|
31
|
-
this.message = this.constructor.name;
|
32
|
-
this.name = this.constructor.name;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
exports.RecipientAddressSanctionedError = RecipientAddressSanctionedError;
|
36
|
-
//# sourceMappingURL=errors.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/sanction/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,0BAA2B,SAAQ,KAAK;IACnD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,gEAMC;AAED,MAAa,iCAAkC,SAAQ,KAAK;IAC1D;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,8EAMC;AAED,MAAa,oCAAqC,SAAQ,KAAK;IAC7D;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,oFAMC;AAED,MAAa,+BAAgC,SAAQ,KAAK;IACxD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,0EAMC"}
|
package/lib/sanction/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sanction/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
|
package/lib/sanction/index.js
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.isAddressSanctioned = void 0;
|
7
|
-
const LiveConfig_1 = require("@ledgerhq/live-config/LiveConfig");
|
8
|
-
const axios_1 = __importDefault(require("axios"));
|
9
|
-
const cache_1 = require("@ledgerhq/live-network/cache");
|
10
|
-
const config_1 = require("../config");
|
11
|
-
const cache = (0, cache_1.makeLRUCache)(fetchSanctionedAddresses, () => "all_sanctioned_addresses", (0, cache_1.hours)(12));
|
12
|
-
async function fetchSanctionedAddresses() {
|
13
|
-
const { data } = await axios_1.default.get("https://ofac-compliance.pages.dev/all_sanctioned_addresses.json");
|
14
|
-
return data;
|
15
|
-
}
|
16
|
-
async function isAddressSanctioned(currency, address) {
|
17
|
-
if (!isCheckBlacklistAddressEnabled(currency)) {
|
18
|
-
return false;
|
19
|
-
}
|
20
|
-
// Only for testing, should be deleted after
|
21
|
-
const temporarySanctionedAddresses = LiveConfig_1.LiveConfig.getValueByKey(`tmp_sanctioned_addresses`);
|
22
|
-
const data = await cache();
|
23
|
-
const addresses = data[currency.ticker] || [];
|
24
|
-
if (temporarySanctionedAddresses) {
|
25
|
-
return addresses.concat(temporarySanctionedAddresses).includes(address);
|
26
|
-
}
|
27
|
-
return addresses.includes(address);
|
28
|
-
}
|
29
|
-
exports.isAddressSanctioned = isAddressSanctioned;
|
30
|
-
function isCheckBlacklistAddressEnabled(currency) {
|
31
|
-
const currencyConfig = tryGetCurrencyConfig(currency);
|
32
|
-
if (currencyConfig && "checkBlacklistAddress" in currencyConfig) {
|
33
|
-
return currencyConfig.checkBlacklistAddress === true;
|
34
|
-
}
|
35
|
-
else {
|
36
|
-
const sharedConfiguration = (0, config_1.getSharedConfiguration)();
|
37
|
-
if ("checkBlacklistAddress" in sharedConfiguration) {
|
38
|
-
return sharedConfiguration.checkBlacklistAddress === true;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
return false;
|
42
|
-
}
|
43
|
-
function tryGetCurrencyConfig(currency) {
|
44
|
-
try {
|
45
|
-
return (0, config_1.getCurrencyConfiguration)(currency);
|
46
|
-
}
|
47
|
-
catch (error) {
|
48
|
-
return undefined;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sanction/index.ts"],"names":[],"mappings":";;;;;;AAAA,iEAA8D;AAC9D,kDAA0B;AAC1B,wDAAmE;AAEnE,sCAA6E;AAG7E,MAAM,KAAK,GAAG,IAAA,oBAAY,EAAC,wBAAwB,EAAE,GAAG,EAAE,CAAC,0BAA0B,EAAE,IAAA,aAAK,EAAC,EAAE,CAAC,CAAC,CAAC;AAElG,KAAK,UAAU,wBAAwB;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CAC9B,iEAAiE,CAClE,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC;AAEM,KAAK,UAAU,mBAAmB,CACvC,QAAwB,EACxB,OAAe;IAEf,IAAI,CAAC,8BAA8B,CAAC,QAAQ,CAAC,EAAE;QAC7C,OAAO,KAAK,CAAC;KACd;IAED,4CAA4C;IAC5C,MAAM,4BAA4B,GAChC,uBAAU,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;IAEvD,MAAM,IAAI,GAA6B,MAAM,KAAK,EAAE,CAAC;IACrD,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;IAE9C,IAAI,4BAA4B,EAAE;QAChC,OAAO,SAAS,CAAC,MAAM,CAAC,4BAA4B,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;KACzE;IAED,OAAO,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AApBD,kDAoBC;AAED,SAAS,8BAA8B,CAAC,QAAwB;IAC9D,MAAM,cAAc,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACtD,IAAI,cAAc,IAAI,uBAAuB,IAAI,cAAc,EAAE;QAC/D,OAAO,cAAc,CAAC,qBAAqB,KAAK,IAAI,CAAC;KACtD;SAAM;QACL,MAAM,mBAAmB,GAAG,IAAA,+BAAsB,GAAE,CAAC;QACrD,IAAI,uBAAuB,IAAI,mBAAmB,EAAE;YAClD,OAAO,mBAAmB,CAAC,qBAAqB,KAAK,IAAI,CAAC;SAC3D;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,oBAAoB,CAAC,QAAwB;IACpD,IAAI;QACF,OAAO,IAAA,iCAAwB,EAAC,QAAQ,CAAC,CAAC;KAC3C;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,SAAS,CAAC;KAClB;AACH,CAAC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
export declare class UserAddressSanctionedError extends Error {
|
2
|
-
constructor();
|
3
|
-
}
|
4
|
-
export declare class UserAddressSanctionedForSendError extends Error {
|
5
|
-
constructor();
|
6
|
-
}
|
7
|
-
export declare class UserAddressSanctionedForStakingError extends Error {
|
8
|
-
constructor();
|
9
|
-
}
|
10
|
-
export declare class RecipientAddressSanctionedError extends Error {
|
11
|
-
constructor();
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/sanction/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,0BAA2B,SAAQ,KAAK;;CAMpD;AAED,qBAAa,iCAAkC,SAAQ,KAAK;;CAM3D;AAED,qBAAa,oCAAqC,SAAQ,KAAK;;CAM9D;AAED,qBAAa,+BAAgC,SAAQ,KAAK;;CAMzD"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
export class UserAddressSanctionedError extends Error {
|
2
|
-
constructor() {
|
3
|
-
super();
|
4
|
-
this.message = this.constructor.name;
|
5
|
-
this.name = this.constructor.name;
|
6
|
-
}
|
7
|
-
}
|
8
|
-
export class UserAddressSanctionedForSendError extends Error {
|
9
|
-
constructor() {
|
10
|
-
super();
|
11
|
-
this.message = this.constructor.name;
|
12
|
-
this.name = this.constructor.name;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
export class UserAddressSanctionedForStakingError extends Error {
|
16
|
-
constructor() {
|
17
|
-
super();
|
18
|
-
this.message = this.constructor.name;
|
19
|
-
this.name = this.constructor.name;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
export class RecipientAddressSanctionedError extends Error {
|
23
|
-
constructor() {
|
24
|
-
super();
|
25
|
-
this.message = this.constructor.name;
|
26
|
-
this.name = this.constructor.name;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
//# sourceMappingURL=errors.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/sanction/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IACnD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IAC1D;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,oCAAqC,SAAQ,KAAK;IAC7D;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,+BAAgC,SAAQ,KAAK;IACxD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sanction/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,CAiBlB"}
|