@qubic.org/contracts 0.2.0 → 0.2.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.
Files changed (108) hide show
  1. package/dist/__generated__/computorcontrolledfund.d.ts +30 -30
  2. package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -1
  3. package/dist/__generated__/computorcontrolledfund.js +57 -57
  4. package/dist/__generated__/computorcontrolledfund.js.map +1 -1
  5. package/dist/__generated__/escrow.d.ts +13 -13
  6. package/dist/__generated__/escrow.d.ts.map +1 -1
  7. package/dist/__generated__/escrow.js +20 -20
  8. package/dist/__generated__/escrow.js.map +1 -1
  9. package/dist/__generated__/generalquorumproposal.d.ts +21 -21
  10. package/dist/__generated__/generalquorumproposal.d.ts.map +1 -1
  11. package/dist/__generated__/generalquorumproposal.js +31 -31
  12. package/dist/__generated__/generalquorumproposal.js.map +1 -1
  13. package/dist/__generated__/msvault.d.ts +104 -104
  14. package/dist/__generated__/msvault.d.ts.map +1 -1
  15. package/dist/__generated__/msvault.js +220 -220
  16. package/dist/__generated__/msvault.js.map +1 -1
  17. package/dist/__generated__/nostromo.d.ts +43 -43
  18. package/dist/__generated__/nostromo.d.ts.map +1 -1
  19. package/dist/__generated__/nostromo.js +68 -68
  20. package/dist/__generated__/nostromo.js.map +1 -1
  21. package/dist/__generated__/pulse.d.ts +171 -171
  22. package/dist/__generated__/pulse.d.ts.map +1 -1
  23. package/dist/__generated__/pulse.js +409 -409
  24. package/dist/__generated__/pulse.js.map +1 -1
  25. package/dist/__generated__/qbay.d.ts +61 -61
  26. package/dist/__generated__/qbay.d.ts.map +1 -1
  27. package/dist/__generated__/qbay.js +103 -103
  28. package/dist/__generated__/qbay.js.map +1 -1
  29. package/dist/__generated__/qbond.d.ts +44 -44
  30. package/dist/__generated__/qbond.d.ts.map +1 -1
  31. package/dist/__generated__/qbond.js +67 -67
  32. package/dist/__generated__/qbond.js.map +1 -1
  33. package/dist/__generated__/qdraw.d.ts +4 -4
  34. package/dist/__generated__/qdraw.d.ts.map +1 -1
  35. package/dist/__generated__/qdraw.js +4 -4
  36. package/dist/__generated__/qdraw.js.map +1 -1
  37. package/dist/__generated__/qduel.d.ts +49 -49
  38. package/dist/__generated__/qduel.d.ts.map +1 -1
  39. package/dist/__generated__/qduel.js +106 -106
  40. package/dist/__generated__/qduel.js.map +1 -1
  41. package/dist/__generated__/qearn.d.ts +24 -24
  42. package/dist/__generated__/qearn.d.ts.map +1 -1
  43. package/dist/__generated__/qearn.js +38 -38
  44. package/dist/__generated__/qearn.js.map +1 -1
  45. package/dist/__generated__/qip.d.ts +10 -10
  46. package/dist/__generated__/qip.d.ts.map +1 -1
  47. package/dist/__generated__/qip.js +16 -16
  48. package/dist/__generated__/qip.js.map +1 -1
  49. package/dist/__generated__/qraffle.d.ts +51 -51
  50. package/dist/__generated__/qraffle.d.ts.map +1 -1
  51. package/dist/__generated__/qraffle.js +108 -108
  52. package/dist/__generated__/qraffle.js.map +1 -1
  53. package/dist/__generated__/qreservepool.d.ts +14 -14
  54. package/dist/__generated__/qreservepool.d.ts.map +1 -1
  55. package/dist/__generated__/qreservepool.js +22 -22
  56. package/dist/__generated__/qreservepool.js.map +1 -1
  57. package/dist/__generated__/qrwa.d.ts +71 -71
  58. package/dist/__generated__/qrwa.d.ts.map +1 -1
  59. package/dist/__generated__/qrwa.js +174 -174
  60. package/dist/__generated__/qrwa.js.map +1 -1
  61. package/dist/__generated__/qswap.d.ts +79 -79
  62. package/dist/__generated__/qswap.d.ts.map +1 -1
  63. package/dist/__generated__/qswap.js +158 -158
  64. package/dist/__generated__/qswap.js.map +1 -1
  65. package/dist/__generated__/qthirtyfour.d.ts +78 -78
  66. package/dist/__generated__/qthirtyfour.d.ts.map +1 -1
  67. package/dist/__generated__/qthirtyfour.js +161 -161
  68. package/dist/__generated__/qthirtyfour.js.map +1 -1
  69. package/dist/__generated__/quottery.d.ts +124 -124
  70. package/dist/__generated__/quottery.d.ts.map +1 -1
  71. package/dist/__generated__/quottery.js +266 -266
  72. package/dist/__generated__/quottery.js.map +1 -1
  73. package/dist/__generated__/qusino.d.ts +44 -44
  74. package/dist/__generated__/qusino.d.ts.map +1 -1
  75. package/dist/__generated__/qusino.js +88 -88
  76. package/dist/__generated__/qusino.js.map +1 -1
  77. package/dist/__generated__/qutil.d.ts +108 -108
  78. package/dist/__generated__/qutil.d.ts.map +1 -1
  79. package/dist/__generated__/qutil.js +231 -231
  80. package/dist/__generated__/qutil.js.map +1 -1
  81. package/dist/__generated__/qvault.d.ts +90 -90
  82. package/dist/__generated__/qvault.d.ts.map +1 -1
  83. package/dist/__generated__/qvault.js +146 -146
  84. package/dist/__generated__/qvault.js.map +1 -1
  85. package/dist/__generated__/qx.d.ts +36 -36
  86. package/dist/__generated__/qx.d.ts.map +1 -1
  87. package/dist/__generated__/qx.js +54 -54
  88. package/dist/__generated__/qx.js.map +1 -1
  89. package/dist/__generated__/random.d.ts +2 -1
  90. package/dist/__generated__/random.d.ts.map +1 -1
  91. package/dist/__generated__/random.js +2 -2
  92. package/dist/__generated__/random.js.map +1 -1
  93. package/dist/__generated__/randomlottery.d.ts +28 -28
  94. package/dist/__generated__/randomlottery.d.ts.map +1 -1
  95. package/dist/__generated__/randomlottery.js +41 -41
  96. package/dist/__generated__/randomlottery.js.map +1 -1
  97. package/dist/__generated__/vottunbridge.d.ts +77 -77
  98. package/dist/__generated__/vottunbridge.d.ts.map +1 -1
  99. package/dist/__generated__/vottunbridge.js +181 -181
  100. package/dist/__generated__/vottunbridge.js.map +1 -1
  101. package/dist/call-contract.d.ts +9 -3
  102. package/dist/call-contract.d.ts.map +1 -1
  103. package/dist/call-contract.js +21 -22
  104. package/dist/call-contract.js.map +1 -1
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.d.ts.map +1 -1
  107. package/dist/index.js.map +1 -1
  108. package/package.json +7 -10
@@ -528,7 +528,7 @@ const STRUCTS = {
528
528
  ],
529
529
  },
530
530
  };
531
- export const QVAULT_STAKE_INPUT_TYPE = 2;
531
+ export const QVAULT_STAKE_INPUT_TYPE = 1;
532
532
  const QVAULT_STAKE_INPUT_FIELDS = [
533
533
  {
534
534
  name: 'amount',
@@ -537,8 +537,8 @@ const QVAULT_STAKE_INPUT_FIELDS = [
537
537
  byteLength: 4,
538
538
  },
539
539
  ];
540
- export function buildQVAULTStakeInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
541
- return buildPayload(QVAULT_STAKE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
540
+ export function buildQVAULTStakeInput(input) {
541
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_STAKE_INPUT_TYPE, payload: buildPayload(QVAULT_STAKE_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
542
542
  }
543
543
  const QVAULT_STAKE_OUTPUT_FIELDS = [
544
544
  {
@@ -548,10 +548,10 @@ const QVAULT_STAKE_OUTPUT_FIELDS = [
548
548
  byteLength: 4,
549
549
  },
550
550
  ];
551
- export function decodeQVAULTStakeOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
552
- return decodePayload(data, QVAULT_STAKE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
551
+ export function decodeQVAULTStakeOutput(data) {
552
+ return decodePayload(data, QVAULT_STAKE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
553
553
  }
554
- export const QVAULT_UN_STAKE_INPUT_TYPE = 3;
554
+ export const QVAULT_UN_STAKE_INPUT_TYPE = 2;
555
555
  const QVAULT_UN_STAKE_INPUT_FIELDS = [
556
556
  {
557
557
  name: 'amount',
@@ -560,8 +560,8 @@ const QVAULT_UN_STAKE_INPUT_FIELDS = [
560
560
  byteLength: 4,
561
561
  },
562
562
  ];
563
- export function buildQVAULTUnStakeInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
564
- return buildPayload(QVAULT_UN_STAKE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
563
+ export function buildQVAULTUnStakeInput(input) {
564
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_UN_STAKE_INPUT_TYPE, payload: buildPayload(QVAULT_UN_STAKE_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
565
565
  }
566
566
  const QVAULT_UN_STAKE_OUTPUT_FIELDS = [
567
567
  {
@@ -571,10 +571,10 @@ const QVAULT_UN_STAKE_OUTPUT_FIELDS = [
571
571
  byteLength: 4,
572
572
  },
573
573
  ];
574
- export function decodeQVAULTUnStakeOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
575
- return decodePayload(data, QVAULT_UN_STAKE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
574
+ export function decodeQVAULTUnStakeOutput(data) {
575
+ return decodePayload(data, QVAULT_UN_STAKE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
576
576
  }
577
- export const QVAULT_SUBMIT_GP_INPUT_TYPE = 4;
577
+ export const QVAULT_SUBMIT_GP_INPUT_TYPE = 3;
578
578
  const QVAULT_SUBMIT_GP_INPUT_FIELDS = [
579
579
  {
580
580
  name: 'url',
@@ -586,8 +586,8 @@ const QVAULT_SUBMIT_GP_INPUT_FIELDS = [
586
586
  arrayItemByteLength: 1,
587
587
  },
588
588
  ];
589
- export function buildQVAULTSubmitGPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
590
- return buildPayload(QVAULT_SUBMIT_GP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
589
+ export function buildQVAULTSubmitGPInput(input) {
590
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_GP_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_GP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
591
591
  }
592
592
  const QVAULT_SUBMIT_GP_OUTPUT_FIELDS = [
593
593
  {
@@ -597,10 +597,10 @@ const QVAULT_SUBMIT_GP_OUTPUT_FIELDS = [
597
597
  byteLength: 4,
598
598
  },
599
599
  ];
600
- export function decodeQVAULTSubmitGPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
601
- return decodePayload(data, QVAULT_SUBMIT_GP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
600
+ export function decodeQVAULTSubmitGPOutput(data) {
601
+ return decodePayload(data, QVAULT_SUBMIT_GP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
602
602
  }
603
- export const QVAULT_SUBMIT_QCP_INPUT_TYPE = 5;
603
+ export const QVAULT_SUBMIT_QCP_INPUT_TYPE = 4;
604
604
  const QVAULT_SUBMIT_QCP_INPUT_FIELDS = [
605
605
  {
606
606
  name: 'newQuorumPercent',
@@ -618,8 +618,8 @@ const QVAULT_SUBMIT_QCP_INPUT_FIELDS = [
618
618
  arrayItemByteLength: 1,
619
619
  },
620
620
  ];
621
- export function buildQVAULTSubmitQCPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
622
- return buildPayload(QVAULT_SUBMIT_QCP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
621
+ export function buildQVAULTSubmitQCPInput(input) {
622
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_QCP_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_QCP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
623
623
  }
624
624
  const QVAULT_SUBMIT_QCP_OUTPUT_FIELDS = [
625
625
  {
@@ -629,10 +629,10 @@ const QVAULT_SUBMIT_QCP_OUTPUT_FIELDS = [
629
629
  byteLength: 4,
630
630
  },
631
631
  ];
632
- export function decodeQVAULTSubmitQCPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
633
- return decodePayload(data, QVAULT_SUBMIT_QCP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
632
+ export function decodeQVAULTSubmitQCPOutput(data) {
633
+ return decodePayload(data, QVAULT_SUBMIT_QCP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
634
634
  }
635
- export const QVAULT_SUBMIT_IPOP_INPUT_TYPE = 6;
635
+ export const QVAULT_SUBMIT_IPOP_INPUT_TYPE = 5;
636
636
  const QVAULT_SUBMIT_IPOP_INPUT_FIELDS = [
637
637
  {
638
638
  name: 'ipoContractIndex',
@@ -650,8 +650,8 @@ const QVAULT_SUBMIT_IPOP_INPUT_FIELDS = [
650
650
  arrayItemByteLength: 1,
651
651
  },
652
652
  ];
653
- export function buildQVAULTSubmitIPOPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
654
- return buildPayload(QVAULT_SUBMIT_IPOP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
653
+ export function buildQVAULTSubmitIPOPInput(input) {
654
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_IPOP_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_IPOP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
655
655
  }
656
656
  const QVAULT_SUBMIT_IPOP_OUTPUT_FIELDS = [
657
657
  {
@@ -661,10 +661,10 @@ const QVAULT_SUBMIT_IPOP_OUTPUT_FIELDS = [
661
661
  byteLength: 4,
662
662
  },
663
663
  ];
664
- export function decodeQVAULTSubmitIPOPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
665
- return decodePayload(data, QVAULT_SUBMIT_IPOP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
664
+ export function decodeQVAULTSubmitIPOPOutput(data) {
665
+ return decodePayload(data, QVAULT_SUBMIT_IPOP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
666
666
  }
667
- export const QVAULT_SUBMIT_Q_EARN_P_INPUT_TYPE = 7;
667
+ export const QVAULT_SUBMIT_Q_EARN_P_INPUT_TYPE = 6;
668
668
  const QVAULT_SUBMIT_Q_EARN_P_INPUT_FIELDS = [
669
669
  {
670
670
  name: 'amountPerEpoch',
@@ -688,8 +688,8 @@ const QVAULT_SUBMIT_Q_EARN_P_INPUT_FIELDS = [
688
688
  arrayItemByteLength: 1,
689
689
  },
690
690
  ];
691
- export function buildQVAULTSubmitQEarnPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
692
- return buildPayload(QVAULT_SUBMIT_Q_EARN_P_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
691
+ export function buildQVAULTSubmitQEarnPInput(input) {
692
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_Q_EARN_P_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_Q_EARN_P_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
693
693
  }
694
694
  const QVAULT_SUBMIT_Q_EARN_P_OUTPUT_FIELDS = [
695
695
  {
@@ -699,10 +699,10 @@ const QVAULT_SUBMIT_Q_EARN_P_OUTPUT_FIELDS = [
699
699
  byteLength: 4,
700
700
  },
701
701
  ];
702
- export function decodeQVAULTSubmitQEarnPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
703
- return decodePayload(data, QVAULT_SUBMIT_Q_EARN_P_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
702
+ export function decodeQVAULTSubmitQEarnPOutput(data) {
703
+ return decodePayload(data, QVAULT_SUBMIT_Q_EARN_P_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
704
704
  }
705
- export const QVAULT_SUBMIT_FUND_P_INPUT_TYPE = 8;
705
+ export const QVAULT_SUBMIT_FUND_P_INPUT_TYPE = 7;
706
706
  const QVAULT_SUBMIT_FUND_P_INPUT_FIELDS = [
707
707
  {
708
708
  name: 'priceOfOneQcap',
@@ -726,8 +726,8 @@ const QVAULT_SUBMIT_FUND_P_INPUT_FIELDS = [
726
726
  arrayItemByteLength: 1,
727
727
  },
728
728
  ];
729
- export function buildQVAULTSubmitFundPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
730
- return buildPayload(QVAULT_SUBMIT_FUND_P_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
729
+ export function buildQVAULTSubmitFundPInput(input) {
730
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_FUND_P_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_FUND_P_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
731
731
  }
732
732
  const QVAULT_SUBMIT_FUND_P_OUTPUT_FIELDS = [
733
733
  {
@@ -737,10 +737,10 @@ const QVAULT_SUBMIT_FUND_P_OUTPUT_FIELDS = [
737
737
  byteLength: 4,
738
738
  },
739
739
  ];
740
- export function decodeQVAULTSubmitFundPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
741
- return decodePayload(data, QVAULT_SUBMIT_FUND_P_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
740
+ export function decodeQVAULTSubmitFundPOutput(data) {
741
+ return decodePayload(data, QVAULT_SUBMIT_FUND_P_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
742
742
  }
743
- export const QVAULT_SUBMIT_MKTP_INPUT_TYPE = 9;
743
+ export const QVAULT_SUBMIT_MKTP_INPUT_TYPE = 8;
744
744
  const QVAULT_SUBMIT_MKTP_INPUT_FIELDS = [
745
745
  {
746
746
  name: 'amountOfQubic',
@@ -782,8 +782,8 @@ const QVAULT_SUBMIT_MKTP_INPUT_FIELDS = [
782
782
  arrayItemByteLength: 1,
783
783
  },
784
784
  ];
785
- export function buildQVAULTSubmitMKTPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
786
- return buildPayload(QVAULT_SUBMIT_MKTP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
785
+ export function buildQVAULTSubmitMKTPInput(input) {
786
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_MKTP_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_MKTP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
787
787
  }
788
788
  const QVAULT_SUBMIT_MKTP_OUTPUT_FIELDS = [
789
789
  {
@@ -793,10 +793,10 @@ const QVAULT_SUBMIT_MKTP_OUTPUT_FIELDS = [
793
793
  byteLength: 4,
794
794
  },
795
795
  ];
796
- export function decodeQVAULTSubmitMKTPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
797
- return decodePayload(data, QVAULT_SUBMIT_MKTP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
796
+ export function decodeQVAULTSubmitMKTPOutput(data) {
797
+ return decodePayload(data, QVAULT_SUBMIT_MKTP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
798
798
  }
799
- export const QVAULT_SUBMIT_ALLO_P_INPUT_TYPE = 10;
799
+ export const QVAULT_SUBMIT_ALLO_P_INPUT_TYPE = 9;
800
800
  const QVAULT_SUBMIT_ALLO_P_INPUT_FIELDS = [
801
801
  {
802
802
  name: 'reinvested',
@@ -826,8 +826,8 @@ const QVAULT_SUBMIT_ALLO_P_INPUT_FIELDS = [
826
826
  arrayItemByteLength: 1,
827
827
  },
828
828
  ];
829
- export function buildQVAULTSubmitAlloPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
830
- return buildPayload(QVAULT_SUBMIT_ALLO_P_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
829
+ export function buildQVAULTSubmitAlloPInput(input) {
830
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_SUBMIT_ALLO_P_INPUT_TYPE, payload: buildPayload(QVAULT_SUBMIT_ALLO_P_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
831
831
  }
832
832
  const QVAULT_SUBMIT_ALLO_P_OUTPUT_FIELDS = [
833
833
  {
@@ -837,8 +837,8 @@ const QVAULT_SUBMIT_ALLO_P_OUTPUT_FIELDS = [
837
837
  byteLength: 4,
838
838
  },
839
839
  ];
840
- export function decodeQVAULTSubmitAlloPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
841
- return decodePayload(data, QVAULT_SUBMIT_ALLO_P_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
840
+ export function decodeQVAULTSubmitAlloPOutput(data) {
841
+ return decodePayload(data, QVAULT_SUBMIT_ALLO_P_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
842
842
  }
843
843
  export const QVAULT_VOTE_IN_PROPOSAL_INPUT_TYPE = 11;
844
844
  const QVAULT_VOTE_IN_PROPOSAL_INPUT_FIELDS = [
@@ -867,8 +867,8 @@ const QVAULT_VOTE_IN_PROPOSAL_INPUT_FIELDS = [
867
867
  byteLength: 1,
868
868
  },
869
869
  ];
870
- export function buildQVAULTVoteInProposalInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
871
- return buildPayload(QVAULT_VOTE_IN_PROPOSAL_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
870
+ export function buildQVAULTVoteInProposalInput(input) {
871
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_VOTE_IN_PROPOSAL_INPUT_TYPE, payload: buildPayload(QVAULT_VOTE_IN_PROPOSAL_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
872
872
  }
873
873
  const QVAULT_VOTE_IN_PROPOSAL_OUTPUT_FIELDS = [
874
874
  {
@@ -878,8 +878,8 @@ const QVAULT_VOTE_IN_PROPOSAL_OUTPUT_FIELDS = [
878
878
  byteLength: 4,
879
879
  },
880
880
  ];
881
- export function decodeQVAULTVoteInProposalOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
882
- return decodePayload(data, QVAULT_VOTE_IN_PROPOSAL_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
881
+ export function decodeQVAULTVoteInProposalOutput(data) {
882
+ return decodePayload(data, QVAULT_VOTE_IN_PROPOSAL_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
883
883
  }
884
884
  export const QVAULT_BUY_QCAP_INPUT_TYPE = 12;
885
885
  const QVAULT_BUY_QCAP_INPUT_FIELDS = [
@@ -890,8 +890,8 @@ const QVAULT_BUY_QCAP_INPUT_FIELDS = [
890
890
  byteLength: 4,
891
891
  },
892
892
  ];
893
- export function buildQVAULTBuyQcapInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
894
- return buildPayload(QVAULT_BUY_QCAP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
893
+ export function buildQVAULTBuyQcapInput(input) {
894
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_BUY_QCAP_INPUT_TYPE, payload: buildPayload(QVAULT_BUY_QCAP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
895
895
  }
896
896
  const QVAULT_BUY_QCAP_OUTPUT_FIELDS = [
897
897
  {
@@ -901,8 +901,8 @@ const QVAULT_BUY_QCAP_OUTPUT_FIELDS = [
901
901
  byteLength: 4,
902
902
  },
903
903
  ];
904
- export function decodeQVAULTBuyQcapOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
905
- return decodePayload(data, QVAULT_BUY_QCAP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
904
+ export function decodeQVAULTBuyQcapOutput(data) {
905
+ return decodePayload(data, QVAULT_BUY_QCAP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
906
906
  }
907
907
  export const QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_TYPE = 13;
908
908
  const QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS = [
@@ -926,8 +926,8 @@ const QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS = [
926
926
  byteLength: 4,
927
927
  },
928
928
  ];
929
- export function buildQVAULTTransferShareManagementRightsInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
930
- return buildPayload(QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
929
+ export function buildQVAULTTransferShareManagementRightsInput(input) {
930
+ return { contractIndex: QVAULT_CONTRACT_INDEX, inputType: QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_TYPE, payload: buildPayload(QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32)) };
931
931
  }
932
932
  const QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_OUTPUT_FIELDS = [
933
933
  {
@@ -943,8 +943,8 @@ const QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_OUTPUT_FIELDS = [
943
943
  byteLength: 4,
944
944
  },
945
945
  ];
946
- export function decodeQVAULTTransferShareManagementRightsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
947
- return decodePayload(data, QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
946
+ export function decodeQVAULTTransferShareManagementRightsOutput(data) {
947
+ return decodePayload(data, QVAULT_TRANSFER_SHARE_MANAGEMENT_RIGHTS_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
948
948
  }
949
949
  export const QVAULT_GET_DATA_INPUT_TYPE = 1;
950
950
  export const QVAULT_GET_DATA_INPUT_SIZE = 0;
@@ -1142,8 +1142,8 @@ const QVAULT_GET_DATA_OUTPUT_FIELDS = [
1142
1142
  byteLength: 4,
1143
1143
  },
1144
1144
  ];
1145
- export function decodeQVAULTGetDataOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1146
- return decodePayload(data, QVAULT_GET_DATA_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1145
+ export function decodeQVAULTGetDataOutput(data) {
1146
+ return decodePayload(data, QVAULT_GET_DATA_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1147
1147
  }
1148
1148
  export async function qVAULTGetData(live, options) {
1149
1149
  return callContractFunction({
@@ -1158,7 +1158,7 @@ export async function qVAULTGetData(live, options) {
1158
1158
  ...options,
1159
1159
  });
1160
1160
  }
1161
- export const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_INPUT_TYPE = 14;
1161
+ export const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_INPUT_TYPE = 2;
1162
1162
  export const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_INPUT_SIZE = 32;
1163
1163
  const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_INPUT_FIELDS = [
1164
1164
  {
@@ -1168,7 +1168,7 @@ const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_INPUT_FIELDS = [
1168
1168
  byteLength: 32,
1169
1169
  },
1170
1170
  ];
1171
- export function buildQVAULTGetStakedAmountAndVotingPowerInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1171
+ export function buildQVAULTGetStakedAmountAndVotingPowerInput(input, identityToPublicKey) {
1172
1172
  return buildPayload(QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1173
1173
  }
1174
1174
  const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_OUTPUT_FIELDS = [
@@ -1191,8 +1191,8 @@ const QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_OUTPUT_FIELDS = [
1191
1191
  byteLength: 4,
1192
1192
  },
1193
1193
  ];
1194
- export function decodeQVAULTGetStakedAmountAndVotingPowerOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1195
- return decodePayload(data, QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1194
+ export function decodeQVAULTGetStakedAmountAndVotingPowerOutput(data) {
1195
+ return decodePayload(data, QVAULT_GET_STAKED_AMOUNT_AND_VOTING_POWER_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1196
1196
  }
1197
1197
  export async function qVAULTGetStakedAmountAndVotingPower(live, input, options) {
1198
1198
  return callContractFunction({
@@ -1207,7 +1207,7 @@ export async function qVAULTGetStakedAmountAndVotingPower(live, input, options)
1207
1207
  ...options,
1208
1208
  });
1209
1209
  }
1210
- export const QVAULT_GET_GP_INPUT_TYPE = 15;
1210
+ export const QVAULT_GET_GP_INPUT_TYPE = 3;
1211
1211
  export const QVAULT_GET_GP_INPUT_SIZE = 4;
1212
1212
  const QVAULT_GET_GP_INPUT_FIELDS = [
1213
1213
  {
@@ -1217,8 +1217,8 @@ const QVAULT_GET_GP_INPUT_FIELDS = [
1217
1217
  byteLength: 4,
1218
1218
  },
1219
1219
  ];
1220
- export function buildQVAULTGetGPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1221
- return buildPayload(QVAULT_GET_GP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1220
+ export function buildQVAULTGetGPInput(input) {
1221
+ return buildPayload(QVAULT_GET_GP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1222
1222
  }
1223
1223
  const QVAULT_GET_GP_OUTPUT_FIELDS = [
1224
1224
  {
@@ -1235,8 +1235,8 @@ const QVAULT_GET_GP_OUTPUT_FIELDS = [
1235
1235
  structRef: 'GPInfo',
1236
1236
  },
1237
1237
  ];
1238
- export function decodeQVAULTGetGPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1239
- return decodePayload(data, QVAULT_GET_GP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1238
+ export function decodeQVAULTGetGPOutput(data) {
1239
+ return decodePayload(data, QVAULT_GET_GP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1240
1240
  }
1241
1241
  export async function qVAULTGetGP(live, input, options) {
1242
1242
  return callContractFunction({
@@ -1251,7 +1251,7 @@ export async function qVAULTGetGP(live, input, options) {
1251
1251
  ...options,
1252
1252
  });
1253
1253
  }
1254
- export const QVAULT_GET_QCP_INPUT_TYPE = 16;
1254
+ export const QVAULT_GET_QCP_INPUT_TYPE = 4;
1255
1255
  export const QVAULT_GET_QCP_INPUT_SIZE = 4;
1256
1256
  const QVAULT_GET_QCP_INPUT_FIELDS = [
1257
1257
  {
@@ -1261,8 +1261,8 @@ const QVAULT_GET_QCP_INPUT_FIELDS = [
1261
1261
  byteLength: 4,
1262
1262
  },
1263
1263
  ];
1264
- export function buildQVAULTGetQCPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1265
- return buildPayload(QVAULT_GET_QCP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1264
+ export function buildQVAULTGetQCPInput(input) {
1265
+ return buildPayload(QVAULT_GET_QCP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1266
1266
  }
1267
1267
  const QVAULT_GET_QCP_OUTPUT_FIELDS = [
1268
1268
  {
@@ -1279,8 +1279,8 @@ const QVAULT_GET_QCP_OUTPUT_FIELDS = [
1279
1279
  structRef: 'QCPInfo',
1280
1280
  },
1281
1281
  ];
1282
- export function decodeQVAULTGetQCPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1283
- return decodePayload(data, QVAULT_GET_QCP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1282
+ export function decodeQVAULTGetQCPOutput(data) {
1283
+ return decodePayload(data, QVAULT_GET_QCP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1284
1284
  }
1285
1285
  export async function qVAULTGetQCP(live, input, options) {
1286
1286
  return callContractFunction({
@@ -1295,7 +1295,7 @@ export async function qVAULTGetQCP(live, input, options) {
1295
1295
  ...options,
1296
1296
  });
1297
1297
  }
1298
- export const QVAULT_GET_IPOP_INPUT_TYPE = 17;
1298
+ export const QVAULT_GET_IPOP_INPUT_TYPE = 5;
1299
1299
  export const QVAULT_GET_IPOP_INPUT_SIZE = 4;
1300
1300
  const QVAULT_GET_IPOP_INPUT_FIELDS = [
1301
1301
  {
@@ -1305,8 +1305,8 @@ const QVAULT_GET_IPOP_INPUT_FIELDS = [
1305
1305
  byteLength: 4,
1306
1306
  },
1307
1307
  ];
1308
- export function buildQVAULTGetIPOPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1309
- return buildPayload(QVAULT_GET_IPOP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1308
+ export function buildQVAULTGetIPOPInput(input) {
1309
+ return buildPayload(QVAULT_GET_IPOP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1310
1310
  }
1311
1311
  const QVAULT_GET_IPOP_OUTPUT_FIELDS = [
1312
1312
  {
@@ -1323,8 +1323,8 @@ const QVAULT_GET_IPOP_OUTPUT_FIELDS = [
1323
1323
  structRef: 'IPOPInfo',
1324
1324
  },
1325
1325
  ];
1326
- export function decodeQVAULTGetIPOPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1327
- return decodePayload(data, QVAULT_GET_IPOP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1326
+ export function decodeQVAULTGetIPOPOutput(data) {
1327
+ return decodePayload(data, QVAULT_GET_IPOP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1328
1328
  }
1329
1329
  export async function qVAULTGetIPOP(live, input, options) {
1330
1330
  return callContractFunction({
@@ -1339,7 +1339,7 @@ export async function qVAULTGetIPOP(live, input, options) {
1339
1339
  ...options,
1340
1340
  });
1341
1341
  }
1342
- export const QVAULT_GET_Q_EARN_P_INPUT_TYPE = 18;
1342
+ export const QVAULT_GET_Q_EARN_P_INPUT_TYPE = 6;
1343
1343
  export const QVAULT_GET_Q_EARN_P_INPUT_SIZE = 4;
1344
1344
  const QVAULT_GET_Q_EARN_P_INPUT_FIELDS = [
1345
1345
  {
@@ -1349,8 +1349,8 @@ const QVAULT_GET_Q_EARN_P_INPUT_FIELDS = [
1349
1349
  byteLength: 4,
1350
1350
  },
1351
1351
  ];
1352
- export function buildQVAULTGetQEarnPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1353
- return buildPayload(QVAULT_GET_Q_EARN_P_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1352
+ export function buildQVAULTGetQEarnPInput(input) {
1353
+ return buildPayload(QVAULT_GET_Q_EARN_P_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1354
1354
  }
1355
1355
  const QVAULT_GET_Q_EARN_P_OUTPUT_FIELDS = [
1356
1356
  {
@@ -1367,8 +1367,8 @@ const QVAULT_GET_Q_EARN_P_OUTPUT_FIELDS = [
1367
1367
  structRef: 'QEarnPInfo',
1368
1368
  },
1369
1369
  ];
1370
- export function decodeQVAULTGetQEarnPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1371
- return decodePayload(data, QVAULT_GET_Q_EARN_P_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1370
+ export function decodeQVAULTGetQEarnPOutput(data) {
1371
+ return decodePayload(data, QVAULT_GET_Q_EARN_P_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1372
1372
  }
1373
1373
  export async function qVAULTGetQEarnP(live, input, options) {
1374
1374
  return callContractFunction({
@@ -1383,7 +1383,7 @@ export async function qVAULTGetQEarnP(live, input, options) {
1383
1383
  ...options,
1384
1384
  });
1385
1385
  }
1386
- export const QVAULT_GET_FUND_P_INPUT_TYPE = 19;
1386
+ export const QVAULT_GET_FUND_P_INPUT_TYPE = 7;
1387
1387
  export const QVAULT_GET_FUND_P_INPUT_SIZE = 4;
1388
1388
  const QVAULT_GET_FUND_P_INPUT_FIELDS = [
1389
1389
  {
@@ -1393,8 +1393,8 @@ const QVAULT_GET_FUND_P_INPUT_FIELDS = [
1393
1393
  byteLength: 4,
1394
1394
  },
1395
1395
  ];
1396
- export function buildQVAULTGetFundPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1397
- return buildPayload(QVAULT_GET_FUND_P_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1396
+ export function buildQVAULTGetFundPInput(input) {
1397
+ return buildPayload(QVAULT_GET_FUND_P_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1398
1398
  }
1399
1399
  const QVAULT_GET_FUND_P_OUTPUT_FIELDS = [
1400
1400
  {
@@ -1411,8 +1411,8 @@ const QVAULT_GET_FUND_P_OUTPUT_FIELDS = [
1411
1411
  structRef: 'FundPInfo',
1412
1412
  },
1413
1413
  ];
1414
- export function decodeQVAULTGetFundPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1415
- return decodePayload(data, QVAULT_GET_FUND_P_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1414
+ export function decodeQVAULTGetFundPOutput(data) {
1415
+ return decodePayload(data, QVAULT_GET_FUND_P_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1416
1416
  }
1417
1417
  export async function qVAULTGetFundP(live, input, options) {
1418
1418
  return callContractFunction({
@@ -1427,7 +1427,7 @@ export async function qVAULTGetFundP(live, input, options) {
1427
1427
  ...options,
1428
1428
  });
1429
1429
  }
1430
- export const QVAULT_GET_MKTP_INPUT_TYPE = 20;
1430
+ export const QVAULT_GET_MKTP_INPUT_TYPE = 8;
1431
1431
  export const QVAULT_GET_MKTP_INPUT_SIZE = 4;
1432
1432
  const QVAULT_GET_MKTP_INPUT_FIELDS = [
1433
1433
  {
@@ -1437,8 +1437,8 @@ const QVAULT_GET_MKTP_INPUT_FIELDS = [
1437
1437
  byteLength: 4,
1438
1438
  },
1439
1439
  ];
1440
- export function buildQVAULTGetMKTPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1441
- return buildPayload(QVAULT_GET_MKTP_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1440
+ export function buildQVAULTGetMKTPInput(input) {
1441
+ return buildPayload(QVAULT_GET_MKTP_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1442
1442
  }
1443
1443
  const QVAULT_GET_MKTP_OUTPUT_FIELDS = [
1444
1444
  {
@@ -1455,8 +1455,8 @@ const QVAULT_GET_MKTP_OUTPUT_FIELDS = [
1455
1455
  structRef: 'MKTPInfo',
1456
1456
  },
1457
1457
  ];
1458
- export function decodeQVAULTGetMKTPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1459
- return decodePayload(data, QVAULT_GET_MKTP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1458
+ export function decodeQVAULTGetMKTPOutput(data) {
1459
+ return decodePayload(data, QVAULT_GET_MKTP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1460
1460
  }
1461
1461
  export async function qVAULTGetMKTP(live, input, options) {
1462
1462
  return callContractFunction({
@@ -1471,7 +1471,7 @@ export async function qVAULTGetMKTP(live, input, options) {
1471
1471
  ...options,
1472
1472
  });
1473
1473
  }
1474
- export const QVAULT_GET_ALLO_P_INPUT_TYPE = 21;
1474
+ export const QVAULT_GET_ALLO_P_INPUT_TYPE = 9;
1475
1475
  export const QVAULT_GET_ALLO_P_INPUT_SIZE = 4;
1476
1476
  const QVAULT_GET_ALLO_P_INPUT_FIELDS = [
1477
1477
  {
@@ -1481,8 +1481,8 @@ const QVAULT_GET_ALLO_P_INPUT_FIELDS = [
1481
1481
  byteLength: 4,
1482
1482
  },
1483
1483
  ];
1484
- export function buildQVAULTGetAlloPInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1485
- return buildPayload(QVAULT_GET_ALLO_P_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1484
+ export function buildQVAULTGetAlloPInput(input) {
1485
+ return buildPayload(QVAULT_GET_ALLO_P_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1486
1486
  }
1487
1487
  const QVAULT_GET_ALLO_P_OUTPUT_FIELDS = [
1488
1488
  {
@@ -1499,8 +1499,8 @@ const QVAULT_GET_ALLO_P_OUTPUT_FIELDS = [
1499
1499
  structRef: 'AlloPInfo',
1500
1500
  },
1501
1501
  ];
1502
- export function decodeQVAULTGetAlloPOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1503
- return decodePayload(data, QVAULT_GET_ALLO_P_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1502
+ export function decodeQVAULTGetAlloPOutput(data) {
1503
+ return decodePayload(data, QVAULT_GET_ALLO_P_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1504
1504
  }
1505
1505
  export async function qVAULTGetAlloP(live, input, options) {
1506
1506
  return callContractFunction({
@@ -1515,7 +1515,7 @@ export async function qVAULTGetAlloP(live, input, options) {
1515
1515
  ...options,
1516
1516
  });
1517
1517
  }
1518
- export const QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_TYPE = 22;
1518
+ export const QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_TYPE = 11;
1519
1519
  export const QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_SIZE = 8;
1520
1520
  const QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_FIELDS = [
1521
1521
  {
@@ -1531,8 +1531,8 @@ const QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_FIELDS = [
1531
1531
  byteLength: 4,
1532
1532
  },
1533
1533
  ];
1534
- export function buildQVAULTGetIdentitiesHvVtPwInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1535
- return buildPayload(QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1534
+ export function buildQVAULTGetIdentitiesHvVtPwInput(input) {
1535
+ return buildPayload(QVAULT_GET_IDENTITIES_HV_VT_PW_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1536
1536
  }
1537
1537
  const QVAULT_GET_IDENTITIES_HV_VT_PW_OUTPUT_FIELDS = [
1538
1538
  {
@@ -1560,7 +1560,7 @@ const QVAULT_GET_IDENTITIES_HV_VT_PW_OUTPUT_FIELDS = [
1560
1560
  arrayItemByteLength: 4,
1561
1561
  },
1562
1562
  ];
1563
- export function decodeQVAULTGetIdentitiesHvVtPwOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1563
+ export function decodeQVAULTGetIdentitiesHvVtPwOutput(data, publicKeyToIdentity) {
1564
1564
  return decodePayload(data, QVAULT_GET_IDENTITIES_HV_VT_PW_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1565
1565
  }
1566
1566
  export async function qVAULTGetIdentitiesHvVtPw(live, input, options) {
@@ -1576,7 +1576,7 @@ export async function qVAULTGetIdentitiesHvVtPw(live, input, options) {
1576
1576
  ...options,
1577
1577
  });
1578
1578
  }
1579
- export const QVAULT_PP_CREATION_POWER_INPUT_TYPE = 23;
1579
+ export const QVAULT_PP_CREATION_POWER_INPUT_TYPE = 12;
1580
1580
  export const QVAULT_PP_CREATION_POWER_INPUT_SIZE = 32;
1581
1581
  const QVAULT_PP_CREATION_POWER_INPUT_FIELDS = [
1582
1582
  {
@@ -1586,7 +1586,7 @@ const QVAULT_PP_CREATION_POWER_INPUT_FIELDS = [
1586
1586
  byteLength: 32,
1587
1587
  },
1588
1588
  ];
1589
- export function buildQVAULTPpCreationPowerInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1589
+ export function buildQVAULTPpCreationPowerInput(input, identityToPublicKey) {
1590
1590
  return buildPayload(QVAULT_PP_CREATION_POWER_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1591
1591
  }
1592
1592
  const QVAULT_PP_CREATION_POWER_OUTPUT_FIELDS = [
@@ -1603,8 +1603,8 @@ const QVAULT_PP_CREATION_POWER_OUTPUT_FIELDS = [
1603
1603
  byteLength: 1,
1604
1604
  },
1605
1605
  ];
1606
- export function decodeQVAULTPpCreationPowerOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1607
- return decodePayload(data, QVAULT_PP_CREATION_POWER_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1606
+ export function decodeQVAULTPpCreationPowerOutput(data) {
1607
+ return decodePayload(data, QVAULT_PP_CREATION_POWER_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1608
1608
  }
1609
1609
  export async function qVAULTPpCreationPower(live, input, options) {
1610
1610
  return callContractFunction({
@@ -1619,7 +1619,7 @@ export async function qVAULTPpCreationPower(live, input, options) {
1619
1619
  ...options,
1620
1620
  });
1621
1621
  }
1622
- export const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_TYPE = 24;
1622
+ export const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_TYPE = 13;
1623
1623
  export const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_SIZE = 4;
1624
1624
  const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_FIELDS = [
1625
1625
  {
@@ -1629,8 +1629,8 @@ const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_FIELDS = [
1629
1629
  byteLength: 4,
1630
1630
  },
1631
1631
  ];
1632
- export function buildQVAULTGetQcapBurntAmountInLastEpochesInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1633
- return buildPayload(QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1632
+ export function buildQVAULTGetQcapBurntAmountInLastEpochesInput(input) {
1633
+ return buildPayload(QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1634
1634
  }
1635
1635
  const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_OUTPUT_FIELDS = [
1636
1636
  {
@@ -1646,8 +1646,8 @@ const QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_OUTPUT_FIELDS = [
1646
1646
  byteLength: 4,
1647
1647
  },
1648
1648
  ];
1649
- export function decodeQVAULTGetQcapBurntAmountInLastEpochesOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1650
- return decodePayload(data, QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1649
+ export function decodeQVAULTGetQcapBurntAmountInLastEpochesOutput(data) {
1650
+ return decodePayload(data, QVAULT_GET_QCAP_BURNT_AMOUNT_IN_LAST_EPOCHES_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1651
1651
  }
1652
1652
  export async function qVAULTGetQcapBurntAmountInLastEpoches(live, input, options) {
1653
1653
  return callContractFunction({
@@ -1662,7 +1662,7 @@ export async function qVAULTGetQcapBurntAmountInLastEpoches(live, input, options
1662
1662
  ...options,
1663
1663
  });
1664
1664
  }
1665
- export const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_TYPE = 25;
1665
+ export const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_TYPE = 14;
1666
1666
  export const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_SIZE = 4;
1667
1667
  const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_FIELDS = [
1668
1668
  {
@@ -1672,8 +1672,8 @@ const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_FIELDS = [
1672
1672
  byteLength: 4,
1673
1673
  },
1674
1674
  ];
1675
- export function buildQVAULTGetAmountToBeSoldPerYearInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1676
- return buildPayload(QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1675
+ export function buildQVAULTGetAmountToBeSoldPerYearInput(input) {
1676
+ return buildPayload(QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1677
1677
  }
1678
1678
  const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_OUTPUT_FIELDS = [
1679
1679
  {
@@ -1683,8 +1683,8 @@ const QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_OUTPUT_FIELDS = [
1683
1683
  byteLength: 4,
1684
1684
  },
1685
1685
  ];
1686
- export function decodeQVAULTGetAmountToBeSoldPerYearOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1687
- return decodePayload(data, QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1686
+ export function decodeQVAULTGetAmountToBeSoldPerYearOutput(data) {
1687
+ return decodePayload(data, QVAULT_GET_AMOUNT_TO_BE_SOLD_PER_YEAR_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1688
1688
  }
1689
1689
  export async function qVAULTGetAmountToBeSoldPerYear(live, input, options) {
1690
1690
  return callContractFunction({
@@ -1699,7 +1699,7 @@ export async function qVAULTGetAmountToBeSoldPerYear(live, input, options) {
1699
1699
  ...options,
1700
1700
  });
1701
1701
  }
1702
- export const QVAULT_GET_TOTAL_REVENUE_IN_QCAP_INPUT_TYPE = 26;
1702
+ export const QVAULT_GET_TOTAL_REVENUE_IN_QCAP_INPUT_TYPE = 15;
1703
1703
  export const QVAULT_GET_TOTAL_REVENUE_IN_QCAP_INPUT_SIZE = 0;
1704
1704
  const QVAULT_GET_TOTAL_REVENUE_IN_QCAP_OUTPUT_FIELDS = [
1705
1705
  {
@@ -1709,8 +1709,8 @@ const QVAULT_GET_TOTAL_REVENUE_IN_QCAP_OUTPUT_FIELDS = [
1709
1709
  byteLength: 8,
1710
1710
  },
1711
1711
  ];
1712
- export function decodeQVAULTGetTotalRevenueInQcapOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1713
- return decodePayload(data, QVAULT_GET_TOTAL_REVENUE_IN_QCAP_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1712
+ export function decodeQVAULTGetTotalRevenueInQcapOutput(data) {
1713
+ return decodePayload(data, QVAULT_GET_TOTAL_REVENUE_IN_QCAP_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1714
1714
  }
1715
1715
  export async function qVAULTGetTotalRevenueInQcap(live, options) {
1716
1716
  return callContractFunction({
@@ -1725,7 +1725,7 @@ export async function qVAULTGetTotalRevenueInQcap(live, options) {
1725
1725
  ...options,
1726
1726
  });
1727
1727
  }
1728
- export const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_TYPE = 27;
1728
+ export const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_TYPE = 16;
1729
1729
  export const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_SIZE = 4;
1730
1730
  const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_FIELDS = [
1731
1731
  {
@@ -1735,8 +1735,8 @@ const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_FIELDS = [
1735
1735
  byteLength: 4,
1736
1736
  },
1737
1737
  ];
1738
- export function buildQVAULTGetRevenueInQcapPerEpochInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1739
- return buildPayload(QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1738
+ export function buildQVAULTGetRevenueInQcapPerEpochInput(input) {
1739
+ return buildPayload(QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1740
1740
  }
1741
1741
  const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_OUTPUT_FIELDS = [
1742
1742
  {
@@ -1764,8 +1764,8 @@ const QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_OUTPUT_FIELDS = [
1764
1764
  byteLength: 8,
1765
1765
  },
1766
1766
  ];
1767
- export function decodeQVAULTGetRevenueInQcapPerEpochOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1768
- return decodePayload(data, QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1767
+ export function decodeQVAULTGetRevenueInQcapPerEpochOutput(data) {
1768
+ return decodePayload(data, QVAULT_GET_REVENUE_IN_QCAP_PER_EPOCH_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1769
1769
  }
1770
1770
  export async function qVAULTGetRevenueInQcapPerEpoch(live, input, options) {
1771
1771
  return callContractFunction({
@@ -1780,7 +1780,7 @@ export async function qVAULTGetRevenueInQcapPerEpoch(live, input, options) {
1780
1780
  ...options,
1781
1781
  });
1782
1782
  }
1783
- export const QVAULT_GET_REVENUE_PER_SHARE_INPUT_TYPE = 28;
1783
+ export const QVAULT_GET_REVENUE_PER_SHARE_INPUT_TYPE = 17;
1784
1784
  export const QVAULT_GET_REVENUE_PER_SHARE_INPUT_SIZE = 4;
1785
1785
  const QVAULT_GET_REVENUE_PER_SHARE_INPUT_FIELDS = [
1786
1786
  {
@@ -1790,8 +1790,8 @@ const QVAULT_GET_REVENUE_PER_SHARE_INPUT_FIELDS = [
1790
1790
  byteLength: 4,
1791
1791
  },
1792
1792
  ];
1793
- export function buildQVAULTGetRevenuePerShareInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1794
- return buildPayload(QVAULT_GET_REVENUE_PER_SHARE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1793
+ export function buildQVAULTGetRevenuePerShareInput(input) {
1794
+ return buildPayload(QVAULT_GET_REVENUE_PER_SHARE_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1795
1795
  }
1796
1796
  const QVAULT_GET_REVENUE_PER_SHARE_OUTPUT_FIELDS = [
1797
1797
  {
@@ -1801,8 +1801,8 @@ const QVAULT_GET_REVENUE_PER_SHARE_OUTPUT_FIELDS = [
1801
1801
  byteLength: 8,
1802
1802
  },
1803
1803
  ];
1804
- export function decodeQVAULTGetRevenuePerShareOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1805
- return decodePayload(data, QVAULT_GET_REVENUE_PER_SHARE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1804
+ export function decodeQVAULTGetRevenuePerShareOutput(data) {
1805
+ return decodePayload(data, QVAULT_GET_REVENUE_PER_SHARE_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1806
1806
  }
1807
1807
  export async function qVAULTGetRevenuePerShare(live, input, options) {
1808
1808
  return callContractFunction({
@@ -1817,7 +1817,7 @@ export async function qVAULTGetRevenuePerShare(live, input, options) {
1817
1817
  ...options,
1818
1818
  });
1819
1819
  }
1820
- export const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_TYPE = 29;
1820
+ export const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_TYPE = 18;
1821
1821
  export const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_SIZE = 40;
1822
1822
  const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_FIELDS = [
1823
1823
  {
@@ -1828,8 +1828,8 @@ const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_FIELDS = [
1828
1828
  structRef: 'Asset',
1829
1829
  },
1830
1830
  ];
1831
- export function buildQVAULTGetAmountOfShareQvaultHoldInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1832
- return buildPayload(QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1831
+ export function buildQVAULTGetAmountOfShareQvaultHoldInput(input) {
1832
+ return buildPayload(QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1833
1833
  }
1834
1834
  const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_OUTPUT_FIELDS = [
1835
1835
  {
@@ -1839,8 +1839,8 @@ const QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_OUTPUT_FIELDS = [
1839
1839
  byteLength: 4,
1840
1840
  },
1841
1841
  ];
1842
- export function decodeQVAULTGetAmountOfShareQvaultHoldOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1843
- return decodePayload(data, QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1842
+ export function decodeQVAULTGetAmountOfShareQvaultHoldOutput(data) {
1843
+ return decodePayload(data, QVAULT_GET_AMOUNT_OF_SHARE_QVAULT_HOLD_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1844
1844
  }
1845
1845
  export async function qVAULTGetAmountOfShareQvaultHold(live, input, options) {
1846
1846
  return callContractFunction({
@@ -1855,7 +1855,7 @@ export async function qVAULTGetAmountOfShareQvaultHold(live, input, options) {
1855
1855
  ...options,
1856
1856
  });
1857
1857
  }
1858
- export const QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_INPUT_TYPE = 30;
1858
+ export const QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_INPUT_TYPE = 19;
1859
1859
  export const QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_INPUT_SIZE = 0;
1860
1860
  const QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_OUTPUT_FIELDS = [
1861
1861
  {
@@ -1877,8 +1877,8 @@ const QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_OUTPUT_FIELDS = [
1877
1877
  byteLength: 4,
1878
1878
  },
1879
1879
  ];
1880
- export function decodeQVAULTGetNumberOfHolderAndAvgAmOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1881
- return decodePayload(data, QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1880
+ export function decodeQVAULTGetNumberOfHolderAndAvgAmOutput(data) {
1881
+ return decodePayload(data, QVAULT_GET_NUMBER_OF_HOLDER_AND_AVG_AM_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1882
1882
  }
1883
1883
  export async function qVAULTGetNumberOfHolderAndAvgAm(live, options) {
1884
1884
  return callContractFunction({
@@ -1893,7 +1893,7 @@ export async function qVAULTGetNumberOfHolderAndAvgAm(live, options) {
1893
1893
  ...options,
1894
1894
  });
1895
1895
  }
1896
- export const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_TYPE = 31;
1896
+ export const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_TYPE = 20;
1897
1897
  export const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_SIZE = 4;
1898
1898
  const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_FIELDS = [
1899
1899
  {
@@ -1903,8 +1903,8 @@ const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_FIELDS = [
1903
1903
  byteLength: 4,
1904
1904
  },
1905
1905
  ];
1906
- export function buildQVAULTGetAmountForQearnInUpcomingEpochInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1907
- return buildPayload(QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1906
+ export function buildQVAULTGetAmountForQearnInUpcomingEpochInput(input) {
1907
+ return buildPayload(QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_INPUT_FIELDS, STRUCTS, input, (_) => new Uint8Array(32));
1908
1908
  }
1909
1909
  const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_OUTPUT_FIELDS = [
1910
1910
  {
@@ -1920,8 +1920,8 @@ const QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_OUTPUT_FIELDS = [
1920
1920
  byteLength: 8,
1921
1921
  },
1922
1922
  ];
1923
- export function decodeQVAULTGetAmountForQearnInUpcomingEpochOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1924
- return decodePayload(data, QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1923
+ export function decodeQVAULTGetAmountForQearnInUpcomingEpochOutput(data) {
1924
+ return decodePayload(data, QVAULT_GET_AMOUNT_FOR_QEARN_IN_UPCOMING_EPOCH_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1925
1925
  }
1926
1926
  export async function qVAULTGetAmountForQearnInUpcomingEpoch(live, input, options) {
1927
1927
  return callContractFunction({
@@ -1936,7 +1936,7 @@ export async function qVAULTGetAmountForQearnInUpcomingEpoch(live, input, option
1936
1936
  ...options,
1937
1937
  });
1938
1938
  }
1939
- export const QVAULT_GET_VOTE_IN_PROPOSAL_INPUT_TYPE = 32;
1939
+ export const QVAULT_GET_VOTE_IN_PROPOSAL_INPUT_TYPE = 21;
1940
1940
  export const QVAULT_GET_VOTE_IN_PROPOSAL_INPUT_SIZE = 48;
1941
1941
  const QVAULT_GET_VOTE_IN_PROPOSAL_INPUT_FIELDS = [
1942
1942
  {
@@ -1958,7 +1958,7 @@ const QVAULT_GET_VOTE_IN_PROPOSAL_INPUT_FIELDS = [
1958
1958
  byteLength: 8,
1959
1959
  },
1960
1960
  ];
1961
- export function buildQVAULTGetVoteInProposalInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
1961
+ export function buildQVAULTGetVoteInProposalInput(input, identityToPublicKey) {
1962
1962
  return buildPayload(QVAULT_GET_VOTE_IN_PROPOSAL_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
1963
1963
  }
1964
1964
  const QVAULT_GET_VOTE_IN_PROPOSAL_OUTPUT_FIELDS = [
@@ -1981,8 +1981,8 @@ const QVAULT_GET_VOTE_IN_PROPOSAL_OUTPUT_FIELDS = [
1981
1981
  byteLength: 8,
1982
1982
  },
1983
1983
  ];
1984
- export function decodeQVAULTGetVoteInProposalOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
1985
- return decodePayload(data, QVAULT_GET_VOTE_IN_PROPOSAL_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
1984
+ export function decodeQVAULTGetVoteInProposalOutput(data) {
1985
+ return decodePayload(data, QVAULT_GET_VOTE_IN_PROPOSAL_OUTPUT_FIELDS, STRUCTS, (_pk) => 'A'.repeat(60));
1986
1986
  }
1987
1987
  export async function qVAULTGetVoteInProposal(live, input, options) {
1988
1988
  return callContractFunction({