@liquidium/client 0.8.1 → 0.8.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/dist/index.cjs +26 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -350,7 +350,14 @@ var idlFactory = ({ IDL }) => {
|
|
|
350
350
|
"chain": Chains,
|
|
351
351
|
"account": IDL.Text
|
|
352
352
|
});
|
|
353
|
-
const
|
|
353
|
+
const IcpCallerAuth = IDL.Record({
|
|
354
|
+
"principal": IDL.Principal,
|
|
355
|
+
"subaccount": IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
356
|
+
});
|
|
357
|
+
const SignatureScheme = IDL.Variant({
|
|
358
|
+
"Wallet": SignatureInfo,
|
|
359
|
+
"IcpCaller": IcpCallerAuth
|
|
360
|
+
});
|
|
354
361
|
const AddAccountRequest = IDL.Record({
|
|
355
362
|
"target_principal": IDL.Principal,
|
|
356
363
|
"chain": WalletType,
|
|
@@ -363,12 +370,15 @@ var idlFactory = ({ IDL }) => {
|
|
|
363
370
|
});
|
|
364
371
|
const SignatureVerificationError = IDL.Variant({
|
|
365
372
|
"InvalidEthSignature": IDL.Null,
|
|
373
|
+
"IcpCallerMismatch": IDL.Null,
|
|
366
374
|
"UnsupportedChain": IDL.Null,
|
|
367
375
|
"InvalidSolSignature": IDL.Null,
|
|
368
376
|
"InvalidEthAddress": IDL.Null,
|
|
369
377
|
"CouldNotDecode": IDL.Text,
|
|
370
378
|
"ProfileNotFound": IDL.Null,
|
|
371
|
-
"InvalidBtcSignature": IDL.Null
|
|
379
|
+
"InvalidBtcSignature": IDL.Null,
|
|
380
|
+
"AnonymousIcpCaller": IDL.Null,
|
|
381
|
+
"InvalidIcpSubaccount": IDL.Null
|
|
372
382
|
});
|
|
373
383
|
const ProtocolError = IDL.Variant({
|
|
374
384
|
"PositionNotFound": IDL.Null,
|
|
@@ -936,6 +946,18 @@ var LENDING_CANISTER_SIGNATURE_VERIFICATION_ERROR_MAP = {
|
|
|
936
946
|
InvalidBtcSignature: { code: LiquidiumErrorCode.INVALID_BTC_SIGNATURE },
|
|
937
947
|
InvalidEthAddress: { code: LiquidiumErrorCode.INVALID_ETH_ADDRESS },
|
|
938
948
|
UnsupportedChain: { code: LiquidiumErrorCode.UNSUPPORTED_CHAIN },
|
|
949
|
+
AnonymousIcpCaller: {
|
|
950
|
+
code: LiquidiumErrorCode.SIGNATURE_ERROR,
|
|
951
|
+
fallbackMessage: "Anonymous ICP caller"
|
|
952
|
+
},
|
|
953
|
+
InvalidIcpSubaccount: {
|
|
954
|
+
code: LiquidiumErrorCode.SIGNATURE_ERROR,
|
|
955
|
+
fallbackMessage: "Invalid ICP subaccount"
|
|
956
|
+
},
|
|
957
|
+
IcpCallerMismatch: {
|
|
958
|
+
code: LiquidiumErrorCode.SIGNATURE_ERROR,
|
|
959
|
+
fallbackMessage: "ICP caller mismatch"
|
|
960
|
+
},
|
|
939
961
|
ProfileNotFound: { code: LiquidiumErrorCode.PROFILE_NOT_FOUND },
|
|
940
962
|
CouldNotDecode: {
|
|
941
963
|
code: LiquidiumErrorCode.SIGNATURE_ERROR,
|
|
@@ -1503,7 +1525,8 @@ var flexibleSimpleLoansIdlFactory = ({ IDL }) => {
|
|
|
1503
1525
|
ProfileNotFound: IDL.Null,
|
|
1504
1526
|
InvalidBtcSignature: IDL.Null,
|
|
1505
1527
|
AnonymousIcpCaller: IDL.Null,
|
|
1506
|
-
InvalidIcpSubaccount: IDL.Null
|
|
1528
|
+
InvalidIcpSubaccount: IDL.Null,
|
|
1529
|
+
IcpCallerMismatch: IDL.Null
|
|
1507
1530
|
});
|
|
1508
1531
|
const ProtocolError = IDL.Variant({
|
|
1509
1532
|
PositionNotFound: IDL.Null,
|