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