@liquidium/client 0.8.0 → 0.8.1

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
@@ -1503,7 +1503,9 @@ var flexibleSimpleLoansIdlFactory = ({ IDL }) => {
1503
1503
  InvalidEthAddress: IDL.Null,
1504
1504
  CouldNotDecode: IDL.Text,
1505
1505
  ProfileNotFound: IDL.Null,
1506
- InvalidBtcSignature: IDL.Null
1506
+ InvalidBtcSignature: IDL.Null,
1507
+ AnonymousIcpCaller: IDL.Null,
1508
+ InvalidIcpSubaccount: IDL.Null
1507
1509
  });
1508
1510
  const ProtocolError = IDL.Variant({
1509
1511
  PositionNotFound: IDL.Null,
@@ -1623,6 +1625,11 @@ var flexibleSimpleLoansIdlFactory = ({ IDL }) => {
1623
1625
  eth_address: IDL.Text,
1624
1626
  lending_profile: IDL.Principal
1625
1627
  }),
1628
+ IcpProfileWarmed: IDL.Record({
1629
+ subaccount: IDL.Vec(IDL.Nat8),
1630
+ warmed_profile_id: IDL.Nat,
1631
+ lending_profile: IDL.Principal
1632
+ }),
1626
1633
  RepayComplete: CreateLoanResponse,
1627
1634
  DepositTimerStarted: IDL.Record({
1628
1635
  loan_id: IDL.Nat,
@@ -1640,6 +1647,9 @@ var flexibleSimpleLoansIdlFactory = ({ IDL }) => {
1640
1647
  derivation_index: IDL.Vec(IDL.Nat8),
1641
1648
  pubkey: IDL.Vec(IDL.Nat8),
1642
1649
  address: IDL.Text
1650
+ }),
1651
+ IcpCaller: IDL.Record({
1652
+ subaccount: IDL.Vec(IDL.Nat8)
1643
1653
  })
1644
1654
  });
1645
1655
  const Loan = IDL.Record({
@@ -7513,6 +7523,15 @@ function mapSimpleLoanEventType(eventType) {
7513
7523
  profileId: event.lending_profile.toText()
7514
7524
  };
7515
7525
  }
7526
+ if ("IcpProfileWarmed" in eventType) {
7527
+ const event = eventType.IcpProfileWarmed;
7528
+ return {
7529
+ type: "IcpProfileWarmed",
7530
+ subaccount: event.subaccount,
7531
+ warmedProfileId: event.warmed_profile_id,
7532
+ profileId: event.lending_profile.toText()
7533
+ };
7534
+ }
7516
7535
  if ("RepayComplete" in eventType) {
7517
7536
  return {
7518
7537
  type: "RepayComplete",
@@ -7535,6 +7554,12 @@ function mapWarmedProfile(profile) {
7535
7554
  };
7536
7555
  }
7537
7556
  function authorizationFromCanister(authorization) {
7557
+ if ("IcpCaller" in authorization) {
7558
+ return {
7559
+ type: "IcpCaller",
7560
+ subaccount: authorization.IcpCaller.subaccount
7561
+ };
7562
+ }
7538
7563
  return {
7539
7564
  type: "EthSignature",
7540
7565
  derivationIndex: authorization.EthSignature.derivation_index,