@neutral-trade/sdk 2.2.1 → 2.2.3

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.
@@ -87,7 +87,11 @@ function getBundleEncoder() {
87
87
  ["referrerMinDepositAmount", getU64Encoder()],
88
88
  ["referralTiers", getArrayEncoder(getReferralTierEncoder(), { size: 5 })],
89
89
  ["tierCount", getU8Encoder()],
90
- ["padding", fixEncoderSize(getBytesEncoder(), 117)]
90
+ ["issuanceFeeBps", getU32Encoder()],
91
+ ["lastManagementFeeChangeTimestamp", getI64Encoder()],
92
+ ["managementFeeVersion", getU64Encoder()],
93
+ ["performanceFeeVersion", getU64Encoder()],
94
+ ["padding", fixEncoderSize(getBytesEncoder(), 89)]
91
95
  ]), (value) => ({
92
96
  ...value,
93
97
  discriminator: BUNDLE_DISCRIMINATOR
@@ -131,7 +135,11 @@ function getBundleDecoder() {
131
135
  ["referrerMinDepositAmount", getU64Decoder()],
132
136
  ["referralTiers", getArrayDecoder(getReferralTierDecoder(), { size: 5 })],
133
137
  ["tierCount", getU8Decoder()],
134
- ["padding", fixDecoderSize(getBytesDecoder(), 117)]
138
+ ["issuanceFeeBps", getU32Decoder()],
139
+ ["lastManagementFeeChangeTimestamp", getI64Decoder()],
140
+ ["managementFeeVersion", getU64Decoder()],
141
+ ["performanceFeeVersion", getU64Decoder()],
142
+ ["padding", fixDecoderSize(getBytesDecoder(), 89)]
135
143
  ]);
136
144
  }
137
145
  /** Gets the codec for {@link Bundle} account data. */
@@ -620,6 +628,104 @@ function getStrategySize() {
620
628
  return 141;
621
629
  }
622
630
 
631
+ //#endregion
632
+ //#region src/generated/accounts/tokenizedBundleDepositor.ts
633
+ /**
634
+ * This code was AUTOGENERATED using the Codama library.
635
+ * Please DO NOT EDIT THIS FILE, instead use visitors
636
+ * to add features, then rerun Codama to update it.
637
+ *
638
+ * @see https://github.com/codama-idl/codama
639
+ */
640
+ const TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR = new Uint8Array([
641
+ 76,
642
+ 78,
643
+ 8,
644
+ 31,
645
+ 121,
646
+ 235,
647
+ 87,
648
+ 100
649
+ ]);
650
+ function getTokenizedBundleDepositorDiscriminatorBytes() {
651
+ return fixEncoderSize(getBytesEncoder(), 8).encode(TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR);
652
+ }
653
+ /** Gets the encoder for {@link TokenizedBundleDepositorArgs} account data. */
654
+ function getTokenizedBundleDepositorEncoder() {
655
+ return transformEncoder(getStructEncoder([
656
+ ["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
657
+ ["bundle", getAddressEncoder()],
658
+ ["mint", getAddressEncoder()],
659
+ ["tokenAuthority", getAddressEncoder()],
660
+ ["shares", getU128Encoder()],
661
+ ["cumulativeTaxedProfit", getU128Encoder()],
662
+ ["lastManagementFeeTimestamp", getI64Encoder()],
663
+ ["netDeposits", getI128Encoder()],
664
+ ["totalFeeCharged", getU64Encoder()],
665
+ ["bump", getU8Encoder()],
666
+ ["mintBump", getU8Encoder()],
667
+ ["tokenAuthorityBump", getU8Encoder()],
668
+ ["mintCapPerCycle", getU64Encoder()],
669
+ ["currentCycleMinted", getU64Encoder()],
670
+ ["managementFeeRemainder", getU128Encoder()],
671
+ ["performanceFeeVersion", getU64Encoder()],
672
+ ["currentCycleNettingTimestamp", getI64Encoder()],
673
+ ["padding", fixEncoderSize(getBytesEncoder(), 116)]
674
+ ]), (value) => ({
675
+ ...value,
676
+ discriminator: TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR
677
+ }));
678
+ }
679
+ /** Gets the decoder for {@link TokenizedBundleDepositor} account data. */
680
+ function getTokenizedBundleDepositorDecoder() {
681
+ return getStructDecoder([
682
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
683
+ ["bundle", getAddressDecoder()],
684
+ ["mint", getAddressDecoder()],
685
+ ["tokenAuthority", getAddressDecoder()],
686
+ ["shares", getU128Decoder()],
687
+ ["cumulativeTaxedProfit", getU128Decoder()],
688
+ ["lastManagementFeeTimestamp", getI64Decoder()],
689
+ ["netDeposits", getI128Decoder()],
690
+ ["totalFeeCharged", getU64Decoder()],
691
+ ["bump", getU8Decoder()],
692
+ ["mintBump", getU8Decoder()],
693
+ ["tokenAuthorityBump", getU8Decoder()],
694
+ ["mintCapPerCycle", getU64Decoder()],
695
+ ["currentCycleMinted", getU64Decoder()],
696
+ ["managementFeeRemainder", getU128Decoder()],
697
+ ["performanceFeeVersion", getU64Decoder()],
698
+ ["currentCycleNettingTimestamp", getI64Decoder()],
699
+ ["padding", fixDecoderSize(getBytesDecoder(), 116)]
700
+ ]);
701
+ }
702
+ /** Gets the codec for {@link TokenizedBundleDepositor} account data. */
703
+ function getTokenizedBundleDepositorCodec() {
704
+ return combineCodec(getTokenizedBundleDepositorEncoder(), getTokenizedBundleDepositorDecoder());
705
+ }
706
+ function decodeTokenizedBundleDepositor(encodedAccount) {
707
+ return decodeAccount(encodedAccount, getTokenizedBundleDepositorDecoder());
708
+ }
709
+ async function fetchTokenizedBundleDepositor(rpc, address$1, config) {
710
+ const maybeAccount = await fetchMaybeTokenizedBundleDepositor(rpc, address$1, config);
711
+ assertAccountExists(maybeAccount);
712
+ return maybeAccount;
713
+ }
714
+ async function fetchMaybeTokenizedBundleDepositor(rpc, address$1, config) {
715
+ return decodeTokenizedBundleDepositor(await fetchEncodedAccount(rpc, address$1, config));
716
+ }
717
+ async function fetchAllTokenizedBundleDepositor(rpc, addresses, config) {
718
+ const maybeAccounts = await fetchAllMaybeTokenizedBundleDepositor(rpc, addresses, config);
719
+ assertAccountsExist(maybeAccounts);
720
+ return maybeAccounts;
721
+ }
722
+ async function fetchAllMaybeTokenizedBundleDepositor(rpc, addresses, config) {
723
+ return (await fetchEncodedAccounts(rpc, addresses, config)).map((maybeAccount) => decodeTokenizedBundleDepositor(maybeAccount));
724
+ }
725
+ function getTokenizedBundleDepositorSize() {
726
+ return 335;
727
+ }
728
+
623
729
  //#endregion
624
730
  //#region src/generated/accounts/userBundleAccount.ts
625
731
  /**
@@ -673,7 +779,10 @@ function getUserBundleAccountEncoder() {
673
779
  ["switchTargetBundle", getAddressEncoder()],
674
780
  ["switchCreatedAt", getI64Encoder()],
675
781
  ["referrer", getAddressEncoder()],
676
- ["padding", fixEncoderSize(getBytesEncoder(), 145)]
782
+ ["performanceFeeVersion", getU64Encoder()],
783
+ ["performanceFeeResetPending", getBooleanEncoder()],
784
+ ["managementFeeVersion", getU64Encoder()],
785
+ ["padding", fixEncoderSize(getBytesEncoder(), 128)]
677
786
  ]), (value) => ({
678
787
  ...value,
679
788
  discriminator: USER_BUNDLE_ACCOUNT_DISCRIMINATOR
@@ -710,7 +819,10 @@ function getUserBundleAccountDecoder() {
710
819
  ["switchTargetBundle", getAddressDecoder()],
711
820
  ["switchCreatedAt", getI64Decoder()],
712
821
  ["referrer", getAddressDecoder()],
713
- ["padding", fixDecoderSize(getBytesDecoder(), 145)]
822
+ ["performanceFeeVersion", getU64Decoder()],
823
+ ["performanceFeeResetPending", getBooleanDecoder()],
824
+ ["managementFeeVersion", getU64Decoder()],
825
+ ["padding", fixDecoderSize(getBytesDecoder(), 128)]
714
826
  ]);
715
827
  }
716
828
  /** Gets the codec for {@link UserBundleAccount} account data. */
@@ -934,6 +1046,45 @@ async function findCloseUserBundleAccountUserBundleAccountPda(seeds, config = {}
934
1046
  });
935
1047
  }
936
1048
 
1049
+ //#endregion
1050
+ //#region src/generated/pdas/mint.ts
1051
+ /**
1052
+ * This code was AUTOGENERATED using the Codama library.
1053
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1054
+ * to add features, then rerun Codama to update it.
1055
+ *
1056
+ * @see https://github.com/codama-idl/codama
1057
+ */
1058
+ async function findMintPda(seeds, config = {}) {
1059
+ const { programAddress = "BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU" } = config;
1060
+ return await getProgramDerivedAddress({
1061
+ programAddress,
1062
+ seeds: [getBytesEncoder().encode(new Uint8Array([
1063
+ 84,
1064
+ 79,
1065
+ 75,
1066
+ 69,
1067
+ 78,
1068
+ 73,
1069
+ 90,
1070
+ 69,
1071
+ 68,
1072
+ 95,
1073
+ 66,
1074
+ 85,
1075
+ 78,
1076
+ 68,
1077
+ 76,
1078
+ 69,
1079
+ 95,
1080
+ 77,
1081
+ 73,
1082
+ 78,
1083
+ 84
1084
+ ])), getAddressEncoder().encode(seeds.bundleAccount)]
1085
+ });
1086
+ }
1087
+
937
1088
  //#endregion
938
1089
  //#region src/generated/pdas/oracleData.ts
939
1090
  /**
@@ -1402,6 +1553,100 @@ async function findTargetUserBundleAccountPda(seeds, config = {}) {
1402
1553
  });
1403
1554
  }
1404
1555
 
1556
+ //#endregion
1557
+ //#region src/generated/pdas/tokenAuthority.ts
1558
+ /**
1559
+ * This code was AUTOGENERATED using the Codama library.
1560
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1561
+ * to add features, then rerun Codama to update it.
1562
+ *
1563
+ * @see https://github.com/codama-idl/codama
1564
+ */
1565
+ async function findTokenAuthorityPda(seeds, config = {}) {
1566
+ const { programAddress = "BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU" } = config;
1567
+ return await getProgramDerivedAddress({
1568
+ programAddress,
1569
+ seeds: [getBytesEncoder().encode(new Uint8Array([
1570
+ 84,
1571
+ 79,
1572
+ 75,
1573
+ 69,
1574
+ 78,
1575
+ 73,
1576
+ 90,
1577
+ 69,
1578
+ 68,
1579
+ 95,
1580
+ 66,
1581
+ 85,
1582
+ 78,
1583
+ 68,
1584
+ 76,
1585
+ 69,
1586
+ 95,
1587
+ 84,
1588
+ 79,
1589
+ 75,
1590
+ 69,
1591
+ 78,
1592
+ 95,
1593
+ 65,
1594
+ 85,
1595
+ 84,
1596
+ 72,
1597
+ 79,
1598
+ 82,
1599
+ 73,
1600
+ 84,
1601
+ 89
1602
+ ])), getAddressEncoder().encode(seeds.bundleAccount)]
1603
+ });
1604
+ }
1605
+
1606
+ //#endregion
1607
+ //#region src/generated/pdas/tokenizedBundleDepositor.ts
1608
+ /**
1609
+ * This code was AUTOGENERATED using the Codama library.
1610
+ * Please DO NOT EDIT THIS FILE, instead use visitors
1611
+ * to add features, then rerun Codama to update it.
1612
+ *
1613
+ * @see https://github.com/codama-idl/codama
1614
+ */
1615
+ async function findTokenizedBundleDepositorPda(seeds, config = {}) {
1616
+ const { programAddress = "BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU" } = config;
1617
+ return await getProgramDerivedAddress({
1618
+ programAddress,
1619
+ seeds: [getBytesEncoder().encode(new Uint8Array([
1620
+ 84,
1621
+ 79,
1622
+ 75,
1623
+ 69,
1624
+ 78,
1625
+ 73,
1626
+ 90,
1627
+ 69,
1628
+ 68,
1629
+ 95,
1630
+ 66,
1631
+ 85,
1632
+ 78,
1633
+ 68,
1634
+ 76,
1635
+ 69,
1636
+ 95,
1637
+ 68,
1638
+ 69,
1639
+ 80,
1640
+ 79,
1641
+ 83,
1642
+ 73,
1643
+ 84,
1644
+ 79,
1645
+ 82
1646
+ ])), getAddressEncoder().encode(seeds.bundleAccount)]
1647
+ });
1648
+ }
1649
+
1405
1650
  //#endregion
1406
1651
  //#region src/generated/pdas/userBundleAccount.ts
1407
1652
  /**
@@ -1576,7 +1821,7 @@ function parseAddStrategyInstruction(instruction) {
1576
1821
  }
1577
1822
 
1578
1823
  //#endregion
1579
- //#region src/generated/instructions/applyFeesToUser.ts
1824
+ //#region src/generated/instructions/applyFeesToTokenizedDepositor.ts
1580
1825
  /**
1581
1826
  * This code was AUTOGENERATED using the Codama library.
1582
1827
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1584,122 +1829,119 @@ function parseAddStrategyInstruction(instruction) {
1584
1829
  *
1585
1830
  * @see https://github.com/codama-idl/codama
1586
1831
  */
1587
- const APPLY_FEES_TO_USER_DISCRIMINATOR = new Uint8Array([
1588
- 26,
1589
- 41,
1590
- 103,
1591
- 167,
1592
- 61,
1593
- 147,
1594
- 141,
1595
- 30
1832
+ const APPLY_FEES_TO_TOKENIZED_DEPOSITOR_DISCRIMINATOR = new Uint8Array([
1833
+ 237,
1834
+ 243,
1835
+ 229,
1836
+ 36,
1837
+ 146,
1838
+ 77,
1839
+ 86,
1840
+ 168
1596
1841
  ]);
1597
- function getApplyFeesToUserDiscriminatorBytes() {
1598
- return fixEncoderSize(getBytesEncoder(), 8).encode(APPLY_FEES_TO_USER_DISCRIMINATOR);
1842
+ function getApplyFeesToTokenizedDepositorDiscriminatorBytes() {
1843
+ return fixEncoderSize(getBytesEncoder(), 8).encode(APPLY_FEES_TO_TOKENIZED_DEPOSITOR_DISCRIMINATOR);
1599
1844
  }
1600
- function getApplyFeesToUserInstructionDataEncoder() {
1845
+ function getApplyFeesToTokenizedDepositorInstructionDataEncoder() {
1601
1846
  return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({
1602
1847
  ...value,
1603
- discriminator: APPLY_FEES_TO_USER_DISCRIMINATOR
1848
+ discriminator: APPLY_FEES_TO_TOKENIZED_DEPOSITOR_DISCRIMINATOR
1604
1849
  }));
1605
1850
  }
1606
- function getApplyFeesToUserInstructionDataDecoder() {
1851
+ function getApplyFeesToTokenizedDepositorInstructionDataDecoder() {
1607
1852
  return getStructDecoder([["discriminator", fixDecoderSize(getBytesDecoder(), 8)]]);
1608
1853
  }
1609
- function getApplyFeesToUserInstructionDataCodec() {
1610
- return combineCodec(getApplyFeesToUserInstructionDataEncoder(), getApplyFeesToUserInstructionDataDecoder());
1854
+ function getApplyFeesToTokenizedDepositorInstructionDataCodec() {
1855
+ return combineCodec(getApplyFeesToTokenizedDepositorInstructionDataEncoder(), getApplyFeesToTokenizedDepositorInstructionDataDecoder());
1611
1856
  }
1612
- async function getApplyFeesToUserInstructionAsync(input, config) {
1857
+ async function getApplyFeesToTokenizedDepositorInstructionAsync(input, config) {
1613
1858
  const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
1614
1859
  const accounts = {
1615
1860
  keeper: {
1616
1861
  value: input.keeper ?? null,
1617
1862
  isWritable: true
1618
1863
  },
1619
- userBundleAccountOwner: {
1620
- value: input.userBundleAccountOwner ?? null,
1621
- isWritable: true
1622
- },
1623
- userBundleAccount: {
1624
- value: input.userBundleAccount ?? null,
1625
- isWritable: true
1626
- },
1627
1864
  bundleAccount: {
1628
1865
  value: input.bundleAccount ?? null,
1629
1866
  isWritable: true
1630
1867
  },
1868
+ bundleTempData: {
1869
+ value: input.bundleTempData ?? null,
1870
+ isWritable: false
1871
+ },
1631
1872
  oracleData: {
1632
1873
  value: input.oracleData ?? null,
1633
- isWritable: true
1874
+ isWritable: false
1634
1875
  },
1635
- bundleAssetAuthority: {
1636
- value: input.bundleAssetAuthority ?? null,
1876
+ tokenizedBundleDepositor: {
1877
+ value: input.tokenizedBundleDepositor ?? null,
1637
1878
  isWritable: true
1879
+ },
1880
+ mint: {
1881
+ value: input.mint ?? null,
1882
+ isWritable: false
1638
1883
  }
1639
1884
  };
1640
- if (!accounts.userBundleAccount.value) accounts.userBundleAccount.value = await findUserBundleAccountPda({
1641
- userBundleAccountOwner: getAddressFromResolvedInstructionAccount("userBundleAccountOwner", accounts.userBundleAccountOwner.value),
1642
- bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value)
1643
- }, { programAddress });
1885
+ if (!accounts.bundleTempData.value) accounts.bundleTempData.value = await findBundleTempDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
1644
1886
  if (!accounts.oracleData.value) accounts.oracleData.value = await findOracleDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
1645
- if (!accounts.bundleAssetAuthority.value) accounts.bundleAssetAuthority.value = await findBundleAssetAuthorityPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
1887
+ if (!accounts.tokenizedBundleDepositor.value) accounts.tokenizedBundleDepositor.value = await findTokenizedBundleDepositorPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
1646
1888
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1647
1889
  return Object.freeze({
1648
1890
  accounts: [
1649
1891
  getAccountMeta("keeper", accounts.keeper),
1650
- getAccountMeta("userBundleAccountOwner", accounts.userBundleAccountOwner),
1651
- getAccountMeta("userBundleAccount", accounts.userBundleAccount),
1652
1892
  getAccountMeta("bundleAccount", accounts.bundleAccount),
1893
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
1653
1894
  getAccountMeta("oracleData", accounts.oracleData),
1654
- getAccountMeta("bundleAssetAuthority", accounts.bundleAssetAuthority)
1895
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
1896
+ getAccountMeta("mint", accounts.mint)
1655
1897
  ],
1656
- data: getApplyFeesToUserInstructionDataEncoder().encode({}),
1898
+ data: getApplyFeesToTokenizedDepositorInstructionDataEncoder().encode({}),
1657
1899
  programAddress
1658
1900
  });
1659
1901
  }
1660
- function getApplyFeesToUserInstruction(input, config) {
1902
+ function getApplyFeesToTokenizedDepositorInstruction(input, config) {
1661
1903
  const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
1662
1904
  const accounts = {
1663
1905
  keeper: {
1664
1906
  value: input.keeper ?? null,
1665
1907
  isWritable: true
1666
1908
  },
1667
- userBundleAccountOwner: {
1668
- value: input.userBundleAccountOwner ?? null,
1669
- isWritable: true
1670
- },
1671
- userBundleAccount: {
1672
- value: input.userBundleAccount ?? null,
1673
- isWritable: true
1674
- },
1675
1909
  bundleAccount: {
1676
1910
  value: input.bundleAccount ?? null,
1677
1911
  isWritable: true
1678
1912
  },
1913
+ bundleTempData: {
1914
+ value: input.bundleTempData ?? null,
1915
+ isWritable: false
1916
+ },
1679
1917
  oracleData: {
1680
1918
  value: input.oracleData ?? null,
1681
- isWritable: true
1919
+ isWritable: false
1682
1920
  },
1683
- bundleAssetAuthority: {
1684
- value: input.bundleAssetAuthority ?? null,
1921
+ tokenizedBundleDepositor: {
1922
+ value: input.tokenizedBundleDepositor ?? null,
1685
1923
  isWritable: true
1924
+ },
1925
+ mint: {
1926
+ value: input.mint ?? null,
1927
+ isWritable: false
1686
1928
  }
1687
1929
  };
1688
1930
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
1689
1931
  return Object.freeze({
1690
1932
  accounts: [
1691
1933
  getAccountMeta("keeper", accounts.keeper),
1692
- getAccountMeta("userBundleAccountOwner", accounts.userBundleAccountOwner),
1693
- getAccountMeta("userBundleAccount", accounts.userBundleAccount),
1694
1934
  getAccountMeta("bundleAccount", accounts.bundleAccount),
1935
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
1695
1936
  getAccountMeta("oracleData", accounts.oracleData),
1696
- getAccountMeta("bundleAssetAuthority", accounts.bundleAssetAuthority)
1937
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
1938
+ getAccountMeta("mint", accounts.mint)
1697
1939
  ],
1698
- data: getApplyFeesToUserInstructionDataEncoder().encode({}),
1940
+ data: getApplyFeesToTokenizedDepositorInstructionDataEncoder().encode({}),
1699
1941
  programAddress
1700
1942
  });
1701
1943
  }
1702
- function parseApplyFeesToUserInstruction(instruction) {
1944
+ function parseApplyFeesToTokenizedDepositorInstruction(instruction) {
1703
1945
  if (instruction.accounts.length < 6) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
1704
1946
  actualAccountMetas: instruction.accounts.length,
1705
1947
  expectedAccountMetas: 6
@@ -1714,18 +1956,18 @@ function parseApplyFeesToUserInstruction(instruction) {
1714
1956
  programAddress: instruction.programAddress,
1715
1957
  accounts: {
1716
1958
  keeper: getNextAccount(),
1717
- userBundleAccountOwner: getNextAccount(),
1718
- userBundleAccount: getNextAccount(),
1719
1959
  bundleAccount: getNextAccount(),
1960
+ bundleTempData: getNextAccount(),
1720
1961
  oracleData: getNextAccount(),
1721
- bundleAssetAuthority: getNextAccount()
1962
+ tokenizedBundleDepositor: getNextAccount(),
1963
+ mint: getNextAccount()
1722
1964
  },
1723
- data: getApplyFeesToUserInstructionDataDecoder().decode(instruction.data)
1965
+ data: getApplyFeesToTokenizedDepositorInstructionDataDecoder().decode(instruction.data)
1724
1966
  };
1725
1967
  }
1726
1968
 
1727
1969
  //#endregion
1728
- //#region src/generated/instructions/changeBundleMasterAdmin.ts
1970
+ //#region src/generated/instructions/applyFeesToUser.ts
1729
1971
  /**
1730
1972
  * This code was AUTOGENERATED using the Codama library.
1731
1973
  * Please DO NOT EDIT THIS FILE, instead use visitors
@@ -1733,8 +1975,157 @@ function parseApplyFeesToUserInstruction(instruction) {
1733
1975
  *
1734
1976
  * @see https://github.com/codama-idl/codama
1735
1977
  */
1736
- const CHANGE_BUNDLE_MASTER_ADMIN_DISCRIMINATOR = new Uint8Array([
1737
- 255,
1978
+ const APPLY_FEES_TO_USER_DISCRIMINATOR = new Uint8Array([
1979
+ 26,
1980
+ 41,
1981
+ 103,
1982
+ 167,
1983
+ 61,
1984
+ 147,
1985
+ 141,
1986
+ 30
1987
+ ]);
1988
+ function getApplyFeesToUserDiscriminatorBytes() {
1989
+ return fixEncoderSize(getBytesEncoder(), 8).encode(APPLY_FEES_TO_USER_DISCRIMINATOR);
1990
+ }
1991
+ function getApplyFeesToUserInstructionDataEncoder() {
1992
+ return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({
1993
+ ...value,
1994
+ discriminator: APPLY_FEES_TO_USER_DISCRIMINATOR
1995
+ }));
1996
+ }
1997
+ function getApplyFeesToUserInstructionDataDecoder() {
1998
+ return getStructDecoder([["discriminator", fixDecoderSize(getBytesDecoder(), 8)]]);
1999
+ }
2000
+ function getApplyFeesToUserInstructionDataCodec() {
2001
+ return combineCodec(getApplyFeesToUserInstructionDataEncoder(), getApplyFeesToUserInstructionDataDecoder());
2002
+ }
2003
+ async function getApplyFeesToUserInstructionAsync(input, config) {
2004
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
2005
+ const accounts = {
2006
+ keeper: {
2007
+ value: input.keeper ?? null,
2008
+ isWritable: true
2009
+ },
2010
+ userBundleAccountOwner: {
2011
+ value: input.userBundleAccountOwner ?? null,
2012
+ isWritable: true
2013
+ },
2014
+ userBundleAccount: {
2015
+ value: input.userBundleAccount ?? null,
2016
+ isWritable: true
2017
+ },
2018
+ bundleAccount: {
2019
+ value: input.bundleAccount ?? null,
2020
+ isWritable: true
2021
+ },
2022
+ oracleData: {
2023
+ value: input.oracleData ?? null,
2024
+ isWritable: true
2025
+ },
2026
+ bundleAssetAuthority: {
2027
+ value: input.bundleAssetAuthority ?? null,
2028
+ isWritable: true
2029
+ }
2030
+ };
2031
+ if (!accounts.userBundleAccount.value) accounts.userBundleAccount.value = await findUserBundleAccountPda({
2032
+ userBundleAccountOwner: getAddressFromResolvedInstructionAccount("userBundleAccountOwner", accounts.userBundleAccountOwner.value),
2033
+ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value)
2034
+ }, { programAddress });
2035
+ if (!accounts.oracleData.value) accounts.oracleData.value = await findOracleDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
2036
+ if (!accounts.bundleAssetAuthority.value) accounts.bundleAssetAuthority.value = await findBundleAssetAuthorityPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
2037
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
2038
+ return Object.freeze({
2039
+ accounts: [
2040
+ getAccountMeta("keeper", accounts.keeper),
2041
+ getAccountMeta("userBundleAccountOwner", accounts.userBundleAccountOwner),
2042
+ getAccountMeta("userBundleAccount", accounts.userBundleAccount),
2043
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
2044
+ getAccountMeta("oracleData", accounts.oracleData),
2045
+ getAccountMeta("bundleAssetAuthority", accounts.bundleAssetAuthority)
2046
+ ],
2047
+ data: getApplyFeesToUserInstructionDataEncoder().encode({}),
2048
+ programAddress
2049
+ });
2050
+ }
2051
+ function getApplyFeesToUserInstruction(input, config) {
2052
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
2053
+ const accounts = {
2054
+ keeper: {
2055
+ value: input.keeper ?? null,
2056
+ isWritable: true
2057
+ },
2058
+ userBundleAccountOwner: {
2059
+ value: input.userBundleAccountOwner ?? null,
2060
+ isWritable: true
2061
+ },
2062
+ userBundleAccount: {
2063
+ value: input.userBundleAccount ?? null,
2064
+ isWritable: true
2065
+ },
2066
+ bundleAccount: {
2067
+ value: input.bundleAccount ?? null,
2068
+ isWritable: true
2069
+ },
2070
+ oracleData: {
2071
+ value: input.oracleData ?? null,
2072
+ isWritable: true
2073
+ },
2074
+ bundleAssetAuthority: {
2075
+ value: input.bundleAssetAuthority ?? null,
2076
+ isWritable: true
2077
+ }
2078
+ };
2079
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
2080
+ return Object.freeze({
2081
+ accounts: [
2082
+ getAccountMeta("keeper", accounts.keeper),
2083
+ getAccountMeta("userBundleAccountOwner", accounts.userBundleAccountOwner),
2084
+ getAccountMeta("userBundleAccount", accounts.userBundleAccount),
2085
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
2086
+ getAccountMeta("oracleData", accounts.oracleData),
2087
+ getAccountMeta("bundleAssetAuthority", accounts.bundleAssetAuthority)
2088
+ ],
2089
+ data: getApplyFeesToUserInstructionDataEncoder().encode({}),
2090
+ programAddress
2091
+ });
2092
+ }
2093
+ function parseApplyFeesToUserInstruction(instruction) {
2094
+ if (instruction.accounts.length < 6) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
2095
+ actualAccountMetas: instruction.accounts.length,
2096
+ expectedAccountMetas: 6
2097
+ });
2098
+ let accountIndex = 0;
2099
+ const getNextAccount = () => {
2100
+ const accountMeta = instruction.accounts[accountIndex];
2101
+ accountIndex += 1;
2102
+ return accountMeta;
2103
+ };
2104
+ return {
2105
+ programAddress: instruction.programAddress,
2106
+ accounts: {
2107
+ keeper: getNextAccount(),
2108
+ userBundleAccountOwner: getNextAccount(),
2109
+ userBundleAccount: getNextAccount(),
2110
+ bundleAccount: getNextAccount(),
2111
+ oracleData: getNextAccount(),
2112
+ bundleAssetAuthority: getNextAccount()
2113
+ },
2114
+ data: getApplyFeesToUserInstructionDataDecoder().decode(instruction.data)
2115
+ };
2116
+ }
2117
+
2118
+ //#endregion
2119
+ //#region src/generated/instructions/changeBundleMasterAdmin.ts
2120
+ /**
2121
+ * This code was AUTOGENERATED using the Codama library.
2122
+ * Please DO NOT EDIT THIS FILE, instead use visitors
2123
+ * to add features, then rerun Codama to update it.
2124
+ *
2125
+ * @see https://github.com/codama-idl/codama
2126
+ */
2127
+ const CHANGE_BUNDLE_MASTER_ADMIN_DISCRIMINATOR = new Uint8Array([
2128
+ 255,
1738
2129
  41,
1739
2130
  246,
1740
2131
  82,
@@ -3310,52 +3701,507 @@ async function getInitializePermissionedBundleDepositorInstructionAsync(input, c
3310
3701
  getAccountMeta("bundleAccount", accounts.bundleAccount),
3311
3702
  getAccountMeta("userBundleAccount", accounts.userBundleAccount)
3312
3703
  ],
3313
- data: getInitializePermissionedBundleDepositorInstructionDataEncoder().encode({}),
3704
+ data: getInitializePermissionedBundleDepositorInstructionDataEncoder().encode({}),
3705
+ programAddress
3706
+ });
3707
+ }
3708
+ function getInitializePermissionedBundleDepositorInstruction(input, config) {
3709
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
3710
+ const accounts = {
3711
+ payer: {
3712
+ value: input.payer ?? null,
3713
+ isWritable: true
3714
+ },
3715
+ authority: {
3716
+ value: input.authority ?? null,
3717
+ isWritable: true
3718
+ },
3719
+ systemProgram: {
3720
+ value: input.systemProgram ?? null,
3721
+ isWritable: false
3722
+ },
3723
+ bundleAccount: {
3724
+ value: input.bundleAccount ?? null,
3725
+ isWritable: true
3726
+ },
3727
+ userBundleAccount: {
3728
+ value: input.userBundleAccount ?? null,
3729
+ isWritable: true
3730
+ }
3731
+ };
3732
+ if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
3733
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
3734
+ return Object.freeze({
3735
+ accounts: [
3736
+ getAccountMeta("payer", accounts.payer),
3737
+ getAccountMeta("authority", accounts.authority),
3738
+ getAccountMeta("systemProgram", accounts.systemProgram),
3739
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
3740
+ getAccountMeta("userBundleAccount", accounts.userBundleAccount)
3741
+ ],
3742
+ data: getInitializePermissionedBundleDepositorInstructionDataEncoder().encode({}),
3743
+ programAddress
3744
+ });
3745
+ }
3746
+ function parseInitializePermissionedBundleDepositorInstruction(instruction) {
3747
+ if (instruction.accounts.length < 5) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
3748
+ actualAccountMetas: instruction.accounts.length,
3749
+ expectedAccountMetas: 5
3750
+ });
3751
+ let accountIndex = 0;
3752
+ const getNextAccount = () => {
3753
+ const accountMeta = instruction.accounts[accountIndex];
3754
+ accountIndex += 1;
3755
+ return accountMeta;
3756
+ };
3757
+ return {
3758
+ programAddress: instruction.programAddress,
3759
+ accounts: {
3760
+ payer: getNextAccount(),
3761
+ authority: getNextAccount(),
3762
+ systemProgram: getNextAccount(),
3763
+ bundleAccount: getNextAccount(),
3764
+ userBundleAccount: getNextAccount()
3765
+ },
3766
+ data: getInitializePermissionedBundleDepositorInstructionDataDecoder().decode(instruction.data)
3767
+ };
3768
+ }
3769
+
3770
+ //#endregion
3771
+ //#region src/generated/instructions/initializeTokenizedBundleDepositor.ts
3772
+ /**
3773
+ * This code was AUTOGENERATED using the Codama library.
3774
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3775
+ * to add features, then rerun Codama to update it.
3776
+ *
3777
+ * @see https://github.com/codama-idl/codama
3778
+ */
3779
+ const INITIALIZE_TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR = new Uint8Array([
3780
+ 56,
3781
+ 137,
3782
+ 71,
3783
+ 110,
3784
+ 14,
3785
+ 153,
3786
+ 246,
3787
+ 241
3788
+ ]);
3789
+ function getInitializeTokenizedBundleDepositorDiscriminatorBytes() {
3790
+ return fixEncoderSize(getBytesEncoder(), 8).encode(INITIALIZE_TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR);
3791
+ }
3792
+ function getInitializeTokenizedBundleDepositorInstructionDataEncoder() {
3793
+ return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)], ["decimals", getU8Encoder()]]), (value) => ({
3794
+ ...value,
3795
+ discriminator: INITIALIZE_TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR
3796
+ }));
3797
+ }
3798
+ function getInitializeTokenizedBundleDepositorInstructionDataDecoder() {
3799
+ return getStructDecoder([["discriminator", fixDecoderSize(getBytesDecoder(), 8)], ["decimals", getU8Decoder()]]);
3800
+ }
3801
+ function getInitializeTokenizedBundleDepositorInstructionDataCodec() {
3802
+ return combineCodec(getInitializeTokenizedBundleDepositorInstructionDataEncoder(), getInitializeTokenizedBundleDepositorInstructionDataDecoder());
3803
+ }
3804
+ async function getInitializeTokenizedBundleDepositorInstructionAsync(input, config) {
3805
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
3806
+ const accounts = {
3807
+ manager: {
3808
+ value: input.manager ?? null,
3809
+ isWritable: true
3810
+ },
3811
+ bundleAccount: {
3812
+ value: input.bundleAccount ?? null,
3813
+ isWritable: false
3814
+ },
3815
+ assetAddress: {
3816
+ value: input.assetAddress ?? null,
3817
+ isWritable: false
3818
+ },
3819
+ tokenizedBundleDepositor: {
3820
+ value: input.tokenizedBundleDepositor ?? null,
3821
+ isWritable: true
3822
+ },
3823
+ tokenAuthority: {
3824
+ value: input.tokenAuthority ?? null,
3825
+ isWritable: false
3826
+ },
3827
+ mint: {
3828
+ value: input.mint ?? null,
3829
+ isWritable: true
3830
+ },
3831
+ tokenProgram: {
3832
+ value: input.tokenProgram ?? null,
3833
+ isWritable: false
3834
+ },
3835
+ systemProgram: {
3836
+ value: input.systemProgram ?? null,
3837
+ isWritable: false
3838
+ }
3839
+ };
3840
+ const args = { ...input };
3841
+ if (!accounts.tokenizedBundleDepositor.value) accounts.tokenizedBundleDepositor.value = await findTokenizedBundleDepositorPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
3842
+ if (!accounts.tokenAuthority.value) accounts.tokenAuthority.value = await findTokenAuthorityPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
3843
+ if (!accounts.mint.value) accounts.mint.value = await findMintPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
3844
+ if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3845
+ if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
3846
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
3847
+ return Object.freeze({
3848
+ accounts: [
3849
+ getAccountMeta("manager", accounts.manager),
3850
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
3851
+ getAccountMeta("assetAddress", accounts.assetAddress),
3852
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
3853
+ getAccountMeta("tokenAuthority", accounts.tokenAuthority),
3854
+ getAccountMeta("mint", accounts.mint),
3855
+ getAccountMeta("tokenProgram", accounts.tokenProgram),
3856
+ getAccountMeta("systemProgram", accounts.systemProgram)
3857
+ ],
3858
+ data: getInitializeTokenizedBundleDepositorInstructionDataEncoder().encode(args),
3859
+ programAddress
3860
+ });
3861
+ }
3862
+ function getInitializeTokenizedBundleDepositorInstruction(input, config) {
3863
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
3864
+ const accounts = {
3865
+ manager: {
3866
+ value: input.manager ?? null,
3867
+ isWritable: true
3868
+ },
3869
+ bundleAccount: {
3870
+ value: input.bundleAccount ?? null,
3871
+ isWritable: false
3872
+ },
3873
+ assetAddress: {
3874
+ value: input.assetAddress ?? null,
3875
+ isWritable: false
3876
+ },
3877
+ tokenizedBundleDepositor: {
3878
+ value: input.tokenizedBundleDepositor ?? null,
3879
+ isWritable: true
3880
+ },
3881
+ tokenAuthority: {
3882
+ value: input.tokenAuthority ?? null,
3883
+ isWritable: false
3884
+ },
3885
+ mint: {
3886
+ value: input.mint ?? null,
3887
+ isWritable: true
3888
+ },
3889
+ tokenProgram: {
3890
+ value: input.tokenProgram ?? null,
3891
+ isWritable: false
3892
+ },
3893
+ systemProgram: {
3894
+ value: input.systemProgram ?? null,
3895
+ isWritable: false
3896
+ }
3897
+ };
3898
+ const args = { ...input };
3899
+ if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3900
+ if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
3901
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
3902
+ return Object.freeze({
3903
+ accounts: [
3904
+ getAccountMeta("manager", accounts.manager),
3905
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
3906
+ getAccountMeta("assetAddress", accounts.assetAddress),
3907
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
3908
+ getAccountMeta("tokenAuthority", accounts.tokenAuthority),
3909
+ getAccountMeta("mint", accounts.mint),
3910
+ getAccountMeta("tokenProgram", accounts.tokenProgram),
3911
+ getAccountMeta("systemProgram", accounts.systemProgram)
3912
+ ],
3913
+ data: getInitializeTokenizedBundleDepositorInstructionDataEncoder().encode(args),
3914
+ programAddress
3915
+ });
3916
+ }
3917
+ function parseInitializeTokenizedBundleDepositorInstruction(instruction) {
3918
+ if (instruction.accounts.length < 8) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
3919
+ actualAccountMetas: instruction.accounts.length,
3920
+ expectedAccountMetas: 8
3921
+ });
3922
+ let accountIndex = 0;
3923
+ const getNextAccount = () => {
3924
+ const accountMeta = instruction.accounts[accountIndex];
3925
+ accountIndex += 1;
3926
+ return accountMeta;
3927
+ };
3928
+ return {
3929
+ programAddress: instruction.programAddress,
3930
+ accounts: {
3931
+ manager: getNextAccount(),
3932
+ bundleAccount: getNextAccount(),
3933
+ assetAddress: getNextAccount(),
3934
+ tokenizedBundleDepositor: getNextAccount(),
3935
+ tokenAuthority: getNextAccount(),
3936
+ mint: getNextAccount(),
3937
+ tokenProgram: getNextAccount(),
3938
+ systemProgram: getNextAccount()
3939
+ },
3940
+ data: getInitializeTokenizedBundleDepositorInstructionDataDecoder().decode(instruction.data)
3941
+ };
3942
+ }
3943
+
3944
+ //#endregion
3945
+ //#region src/generated/instructions/instantMintBundleTokens.ts
3946
+ /**
3947
+ * This code was AUTOGENERATED using the Codama library.
3948
+ * Please DO NOT EDIT THIS FILE, instead use visitors
3949
+ * to add features, then rerun Codama to update it.
3950
+ *
3951
+ * @see https://github.com/codama-idl/codama
3952
+ */
3953
+ const INSTANT_MINT_BUNDLE_TOKENS_DISCRIMINATOR = new Uint8Array([
3954
+ 56,
3955
+ 192,
3956
+ 88,
3957
+ 145,
3958
+ 75,
3959
+ 250,
3960
+ 148,
3961
+ 33
3962
+ ]);
3963
+ function getInstantMintBundleTokensDiscriminatorBytes() {
3964
+ return fixEncoderSize(getBytesEncoder(), 8).encode(INSTANT_MINT_BUNDLE_TOKENS_DISCRIMINATOR);
3965
+ }
3966
+ function getInstantMintBundleTokensInstructionDataEncoder() {
3967
+ return transformEncoder(getStructEncoder([
3968
+ ["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
3969
+ ["amountIn", getU64Encoder()],
3970
+ ["minTokensOut", getU64Encoder()]
3971
+ ]), (value) => ({
3972
+ ...value,
3973
+ discriminator: INSTANT_MINT_BUNDLE_TOKENS_DISCRIMINATOR
3974
+ }));
3975
+ }
3976
+ function getInstantMintBundleTokensInstructionDataDecoder() {
3977
+ return getStructDecoder([
3978
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
3979
+ ["amountIn", getU64Decoder()],
3980
+ ["minTokensOut", getU64Decoder()]
3981
+ ]);
3982
+ }
3983
+ function getInstantMintBundleTokensInstructionDataCodec() {
3984
+ return combineCodec(getInstantMintBundleTokensInstructionDataEncoder(), getInstantMintBundleTokensInstructionDataDecoder());
3985
+ }
3986
+ async function getInstantMintBundleTokensInstructionAsync(input, config) {
3987
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
3988
+ const accounts = {
3989
+ user: {
3990
+ value: input.user ?? null,
3991
+ isWritable: true
3992
+ },
3993
+ userAssetTokenAccount: {
3994
+ value: input.userAssetTokenAccount ?? null,
3995
+ isWritable: true
3996
+ },
3997
+ bundleAssetAccount: {
3998
+ value: input.bundleAssetAccount ?? null,
3999
+ isWritable: true
4000
+ },
4001
+ bundleAssetAuthority: {
4002
+ value: input.bundleAssetAuthority ?? null,
4003
+ isWritable: false
4004
+ },
4005
+ treasuryAccount: {
4006
+ value: input.treasuryAccount ?? null,
4007
+ isWritable: true
4008
+ },
4009
+ bundleAccount: {
4010
+ value: input.bundleAccount ?? null,
4011
+ isWritable: true
4012
+ },
4013
+ bundleTempData: {
4014
+ value: input.bundleTempData ?? null,
4015
+ isWritable: false
4016
+ },
4017
+ oracleData: {
4018
+ value: input.oracleData ?? null,
4019
+ isWritable: false
4020
+ },
4021
+ tokenizedBundleDepositor: {
4022
+ value: input.tokenizedBundleDepositor ?? null,
4023
+ isWritable: true
4024
+ },
4025
+ assetAddress: {
4026
+ value: input.assetAddress ?? null,
4027
+ isWritable: false
4028
+ },
4029
+ mint: {
4030
+ value: input.mint ?? null,
4031
+ isWritable: true
4032
+ },
4033
+ tokenAuthority: {
4034
+ value: input.tokenAuthority ?? null,
4035
+ isWritable: false
4036
+ },
4037
+ destinationTokenAccount: {
4038
+ value: input.destinationTokenAccount ?? null,
4039
+ isWritable: true
4040
+ },
4041
+ tokenProgram: {
4042
+ value: input.tokenProgram ?? null,
4043
+ isWritable: false
4044
+ }
4045
+ };
4046
+ const args = { ...input };
4047
+ if (!accounts.bundleAssetAuthority.value) accounts.bundleAssetAuthority.value = await findBundleAssetAuthorityPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
4048
+ if (!accounts.bundleAssetAccount.value) accounts.bundleAssetAccount.value = await getProgramDerivedAddress({
4049
+ programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
4050
+ seeds: [
4051
+ getAddressEncoder().encode(getAddressFromResolvedInstructionAccount("bundleAssetAuthority", accounts.bundleAssetAuthority.value)),
4052
+ getBytesEncoder().encode(new Uint8Array([
4053
+ 6,
4054
+ 221,
4055
+ 246,
4056
+ 225,
4057
+ 215,
4058
+ 101,
4059
+ 161,
4060
+ 147,
4061
+ 217,
4062
+ 203,
4063
+ 225,
4064
+ 70,
4065
+ 206,
4066
+ 235,
4067
+ 121,
4068
+ 172,
4069
+ 28,
4070
+ 180,
4071
+ 133,
4072
+ 237,
4073
+ 95,
4074
+ 91,
4075
+ 55,
4076
+ 145,
4077
+ 58,
4078
+ 140,
4079
+ 245,
4080
+ 133,
4081
+ 126,
4082
+ 255,
4083
+ 0,
4084
+ 169
4085
+ ])),
4086
+ getAddressEncoder().encode(getAddressFromResolvedInstructionAccount("assetAddress", accounts.assetAddress.value))
4087
+ ]
4088
+ });
4089
+ if (!accounts.bundleTempData.value) accounts.bundleTempData.value = await findBundleTempDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
4090
+ if (!accounts.oracleData.value) accounts.oracleData.value = await findOracleDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
4091
+ if (!accounts.tokenizedBundleDepositor.value) accounts.tokenizedBundleDepositor.value = await findTokenizedBundleDepositorPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
4092
+ if (!accounts.mint.value) accounts.mint.value = await findMintPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
4093
+ if (!accounts.tokenAuthority.value) accounts.tokenAuthority.value = await findTokenAuthorityPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
4094
+ if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
4095
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
4096
+ return Object.freeze({
4097
+ accounts: [
4098
+ getAccountMeta("user", accounts.user),
4099
+ getAccountMeta("userAssetTokenAccount", accounts.userAssetTokenAccount),
4100
+ getAccountMeta("bundleAssetAccount", accounts.bundleAssetAccount),
4101
+ getAccountMeta("bundleAssetAuthority", accounts.bundleAssetAuthority),
4102
+ getAccountMeta("treasuryAccount", accounts.treasuryAccount),
4103
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
4104
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
4105
+ getAccountMeta("oracleData", accounts.oracleData),
4106
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
4107
+ getAccountMeta("assetAddress", accounts.assetAddress),
4108
+ getAccountMeta("mint", accounts.mint),
4109
+ getAccountMeta("tokenAuthority", accounts.tokenAuthority),
4110
+ getAccountMeta("destinationTokenAccount", accounts.destinationTokenAccount),
4111
+ getAccountMeta("tokenProgram", accounts.tokenProgram)
4112
+ ],
4113
+ data: getInstantMintBundleTokensInstructionDataEncoder().encode(args),
3314
4114
  programAddress
3315
4115
  });
3316
4116
  }
3317
- function getInitializePermissionedBundleDepositorInstruction(input, config) {
4117
+ function getInstantMintBundleTokensInstruction(input, config) {
3318
4118
  const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
3319
4119
  const accounts = {
3320
- payer: {
3321
- value: input.payer ?? null,
4120
+ user: {
4121
+ value: input.user ?? null,
3322
4122
  isWritable: true
3323
4123
  },
3324
- authority: {
3325
- value: input.authority ?? null,
4124
+ userAssetTokenAccount: {
4125
+ value: input.userAssetTokenAccount ?? null,
3326
4126
  isWritable: true
3327
4127
  },
3328
- systemProgram: {
3329
- value: input.systemProgram ?? null,
4128
+ bundleAssetAccount: {
4129
+ value: input.bundleAssetAccount ?? null,
4130
+ isWritable: true
4131
+ },
4132
+ bundleAssetAuthority: {
4133
+ value: input.bundleAssetAuthority ?? null,
3330
4134
  isWritable: false
3331
4135
  },
4136
+ treasuryAccount: {
4137
+ value: input.treasuryAccount ?? null,
4138
+ isWritable: true
4139
+ },
3332
4140
  bundleAccount: {
3333
4141
  value: input.bundleAccount ?? null,
3334
4142
  isWritable: true
3335
4143
  },
3336
- userBundleAccount: {
3337
- value: input.userBundleAccount ?? null,
4144
+ bundleTempData: {
4145
+ value: input.bundleTempData ?? null,
4146
+ isWritable: false
4147
+ },
4148
+ oracleData: {
4149
+ value: input.oracleData ?? null,
4150
+ isWritable: false
4151
+ },
4152
+ tokenizedBundleDepositor: {
4153
+ value: input.tokenizedBundleDepositor ?? null,
4154
+ isWritable: true
4155
+ },
4156
+ assetAddress: {
4157
+ value: input.assetAddress ?? null,
4158
+ isWritable: false
4159
+ },
4160
+ mint: {
4161
+ value: input.mint ?? null,
4162
+ isWritable: true
4163
+ },
4164
+ tokenAuthority: {
4165
+ value: input.tokenAuthority ?? null,
4166
+ isWritable: false
4167
+ },
4168
+ destinationTokenAccount: {
4169
+ value: input.destinationTokenAccount ?? null,
3338
4170
  isWritable: true
4171
+ },
4172
+ tokenProgram: {
4173
+ value: input.tokenProgram ?? null,
4174
+ isWritable: false
3339
4175
  }
3340
4176
  };
3341
- if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
4177
+ const args = { ...input };
4178
+ if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
3342
4179
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
3343
4180
  return Object.freeze({
3344
4181
  accounts: [
3345
- getAccountMeta("payer", accounts.payer),
3346
- getAccountMeta("authority", accounts.authority),
3347
- getAccountMeta("systemProgram", accounts.systemProgram),
4182
+ getAccountMeta("user", accounts.user),
4183
+ getAccountMeta("userAssetTokenAccount", accounts.userAssetTokenAccount),
4184
+ getAccountMeta("bundleAssetAccount", accounts.bundleAssetAccount),
4185
+ getAccountMeta("bundleAssetAuthority", accounts.bundleAssetAuthority),
4186
+ getAccountMeta("treasuryAccount", accounts.treasuryAccount),
3348
4187
  getAccountMeta("bundleAccount", accounts.bundleAccount),
3349
- getAccountMeta("userBundleAccount", accounts.userBundleAccount)
4188
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
4189
+ getAccountMeta("oracleData", accounts.oracleData),
4190
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
4191
+ getAccountMeta("assetAddress", accounts.assetAddress),
4192
+ getAccountMeta("mint", accounts.mint),
4193
+ getAccountMeta("tokenAuthority", accounts.tokenAuthority),
4194
+ getAccountMeta("destinationTokenAccount", accounts.destinationTokenAccount),
4195
+ getAccountMeta("tokenProgram", accounts.tokenProgram)
3350
4196
  ],
3351
- data: getInitializePermissionedBundleDepositorInstructionDataEncoder().encode({}),
4197
+ data: getInstantMintBundleTokensInstructionDataEncoder().encode(args),
3352
4198
  programAddress
3353
4199
  });
3354
4200
  }
3355
- function parseInitializePermissionedBundleDepositorInstruction(instruction) {
3356
- if (instruction.accounts.length < 5) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
4201
+ function parseInstantMintBundleTokensInstruction(instruction) {
4202
+ if (instruction.accounts.length < 14) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
3357
4203
  actualAccountMetas: instruction.accounts.length,
3358
- expectedAccountMetas: 5
4204
+ expectedAccountMetas: 14
3359
4205
  });
3360
4206
  let accountIndex = 0;
3361
4207
  const getNextAccount = () => {
@@ -3366,13 +4212,22 @@ function parseInitializePermissionedBundleDepositorInstruction(instruction) {
3366
4212
  return {
3367
4213
  programAddress: instruction.programAddress,
3368
4214
  accounts: {
3369
- payer: getNextAccount(),
3370
- authority: getNextAccount(),
3371
- systemProgram: getNextAccount(),
4215
+ user: getNextAccount(),
4216
+ userAssetTokenAccount: getNextAccount(),
4217
+ bundleAssetAccount: getNextAccount(),
4218
+ bundleAssetAuthority: getNextAccount(),
4219
+ treasuryAccount: getNextAccount(),
3372
4220
  bundleAccount: getNextAccount(),
3373
- userBundleAccount: getNextAccount()
4221
+ bundleTempData: getNextAccount(),
4222
+ oracleData: getNextAccount(),
4223
+ tokenizedBundleDepositor: getNextAccount(),
4224
+ assetAddress: getNextAccount(),
4225
+ mint: getNextAccount(),
4226
+ tokenAuthority: getNextAccount(),
4227
+ destinationTokenAccount: getNextAccount(),
4228
+ tokenProgram: getNextAccount()
3374
4229
  },
3375
- data: getInitializePermissionedBundleDepositorInstructionDataDecoder().decode(instruction.data)
4230
+ data: getInstantMintBundleTokensInstructionDataDecoder().decode(instruction.data)
3376
4231
  };
3377
4232
  }
3378
4233
 
@@ -6747,46 +7602,245 @@ function getRequestDepositInstruction(input, config) {
6747
7602
  value: input.bundleAccount ?? null,
6748
7603
  isWritable: true
6749
7604
  },
6750
- pendingBundleAssetAuthority: {
6751
- value: input.pendingBundleAssetAuthority ?? null,
7605
+ pendingBundleAssetAuthority: {
7606
+ value: input.pendingBundleAssetAuthority ?? null,
7607
+ isWritable: true
7608
+ },
7609
+ tokenProgram: {
7610
+ value: input.tokenProgram ?? null,
7611
+ isWritable: false
7612
+ },
7613
+ systemProgram: {
7614
+ value: input.systemProgram ?? null,
7615
+ isWritable: false
7616
+ }
7617
+ };
7618
+ const args = { ...input };
7619
+ if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
7620
+ if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
7621
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
7622
+ return Object.freeze({
7623
+ accounts: [
7624
+ getAccountMeta("user", accounts.user),
7625
+ getAccountMeta("userTokenAccount", accounts.userTokenAccount),
7626
+ getAccountMeta("pendingDepositTokenAccount", accounts.pendingDepositTokenAccount),
7627
+ getAccountMeta("treasuryAccount", accounts.treasuryAccount),
7628
+ getAccountMeta("userBundleAccount", accounts.userBundleAccount),
7629
+ getAccountMeta("assetAddress", accounts.assetAddress),
7630
+ getAccountMeta("oracleData", accounts.oracleData),
7631
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
7632
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
7633
+ getAccountMeta("pendingBundleAssetAuthority", accounts.pendingBundleAssetAuthority),
7634
+ getAccountMeta("tokenProgram", accounts.tokenProgram),
7635
+ getAccountMeta("systemProgram", accounts.systemProgram)
7636
+ ],
7637
+ data: getRequestDepositInstructionDataEncoder().encode(args),
7638
+ programAddress
7639
+ });
7640
+ }
7641
+ function parseRequestDepositInstruction(instruction) {
7642
+ if (instruction.accounts.length < 12) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
7643
+ actualAccountMetas: instruction.accounts.length,
7644
+ expectedAccountMetas: 12
7645
+ });
7646
+ let accountIndex = 0;
7647
+ const getNextAccount = () => {
7648
+ const accountMeta = instruction.accounts[accountIndex];
7649
+ accountIndex += 1;
7650
+ return accountMeta;
7651
+ };
7652
+ return {
7653
+ programAddress: instruction.programAddress,
7654
+ accounts: {
7655
+ user: getNextAccount(),
7656
+ userTokenAccount: getNextAccount(),
7657
+ pendingDepositTokenAccount: getNextAccount(),
7658
+ treasuryAccount: getNextAccount(),
7659
+ userBundleAccount: getNextAccount(),
7660
+ assetAddress: getNextAccount(),
7661
+ oracleData: getNextAccount(),
7662
+ bundleTempData: getNextAccount(),
7663
+ bundleAccount: getNextAccount(),
7664
+ pendingBundleAssetAuthority: getNextAccount(),
7665
+ tokenProgram: getNextAccount(),
7666
+ systemProgram: getNextAccount()
7667
+ },
7668
+ data: getRequestDepositInstructionDataDecoder().decode(instruction.data)
7669
+ };
7670
+ }
7671
+
7672
+ //#endregion
7673
+ //#region src/generated/instructions/requestTokenWithdrawal.ts
7674
+ /**
7675
+ * This code was AUTOGENERATED using the Codama library.
7676
+ * Please DO NOT EDIT THIS FILE, instead use visitors
7677
+ * to add features, then rerun Codama to update it.
7678
+ *
7679
+ * @see https://github.com/codama-idl/codama
7680
+ */
7681
+ const REQUEST_TOKEN_WITHDRAWAL_DISCRIMINATOR = new Uint8Array([
7682
+ 138,
7683
+ 108,
7684
+ 216,
7685
+ 213,
7686
+ 7,
7687
+ 119,
7688
+ 182,
7689
+ 63
7690
+ ]);
7691
+ function getRequestTokenWithdrawalDiscriminatorBytes() {
7692
+ return fixEncoderSize(getBytesEncoder(), 8).encode(REQUEST_TOKEN_WITHDRAWAL_DISCRIMINATOR);
7693
+ }
7694
+ function getRequestTokenWithdrawalInstructionDataEncoder() {
7695
+ return transformEncoder(getStructEncoder([
7696
+ ["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
7697
+ ["tokensToBurn", getU64Encoder()],
7698
+ ["minSharesOut", getU128Encoder()]
7699
+ ]), (value) => ({
7700
+ ...value,
7701
+ discriminator: REQUEST_TOKEN_WITHDRAWAL_DISCRIMINATOR
7702
+ }));
7703
+ }
7704
+ function getRequestTokenWithdrawalInstructionDataDecoder() {
7705
+ return getStructDecoder([
7706
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
7707
+ ["tokensToBurn", getU64Decoder()],
7708
+ ["minSharesOut", getU128Decoder()]
7709
+ ]);
7710
+ }
7711
+ function getRequestTokenWithdrawalInstructionDataCodec() {
7712
+ return combineCodec(getRequestTokenWithdrawalInstructionDataEncoder(), getRequestTokenWithdrawalInstructionDataDecoder());
7713
+ }
7714
+ async function getRequestTokenWithdrawalInstructionAsync(input, config) {
7715
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
7716
+ const accounts = {
7717
+ user: {
7718
+ value: input.user ?? null,
7719
+ isWritable: true
7720
+ },
7721
+ userBundleAccount: {
7722
+ value: input.userBundleAccount ?? null,
7723
+ isWritable: true
7724
+ },
7725
+ bundleAccount: {
7726
+ value: input.bundleAccount ?? null,
7727
+ isWritable: true
7728
+ },
7729
+ bundleTempData: {
7730
+ value: input.bundleTempData ?? null,
7731
+ isWritable: true
7732
+ },
7733
+ oracleData: {
7734
+ value: input.oracleData ?? null,
7735
+ isWritable: false
7736
+ },
7737
+ tokenizedBundleDepositor: {
7738
+ value: input.tokenizedBundleDepositor ?? null,
7739
+ isWritable: true
7740
+ },
7741
+ mint: {
7742
+ value: input.mint ?? null,
7743
+ isWritable: true
7744
+ },
7745
+ sourceTokenAccount: {
7746
+ value: input.sourceTokenAccount ?? null,
7747
+ isWritable: true
7748
+ },
7749
+ tokenProgram: {
7750
+ value: input.tokenProgram ?? null,
7751
+ isWritable: false
7752
+ }
7753
+ };
7754
+ const args = { ...input };
7755
+ if (!accounts.userBundleAccount.value) accounts.userBundleAccount.value = await findRequestBundleSwitchUserBundleAccountPda({
7756
+ user: getAddressFromResolvedInstructionAccount("user", accounts.user.value),
7757
+ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value)
7758
+ }, { programAddress });
7759
+ if (!accounts.bundleTempData.value) accounts.bundleTempData.value = await findBundleTempDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
7760
+ if (!accounts.oracleData.value) accounts.oracleData.value = await findOracleDataPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
7761
+ if (!accounts.tokenizedBundleDepositor.value) accounts.tokenizedBundleDepositor.value = await findTokenizedBundleDepositorPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
7762
+ if (!accounts.mint.value) accounts.mint.value = await findMintPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
7763
+ if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
7764
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
7765
+ return Object.freeze({
7766
+ accounts: [
7767
+ getAccountMeta("user", accounts.user),
7768
+ getAccountMeta("userBundleAccount", accounts.userBundleAccount),
7769
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
7770
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
7771
+ getAccountMeta("oracleData", accounts.oracleData),
7772
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
7773
+ getAccountMeta("mint", accounts.mint),
7774
+ getAccountMeta("sourceTokenAccount", accounts.sourceTokenAccount),
7775
+ getAccountMeta("tokenProgram", accounts.tokenProgram)
7776
+ ],
7777
+ data: getRequestTokenWithdrawalInstructionDataEncoder().encode(args),
7778
+ programAddress
7779
+ });
7780
+ }
7781
+ function getRequestTokenWithdrawalInstruction(input, config) {
7782
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
7783
+ const accounts = {
7784
+ user: {
7785
+ value: input.user ?? null,
7786
+ isWritable: true
7787
+ },
7788
+ userBundleAccount: {
7789
+ value: input.userBundleAccount ?? null,
7790
+ isWritable: true
7791
+ },
7792
+ bundleAccount: {
7793
+ value: input.bundleAccount ?? null,
7794
+ isWritable: true
7795
+ },
7796
+ bundleTempData: {
7797
+ value: input.bundleTempData ?? null,
7798
+ isWritable: true
7799
+ },
7800
+ oracleData: {
7801
+ value: input.oracleData ?? null,
7802
+ isWritable: false
7803
+ },
7804
+ tokenizedBundleDepositor: {
7805
+ value: input.tokenizedBundleDepositor ?? null,
7806
+ isWritable: true
7807
+ },
7808
+ mint: {
7809
+ value: input.mint ?? null,
7810
+ isWritable: true
7811
+ },
7812
+ sourceTokenAccount: {
7813
+ value: input.sourceTokenAccount ?? null,
6752
7814
  isWritable: true
6753
7815
  },
6754
7816
  tokenProgram: {
6755
7817
  value: input.tokenProgram ?? null,
6756
7818
  isWritable: false
6757
- },
6758
- systemProgram: {
6759
- value: input.systemProgram ?? null,
6760
- isWritable: false
6761
7819
  }
6762
7820
  };
6763
7821
  const args = { ...input };
6764
7822
  if (!accounts.tokenProgram.value) accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
6765
- if (!accounts.systemProgram.value) accounts.systemProgram.value = "11111111111111111111111111111111";
6766
7823
  const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
6767
7824
  return Object.freeze({
6768
7825
  accounts: [
6769
7826
  getAccountMeta("user", accounts.user),
6770
- getAccountMeta("userTokenAccount", accounts.userTokenAccount),
6771
- getAccountMeta("pendingDepositTokenAccount", accounts.pendingDepositTokenAccount),
6772
- getAccountMeta("treasuryAccount", accounts.treasuryAccount),
6773
7827
  getAccountMeta("userBundleAccount", accounts.userBundleAccount),
6774
- getAccountMeta("assetAddress", accounts.assetAddress),
6775
- getAccountMeta("oracleData", accounts.oracleData),
6776
- getAccountMeta("bundleTempData", accounts.bundleTempData),
6777
7828
  getAccountMeta("bundleAccount", accounts.bundleAccount),
6778
- getAccountMeta("pendingBundleAssetAuthority", accounts.pendingBundleAssetAuthority),
6779
- getAccountMeta("tokenProgram", accounts.tokenProgram),
6780
- getAccountMeta("systemProgram", accounts.systemProgram)
7829
+ getAccountMeta("bundleTempData", accounts.bundleTempData),
7830
+ getAccountMeta("oracleData", accounts.oracleData),
7831
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor),
7832
+ getAccountMeta("mint", accounts.mint),
7833
+ getAccountMeta("sourceTokenAccount", accounts.sourceTokenAccount),
7834
+ getAccountMeta("tokenProgram", accounts.tokenProgram)
6781
7835
  ],
6782
- data: getRequestDepositInstructionDataEncoder().encode(args),
7836
+ data: getRequestTokenWithdrawalInstructionDataEncoder().encode(args),
6783
7837
  programAddress
6784
7838
  });
6785
7839
  }
6786
- function parseRequestDepositInstruction(instruction) {
6787
- if (instruction.accounts.length < 12) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
7840
+ function parseRequestTokenWithdrawalInstruction(instruction) {
7841
+ if (instruction.accounts.length < 9) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
6788
7842
  actualAccountMetas: instruction.accounts.length,
6789
- expectedAccountMetas: 12
7843
+ expectedAccountMetas: 9
6790
7844
  });
6791
7845
  let accountIndex = 0;
6792
7846
  const getNextAccount = () => {
@@ -6798,19 +7852,16 @@ function parseRequestDepositInstruction(instruction) {
6798
7852
  programAddress: instruction.programAddress,
6799
7853
  accounts: {
6800
7854
  user: getNextAccount(),
6801
- userTokenAccount: getNextAccount(),
6802
- pendingDepositTokenAccount: getNextAccount(),
6803
- treasuryAccount: getNextAccount(),
6804
7855
  userBundleAccount: getNextAccount(),
6805
- assetAddress: getNextAccount(),
6806
- oracleData: getNextAccount(),
6807
- bundleTempData: getNextAccount(),
6808
7856
  bundleAccount: getNextAccount(),
6809
- pendingBundleAssetAuthority: getNextAccount(),
6810
- tokenProgram: getNextAccount(),
6811
- systemProgram: getNextAccount()
7857
+ bundleTempData: getNextAccount(),
7858
+ oracleData: getNextAccount(),
7859
+ tokenizedBundleDepositor: getNextAccount(),
7860
+ mint: getNextAccount(),
7861
+ sourceTokenAccount: getNextAccount(),
7862
+ tokenProgram: getNextAccount()
6812
7863
  },
6813
- data: getRequestDepositInstructionDataDecoder().decode(instruction.data)
7864
+ data: getRequestTokenWithdrawalInstructionDataDecoder().decode(instruction.data)
6814
7865
  };
6815
7866
  }
6816
7867
 
@@ -7307,6 +8358,81 @@ function parseSetFeesInstruction(instruction) {
7307
8358
  };
7308
8359
  }
7309
8360
 
8361
+ //#endregion
8362
+ //#region src/generated/instructions/setIssuanceFee.ts
8363
+ /**
8364
+ * This code was AUTOGENERATED using the Codama library.
8365
+ * Please DO NOT EDIT THIS FILE, instead use visitors
8366
+ * to add features, then rerun Codama to update it.
8367
+ *
8368
+ * @see https://github.com/codama-idl/codama
8369
+ */
8370
+ const SET_ISSUANCE_FEE_DISCRIMINATOR = new Uint8Array([
8371
+ 44,
8372
+ 117,
8373
+ 252,
8374
+ 159,
8375
+ 144,
8376
+ 198,
8377
+ 56,
8378
+ 169
8379
+ ]);
8380
+ function getSetIssuanceFeeDiscriminatorBytes() {
8381
+ return fixEncoderSize(getBytesEncoder(), 8).encode(SET_ISSUANCE_FEE_DISCRIMINATOR);
8382
+ }
8383
+ function getSetIssuanceFeeInstructionDataEncoder() {
8384
+ return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)], ["issuanceFeeBps", getU32Encoder()]]), (value) => ({
8385
+ ...value,
8386
+ discriminator: SET_ISSUANCE_FEE_DISCRIMINATOR
8387
+ }));
8388
+ }
8389
+ function getSetIssuanceFeeInstructionDataDecoder() {
8390
+ return getStructDecoder([["discriminator", fixDecoderSize(getBytesDecoder(), 8)], ["issuanceFeeBps", getU32Decoder()]]);
8391
+ }
8392
+ function getSetIssuanceFeeInstructionDataCodec() {
8393
+ return combineCodec(getSetIssuanceFeeInstructionDataEncoder(), getSetIssuanceFeeInstructionDataDecoder());
8394
+ }
8395
+ function getSetIssuanceFeeInstruction(input, config) {
8396
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
8397
+ const accounts = {
8398
+ manager: {
8399
+ value: input.manager ?? null,
8400
+ isWritable: true
8401
+ },
8402
+ bundleAccount: {
8403
+ value: input.bundleAccount ?? null,
8404
+ isWritable: true
8405
+ }
8406
+ };
8407
+ const args = { ...input };
8408
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
8409
+ return Object.freeze({
8410
+ accounts: [getAccountMeta("manager", accounts.manager), getAccountMeta("bundleAccount", accounts.bundleAccount)],
8411
+ data: getSetIssuanceFeeInstructionDataEncoder().encode(args),
8412
+ programAddress
8413
+ });
8414
+ }
8415
+ function parseSetIssuanceFeeInstruction(instruction) {
8416
+ if (instruction.accounts.length < 2) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
8417
+ actualAccountMetas: instruction.accounts.length,
8418
+ expectedAccountMetas: 2
8419
+ });
8420
+ let accountIndex = 0;
8421
+ const getNextAccount = () => {
8422
+ const accountMeta = instruction.accounts[accountIndex];
8423
+ accountIndex += 1;
8424
+ return accountMeta;
8425
+ };
8426
+ return {
8427
+ programAddress: instruction.programAddress,
8428
+ accounts: {
8429
+ manager: getNextAccount(),
8430
+ bundleAccount: getNextAccount()
8431
+ },
8432
+ data: getSetIssuanceFeeInstructionDataDecoder().decode(instruction.data)
8433
+ };
8434
+ }
8435
+
7310
8436
  //#endregion
7311
8437
  //#region src/generated/instructions/setKeeper.ts
7312
8438
  /**
@@ -7532,6 +8658,119 @@ function parseSetMinDepositAmountInstruction(instruction) {
7532
8658
  };
7533
8659
  }
7534
8660
 
8661
+ //#endregion
8662
+ //#region src/generated/instructions/setMintCapPerCycle.ts
8663
+ /**
8664
+ * This code was AUTOGENERATED using the Codama library.
8665
+ * Please DO NOT EDIT THIS FILE, instead use visitors
8666
+ * to add features, then rerun Codama to update it.
8667
+ *
8668
+ * @see https://github.com/codama-idl/codama
8669
+ */
8670
+ const SET_MINT_CAP_PER_CYCLE_DISCRIMINATOR = new Uint8Array([
8671
+ 114,
8672
+ 75,
8673
+ 182,
8674
+ 13,
8675
+ 172,
8676
+ 126,
8677
+ 102,
8678
+ 237
8679
+ ]);
8680
+ function getSetMintCapPerCycleDiscriminatorBytes() {
8681
+ return fixEncoderSize(getBytesEncoder(), 8).encode(SET_MINT_CAP_PER_CYCLE_DISCRIMINATOR);
8682
+ }
8683
+ function getSetMintCapPerCycleInstructionDataEncoder() {
8684
+ return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)], ["mintCapPerCycle", getU64Encoder()]]), (value) => ({
8685
+ ...value,
8686
+ discriminator: SET_MINT_CAP_PER_CYCLE_DISCRIMINATOR
8687
+ }));
8688
+ }
8689
+ function getSetMintCapPerCycleInstructionDataDecoder() {
8690
+ return getStructDecoder([["discriminator", fixDecoderSize(getBytesDecoder(), 8)], ["mintCapPerCycle", getU64Decoder()]]);
8691
+ }
8692
+ function getSetMintCapPerCycleInstructionDataCodec() {
8693
+ return combineCodec(getSetMintCapPerCycleInstructionDataEncoder(), getSetMintCapPerCycleInstructionDataDecoder());
8694
+ }
8695
+ async function getSetMintCapPerCycleInstructionAsync(input, config) {
8696
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
8697
+ const accounts = {
8698
+ manager: {
8699
+ value: input.manager ?? null,
8700
+ isWritable: true
8701
+ },
8702
+ bundleAccount: {
8703
+ value: input.bundleAccount ?? null,
8704
+ isWritable: false
8705
+ },
8706
+ tokenizedBundleDepositor: {
8707
+ value: input.tokenizedBundleDepositor ?? null,
8708
+ isWritable: true
8709
+ }
8710
+ };
8711
+ const args = { ...input };
8712
+ if (!accounts.tokenizedBundleDepositor.value) accounts.tokenizedBundleDepositor.value = await findTokenizedBundleDepositorPda({ bundleAccount: getAddressFromResolvedInstructionAccount("bundleAccount", accounts.bundleAccount.value) }, { programAddress });
8713
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
8714
+ return Object.freeze({
8715
+ accounts: [
8716
+ getAccountMeta("manager", accounts.manager),
8717
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
8718
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor)
8719
+ ],
8720
+ data: getSetMintCapPerCycleInstructionDataEncoder().encode(args),
8721
+ programAddress
8722
+ });
8723
+ }
8724
+ function getSetMintCapPerCycleInstruction(input, config) {
8725
+ const programAddress = config?.programAddress ?? NTBUNDLE_PROGRAM_ADDRESS;
8726
+ const accounts = {
8727
+ manager: {
8728
+ value: input.manager ?? null,
8729
+ isWritable: true
8730
+ },
8731
+ bundleAccount: {
8732
+ value: input.bundleAccount ?? null,
8733
+ isWritable: false
8734
+ },
8735
+ tokenizedBundleDepositor: {
8736
+ value: input.tokenizedBundleDepositor ?? null,
8737
+ isWritable: true
8738
+ }
8739
+ };
8740
+ const args = { ...input };
8741
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
8742
+ return Object.freeze({
8743
+ accounts: [
8744
+ getAccountMeta("manager", accounts.manager),
8745
+ getAccountMeta("bundleAccount", accounts.bundleAccount),
8746
+ getAccountMeta("tokenizedBundleDepositor", accounts.tokenizedBundleDepositor)
8747
+ ],
8748
+ data: getSetMintCapPerCycleInstructionDataEncoder().encode(args),
8749
+ programAddress
8750
+ });
8751
+ }
8752
+ function parseSetMintCapPerCycleInstruction(instruction) {
8753
+ if (instruction.accounts.length < 3) throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
8754
+ actualAccountMetas: instruction.accounts.length,
8755
+ expectedAccountMetas: 3
8756
+ });
8757
+ let accountIndex = 0;
8758
+ const getNextAccount = () => {
8759
+ const accountMeta = instruction.accounts[accountIndex];
8760
+ accountIndex += 1;
8761
+ return accountMeta;
8762
+ };
8763
+ return {
8764
+ programAddress: instruction.programAddress,
8765
+ accounts: {
8766
+ manager: getNextAccount(),
8767
+ bundleAccount: getNextAccount(),
8768
+ tokenizedBundleDepositor: getNextAccount()
8769
+ },
8770
+ data: getSetMintCapPerCycleInstructionDataDecoder().decode(instruction.data)
8771
+ };
8772
+ }
8773
+
7535
8774
  //#endregion
7536
8775
  //#region src/generated/instructions/setOracleBuffer.ts
7537
8776
  /**
@@ -8989,7 +10228,8 @@ let NtbundleAccount = /* @__PURE__ */ function(NtbundleAccount$1) {
8989
10228
  NtbundleAccount$1[NtbundleAccount$1["OracleData"] = 4] = "OracleData";
8990
10229
  NtbundleAccount$1[NtbundleAccount$1["ReferrerAccount"] = 5] = "ReferrerAccount";
8991
10230
  NtbundleAccount$1[NtbundleAccount$1["Strategy"] = 6] = "Strategy";
8992
- NtbundleAccount$1[NtbundleAccount$1["UserBundleAccount"] = 7] = "UserBundleAccount";
10231
+ NtbundleAccount$1[NtbundleAccount$1["TokenizedBundleDepositor"] = 7] = "TokenizedBundleDepositor";
10232
+ NtbundleAccount$1[NtbundleAccount$1["UserBundleAccount"] = 8] = "UserBundleAccount";
8993
10233
  return NtbundleAccount$1;
8994
10234
  }({});
8995
10235
  function identifyNtbundleAccount(account) {
@@ -9064,6 +10304,16 @@ function identifyNtbundleAccount(account) {
9064
10304
  169,
9065
10305
  102
9066
10306
  ])), 0)) return NtbundleAccount.Strategy;
10307
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10308
+ 76,
10309
+ 78,
10310
+ 8,
10311
+ 31,
10312
+ 121,
10313
+ 235,
10314
+ 87,
10315
+ 100
10316
+ ])), 0)) return NtbundleAccount.TokenizedBundleDepositor;
9067
10317
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
9068
10318
  32,
9069
10319
  181,
@@ -9081,55 +10331,61 @@ function identifyNtbundleAccount(account) {
9081
10331
  }
9082
10332
  let NtbundleInstruction = /* @__PURE__ */ function(NtbundleInstruction$1) {
9083
10333
  NtbundleInstruction$1[NtbundleInstruction$1["AddStrategy"] = 0] = "AddStrategy";
9084
- NtbundleInstruction$1[NtbundleInstruction$1["ApplyFeesToUser"] = 1] = "ApplyFeesToUser";
9085
- NtbundleInstruction$1[NtbundleInstruction$1["ChangeBundleMasterAdmin"] = 2] = "ChangeBundleMasterAdmin";
9086
- NtbundleInstruction$1[NtbundleInstruction$1["ChangeManager"] = 3] = "ChangeManager";
9087
- NtbundleInstruction$1[NtbundleInstruction$1["ClearUserFeeOverride"] = 4] = "ClearUserFeeOverride";
9088
- NtbundleInstruction$1[NtbundleInstruction$1["ClearUserWithdrawalTimingOverride"] = 5] = "ClearUserWithdrawalTimingOverride";
9089
- NtbundleInstruction$1[NtbundleInstruction$1["CloseUserBundleAccount"] = 6] = "CloseUserBundleAccount";
9090
- NtbundleInstruction$1[NtbundleInstruction$1["DistributeToReceivers"] = 7] = "DistributeToReceivers";
9091
- NtbundleInstruction$1[NtbundleInstruction$1["EnableStrategy"] = 8] = "EnableStrategy";
9092
- NtbundleInstruction$1[NtbundleInstruction$1["EndDistribution"] = 9] = "EndDistribution";
9093
- NtbundleInstruction$1[NtbundleInstruction$1["InitializeBundle"] = 10] = "InitializeBundle";
9094
- NtbundleInstruction$1[NtbundleInstruction$1["InitializeBundleDepositor"] = 11] = "InitializeBundleDepositor";
9095
- NtbundleInstruction$1[NtbundleInstruction$1["InitializeBundleMasterAccount"] = 12] = "InitializeBundleMasterAccount";
9096
- NtbundleInstruction$1[NtbundleInstruction$1["InitializePermissionedBundleDepositor"] = 13] = "InitializePermissionedBundleDepositor";
9097
- NtbundleInstruction$1[NtbundleInstruction$1["ManagerWithdraw"] = 14] = "ManagerWithdraw";
9098
- NtbundleInstruction$1[NtbundleInstruction$1["ManagerWithdrawWithSplit"] = 15] = "ManagerWithdrawWithSplit";
9099
- NtbundleInstruction$1[NtbundleInstruction$1["NetPendingTransactions"] = 16] = "NetPendingTransactions";
9100
- NtbundleInstruction$1[NtbundleInstruction$1["PauseDepositsWithdrawals"] = 17] = "PauseDepositsWithdrawals";
9101
- NtbundleInstruction$1[NtbundleInstruction$1["PerformRefill"] = 18] = "PerformRefill";
9102
- NtbundleInstruction$1[NtbundleInstruction$1["ProcessDeposit"] = 19] = "ProcessDeposit";
9103
- NtbundleInstruction$1[NtbundleInstruction$1["ProcessReferrerWithdrawal"] = 20] = "ProcessReferrerWithdrawal";
9104
- NtbundleInstruction$1[NtbundleInstruction$1["ProcessSwitch"] = 21] = "ProcessSwitch";
9105
- NtbundleInstruction$1[NtbundleInstruction$1["ProcessWithdrawal"] = 22] = "ProcessWithdrawal";
9106
- NtbundleInstruction$1[NtbundleInstruction$1["ReferrerRequestWithdraw"] = 23] = "ReferrerRequestWithdraw";
9107
- NtbundleInstruction$1[NtbundleInstruction$1["RefundDeposit"] = 24] = "RefundDeposit";
9108
- NtbundleInstruction$1[NtbundleInstruction$1["RegisterReferrer"] = 25] = "RegisterReferrer";
9109
- NtbundleInstruction$1[NtbundleInstruction$1["RemoveStrategy"] = 26] = "RemoveStrategy";
9110
- NtbundleInstruction$1[NtbundleInstruction$1["RequestBundleSwitch"] = 27] = "RequestBundleSwitch";
9111
- NtbundleInstruction$1[NtbundleInstruction$1["RequestDeposit"] = 28] = "RequestDeposit";
9112
- NtbundleInstruction$1[NtbundleInstruction$1["RequestWithdrawal"] = 29] = "RequestWithdrawal";
9113
- NtbundleInstruction$1[NtbundleInstruction$1["SetBundleCreator"] = 30] = "SetBundleCreator";
9114
- NtbundleInstruction$1[NtbundleInstruction$1["SetDelays"] = 31] = "SetDelays";
9115
- NtbundleInstruction$1[NtbundleInstruction$1["SetFees"] = 32] = "SetFees";
9116
- NtbundleInstruction$1[NtbundleInstruction$1["SetKeeper"] = 33] = "SetKeeper";
9117
- NtbundleInstruction$1[NtbundleInstruction$1["SetMaxDepositAmount"] = 34] = "SetMaxDepositAmount";
9118
- NtbundleInstruction$1[NtbundleInstruction$1["SetMinDepositAmount"] = 35] = "SetMinDepositAmount";
9119
- NtbundleInstruction$1[NtbundleInstruction$1["SetOracleBuffer"] = 36] = "SetOracleBuffer";
9120
- NtbundleInstruction$1[NtbundleInstruction$1["SetOracleMaxAge"] = 37] = "SetOracleMaxAge";
9121
- NtbundleInstruction$1[NtbundleInstruction$1["SetOracleUpdateTimeLimit"] = 38] = "SetOracleUpdateTimeLimit";
9122
- NtbundleInstruction$1[NtbundleInstruction$1["SetReferralTierConfig"] = 39] = "SetReferralTierConfig";
9123
- NtbundleInstruction$1[NtbundleInstruction$1["SetReferrerActive"] = 40] = "SetReferrerActive";
9124
- NtbundleInstruction$1[NtbundleInstruction$1["SetReferrerConfig"] = 41] = "SetReferrerConfig";
9125
- NtbundleInstruction$1[NtbundleInstruction$1["SetReferrerRateOverride"] = 42] = "SetReferrerRateOverride";
9126
- NtbundleInstruction$1[NtbundleInstruction$1["SetUserFeeOverride"] = 43] = "SetUserFeeOverride";
9127
- NtbundleInstruction$1[NtbundleInstruction$1["SetUserReferrer"] = 44] = "SetUserReferrer";
9128
- NtbundleInstruction$1[NtbundleInstruction$1["SetUserWithdrawalTimingOverride"] = 45] = "SetUserWithdrawalTimingOverride";
9129
- NtbundleInstruction$1[NtbundleInstruction$1["SetWithdrawalRedemptionSchedule"] = 46] = "SetWithdrawalRedemptionSchedule";
9130
- NtbundleInstruction$1[NtbundleInstruction$1["StartDistribution"] = 47] = "StartDistribution";
9131
- NtbundleInstruction$1[NtbundleInstruction$1["UpdateAllocations"] = 48] = "UpdateAllocations";
9132
- NtbundleInstruction$1[NtbundleInstruction$1["UpdateOracle"] = 49] = "UpdateOracle";
10334
+ NtbundleInstruction$1[NtbundleInstruction$1["ApplyFeesToTokenizedDepositor"] = 1] = "ApplyFeesToTokenizedDepositor";
10335
+ NtbundleInstruction$1[NtbundleInstruction$1["ApplyFeesToUser"] = 2] = "ApplyFeesToUser";
10336
+ NtbundleInstruction$1[NtbundleInstruction$1["ChangeBundleMasterAdmin"] = 3] = "ChangeBundleMasterAdmin";
10337
+ NtbundleInstruction$1[NtbundleInstruction$1["ChangeManager"] = 4] = "ChangeManager";
10338
+ NtbundleInstruction$1[NtbundleInstruction$1["ClearUserFeeOverride"] = 5] = "ClearUserFeeOverride";
10339
+ NtbundleInstruction$1[NtbundleInstruction$1["ClearUserWithdrawalTimingOverride"] = 6] = "ClearUserWithdrawalTimingOverride";
10340
+ NtbundleInstruction$1[NtbundleInstruction$1["CloseUserBundleAccount"] = 7] = "CloseUserBundleAccount";
10341
+ NtbundleInstruction$1[NtbundleInstruction$1["DistributeToReceivers"] = 8] = "DistributeToReceivers";
10342
+ NtbundleInstruction$1[NtbundleInstruction$1["EnableStrategy"] = 9] = "EnableStrategy";
10343
+ NtbundleInstruction$1[NtbundleInstruction$1["EndDistribution"] = 10] = "EndDistribution";
10344
+ NtbundleInstruction$1[NtbundleInstruction$1["InitializeBundle"] = 11] = "InitializeBundle";
10345
+ NtbundleInstruction$1[NtbundleInstruction$1["InitializeBundleDepositor"] = 12] = "InitializeBundleDepositor";
10346
+ NtbundleInstruction$1[NtbundleInstruction$1["InitializeBundleMasterAccount"] = 13] = "InitializeBundleMasterAccount";
10347
+ NtbundleInstruction$1[NtbundleInstruction$1["InitializePermissionedBundleDepositor"] = 14] = "InitializePermissionedBundleDepositor";
10348
+ NtbundleInstruction$1[NtbundleInstruction$1["InitializeTokenizedBundleDepositor"] = 15] = "InitializeTokenizedBundleDepositor";
10349
+ NtbundleInstruction$1[NtbundleInstruction$1["InstantMintBundleTokens"] = 16] = "InstantMintBundleTokens";
10350
+ NtbundleInstruction$1[NtbundleInstruction$1["ManagerWithdraw"] = 17] = "ManagerWithdraw";
10351
+ NtbundleInstruction$1[NtbundleInstruction$1["ManagerWithdrawWithSplit"] = 18] = "ManagerWithdrawWithSplit";
10352
+ NtbundleInstruction$1[NtbundleInstruction$1["NetPendingTransactions"] = 19] = "NetPendingTransactions";
10353
+ NtbundleInstruction$1[NtbundleInstruction$1["PauseDepositsWithdrawals"] = 20] = "PauseDepositsWithdrawals";
10354
+ NtbundleInstruction$1[NtbundleInstruction$1["PerformRefill"] = 21] = "PerformRefill";
10355
+ NtbundleInstruction$1[NtbundleInstruction$1["ProcessDeposit"] = 22] = "ProcessDeposit";
10356
+ NtbundleInstruction$1[NtbundleInstruction$1["ProcessReferrerWithdrawal"] = 23] = "ProcessReferrerWithdrawal";
10357
+ NtbundleInstruction$1[NtbundleInstruction$1["ProcessSwitch"] = 24] = "ProcessSwitch";
10358
+ NtbundleInstruction$1[NtbundleInstruction$1["ProcessWithdrawal"] = 25] = "ProcessWithdrawal";
10359
+ NtbundleInstruction$1[NtbundleInstruction$1["ReferrerRequestWithdraw"] = 26] = "ReferrerRequestWithdraw";
10360
+ NtbundleInstruction$1[NtbundleInstruction$1["RefundDeposit"] = 27] = "RefundDeposit";
10361
+ NtbundleInstruction$1[NtbundleInstruction$1["RegisterReferrer"] = 28] = "RegisterReferrer";
10362
+ NtbundleInstruction$1[NtbundleInstruction$1["RemoveStrategy"] = 29] = "RemoveStrategy";
10363
+ NtbundleInstruction$1[NtbundleInstruction$1["RequestBundleSwitch"] = 30] = "RequestBundleSwitch";
10364
+ NtbundleInstruction$1[NtbundleInstruction$1["RequestDeposit"] = 31] = "RequestDeposit";
10365
+ NtbundleInstruction$1[NtbundleInstruction$1["RequestTokenWithdrawal"] = 32] = "RequestTokenWithdrawal";
10366
+ NtbundleInstruction$1[NtbundleInstruction$1["RequestWithdrawal"] = 33] = "RequestWithdrawal";
10367
+ NtbundleInstruction$1[NtbundleInstruction$1["SetBundleCreator"] = 34] = "SetBundleCreator";
10368
+ NtbundleInstruction$1[NtbundleInstruction$1["SetDelays"] = 35] = "SetDelays";
10369
+ NtbundleInstruction$1[NtbundleInstruction$1["SetFees"] = 36] = "SetFees";
10370
+ NtbundleInstruction$1[NtbundleInstruction$1["SetIssuanceFee"] = 37] = "SetIssuanceFee";
10371
+ NtbundleInstruction$1[NtbundleInstruction$1["SetKeeper"] = 38] = "SetKeeper";
10372
+ NtbundleInstruction$1[NtbundleInstruction$1["SetMaxDepositAmount"] = 39] = "SetMaxDepositAmount";
10373
+ NtbundleInstruction$1[NtbundleInstruction$1["SetMinDepositAmount"] = 40] = "SetMinDepositAmount";
10374
+ NtbundleInstruction$1[NtbundleInstruction$1["SetMintCapPerCycle"] = 41] = "SetMintCapPerCycle";
10375
+ NtbundleInstruction$1[NtbundleInstruction$1["SetOracleBuffer"] = 42] = "SetOracleBuffer";
10376
+ NtbundleInstruction$1[NtbundleInstruction$1["SetOracleMaxAge"] = 43] = "SetOracleMaxAge";
10377
+ NtbundleInstruction$1[NtbundleInstruction$1["SetOracleUpdateTimeLimit"] = 44] = "SetOracleUpdateTimeLimit";
10378
+ NtbundleInstruction$1[NtbundleInstruction$1["SetReferralTierConfig"] = 45] = "SetReferralTierConfig";
10379
+ NtbundleInstruction$1[NtbundleInstruction$1["SetReferrerActive"] = 46] = "SetReferrerActive";
10380
+ NtbundleInstruction$1[NtbundleInstruction$1["SetReferrerConfig"] = 47] = "SetReferrerConfig";
10381
+ NtbundleInstruction$1[NtbundleInstruction$1["SetReferrerRateOverride"] = 48] = "SetReferrerRateOverride";
10382
+ NtbundleInstruction$1[NtbundleInstruction$1["SetUserFeeOverride"] = 49] = "SetUserFeeOverride";
10383
+ NtbundleInstruction$1[NtbundleInstruction$1["SetUserReferrer"] = 50] = "SetUserReferrer";
10384
+ NtbundleInstruction$1[NtbundleInstruction$1["SetUserWithdrawalTimingOverride"] = 51] = "SetUserWithdrawalTimingOverride";
10385
+ NtbundleInstruction$1[NtbundleInstruction$1["SetWithdrawalRedemptionSchedule"] = 52] = "SetWithdrawalRedemptionSchedule";
10386
+ NtbundleInstruction$1[NtbundleInstruction$1["StartDistribution"] = 53] = "StartDistribution";
10387
+ NtbundleInstruction$1[NtbundleInstruction$1["UpdateAllocations"] = 54] = "UpdateAllocations";
10388
+ NtbundleInstruction$1[NtbundleInstruction$1["UpdateOracle"] = 55] = "UpdateOracle";
9133
10389
  return NtbundleInstruction$1;
9134
10390
  }({});
9135
10391
  function identifyNtbundleInstruction(instruction) {
@@ -9144,6 +10400,16 @@ function identifyNtbundleInstruction(instruction) {
9144
10400
  198,
9145
10401
  20
9146
10402
  ])), 0)) return NtbundleInstruction.AddStrategy;
10403
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10404
+ 237,
10405
+ 243,
10406
+ 229,
10407
+ 36,
10408
+ 146,
10409
+ 77,
10410
+ 86,
10411
+ 168
10412
+ ])), 0)) return NtbundleInstruction.ApplyFeesToTokenizedDepositor;
9147
10413
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
9148
10414
  26,
9149
10415
  41,
@@ -9274,6 +10540,26 @@ function identifyNtbundleInstruction(instruction) {
9274
10540
  37,
9275
10541
  255
9276
10542
  ])), 0)) return NtbundleInstruction.InitializePermissionedBundleDepositor;
10543
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10544
+ 56,
10545
+ 137,
10546
+ 71,
10547
+ 110,
10548
+ 14,
10549
+ 153,
10550
+ 246,
10551
+ 241
10552
+ ])), 0)) return NtbundleInstruction.InitializeTokenizedBundleDepositor;
10553
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10554
+ 56,
10555
+ 192,
10556
+ 88,
10557
+ 145,
10558
+ 75,
10559
+ 250,
10560
+ 148,
10561
+ 33
10562
+ ])), 0)) return NtbundleInstruction.InstantMintBundleTokens;
9277
10563
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
9278
10564
  201,
9279
10565
  248,
@@ -9424,6 +10710,16 @@ function identifyNtbundleInstruction(instruction) {
9424
10710
  213,
9425
10711
  109
9426
10712
  ])), 0)) return NtbundleInstruction.RequestDeposit;
10713
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10714
+ 138,
10715
+ 108,
10716
+ 216,
10717
+ 213,
10718
+ 7,
10719
+ 119,
10720
+ 182,
10721
+ 63
10722
+ ])), 0)) return NtbundleInstruction.RequestTokenWithdrawal;
9427
10723
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
9428
10724
  251,
9429
10725
  85,
@@ -9464,6 +10760,16 @@ function identifyNtbundleInstruction(instruction) {
9464
10760
  242,
9465
10761
  190
9466
10762
  ])), 0)) return NtbundleInstruction.SetFees;
10763
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10764
+ 44,
10765
+ 117,
10766
+ 252,
10767
+ 159,
10768
+ 144,
10769
+ 198,
10770
+ 56,
10771
+ 169
10772
+ ])), 0)) return NtbundleInstruction.SetIssuanceFee;
9467
10773
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
9468
10774
  102,
9469
10775
  94,
@@ -9494,6 +10800,16 @@ function identifyNtbundleInstruction(instruction) {
9494
10800
  124,
9495
10801
  128
9496
10802
  ])), 0)) return NtbundleInstruction.SetMinDepositAmount;
10803
+ if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
10804
+ 114,
10805
+ 75,
10806
+ 182,
10807
+ 13,
10808
+ 172,
10809
+ 126,
10810
+ 102,
10811
+ 237
10812
+ ])), 0)) return NtbundleInstruction.SetMintCapPerCycle;
9497
10813
  if (containsBytes(data, fixEncoderSize(getBytesEncoder(), 8).encode(new Uint8Array([
9498
10814
  7,
9499
10815
  196,
@@ -9648,6 +10964,12 @@ function parseNtbundleInstruction(instruction) {
9648
10964
  instructionType: NtbundleInstruction.AddStrategy,
9649
10965
  ...parseAddStrategyInstruction(instruction)
9650
10966
  };
10967
+ case NtbundleInstruction.ApplyFeesToTokenizedDepositor:
10968
+ assertIsInstructionWithAccounts(instruction);
10969
+ return {
10970
+ instructionType: NtbundleInstruction.ApplyFeesToTokenizedDepositor,
10971
+ ...parseApplyFeesToTokenizedDepositorInstruction(instruction)
10972
+ };
9651
10973
  case NtbundleInstruction.ApplyFeesToUser:
9652
10974
  assertIsInstructionWithAccounts(instruction);
9653
10975
  return {
@@ -9726,6 +11048,18 @@ function parseNtbundleInstruction(instruction) {
9726
11048
  instructionType: NtbundleInstruction.InitializePermissionedBundleDepositor,
9727
11049
  ...parseInitializePermissionedBundleDepositorInstruction(instruction)
9728
11050
  };
11051
+ case NtbundleInstruction.InitializeTokenizedBundleDepositor:
11052
+ assertIsInstructionWithAccounts(instruction);
11053
+ return {
11054
+ instructionType: NtbundleInstruction.InitializeTokenizedBundleDepositor,
11055
+ ...parseInitializeTokenizedBundleDepositorInstruction(instruction)
11056
+ };
11057
+ case NtbundleInstruction.InstantMintBundleTokens:
11058
+ assertIsInstructionWithAccounts(instruction);
11059
+ return {
11060
+ instructionType: NtbundleInstruction.InstantMintBundleTokens,
11061
+ ...parseInstantMintBundleTokensInstruction(instruction)
11062
+ };
9729
11063
  case NtbundleInstruction.ManagerWithdraw:
9730
11064
  assertIsInstructionWithAccounts(instruction);
9731
11065
  return {
@@ -9816,6 +11150,12 @@ function parseNtbundleInstruction(instruction) {
9816
11150
  instructionType: NtbundleInstruction.RequestDeposit,
9817
11151
  ...parseRequestDepositInstruction(instruction)
9818
11152
  };
11153
+ case NtbundleInstruction.RequestTokenWithdrawal:
11154
+ assertIsInstructionWithAccounts(instruction);
11155
+ return {
11156
+ instructionType: NtbundleInstruction.RequestTokenWithdrawal,
11157
+ ...parseRequestTokenWithdrawalInstruction(instruction)
11158
+ };
9819
11159
  case NtbundleInstruction.RequestWithdrawal:
9820
11160
  assertIsInstructionWithAccounts(instruction);
9821
11161
  return {
@@ -9840,6 +11180,12 @@ function parseNtbundleInstruction(instruction) {
9840
11180
  instructionType: NtbundleInstruction.SetFees,
9841
11181
  ...parseSetFeesInstruction(instruction)
9842
11182
  };
11183
+ case NtbundleInstruction.SetIssuanceFee:
11184
+ assertIsInstructionWithAccounts(instruction);
11185
+ return {
11186
+ instructionType: NtbundleInstruction.SetIssuanceFee,
11187
+ ...parseSetIssuanceFeeInstruction(instruction)
11188
+ };
9843
11189
  case NtbundleInstruction.SetKeeper:
9844
11190
  assertIsInstructionWithAccounts(instruction);
9845
11191
  return {
@@ -9858,6 +11204,12 @@ function parseNtbundleInstruction(instruction) {
9858
11204
  instructionType: NtbundleInstruction.SetMinDepositAmount,
9859
11205
  ...parseSetMinDepositAmountInstruction(instruction)
9860
11206
  };
11207
+ case NtbundleInstruction.SetMintCapPerCycle:
11208
+ assertIsInstructionWithAccounts(instruction);
11209
+ return {
11210
+ instructionType: NtbundleInstruction.SetMintCapPerCycle,
11211
+ ...parseSetMintCapPerCycleInstruction(instruction)
11212
+ };
9861
11213
  case NtbundleInstruction.SetOracleBuffer:
9862
11214
  assertIsInstructionWithAccounts(instruction);
9863
11215
  return {
@@ -9959,10 +11311,12 @@ function ntbundleProgram() {
9959
11311
  oracleData: addSelfFetchFunctions(client, getOracleDataCodec()),
9960
11312
  referrerAccount: addSelfFetchFunctions(client, getReferrerAccountCodec()),
9961
11313
  strategy: addSelfFetchFunctions(client, getStrategyCodec()),
11314
+ tokenizedBundleDepositor: addSelfFetchFunctions(client, getTokenizedBundleDepositorCodec()),
9962
11315
  userBundleAccount: addSelfFetchFunctions(client, getUserBundleAccountCodec())
9963
11316
  },
9964
11317
  instructions: {
9965
11318
  addStrategy: (input) => addSelfPlanAndSendFunctions(client, getAddStrategyInstructionAsync(input)),
11319
+ applyFeesToTokenizedDepositor: (input) => addSelfPlanAndSendFunctions(client, getApplyFeesToTokenizedDepositorInstructionAsync(input)),
9966
11320
  applyFeesToUser: (input) => addSelfPlanAndSendFunctions(client, getApplyFeesToUserInstructionAsync(input)),
9967
11321
  changeBundleMasterAdmin: (input) => addSelfPlanAndSendFunctions(client, getChangeBundleMasterAdminInstructionAsync(input)),
9968
11322
  changeManager: (input) => addSelfPlanAndSendFunctions(client, getChangeManagerInstruction(input)),
@@ -9982,6 +11336,8 @@ function ntbundleProgram() {
9982
11336
  ...input,
9983
11337
  payer: input.payer ?? client.payer
9984
11338
  })),
11339
+ initializeTokenizedBundleDepositor: (input) => addSelfPlanAndSendFunctions(client, getInitializeTokenizedBundleDepositorInstructionAsync(input)),
11340
+ instantMintBundleTokens: (input) => addSelfPlanAndSendFunctions(client, getInstantMintBundleTokensInstructionAsync(input)),
9985
11341
  managerWithdraw: (input) => addSelfPlanAndSendFunctions(client, getManagerWithdrawInstructionAsync(input)),
9986
11342
  managerWithdrawWithSplit: (input) => addSelfPlanAndSendFunctions(client, getManagerWithdrawWithSplitInstructionAsync(input)),
9987
11343
  netPendingTransactions: (input) => addSelfPlanAndSendFunctions(client, getNetPendingTransactionsInstructionAsync(input)),
@@ -9997,13 +11353,16 @@ function ntbundleProgram() {
9997
11353
  removeStrategy: (input) => addSelfPlanAndSendFunctions(client, getRemoveStrategyInstructionAsync(input)),
9998
11354
  requestBundleSwitch: (input) => addSelfPlanAndSendFunctions(client, getRequestBundleSwitchInstructionAsync(input)),
9999
11355
  requestDeposit: (input) => addSelfPlanAndSendFunctions(client, getRequestDepositInstructionAsync(input)),
11356
+ requestTokenWithdrawal: (input) => addSelfPlanAndSendFunctions(client, getRequestTokenWithdrawalInstructionAsync(input)),
10000
11357
  requestWithdrawal: (input) => addSelfPlanAndSendFunctions(client, getRequestWithdrawalInstructionAsync(input)),
10001
11358
  setBundleCreator: (input) => addSelfPlanAndSendFunctions(client, getSetBundleCreatorInstructionAsync(input)),
10002
11359
  setDelays: (input) => addSelfPlanAndSendFunctions(client, getSetDelaysInstruction(input)),
10003
11360
  setFees: (input) => addSelfPlanAndSendFunctions(client, getSetFeesInstruction(input)),
11361
+ setIssuanceFee: (input) => addSelfPlanAndSendFunctions(client, getSetIssuanceFeeInstruction(input)),
10004
11362
  setKeeper: (input) => addSelfPlanAndSendFunctions(client, getSetKeeperInstruction(input)),
10005
11363
  setMaxDepositAmount: (input) => addSelfPlanAndSendFunctions(client, getSetMaxDepositAmountInstruction(input)),
10006
11364
  setMinDepositAmount: (input) => addSelfPlanAndSendFunctions(client, getSetMinDepositAmountInstruction(input)),
11365
+ setMintCapPerCycle: (input) => addSelfPlanAndSendFunctions(client, getSetMintCapPerCycleInstructionAsync(input)),
10007
11366
  setOracleBuffer: (input) => addSelfPlanAndSendFunctions(client, getSetOracleBufferInstruction(input)),
10008
11367
  setOracleMaxAge: (input) => addSelfPlanAndSendFunctions(client, getSetOracleMaxAgeInstruction(input)),
10009
11368
  setOracleUpdateTimeLimit: (input) => addSelfPlanAndSendFunctions(client, getSetOracleUpdateTimeLimitInstruction(input)),
@@ -10021,14 +11380,17 @@ function ntbundleProgram() {
10021
11380
  },
10022
11381
  pdas: {
10023
11382
  strategyAccount: findStrategyAccountPda,
10024
- userBundleAccount: findUserBundleAccountPda,
11383
+ bundleTempData: findBundleTempDataPda,
10025
11384
  oracleData: findOracleDataPda,
11385
+ tokenizedBundleDepositor: findTokenizedBundleDepositorPda,
11386
+ userBundleAccount: findUserBundleAccountPda,
10026
11387
  bundleAssetAuthority: findBundleAssetAuthorityPda,
10027
11388
  bundleMasterAccount: findBundleMasterAccountPda,
10028
11389
  closeUserBundleAccountUserBundleAccount: findCloseUserBundleAccountUserBundleAccountPda,
10029
- bundleTempData: findBundleTempDataPda,
10030
11390
  bundleCreatorAccount: findBundleCreatorAccountPda,
10031
11391
  bundleAccount: findBundleAccountPda,
11392
+ tokenAuthority: findTokenAuthorityPda,
11393
+ mint: findMintPda,
10032
11394
  pendingBundleAssetAuthority: findPendingBundleAssetAuthorityPda,
10033
11395
  sourceUserBundleAccount: findSourceUserBundleAccountPda,
10034
11396
  sourceBundleAssetAuthority: findSourceBundleAssetAuthorityPda,
@@ -10246,6 +11608,30 @@ const NTBUNDLE_ERROR__UNAUTHORIZED_REFERRER_ACTION = 6091;
10246
11608
  const NTBUNDLE_ERROR__REFERRER_DEPOSIT_TOO_LOW = 6092;
10247
11609
  /** InvalidReferralTierConfig: Invalid referral tier configuration */
10248
11610
  const NTBUNDLE_ERROR__INVALID_REFERRAL_TIER_CONFIG = 6093;
11611
+ /** InvalidTokenizedBundleDepositor: Invalid tokenized bundle depositor */
11612
+ const NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_DEPOSITOR = 6094;
11613
+ /** InvalidTokenizedBundleMint: Invalid tokenized bundle mint */
11614
+ const NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_MINT = 6095;
11615
+ /** InvalidTokenizedBundleTokenAuthority: Invalid tokenized bundle token authority */
11616
+ const NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_TOKEN_AUTHORITY = 6096;
11617
+ /** TokenAmountZero: Token amount must be greater than zero */
11618
+ const NTBUNDLE_ERROR__TOKEN_AMOUNT_ZERO = 6097;
11619
+ /** TokenAmountTooSmall: Token amount is too small */
11620
+ const NTBUNDLE_ERROR__TOKEN_AMOUNT_TOO_SMALL = 6098;
11621
+ /** PermissionedBundleTokenizationUnsupported: Permissioned bundle tokenization is not supported */
11622
+ const NTBUNDLE_ERROR__PERMISSIONED_BUNDLE_TOKENIZATION_UNSUPPORTED = 6099;
11623
+ /** PendingStateActive: Pending deposit, withdrawal, or switch state is active */
11624
+ const NTBUNDLE_ERROR__PENDING_STATE_ACTIVE = 6100;
11625
+ /** TokenizedBundleStateInvalid: Tokenized bundle state is invalid */
11626
+ const NTBUNDLE_ERROR__TOKENIZED_BUNDLE_STATE_INVALID = 6101;
11627
+ /** MinimumTokensOutNotMet: Minimum share tokens out was not met */
11628
+ const NTBUNDLE_ERROR__MINIMUM_TOKENS_OUT_NOT_MET = 6102;
11629
+ /** ExcessiveIssuanceFee: Excessive issuance fee */
11630
+ const NTBUNDLE_ERROR__EXCESSIVE_ISSUANCE_FEE = 6103;
11631
+ /** MinimumSharesOutNotMet: Minimum bundle shares out was not met */
11632
+ const NTBUNDLE_ERROR__MINIMUM_SHARES_OUT_NOT_MET = 6104;
11633
+ /** InstantMintCapExceeded: Instant mint cap per cycle exceeded */
11634
+ const NTBUNDLE_ERROR__INSTANT_MINT_CAP_EXCEEDED = 6105;
10249
11635
  let ntbundleErrorMessages;
10250
11636
  if (process.env["NODE_ENV"] !== "production") ntbundleErrorMessages = {
10251
11637
  [NTBUNDLE_ERROR__ALLOCATION_AMOUNT_ZERO]: `Allocation amount must be > 0`,
@@ -10263,9 +11649,11 @@ if (process.env["NODE_ENV"] !== "production") ntbundleErrorMessages = {
10263
11649
  [NTBUNDLE_ERROR__EMPTY_USER_WITHDRAWAL_TIMING_CLEAR_REQUEST]: `Empty user withdrawal timing clear request`,
10264
11650
  [NTBUNDLE_ERROR__EQUITY_OUT_OF_BUFFER_BOUND]: `Equity out of buffer bound`,
10265
11651
  [NTBUNDLE_ERROR__EXCESSIVE_DEPOSIT_FEE]: `Excessive deposit fee`,
11652
+ [NTBUNDLE_ERROR__EXCESSIVE_ISSUANCE_FEE]: `Excessive issuance fee`,
10266
11653
  [NTBUNDLE_ERROR__EXCESSIVE_MANAGEMENT_FEE]: `Excessive management fee`,
10267
11654
  [NTBUNDLE_ERROR__EXCESSIVE_PERFORMANCE_FEE]: `Excessive performance fee`,
10268
11655
  [NTBUNDLE_ERROR__EXCESSIVE_WITHDRAW_FEE]: `Excessive withdraw fee`,
11656
+ [NTBUNDLE_ERROR__INSTANT_MINT_CAP_EXCEEDED]: `Instant mint cap per cycle exceeded`,
10269
11657
  [NTBUNDLE_ERROR__INSUFFICIENT_BUNDLE_BALANCE]: `Insufficient bundle balance`,
10270
11658
  [NTBUNDLE_ERROR__INSUFFICIENT_FUNDS]: `Insufficient funds to process withdrawal`,
10271
11659
  [NTBUNDLE_ERROR__INSUFFICIENT_SHARES_BALANCE]: `Insufficient Shares balance`,
@@ -10281,6 +11669,9 @@ if (process.env["NODE_ENV"] !== "production") ntbundleErrorMessages = {
10281
11669
  [NTBUNDLE_ERROR__INVALID_RECEIVER]: `Invalid receiver address`,
10282
11670
  [NTBUNDLE_ERROR__INVALID_REFERRAL_CONFIG]: `Invalid referral configuration`,
10283
11671
  [NTBUNDLE_ERROR__INVALID_REFERRAL_TIER_CONFIG]: `Invalid referral tier configuration`,
11672
+ [NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_DEPOSITOR]: `Invalid tokenized bundle depositor`,
11673
+ [NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_MINT]: `Invalid tokenized bundle mint`,
11674
+ [NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_TOKEN_AUTHORITY]: `Invalid tokenized bundle token authority`,
10284
11675
  [NTBUNDLE_ERROR__INVALID_TWAP_PERIOD]: `Invalid twap period`,
10285
11676
  [NTBUNDLE_ERROR__INVALID_USER_FEE_CONFIG]: `Invalid user fee configuration`,
10286
11677
  [NTBUNDLE_ERROR__INVALID_USER_WITHDRAWAL_TIMING_CONFIG]: `Invalid user withdrawal timing configuration`,
@@ -10293,6 +11684,8 @@ if (process.env["NODE_ENV"] !== "production") ntbundleErrorMessages = {
10293
11684
  [NTBUNDLE_ERROR__MATH_ERROR]: `Math error`,
10294
11685
  [NTBUNDLE_ERROR__MAX_DEPOSIT_AMOUNT_EXCEEDED]: `Max deposit amount exceeded`,
10295
11686
  [NTBUNDLE_ERROR__MIN_DEPOSIT_AMOUNT_NOT_MET]: `Min deposit amount not met`,
11687
+ [NTBUNDLE_ERROR__MINIMUM_SHARES_OUT_NOT_MET]: `Minimum bundle shares out was not met`,
11688
+ [NTBUNDLE_ERROR__MINIMUM_TOKENS_OUT_NOT_MET]: `Minimum share tokens out was not met`,
10296
11689
  [NTBUNDLE_ERROR__MUST_BE_IN_WHITELIST]: `Not in whitelist`,
10297
11690
  [NTBUNDLE_ERROR__NETTING_ALREADY_DONE]: `Netting already done`,
10298
11691
  [NTBUNDLE_ERROR__NETTING_NOT_DONE]: `Netting not done`,
@@ -10308,8 +11701,10 @@ if (process.env["NODE_ENV"] !== "production") ntbundleErrorMessages = {
10308
11701
  [NTBUNDLE_ERROR__PENDING_DEPOSIT_AMOUNT_ZERO]: `Pending deposit amount is zero`,
10309
11702
  [NTBUNDLE_ERROR__PENDING_DEPOSIT_EXISTS]: `Pending deposit exists`,
10310
11703
  [NTBUNDLE_ERROR__PENDING_DEPOSIT_OR_WITHDRAWAL_EXISTS]: `Pending deposit or withdrawal exists`,
11704
+ [NTBUNDLE_ERROR__PENDING_STATE_ACTIVE]: `Pending deposit, withdrawal, or switch state is active`,
10311
11705
  [NTBUNDLE_ERROR__PENDING_TRANSACTIONS_EXIST]: `Pending transactions exist`,
10312
11706
  [NTBUNDLE_ERROR__PENDING_WITHDRAWAL_EXISTS]: `Pending withdrawal exists`,
11707
+ [NTBUNDLE_ERROR__PERMISSIONED_BUNDLE_TOKENIZATION_UNSUPPORTED]: `Permissioned bundle tokenization is not supported`,
10313
11708
  [NTBUNDLE_ERROR__POD_TOKEN_TOTAL_SUPPLY_ZERO]: `Pod token total supply is zero`,
10314
11709
  [NTBUNDLE_ERROR__RAW_TRANSFER_RECEIVER]: `Not a raw transfer receiver`,
10315
11710
  [NTBUNDLE_ERROR__RECEIVER_ALREADY_ALLOCATED]: `Receiver already allocated`,
@@ -10330,6 +11725,9 @@ if (process.env["NODE_ENV"] !== "production") ntbundleErrorMessages = {
10330
11725
  [NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNT_MISMATCH]: `Switch target account mismatch`,
10331
11726
  [NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNTS_MISSING]: `Switch target accounts missing`,
10332
11727
  [NTBUNDLE_ERROR__SWITCH_TARGET_SAME_AS_SOURCE]: `Switch target cannot be source bundle`,
11728
+ [NTBUNDLE_ERROR__TOKEN_AMOUNT_TOO_SMALL]: `Token amount is too small`,
11729
+ [NTBUNDLE_ERROR__TOKEN_AMOUNT_ZERO]: `Token amount must be greater than zero`,
11730
+ [NTBUNDLE_ERROR__TOKENIZED_BUNDLE_STATE_INVALID]: `Tokenized bundle state is invalid`,
10333
11731
  [NTBUNDLE_ERROR__TOO_MANY_ALLOCATED_RECEIVERS]: `Too many allocated receivers`,
10334
11732
  [NTBUNDLE_ERROR__TOTAL_ASSET_EXCEED_NEW_MAX_DEPOSIT_AMOUNT]: `Total asset exceed new max deposit amount`,
10335
11733
  [NTBUNDLE_ERROR__UNAUTHORIZED_ADMIN_ACTION]: `Not bundle admin`,
@@ -10352,4 +11750,4 @@ function isNtbundleError(error, transactionMessage, code) {
10352
11750
  }
10353
11751
 
10354
11752
  //#endregion
10355
- export { NTBUNDLE_ERROR__NO_USER_WITHDRAWAL_TIMING_OVERRIDE_TO_CLEAR as $, PROCESS_REFERRER_WITHDRAWAL_DISCRIMINATOR as $a, getAddStrategyInstructionAsync as $c, getRequestBundleSwitchInstruction as $i, getReferrerAccountCodec as $l, getSetReferrerRateOverrideInstruction as $n, getManagerWithdrawInstructionDataEncoder as $o, SET_MAX_DEPOSIT_AMOUNT_DISCRIMINATOR as $r, getDistributeToReceiversInstructionDataCodec as $s, getUpdateOracleInstructionAsync as $t, fetchMaybeBundle as $u, NTBUNDLE_ERROR__INVALID_PERMISSIONNED_DEPOSITOR as A, getReferrerRequestWithdrawDiscriminatorBytes as Aa, getChangeManagerInstructionDataCodec as Ac, getSetBundleCreatorInstructionAsync as Ai, fetchUserBundleAccount as Al, getSetUserWithdrawalTimingOverrideInstructionAsync as An, parsePauseDepositsWithdrawalsInstruction as Ao, getSetOracleUpdateTimeLimitInstructionDataEncoder as Ar, getInitializeBundleInstructionDataDecoder as As, NTBUNDLE_ERROR__TOTAL_ASSET_EXCEED_NEW_MAX_DEPOSIT_AMOUNT as At, fetchBundleMasterAccount as Au, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_REDEMPTION_SCHEDULE as B, getProcessWithdrawalInstructionAsync as Ba, getChangeBundleMasterAdminInstructionDataEncoder as Bc, getRequestWithdrawalInstructionDataDecoder as Bi, fetchMaybeStrategy as Bl, getSetUserReferrerInstructionDataDecoder as Bn, getManagerWithdrawWithSplitDiscriminatorBytes as Bo, getSetOracleBufferDiscriminatorBytes as Br, parseEndDistributionInstruction as Bs, NTBUNDLE_ERROR__WITHDRAWAL_DELAY_NOT_MET as Bt, fetchAllMaybeBundleCreatorAccount as Bu, NTBUNDLE_ERROR__INVALID_ASSET_ADDRESS as C, getRefundDepositInstruction as Ca, getClearUserFeeOverrideInstructionDataCodec as Cc, getSetDelaysInstructionDataCodec as Ci, findBundleAssetAuthorityPda as Cl, getSetWithdrawalRedemptionScheduleInstructionDataCodec as Cn, PAUSE_DEPOSITS_WITHDRAWALS_DISCRIMINATOR as Co, getSetReferralTierConfigInstructionDataEncoder as Cr, getInitializeBundleDepositorInstructionDataEncoder as Cs, NTBUNDLE_ERROR__STRATEGY_DISABLED as Ct, getBundleTempDataDiscriminatorBytes as Cu, NTBUNDLE_ERROR__INVALID_ORACLE_BUFFER as D, getRefundDepositInstructionDataEncoder as Da, CHANGE_MANAGER_DISCRIMINATOR as Dc, SET_BUNDLE_CREATOR_DISCRIMINATOR as Di, fetchAllMaybeUserBundleAccount as Dl, SET_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR as Dn, getPauseDepositsWithdrawalsInstructionDataCodec as Do, getSetOracleUpdateTimeLimitInstruction as Dr, getInitializeBundleInstruction as Ds, NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNT_MISMATCH as Dt, decodeBundleMasterAccount as Du, NTBUNDLE_ERROR__INVALID_NEUTRAL_FEE_INCREMENTER as E, getRefundDepositInstructionDataDecoder as Ea, parseClearUserFeeOverrideInstruction as Ec, parseSetDelaysInstruction as Ei, decodeUserBundleAccount as El, parseSetWithdrawalRedemptionScheduleInstruction as En, getPauseDepositsWithdrawalsInstructionAsync as Eo, getSetOracleUpdateTimeLimitDiscriminatorBytes as Er, getInitializeBundleDiscriminatorBytes as Es, NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNTS_MISSING as Et, BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR as Eu, NTBUNDLE_ERROR__INVALID_USER_FEE_CONFIG as F, getReferrerRequestWithdrawInstructionDataEncoder as Fa, getChangeBundleMasterAdminDiscriminatorBytes as Fc, REQUEST_WITHDRAWAL_DISCRIMINATOR as Fi, getUserBundleAccountSize as Fl, SET_USER_REFERRER_DISCRIMINATOR as Fn, getNetPendingTransactionsInstructionDataCodec as Fo, getSetOracleMaxAgeInstructionDataCodec as Fr, getEndDistributionInstruction as Fs, NTBUNDLE_ERROR__UNAUTHORIZED_REFERRER_ACTION as Ft, getBundleMasterAccountEncoder as Fu, NTBUNDLE_ERROR__MIN_DEPOSIT_AMOUNT_NOT_MET as G, PROCESS_SWITCH_DISCRIMINATOR as Ga, getApplyFeesToUserInstructionAsync as Gc, getRequestDepositInstruction as Gi, getStrategyEncoder as Gl, getSetUserFeeOverrideInstruction as Gn, getManagerWithdrawWithSplitInstructionDataEncoder as Go, parseSetOracleBufferInstruction as Gr, getEnableStrategyInstructionDataCodec as Gs, NtbundleInstruction as Gt, getBundleCreatorAccountDiscriminatorBytes as Gu, NTBUNDLE_ERROR__MANAGER_SHARES_ZERO as H, getProcessWithdrawalInstructionDataDecoder as Ha, APPLY_FEES_TO_USER_DISCRIMINATOR as Hc, parseRequestWithdrawalInstruction as Hi, getStrategyCodec as Hl, parseSetUserReferrerInstruction as Hn, getManagerWithdrawWithSplitInstructionAsync as Ho, getSetOracleBufferInstructionDataCodec as Hr, getEnableStrategyDiscriminatorBytes as Hs, isNtbundleError as Ht, fetchMaybeBundleCreatorAccount as Hu, NTBUNDLE_ERROR__INVALID_USER_WITHDRAWAL_TIMING_CONFIG as I, parseReferrerRequestWithdrawInstruction as Ia, getChangeBundleMasterAdminInstruction as Ic, getRequestWithdrawalDiscriminatorBytes as Ii, STRATEGY_DISCRIMINATOR as Il, getSetUserReferrerDiscriminatorBytes as In, getNetPendingTransactionsInstructionDataDecoder as Io, getSetOracleMaxAgeInstructionDataDecoder as Ir, getEndDistributionInstructionAsync as Is, NTBUNDLE_ERROR__UNPAUSED_DEPOSITS_WITHDRAWALS as It, getBundleMasterAccountSize as Iu, NTBUNDLE_ERROR__NETTING_NOT_DONE as J, getProcessSwitchInstructionAsync as Ja, getApplyFeesToUserInstructionDataEncoder as Jc, getRequestDepositInstructionDataDecoder as Ji, decodeReferrerAccount as Jl, getSetUserFeeOverrideInstructionDataDecoder as Jn, getManagerWithdrawDiscriminatorBytes as Jo, getSetMinDepositAmountInstruction as Jr, parseEnableStrategyInstruction as Js, ntbundleProgram as Jt, BUNDLE_DISCRIMINATOR as Ju, NTBUNDLE_ERROR__MUST_BE_IN_WHITELIST as K, getProcessSwitchDiscriminatorBytes as Ka, getApplyFeesToUserInstructionDataCodec as Kc, getRequestDepositInstructionAsync as Ki, getStrategySize as Kl, getSetUserFeeOverrideInstructionAsync as Kn, parseManagerWithdrawWithSplitInstruction as Ko, SET_MIN_DEPOSIT_AMOUNT_DISCRIMINATOR as Kr, getEnableStrategyInstructionDataDecoder as Ks, identifyNtbundleAccount as Kt, getBundleCreatorAccountEncoder as Ku, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_AMOUNT as L, PROCESS_WITHDRAWAL_DISCRIMINATOR as La, getChangeBundleMasterAdminInstructionAsync as Lc, getRequestWithdrawalInstruction as Li, decodeStrategy as Ll, getSetUserReferrerInstruction as Ln, getNetPendingTransactionsInstructionDataEncoder as Lo, getSetOracleMaxAgeInstructionDataEncoder as Lr, getEndDistributionInstructionDataCodec as Ls, NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_HAS_ACTIVITY as Lt, BUNDLE_CREATOR_ACCOUNT_DISCRIMINATOR as Lu, NTBUNDLE_ERROR__INVALID_REFERRAL_CONFIG as M, getReferrerRequestWithdrawInstructionAsync as Ma, getChangeManagerInstructionDataEncoder as Mc, getSetBundleCreatorInstructionDataDecoder as Mi, getUserBundleAccountDecoder as Ml, getSetUserWithdrawalTimingOverrideInstructionDataDecoder as Mn, getNetPendingTransactionsDiscriminatorBytes as Mo, SET_ORACLE_MAX_AGE_DISCRIMINATOR as Mr, parseInitializeBundleInstruction as Ms, NTBUNDLE_ERROR__UNAUTHORIZED_BUNDLE_CREATOR as Mt, getBundleMasterAccountCodec as Mu, NTBUNDLE_ERROR__INVALID_REFERRAL_TIER_CONFIG as N, getReferrerRequestWithdrawInstructionDataCodec as Na, parseChangeManagerInstruction as Nc, getSetBundleCreatorInstructionDataEncoder as Ni, getUserBundleAccountDiscriminatorBytes as Nl, getSetUserWithdrawalTimingOverrideInstructionDataEncoder as Nn, getNetPendingTransactionsInstruction as No, getSetOracleMaxAgeDiscriminatorBytes as Nr, END_DISTRIBUTION_DISCRIMINATOR as Ns, NTBUNDLE_ERROR__UNAUTHORIZED_KEEPER_ACTION as Nt, getBundleMasterAccountDecoder as Nu, NTBUNDLE_ERROR__INVALID_ORACLE_MAX_AGE as O, parseRefundDepositInstruction as Oa, getChangeManagerDiscriminatorBytes as Oc, getSetBundleCreatorDiscriminatorBytes as Oi, fetchAllUserBundleAccount as Ol, getSetUserWithdrawalTimingOverrideDiscriminatorBytes as On, getPauseDepositsWithdrawalsInstructionDataDecoder as Oo, getSetOracleUpdateTimeLimitInstructionDataCodec as Or, getInitializeBundleInstructionAsync as Os, NTBUNDLE_ERROR__SWITCH_TARGET_SAME_AS_SOURCE as Ot, fetchAllBundleMasterAccount as Ou, NTBUNDLE_ERROR__INVALID_TWAP_PERIOD as P, getReferrerRequestWithdrawInstructionDataDecoder as Pa, CHANGE_BUNDLE_MASTER_ADMIN_DISCRIMINATOR as Pc, parseSetBundleCreatorInstruction as Pi, getUserBundleAccountEncoder as Pl, parseSetUserWithdrawalTimingOverrideInstruction as Pn, getNetPendingTransactionsInstructionAsync as Po, getSetOracleMaxAgeInstruction as Pr, getEndDistributionDiscriminatorBytes as Ps, NTBUNDLE_ERROR__UNAUTHORIZED_MANAGER_ACTION as Pt, getBundleMasterAccountDiscriminatorBytes as Pu, NTBUNDLE_ERROR__NO_USER_FEE_OVERRIDE_TO_CLEAR as Q, parseProcessSwitchInstruction as Qa, getAddStrategyInstruction as Qc, getRequestBundleSwitchDiscriminatorBytes as Qi, fetchReferrerAccount as Ql, getSetReferrerRateOverrideDiscriminatorBytes as Qn, getManagerWithdrawInstructionDataDecoder as Qo, parseSetMinDepositAmountInstruction as Qr, getDistributeToReceiversInstructionAsync as Qs, getUpdateOracleInstruction as Qt, fetchBundle as Qu, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_COOLDOWN_PERIOD as R, getProcessWithdrawalDiscriminatorBytes as Ra, getChangeBundleMasterAdminInstructionDataCodec as Rc, getRequestWithdrawalInstructionAsync as Ri, fetchAllMaybeStrategy as Rl, getSetUserReferrerInstructionAsync as Rn, parseNetPendingTransactionsInstruction as Ro, parseSetOracleMaxAgeInstruction as Rr, getEndDistributionInstructionDataDecoder as Rs, NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_NOT_EMPTY as Rt, decodeBundleCreatorAccount as Ru, NTBUNDLE_ERROR__INVALID_ALLOCATIONS as S, getRefundDepositDiscriminatorBytes as Sa, getClearUserFeeOverrideInstructionAsync as Sc, getSetDelaysInstruction as Si, findBundleCreatorAccountPda as Sl, getSetWithdrawalRedemptionScheduleInstruction as Sn, parsePerformRefillInstruction as So, getSetReferralTierConfigInstructionDataDecoder as Sr, getInitializeBundleDepositorInstructionDataDecoder as Ss, NTBUNDLE_ERROR__STRATEGY_ALREADY_ENABLED as St, getBundleTempDataDecoder as Su, NTBUNDLE_ERROR__INVALID_FEE_SPLIT as T, getRefundDepositInstructionDataCodec as Ta, getClearUserFeeOverrideInstructionDataEncoder as Tc, getSetDelaysInstructionDataEncoder as Ti, USER_BUNDLE_ACCOUNT_DISCRIMINATOR as Tl, getSetWithdrawalRedemptionScheduleInstructionDataEncoder as Tn, getPauseDepositsWithdrawalsInstruction as To, SET_ORACLE_UPDATE_TIME_LIMIT_DISCRIMINATOR as Tr, INITIALIZE_BUNDLE_DISCRIMINATOR as Ts, NTBUNDLE_ERROR__SWITCH_ASSET_MINT_MISMATCH as Tt, getBundleTempDataSize as Tu, NTBUNDLE_ERROR__MATH_ERROR as U, getProcessWithdrawalInstructionDataEncoder as Ua, getApplyFeesToUserDiscriminatorBytes as Uc, REQUEST_DEPOSIT_DISCRIMINATOR as Ui, getStrategyDecoder as Ul, SET_USER_FEE_OVERRIDE_DISCRIMINATOR as Un, getManagerWithdrawWithSplitInstructionDataCodec as Uo, getSetOracleBufferInstructionDataDecoder as Ur, getEnableStrategyInstruction as Us, NTBUNDLE_PROGRAM_ADDRESS as Ut, getBundleCreatorAccountCodec as Uu, NTBUNDLE_ERROR__LEFT_TO_DISTRIBUTE_NOT_ZERO as V, getProcessWithdrawalInstructionDataCodec as Va, parseChangeBundleMasterAdminInstruction as Vc, getRequestWithdrawalInstructionDataEncoder as Vi, fetchStrategy as Vl, getSetUserReferrerInstructionDataEncoder as Vn, getManagerWithdrawWithSplitInstruction as Vo, getSetOracleBufferInstruction as Vr, ENABLE_STRATEGY_DISCRIMINATOR as Vs, getNtbundleErrorMessage as Vt, fetchBundleCreatorAccount as Vu, NTBUNDLE_ERROR__MAX_DEPOSIT_AMOUNT_EXCEEDED as W, parseProcessWithdrawalInstruction as Wa, getApplyFeesToUserInstruction as Wc, getRequestDepositDiscriminatorBytes as Wi, getStrategyDiscriminatorBytes as Wl, getSetUserFeeOverrideDiscriminatorBytes as Wn, getManagerWithdrawWithSplitInstructionDataDecoder as Wo, getSetOracleBufferInstructionDataEncoder as Wr, getEnableStrategyInstructionAsync as Ws, NtbundleAccount as Wt, getBundleCreatorAccountDecoder as Wu, NTBUNDLE_ERROR__NO_PENDING_TRANSACTIONS as X, getProcessSwitchInstructionDataDecoder as Xa, ADD_STRATEGY_DISCRIMINATOR as Xc, parseRequestDepositInstruction as Xi, fetchAllReferrerAccount as Xl, parseSetUserFeeOverrideInstruction as Xn, getManagerWithdrawInstructionAsync as Xo, getSetMinDepositAmountInstructionDataDecoder as Xr, getDistributeToReceiversDiscriminatorBytes as Xs, UPDATE_ORACLE_DISCRIMINATOR as Xt, fetchAllBundle as Xu, NTBUNDLE_ERROR__NO_PENDING_SWITCH as Y, getProcessSwitchInstructionDataCodec as Ya, parseApplyFeesToUserInstruction as Yc, getRequestDepositInstructionDataEncoder as Yi, fetchAllMaybeReferrerAccount as Yl, getSetUserFeeOverrideInstructionDataEncoder as Yn, getManagerWithdrawInstruction as Yo, getSetMinDepositAmountInstructionDataCodec as Yr, DISTRIBUTE_TO_RECEIVERS_DISCRIMINATOR as Ys, parseNtbundleInstruction as Yt, decodeBundle as Yu, NTBUNDLE_ERROR__NO_PENDING_WITHDRAWAL as Z, getProcessSwitchInstructionDataEncoder as Za, getAddStrategyDiscriminatorBytes as Zc, REQUEST_BUNDLE_SWITCH_DISCRIMINATOR as Zi, fetchMaybeReferrerAccount as Zl, SET_REFERRER_RATE_OVERRIDE_DISCRIMINATOR as Zn, getManagerWithdrawInstructionDataCodec as Zo, getSetMinDepositAmountInstructionDataEncoder as Zr, getDistributeToReceiversInstruction as Zs, getUpdateOracleDiscriminatorBytes as Zt, fetchAllMaybeBundle as Zu, NTBUNDLE_ERROR__EXCESSIVE_PERFORMANCE_FEE as _, getRegisterReferrerInstructionDataCodec as _a, getClearUserWithdrawalTimingOverrideInstructionDataEncoder as _c, getSetFeesInstructionDataDecoder as _i, findPendingBundleAssetAuthorityPda as _l, getStartDistributionInstructionDataDecoder as _n, getPerformRefillInstruction as _o, parseSetReferrerActiveInstruction as _r, INITIALIZE_BUNDLE_DEPOSITOR_DISCRIMINATOR as _s, NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISSING as _t, fetchAllBundleTempData as _u, NTBUNDLE_ERROR__BUNDLE_IS_PERMISSIONNED as a, REMOVE_STRATEGY_DISCRIMINATOR as aa, getCloseUserBundleAccountInstruction as ac, getReferralTierDecoder as ad, parseSetMaxDepositAmountInstruction as ai, findTargetUserBundleAccountPda as al, getUpdateAllocationsDiscriminatorBytes as an, getProcessReferrerWithdrawalInstructionDataEncoder as ao, getSetReferrerConfigDiscriminatorBytes as ar, getInitializePermissionedBundleDepositorInstructionDataCodec as as, NTBUNDLE_ERROR__PENDING_DEPOSIT_EXISTS as at, decodeOracleData as au, NTBUNDLE_ERROR__INSUFFICIENT_FUNDS as b, parseRegisterReferrerInstruction as ba, getClearUserFeeOverrideDiscriminatorBytes as bc, SET_DELAYS_DISCRIMINATOR as bi, findBundleTempDataPda as bl, SET_WITHDRAWAL_REDEMPTION_SCHEDULE_DISCRIMINATOR as bn, getPerformRefillInstructionDataDecoder as bo, getSetReferralTierConfigInstruction as br, getInitializeBundleDepositorInstructionAsync as bs, NTBUNDLE_ERROR__REFILL_AMOUNT_EXCEEDED as bt, fetchMaybeBundleTempData as bu, NTBUNDLE_ERROR__DEPOSITS_EXTRA_IN_PENDINGS_NOT_ZERO as c, getRemoveStrategyInstructionAsync as ca, getCloseUserBundleAccountInstructionDataDecoder as cc, getSetKeeperInstruction as ci, findTargetBundleTempDataPda as cl, getUpdateAllocationsInstructionDataCodec as cn, getProcessDepositDiscriminatorBytes as co, getSetReferrerConfigInstructionDataDecoder as cr, parseInitializePermissionedBundleDepositorInstruction as cs, NTBUNDLE_ERROR__PENDING_WITHDRAWAL_EXISTS as ct, fetchMaybeOracleData as cu, NTBUNDLE_ERROR__DISTRIBUTION_NOT_STARTED as d, getRemoveStrategyInstructionDataEncoder as da, CLEAR_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR as dc, getSetKeeperInstructionDataEncoder as di, findSourceOracleDataPda as dl, parseUpdateAllocationsInstruction as dn, getProcessDepositInstructionDataCodec as do, SET_REFERRER_ACTIVE_DISCRIMINATOR as dr, getInitializeBundleMasterAccountInstruction as ds, NTBUNDLE_ERROR__RECEIVER_ALREADY_ALLOCATED as dt, getOracleDataDecoder as du, getRequestBundleSwitchInstructionAsync as ea, getDistributeToReceiversInstructionDataDecoder as ec, getBundleCodec as ed, getSetMaxDepositAmountDiscriminatorBytes as ei, getAddStrategyInstructionDataCodec as el, getUpdateOracleInstructionDataCodec as en, getProcessReferrerWithdrawalDiscriminatorBytes as eo, getSetReferrerRateOverrideInstructionDataCodec as er, parseManagerWithdrawInstruction as es, NTBUNDLE_ERROR__ORACLE_NOT_UPDATED as et, getReferrerAccountDecoder as eu, NTBUNDLE_ERROR__EMPTY_USER_FEE_CLEAR_REQUEST as f, parseRemoveStrategyInstruction as fa, getClearUserWithdrawalTimingOverrideDiscriminatorBytes as fc, parseSetKeeperInstruction as fi, findSourceBundleTempDataPda as fl, START_DISTRIBUTION_DISCRIMINATOR as fn, getProcessDepositInstructionDataDecoder as fo, getSetReferrerActiveDiscriminatorBytes as fr, getInitializeBundleMasterAccountInstructionAsync as fs, NTBUNDLE_ERROR__REDEMPTION_AMOUNT_EXCEEDED as ft, getOracleDataDiscriminatorBytes as fu, NTBUNDLE_ERROR__EXCESSIVE_MANAGEMENT_FEE as g, getRegisterReferrerInstructionAsync as ga, getClearUserWithdrawalTimingOverrideInstructionDataDecoder as gc, getSetFeesInstructionDataCodec as gi, findReferrerAccountPda as gl, getStartDistributionInstructionDataCodec as gn, getPerformRefillDiscriminatorBytes as go, getSetReferrerActiveInstructionDataEncoder as gr, parseInitializeBundleMasterAccountInstruction as gs, NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISMATCH as gt, decodeBundleTempData as gu, NTBUNDLE_ERROR__EXCESSIVE_DEPOSIT_FEE as h, getRegisterReferrerInstruction as ha, getClearUserWithdrawalTimingOverrideInstructionDataCodec as hc, getSetFeesInstruction as hi, findReferrerUserBundleAccountPda as hl, getStartDistributionInstructionAsync as hn, PERFORM_REFILL_DISCRIMINATOR as ho, getSetReferrerActiveInstructionDataDecoder as hr, getInitializeBundleMasterAccountInstructionDataEncoder as hs, NTBUNDLE_ERROR__REFERRAL_ALREADY_SET as ht, BUNDLE_TEMP_DATA_DISCRIMINATOR as hu, NTBUNDLE_ERROR__AMOUNT_MUST_BE_BELOW_MAX as i, parseRequestBundleSwitchInstruction as ia, getCloseUserBundleAccountDiscriminatorBytes as ic, getReferralTierCodec as id, getSetMaxDepositAmountInstructionDataEncoder as ii, findUserBundleAccountPda as il, UPDATE_ALLOCATIONS_DISCRIMINATOR as in, getProcessReferrerWithdrawalInstructionDataDecoder as io, SET_REFERRER_CONFIG_DISCRIMINATOR as ir, getInitializePermissionedBundleDepositorInstructionAsync as is, NTBUNDLE_ERROR__PENDING_DEPOSIT_AMOUNT_ZERO as it, ORACLE_DATA_DISCRIMINATOR as iu, NTBUNDLE_ERROR__INVALID_RECEIVER as j, getReferrerRequestWithdrawInstruction as ja, getChangeManagerInstructionDataDecoder as jc, getSetBundleCreatorInstructionDataCodec as ji, getUserBundleAccountCodec as jl, getSetUserWithdrawalTimingOverrideInstructionDataCodec as jn, NET_PENDING_TRANSACTIONS_DISCRIMINATOR as jo, parseSetOracleUpdateTimeLimitInstruction as jr, getInitializeBundleInstructionDataEncoder as js, NTBUNDLE_ERROR__UNAUTHORIZED_ADMIN_ACTION as jt, fetchMaybeBundleMasterAccount as ju, NTBUNDLE_ERROR__INVALID_ORACLE_UPDATE_TIME_LIMIT as k, REFERRER_REQUEST_WITHDRAW_DISCRIMINATOR as ka, getChangeManagerInstruction as kc, getSetBundleCreatorInstruction as ki, fetchMaybeUserBundleAccount as kl, getSetUserWithdrawalTimingOverrideInstruction as kn, getPauseDepositsWithdrawalsInstructionDataEncoder as ko, getSetOracleUpdateTimeLimitInstructionDataDecoder as kr, getInitializeBundleInstructionDataCodec as ks, NTBUNDLE_ERROR__TOO_MANY_ALLOCATED_RECEIVERS as kt, fetchAllMaybeBundleMasterAccount as ku, NTBUNDLE_ERROR__DEPOSIT_AMOUNT_ZERO as l, getRemoveStrategyInstructionDataCodec as la, getCloseUserBundleAccountInstructionDataEncoder as lc, getSetKeeperInstructionDataCodec as li, findStrategyAccountPda as ll, getUpdateAllocationsInstructionDataDecoder as ln, getProcessDepositInstruction as lo, getSetReferrerConfigInstructionDataEncoder as lr, INITIALIZE_BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR as ls, NTBUNDLE_ERROR__POD_TOKEN_TOTAL_SUPPLY_ZERO as lt, fetchOracleData as lu, NTBUNDLE_ERROR__EQUITY_OUT_OF_BUFFER_BOUND as m, getRegisterReferrerDiscriminatorBytes as ma, getClearUserWithdrawalTimingOverrideInstructionAsync as mc, getSetFeesDiscriminatorBytes as mi, findRequestBundleSwitchUserBundleAccountPda as ml, getStartDistributionInstruction as mn, parseProcessDepositInstruction as mo, getSetReferrerActiveInstructionDataCodec as mr, getInitializeBundleMasterAccountInstructionDataDecoder as ms, NTBUNDLE_ERROR__REFERRALS_DISABLED as mt, getOracleDataSize as mu, NTBUNDLE_ERROR__ALLOCATION_BPS_GREATER_THAN_GLOBAL_ALLOCATION_BPS as n, getRequestBundleSwitchInstructionDataDecoder as na, parseDistributeToReceiversInstruction as nc, getBundleDiscriminatorBytes as nd, getSetMaxDepositAmountInstructionDataCodec as ni, getAddStrategyInstructionDataEncoder as nl, getUpdateOracleInstructionDataEncoder as nn, getProcessReferrerWithdrawalInstructionAsync as no, getSetReferrerRateOverrideInstructionDataEncoder as nr, getInitializePermissionedBundleDepositorDiscriminatorBytes as ns, NTBUNDLE_ERROR__PAUSED_DEPOSITS_WITHDRAWALS as nt, getReferrerAccountEncoder as nu, NTBUNDLE_ERROR__BUNDLE_NOT_PERMISSIONNED as o, getRemoveStrategyDiscriminatorBytes as oa, getCloseUserBundleAccountInstructionAsync as oc, getReferralTierEncoder as od, SET_KEEPER_DISCRIMINATOR as oi, findTargetPendingBundleAssetAuthorityPda as ol, getUpdateAllocationsInstruction as on, parseProcessReferrerWithdrawalInstruction as oo, getSetReferrerConfigInstruction as or, getInitializePermissionedBundleDepositorInstructionDataDecoder as os, NTBUNDLE_ERROR__PENDING_DEPOSIT_OR_WITHDRAWAL_EXISTS as ot, fetchAllMaybeOracleData as ou, NTBUNDLE_ERROR__EMPTY_USER_WITHDRAWAL_TIMING_CLEAR_REQUEST as p, REGISTER_REFERRER_DISCRIMINATOR as pa, getClearUserWithdrawalTimingOverrideInstruction as pc, SET_FEES_DISCRIMINATOR as pi, findSourceBundleAssetAuthorityPda as pl, getStartDistributionDiscriminatorBytes as pn, getProcessDepositInstructionDataEncoder as po, getSetReferrerActiveInstruction as pr, getInitializeBundleMasterAccountInstructionDataCodec as ps, NTBUNDLE_ERROR__REDEMPTION_AMOUNT_ZERO as pt, getOracleDataEncoder as pu, NTBUNDLE_ERROR__NETTING_ALREADY_DONE as q, getProcessSwitchInstruction as qa, getApplyFeesToUserInstructionDataDecoder as qc, getRequestDepositInstructionDataCodec as qi, REFERRER_ACCOUNT_DISCRIMINATOR as ql, getSetUserFeeOverrideInstructionDataCodec as qn, MANAGER_WITHDRAW_DISCRIMINATOR as qo, getSetMinDepositAmountDiscriminatorBytes as qr, getEnableStrategyInstructionDataEncoder as qs, identifyNtbundleInstruction as qt, getBundleCreatorAccountSize as qu, NTBUNDLE_ERROR__ALLOCATION_BPS_IS_ZERO as r, getRequestBundleSwitchInstructionDataEncoder as ra, CLOSE_USER_BUNDLE_ACCOUNT_DISCRIMINATOR as rc, getBundleEncoder as rd, getSetMaxDepositAmountInstructionDataDecoder as ri, parseAddStrategyInstruction as rl, parseUpdateOracleInstruction as rn, getProcessReferrerWithdrawalInstructionDataCodec as ro, parseSetReferrerRateOverrideInstruction as rr, getInitializePermissionedBundleDepositorInstruction as rs, NTBUNDLE_ERROR__PAYER_NOT_AUTHORITY as rt, getReferrerAccountSize as ru, NTBUNDLE_ERROR__CALLER_NOT_NEUTRAL_FEE_INCREMENTER as s, getRemoveStrategyInstruction as sa, getCloseUserBundleAccountInstructionDataCodec as sc, getSetKeeperDiscriminatorBytes as si, findTargetOracleDataPda as sl, getUpdateAllocationsInstructionAsync as sn, PROCESS_DEPOSIT_DISCRIMINATOR as so, getSetReferrerConfigInstructionDataCodec as sr, getInitializePermissionedBundleDepositorInstructionDataEncoder as ss, NTBUNDLE_ERROR__PENDING_TRANSACTIONS_EXIST as st, fetchAllOracleData as su, NTBUNDLE_ERROR__ALLOCATION_AMOUNT_ZERO as t, getRequestBundleSwitchInstructionDataCodec as ta, getDistributeToReceiversInstructionDataEncoder as tc, getBundleDecoder as td, getSetMaxDepositAmountInstruction as ti, getAddStrategyInstructionDataDecoder as tl, getUpdateOracleInstructionDataDecoder as tn, getProcessReferrerWithdrawalInstruction as to, getSetReferrerRateOverrideInstructionDataDecoder as tr, INITIALIZE_PERMISSIONED_BUNDLE_DEPOSITOR_DISCRIMINATOR as ts, NTBUNDLE_ERROR__ORACLE_UPDATE_TOO_FREQUENT as tt, getReferrerAccountDiscriminatorBytes as tu, NTBUNDLE_ERROR__DISTRIBUTION_ALREADY_STARTED as u, getRemoveStrategyInstructionDataDecoder as ua, parseCloseUserBundleAccountInstruction as uc, getSetKeeperInstructionDataDecoder as ui, findSourceUserBundleAccountPda as ul, getUpdateAllocationsInstructionDataEncoder as un, getProcessDepositInstructionAsync as uo, parseSetReferrerConfigInstruction as ur, getInitializeBundleMasterAccountDiscriminatorBytes as us, NTBUNDLE_ERROR__RAW_TRANSFER_RECEIVER as ut, getOracleDataCodec as uu, NTBUNDLE_ERROR__EXCESSIVE_WITHDRAW_FEE as v, getRegisterReferrerInstructionDataDecoder as va, parseClearUserWithdrawalTimingOverrideInstruction as vc, getSetFeesInstructionDataEncoder as vi, findOracleDataPda as vl, getStartDistributionInstructionDataEncoder as vn, getPerformRefillInstructionAsync as vo, SET_REFERRAL_TIER_CONFIG_DISCRIMINATOR as vr, getInitializeBundleDepositorDiscriminatorBytes as vs, NTBUNDLE_ERROR__REFERRER_DEPOSIT_TOO_LOW as vt, fetchAllMaybeBundleTempData as vu, NTBUNDLE_ERROR__INVALID_ASSET_PRECISION as w, getRefundDepositInstructionAsync as wa, getClearUserFeeOverrideInstructionDataDecoder as wc, getSetDelaysInstructionDataDecoder as wi, findBundleAccountPda as wl, getSetWithdrawalRedemptionScheduleInstructionDataDecoder as wn, getPauseDepositsWithdrawalsDiscriminatorBytes as wo, parseSetReferralTierConfigInstruction as wr, parseInitializeBundleDepositorInstruction as ws, NTBUNDLE_ERROR__SWITCH_ALREADY_ACTIVE as wt, getBundleTempDataEncoder as wu, NTBUNDLE_ERROR__INSUFFICIENT_SHARES_BALANCE as x, REFUND_DEPOSIT_DISCRIMINATOR as xa, getClearUserFeeOverrideInstruction as xc, getSetDelaysDiscriminatorBytes as xi, findBundleMasterAccountPda as xl, getSetWithdrawalRedemptionScheduleDiscriminatorBytes as xn, getPerformRefillInstructionDataEncoder as xo, getSetReferralTierConfigInstructionDataCodec as xr, getInitializeBundleDepositorInstructionDataCodec as xs, NTBUNDLE_ERROR__REFILL_AMOUNT_INVALID as xt, getBundleTempDataCodec as xu, NTBUNDLE_ERROR__INSUFFICIENT_BUNDLE_BALANCE as y, getRegisterReferrerInstructionDataEncoder as ya, CLEAR_USER_FEE_OVERRIDE_DISCRIMINATOR as yc, parseSetFeesInstruction as yi, findCloseUserBundleAccountUserBundleAccountPda as yl, parseStartDistributionInstruction as yn, getPerformRefillInstructionDataCodec as yo, getSetReferralTierConfigDiscriminatorBytes as yr, getInitializeBundleDepositorInstruction as ys, NTBUNDLE_ERROR__REFERRER_SHARES_ZERO as yt, fetchBundleTempData as yu, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_DELAY as z, getProcessWithdrawalInstruction as za, getChangeBundleMasterAdminInstructionDataDecoder as zc, getRequestWithdrawalInstructionDataCodec as zi, fetchAllStrategy as zl, getSetUserReferrerInstructionDataCodec as zn, MANAGER_WITHDRAW_WITH_SPLIT_DISCRIMINATOR as zo, SET_ORACLE_BUFFER_DISCRIMINATOR as zr, getEndDistributionInstructionDataEncoder as zs, NTBUNDLE_ERROR__WITHDRAWAL_ALREADY_PROCESSED as zt, fetchAllBundleCreatorAccount as zu };
11753
+ export { NTBUNDLE_ERROR__MUST_BE_IN_WHITELIST as $, getRegisterReferrerInstructionDataDecoder as $a, parseDistributeToReceiversInstruction as $c, getBundleMasterAccountDiscriminatorBytes as $d, parseSetDelaysInstruction as $i, getApplyFeesToTokenizedDepositorInstructionDataEncoder as $l, getSetUserReferrerInstructionDataEncoder as $n, getPerformRefillInstructionAsync as $o, getSetOracleBufferInstruction as $r, getInitializePermissionedBundleDepositorDiscriminatorBytes as $s, getNtbundleErrorMessage as $t, getTokenizedBundleDepositorEncoder as $u, NTBUNDLE_ERROR__INVALID_ORACLE_MAX_AGE as A, getRequestDepositInstructionDataEncoder as Aa, END_DISTRIBUTION_DISCRIMINATOR as Ac, getOracleDataDecoder as Ad, getSetKeeperInstructionDataDecoder as Ai, parseChangeManagerInstruction as Al, getStartDistributionInstructionDataEncoder as An, getProcessSwitchInstructionDataCodec as Ao, SET_REFERRAL_TIER_CONFIG_DISCRIMINATOR as Ar, getManagerWithdrawInstruction as As, NTBUNDLE_ERROR__REFILL_AMOUNT_INVALID as At, findBundleCreatorAccountPda as Au, NTBUNDLE_ERROR__INVALID_USER_FEE_CONFIG as B, REMOVE_STRATEGY_DISCRIMINATOR as Ba, getEnableStrategyInstruction as Bc, getBundleTempDataCodec as Bd, SET_FEES_DISCRIMINATOR as Bi, getApplyFeesToUserDiscriminatorBytes as Bl, getSetUserWithdrawalTimingOverrideDiscriminatorBytes as Bn, getProcessReferrerWithdrawalInstructionDataEncoder as Bo, getSetOracleUpdateTimeLimitInstructionDataCodec as Br, getInstantMintBundleTokensInstructionDataCodec as Bs, NTBUNDLE_ERROR__TOKEN_AMOUNT_ZERO as Bt, getUserBundleAccountDecoder as Bu, NTBUNDLE_ERROR__INSUFFICIENT_SHARES_BALANCE as C, parseRequestTokenWithdrawalInstruction as Ca, getInitializeBundleDiscriminatorBytes as Cc, ORACLE_DATA_DISCRIMINATOR as Cd, getReferralTierCodec as Cf, getSetMaxDepositAmountInstructionDataDecoder as Ci, parseClearUserFeeOverrideInstruction as Cl, parseUpdateAllocationsInstruction as Cn, getProcessWithdrawalInstructionDataDecoder as Co, SET_REFERRER_ACTIVE_DISCRIMINATOR as Cr, getManagerWithdrawWithSplitInstructionAsync as Cs, NTBUNDLE_ERROR__REFERRALS_DISABLED as Ct, findReferrerAccountPda as Cu, NTBUNDLE_ERROR__INVALID_FEE_SPLIT as D, getRequestDepositInstructionAsync as Da, getInitializeBundleInstructionDataDecoder as Dc, fetchMaybeOracleData as Dd, getSetKeeperDiscriminatorBytes as Di, getChangeManagerInstructionDataCodec as Dl, getStartDistributionInstructionAsync as Dn, getProcessSwitchDiscriminatorBytes as Do, getSetReferrerActiveInstructionDataDecoder as Dr, parseManagerWithdrawWithSplitInstruction as Ds, NTBUNDLE_ERROR__REFERRER_DEPOSIT_TOO_LOW as Dt, findCloseUserBundleAccountUserBundleAccountPda as Du, NTBUNDLE_ERROR__INVALID_ASSET_PRECISION as E, getRequestDepositInstruction as Ea, getInitializeBundleInstructionDataCodec as Ec, fetchAllOracleData as Ed, SET_KEEPER_DISCRIMINATOR as Ei, getChangeManagerInstruction as El, getStartDistributionInstruction as En, PROCESS_SWITCH_DISCRIMINATOR as Eo, getSetReferrerActiveInstructionDataCodec as Er, getManagerWithdrawWithSplitInstructionDataEncoder as Es, NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISSING as Et, findMintPda as Eu, NTBUNDLE_ERROR__INVALID_REFERRAL_TIER_CONFIG as F, getRequestBundleSwitchInstructionAsync as Fa, getEndDistributionInstructionDataDecoder as Fc, decodeBundleTempData as Fd, getSetIssuanceFeeInstruction as Fi, getChangeBundleMasterAdminInstructionDataCodec as Fl, getSetWithdrawalRedemptionScheduleInstructionDataCodec as Fn, getProcessReferrerWithdrawalDiscriminatorBytes as Fo, getSetReferralTierConfigInstructionDataEncoder as Fr, parseManagerWithdrawInstruction as Fs, NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNTS_MISSING as Ft, fetchAllMaybeUserBundleAccount as Fu, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_REDEMPTION_SCHEDULE as G, getRemoveStrategyInstructionDataDecoder as Ga, parseEnableStrategyInstruction as Gc, BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR as Gd, getSetFeesInstructionDataEncoder as Gi, getApplyFeesToUserInstructionDataEncoder as Gl, getSetUserWithdrawalTimingOverrideInstructionDataEncoder as Gn, getProcessDepositInstructionAsync as Go, getSetOracleMaxAgeDiscriminatorBytes as Gr, getInitializeTokenizedBundleDepositorDiscriminatorBytes as Gs, NTBUNDLE_ERROR__UNAUTHORIZED_KEEPER_ACTION as Gt, decodeTokenizedBundleDepositor as Gu, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_AMOUNT as H, getRemoveStrategyInstruction as Ha, getEnableStrategyInstructionDataCodec as Hc, getBundleTempDataDiscriminatorBytes as Hd, getSetFeesInstruction as Hi, getApplyFeesToUserInstructionAsync as Hl, getSetUserWithdrawalTimingOverrideInstructionAsync as Hn, PROCESS_DEPOSIT_DISCRIMINATOR as Ho, getSetOracleUpdateTimeLimitInstructionDataEncoder as Hr, getInstantMintBundleTokensInstructionDataEncoder as Hs, NTBUNDLE_ERROR__TOTAL_ASSET_EXCEED_NEW_MAX_DEPOSIT_AMOUNT as Ht, getUserBundleAccountEncoder as Hu, NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_DEPOSITOR as I, getRequestBundleSwitchInstructionDataCodec as Ia, getEndDistributionInstructionDataEncoder as Ic, fetchAllBundleTempData as Id, getSetIssuanceFeeInstructionDataCodec as Ii, getChangeBundleMasterAdminInstructionDataDecoder as Il, getSetWithdrawalRedemptionScheduleInstructionDataDecoder as In, getProcessReferrerWithdrawalInstruction as Io, parseSetReferralTierConfigInstruction as Ir, INSTANT_MINT_BUNDLE_TOKENS_DISCRIMINATOR as Is, NTBUNDLE_ERROR__SWITCH_TARGET_ACCOUNT_MISMATCH as It, fetchAllUserBundleAccount as Iu, NTBUNDLE_ERROR__MATH_ERROR as J, REGISTER_REFERRER_DISCRIMINATOR as Ja, getDistributeToReceiversInstruction as Jc, fetchAllMaybeBundleMasterAccount as Jd, getSetDelaysDiscriminatorBytes as Ji, getApplyFeesToTokenizedDepositorDiscriminatorBytes as Jl, getSetUserReferrerDiscriminatorBytes as Jn, getProcessDepositInstructionDataEncoder as Jo, getSetOracleMaxAgeInstructionDataDecoder as Jr, getInitializeTokenizedBundleDepositorInstructionDataCodec as Js, NTBUNDLE_ERROR__UNPAUSED_DEPOSITS_WITHDRAWALS as Jt, fetchMaybeTokenizedBundleDepositor as Ju, NTBUNDLE_ERROR__LEFT_TO_DISTRIBUTE_NOT_ZERO as K, getRemoveStrategyInstructionDataEncoder as Ka, DISTRIBUTE_TO_RECEIVERS_DISCRIMINATOR as Kc, decodeBundleMasterAccount as Kd, parseSetFeesInstruction as Ki, parseApplyFeesToUserInstruction as Kl, parseSetUserWithdrawalTimingOverrideInstruction as Kn, getProcessDepositInstructionDataCodec as Ko, getSetOracleMaxAgeInstruction as Kr, getInitializeTokenizedBundleDepositorInstruction as Ks, NTBUNDLE_ERROR__UNAUTHORIZED_MANAGER_ACTION as Kt, fetchAllMaybeTokenizedBundleDepositor as Ku, NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_MINT as L, getRequestBundleSwitchInstructionDataDecoder as La, parseEndDistributionInstruction as Lc, fetchAllMaybeBundleTempData as Ld, getSetIssuanceFeeInstructionDataDecoder as Li, getChangeBundleMasterAdminInstructionDataEncoder as Ll, getSetWithdrawalRedemptionScheduleInstructionDataEncoder as Ln, getProcessReferrerWithdrawalInstructionAsync as Lo, SET_ORACLE_UPDATE_TIME_LIMIT_DISCRIMINATOR as Lr, getInstantMintBundleTokensDiscriminatorBytes as Ls, NTBUNDLE_ERROR__SWITCH_TARGET_SAME_AS_SOURCE as Lt, fetchMaybeUserBundleAccount as Lu, NTBUNDLE_ERROR__INVALID_PERMISSIONNED_DEPOSITOR as M, REQUEST_BUNDLE_SWITCH_DISCRIMINATOR as Ma, getEndDistributionInstruction as Mc, getOracleDataEncoder as Md, parseSetKeeperInstruction as Mi, getChangeBundleMasterAdminDiscriminatorBytes as Ml, SET_WITHDRAWAL_REDEMPTION_SCHEDULE_DISCRIMINATOR as Mn, getProcessSwitchInstructionDataEncoder as Mo, getSetReferralTierConfigInstruction as Mr, getManagerWithdrawInstructionDataCodec as Ms, NTBUNDLE_ERROR__STRATEGY_DISABLED as Mt, findBundleAccountPda as Mu, NTBUNDLE_ERROR__INVALID_RECEIVER as N, getRequestBundleSwitchDiscriminatorBytes as Na, getEndDistributionInstructionAsync as Nc, getOracleDataSize as Nd, SET_ISSUANCE_FEE_DISCRIMINATOR as Ni, getChangeBundleMasterAdminInstruction as Nl, getSetWithdrawalRedemptionScheduleDiscriminatorBytes as Nn, parseProcessSwitchInstruction as No, getSetReferralTierConfigInstructionDataCodec as Nr, getManagerWithdrawInstructionDataDecoder as Ns, NTBUNDLE_ERROR__SWITCH_ALREADY_ACTIVE as Nt, USER_BUNDLE_ACCOUNT_DISCRIMINATOR as Nu, NTBUNDLE_ERROR__INVALID_NEUTRAL_FEE_INCREMENTER as O, getRequestDepositInstructionDataCodec as Oa, getInitializeBundleInstructionDataEncoder as Oc, fetchOracleData as Od, getSetKeeperInstruction as Oi, getChangeManagerInstructionDataDecoder as Ol, getStartDistributionInstructionDataCodec as On, getProcessSwitchInstruction as Oo, getSetReferrerActiveInstructionDataEncoder as Or, MANAGER_WITHDRAW_DISCRIMINATOR as Os, NTBUNDLE_ERROR__REFERRER_SHARES_ZERO as Ot, findBundleTempDataPda as Ou, NTBUNDLE_ERROR__INVALID_REFERRAL_CONFIG as P, getRequestBundleSwitchInstruction as Pa, getEndDistributionInstructionDataCodec as Pc, BUNDLE_TEMP_DATA_DISCRIMINATOR as Pd, getSetIssuanceFeeDiscriminatorBytes as Pi, getChangeBundleMasterAdminInstructionAsync as Pl, getSetWithdrawalRedemptionScheduleInstruction as Pn, PROCESS_REFERRER_WITHDRAWAL_DISCRIMINATOR as Po, getSetReferralTierConfigInstructionDataDecoder as Pr, getManagerWithdrawInstructionDataEncoder as Ps, NTBUNDLE_ERROR__SWITCH_ASSET_MINT_MISMATCH as Pt, decodeUserBundleAccount as Pu, NTBUNDLE_ERROR__MIN_DEPOSIT_AMOUNT_NOT_MET as Q, getRegisterReferrerInstructionDataCodec as Qa, getDistributeToReceiversInstructionDataEncoder as Qc, getBundleMasterAccountDecoder as Qd, getSetDelaysInstructionDataEncoder as Qi, getApplyFeesToTokenizedDepositorInstructionDataDecoder as Ql, getSetUserReferrerInstructionDataDecoder as Qn, getPerformRefillInstruction as Qo, getSetOracleBufferDiscriminatorBytes as Qr, INITIALIZE_PERMISSIONED_BUNDLE_DEPOSITOR_DISCRIMINATOR as Qs, NTBUNDLE_ERROR__WITHDRAWAL_DELAY_NOT_MET as Qt, getTokenizedBundleDepositorDiscriminatorBytes as Qu, NTBUNDLE_ERROR__INVALID_TOKENIZED_BUNDLE_TOKEN_AUTHORITY as R, getRequestBundleSwitchInstructionDataEncoder as Ra, ENABLE_STRATEGY_DISCRIMINATOR as Rc, fetchBundleTempData as Rd, getSetIssuanceFeeInstructionDataEncoder as Ri, parseChangeBundleMasterAdminInstruction as Rl, parseSetWithdrawalRedemptionScheduleInstruction as Rn, getProcessReferrerWithdrawalInstructionDataCodec as Ro, getSetOracleUpdateTimeLimitDiscriminatorBytes as Rr, getInstantMintBundleTokensInstruction as Rs, NTBUNDLE_ERROR__TOKENIZED_BUNDLE_STATE_INVALID as Rt, fetchUserBundleAccount as Ru, NTBUNDLE_ERROR__INSUFFICIENT_FUNDS as S, getRequestTokenWithdrawalInstructionDataEncoder as Sa, INITIALIZE_BUNDLE_DISCRIMINATOR as Sc, getReferrerAccountSize as Sd, getBundleEncoder as Sf, getSetMaxDepositAmountInstructionDataCodec as Si, getClearUserFeeOverrideInstructionDataEncoder as Sl, getUpdateAllocationsInstructionDataEncoder as Sn, getProcessWithdrawalInstructionDataCodec as So, parseSetReferrerConfigInstruction as Sr, getManagerWithdrawWithSplitInstruction as Ss, NTBUNDLE_ERROR__REDEMPTION_AMOUNT_ZERO as St, findReferrerUserBundleAccountPda as Su, NTBUNDLE_ERROR__INVALID_ASSET_ADDRESS as T, getRequestDepositDiscriminatorBytes as Ta, getInitializeBundleInstructionAsync as Tc, fetchAllMaybeOracleData as Td, getReferralTierEncoder as Tf, parseSetMaxDepositAmountInstruction as Ti, getChangeManagerDiscriminatorBytes as Tl, getStartDistributionDiscriminatorBytes as Tn, parseProcessWithdrawalInstruction as To, getSetReferrerActiveInstruction as Tr, getManagerWithdrawWithSplitInstructionDataDecoder as Ts, NTBUNDLE_ERROR__REFERRER_ACCOUNT_MISMATCH as Tt, findOracleDataPda as Tu, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_COOLDOWN_PERIOD as U, getRemoveStrategyInstructionAsync as Ua, getEnableStrategyInstructionDataDecoder as Uc, getBundleTempDataEncoder as Ud, getSetFeesInstructionDataCodec as Ui, getApplyFeesToUserInstructionDataCodec as Ul, getSetUserWithdrawalTimingOverrideInstructionDataCodec as Un, getProcessDepositDiscriminatorBytes as Uo, parseSetOracleUpdateTimeLimitInstruction as Ur, parseInstantMintBundleTokensInstruction as Us, NTBUNDLE_ERROR__UNAUTHORIZED_ADMIN_ACTION as Ut, getUserBundleAccountSize as Uu, NTBUNDLE_ERROR__INVALID_USER_WITHDRAWAL_TIMING_CONFIG as V, getRemoveStrategyDiscriminatorBytes as Va, getEnableStrategyInstructionAsync as Vc, getBundleTempDataDecoder as Vd, getSetFeesDiscriminatorBytes as Vi, getApplyFeesToUserInstruction as Vl, getSetUserWithdrawalTimingOverrideInstruction as Vn, parseProcessReferrerWithdrawalInstruction as Vo, getSetOracleUpdateTimeLimitInstructionDataDecoder as Vr, getInstantMintBundleTokensInstructionDataDecoder as Vs, NTBUNDLE_ERROR__TOO_MANY_ALLOCATED_RECEIVERS as Vt, getUserBundleAccountDiscriminatorBytes as Vu, NTBUNDLE_ERROR__INVALID_WITHDRAWAL_DELAY as W, getRemoveStrategyInstructionDataCodec as Wa, getEnableStrategyInstructionDataEncoder as Wc, getBundleTempDataSize as Wd, getSetFeesInstructionDataDecoder as Wi, getApplyFeesToUserInstructionDataDecoder as Wl, getSetUserWithdrawalTimingOverrideInstructionDataDecoder as Wn, getProcessDepositInstruction as Wo, SET_ORACLE_MAX_AGE_DISCRIMINATOR as Wr, INITIALIZE_TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR as Ws, NTBUNDLE_ERROR__UNAUTHORIZED_BUNDLE_CREATOR as Wt, TOKENIZED_BUNDLE_DEPOSITOR_DISCRIMINATOR as Wu, NTBUNDLE_ERROR__MINIMUM_SHARES_OUT_NOT_MET as X, getRegisterReferrerInstruction as Xa, getDistributeToReceiversInstructionDataCodec as Xc, fetchMaybeBundleMasterAccount as Xd, getSetDelaysInstructionDataCodec as Xi, getApplyFeesToTokenizedDepositorInstructionAsync as Xl, getSetUserReferrerInstructionAsync as Xn, PERFORM_REFILL_DISCRIMINATOR as Xo, parseSetOracleMaxAgeInstruction as Xr, getInitializeTokenizedBundleDepositorInstructionDataEncoder as Xs, NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_NOT_EMPTY as Xt, getTokenizedBundleDepositorCodec as Xu, NTBUNDLE_ERROR__MAX_DEPOSIT_AMOUNT_EXCEEDED as Y, getRegisterReferrerDiscriminatorBytes as Ya, getDistributeToReceiversInstructionAsync as Yc, fetchBundleMasterAccount as Yd, getSetDelaysInstruction as Yi, getApplyFeesToTokenizedDepositorInstruction as Yl, getSetUserReferrerInstruction as Yn, parseProcessDepositInstruction as Yo, getSetOracleMaxAgeInstructionDataEncoder as Yr, getInitializeTokenizedBundleDepositorInstructionDataDecoder as Ys, NTBUNDLE_ERROR__USER_BUNDLE_ACCOUNT_HAS_ACTIVITY as Yt, fetchTokenizedBundleDepositor as Yu, NTBUNDLE_ERROR__MINIMUM_TOKENS_OUT_NOT_MET as Z, getRegisterReferrerInstructionAsync as Za, getDistributeToReceiversInstructionDataDecoder as Zc, getBundleMasterAccountCodec as Zd, getSetDelaysInstructionDataDecoder as Zi, getApplyFeesToTokenizedDepositorInstructionDataCodec as Zl, getSetUserReferrerInstructionDataCodec as Zn, getPerformRefillDiscriminatorBytes as Zo, SET_ORACLE_BUFFER_DISCRIMINATOR as Zr, parseInitializeTokenizedBundleDepositorInstruction as Zs, NTBUNDLE_ERROR__WITHDRAWAL_ALREADY_PROCESSED as Zt, getTokenizedBundleDepositorDecoder as Zu, NTBUNDLE_ERROR__EXCESSIVE_MANAGEMENT_FEE as _, getRequestTokenWithdrawalDiscriminatorBytes as _a, getInitializeBundleDepositorInstructionAsync as _c, fetchReferrerAccount as _d, fetchBundle as _f, getSetMinDepositAmountInstructionDataEncoder as _i, getClearUserFeeOverrideDiscriminatorBytes as _l, getUpdateAllocationsDiscriminatorBytes as _n, parseReferrerRequestWithdrawInstruction as _o, getSetReferrerConfigDiscriminatorBytes as _r, getNetPendingTransactionsInstructionDataDecoder as _s, NTBUNDLE_ERROR__PERMISSIONED_BUNDLE_TOKENIZATION_UNSUPPORTED as _t, findSourceUserBundleAccountPda as _u, NTBUNDLE_ERROR__BUNDLE_IS_PERMISSIONNED as a, getSetBundleCreatorInstructionDataDecoder as aa, parseInitializePermissionedBundleDepositorInstruction as ac, fetchMaybeStrategy as ad, fetchAllMaybeBundleCreatorAccount as af, getSetMintCapPerCycleDiscriminatorBytes as ai, getCloseUserBundleAccountInstructionDataDecoder as al, identifyNtbundleInstruction as an, getRefundDepositInstructionAsync as ao, getSetUserFeeOverrideInstructionDataCodec as ar, getPauseDepositsWithdrawalsDiscriminatorBytes as as, NTBUNDLE_ERROR__NO_USER_FEE_OVERRIDE_TO_CLEAR as at, getAddStrategyInstructionDataCodec as au, NTBUNDLE_ERROR__INSTANT_MINT_CAP_EXCEEDED as b, getRequestTokenWithdrawalInstructionDataCodec as ba, getInitializeBundleDepositorInstructionDataEncoder as bc, getReferrerAccountDiscriminatorBytes as bd, getBundleDecoder as bf, getSetMaxDepositAmountDiscriminatorBytes as bi, getClearUserFeeOverrideInstructionDataCodec as bl, getUpdateAllocationsInstructionDataCodec as bn, getProcessWithdrawalInstruction as bo, getSetReferrerConfigInstructionDataDecoder as br, MANAGER_WITHDRAW_WITH_SPLIT_DISCRIMINATOR as bs, NTBUNDLE_ERROR__RECEIVER_ALREADY_ALLOCATED as bt, findSourceBundleAssetAuthorityPda as bu, NTBUNDLE_ERROR__DEPOSITS_EXTRA_IN_PENDINGS_NOT_ZERO as c, REQUEST_WITHDRAWAL_DISCRIMINATOR as ca, getInitializeBundleMasterAccountInstruction as cc, getStrategyDecoder as cd, getBundleCreatorAccountCodec as cf, getSetMintCapPerCycleInstructionDataCodec as ci, CLEAR_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR as cl, UPDATE_ORACLE_DISCRIMINATOR as cn, getRefundDepositInstructionDataEncoder as co, parseSetUserFeeOverrideInstruction as cr, getPauseDepositsWithdrawalsInstructionDataCodec as cs, NTBUNDLE_ERROR__ORACLE_UPDATE_TOO_FREQUENT as ct, parseAddStrategyInstruction as cu, NTBUNDLE_ERROR__DISTRIBUTION_NOT_STARTED as d, getRequestWithdrawalInstructionAsync as da, getInitializeBundleMasterAccountInstructionDataDecoder as dc, getStrategySize as dd, getBundleCreatorAccountEncoder as df, parseSetMintCapPerCycleInstruction as di, getClearUserWithdrawalTimingOverrideInstructionAsync as dl, getUpdateOracleInstructionAsync as dn, getReferrerRequestWithdrawDiscriminatorBytes as do, getSetReferrerRateOverrideInstruction as dr, parsePauseDepositsWithdrawalsInstruction as ds, NTBUNDLE_ERROR__PENDING_DEPOSIT_AMOUNT_ZERO as dt, findTokenAuthorityPda as du, SET_BUNDLE_CREATOR_DISCRIMINATOR as ea, getInitializePermissionedBundleDepositorInstruction as ec, getTokenizedBundleDepositorSize as ed, getBundleMasterAccountEncoder as ef, getSetOracleBufferInstructionDataCodec as ei, CLOSE_USER_BUNDLE_ACCOUNT_DISCRIMINATOR as el, isNtbundleError as en, getRegisterReferrerInstructionDataEncoder as eo, parseSetUserReferrerInstruction as er, getPerformRefillInstructionDataCodec as es, NTBUNDLE_ERROR__NETTING_ALREADY_DONE as et, parseApplyFeesToTokenizedDepositorInstruction as eu, NTBUNDLE_ERROR__EMPTY_USER_FEE_CLEAR_REQUEST as f, getRequestWithdrawalInstructionDataCodec as fa, getInitializeBundleMasterAccountInstructionDataEncoder as fc, REFERRER_ACCOUNT_DISCRIMINATOR as fd, getBundleCreatorAccountSize as ff, SET_MIN_DEPOSIT_AMOUNT_DISCRIMINATOR as fi, getClearUserWithdrawalTimingOverrideInstructionDataCodec as fl, getUpdateOracleInstructionDataCodec as fn, getReferrerRequestWithdrawInstruction as fo, getSetReferrerRateOverrideInstructionDataCodec as fr, NET_PENDING_TRANSACTIONS_DISCRIMINATOR as fs, NTBUNDLE_ERROR__PENDING_DEPOSIT_EXISTS as ft, findTargetUserBundleAccountPda as fu, NTBUNDLE_ERROR__EXCESSIVE_ISSUANCE_FEE as g, REQUEST_TOKEN_WITHDRAWAL_DISCRIMINATOR as ga, getInitializeBundleDepositorInstruction as gc, fetchMaybeReferrerAccount as gd, fetchAllMaybeBundle as gf, getSetMinDepositAmountInstructionDataDecoder as gi, CLEAR_USER_FEE_OVERRIDE_DISCRIMINATOR as gl, UPDATE_ALLOCATIONS_DISCRIMINATOR as gn, getReferrerRequestWithdrawInstructionDataEncoder as go, SET_REFERRER_CONFIG_DISCRIMINATOR as gr, getNetPendingTransactionsInstructionDataCodec as gs, NTBUNDLE_ERROR__PENDING_WITHDRAWAL_EXISTS as gt, findStrategyAccountPda as gu, NTBUNDLE_ERROR__EXCESSIVE_DEPOSIT_FEE as h, parseRequestWithdrawalInstruction as ha, getInitializeBundleDepositorDiscriminatorBytes as hc, fetchAllReferrerAccount as hd, fetchAllBundle as hf, getSetMinDepositAmountInstructionDataCodec as hi, parseClearUserWithdrawalTimingOverrideInstruction as hl, parseUpdateOracleInstruction as hn, getReferrerRequestWithdrawInstructionDataDecoder as ho, parseSetReferrerRateOverrideInstruction as hr, getNetPendingTransactionsInstructionAsync as hs, NTBUNDLE_ERROR__PENDING_TRANSACTIONS_EXIST as ht, findTargetBundleTempDataPda as hu, NTBUNDLE_ERROR__AMOUNT_MUST_BE_BELOW_MAX as i, getSetBundleCreatorInstructionDataCodec as ia, getInitializePermissionedBundleDepositorInstructionDataEncoder as ic, fetchAllStrategy as id, fetchAllBundleCreatorAccount as if, SET_MINT_CAP_PER_CYCLE_DISCRIMINATOR as ii, getCloseUserBundleAccountInstructionDataCodec as il, identifyNtbundleAccount as in, getRefundDepositInstruction as io, getSetUserFeeOverrideInstructionAsync as ir, PAUSE_DEPOSITS_WITHDRAWALS_DISCRIMINATOR as is, NTBUNDLE_ERROR__NO_PENDING_WITHDRAWAL as it, getAddStrategyInstructionAsync as iu, NTBUNDLE_ERROR__INVALID_ORACLE_UPDATE_TIME_LIMIT as j, parseRequestDepositInstruction as ja, getEndDistributionDiscriminatorBytes as jc, getOracleDataDiscriminatorBytes as jd, getSetKeeperInstructionDataEncoder as ji, CHANGE_BUNDLE_MASTER_ADMIN_DISCRIMINATOR as jl, parseStartDistributionInstruction as jn, getProcessSwitchInstructionDataDecoder as jo, getSetReferralTierConfigDiscriminatorBytes as jr, getManagerWithdrawInstructionAsync as js, NTBUNDLE_ERROR__STRATEGY_ALREADY_ENABLED as jt, findBundleAssetAuthorityPda as ju, NTBUNDLE_ERROR__INVALID_ORACLE_BUFFER as k, getRequestDepositInstructionDataDecoder as ka, parseInitializeBundleInstruction as kc, getOracleDataCodec as kd, getSetKeeperInstructionDataCodec as ki, getChangeManagerInstructionDataEncoder as kl, getStartDistributionInstructionDataDecoder as kn, getProcessSwitchInstructionAsync as ko, parseSetReferrerActiveInstruction as kr, getManagerWithdrawDiscriminatorBytes as ks, NTBUNDLE_ERROR__REFILL_AMOUNT_EXCEEDED as kt, findBundleMasterAccountPda as ku, NTBUNDLE_ERROR__DEPOSIT_AMOUNT_ZERO as l, getRequestWithdrawalDiscriminatorBytes as la, getInitializeBundleMasterAccountInstructionAsync as lc, getStrategyDiscriminatorBytes as ld, getBundleCreatorAccountDecoder as lf, getSetMintCapPerCycleInstructionDataDecoder as li, getClearUserWithdrawalTimingOverrideDiscriminatorBytes as ll, getUpdateOracleDiscriminatorBytes as ln, parseRefundDepositInstruction as lo, SET_REFERRER_RATE_OVERRIDE_DISCRIMINATOR as lr, getPauseDepositsWithdrawalsInstructionDataDecoder as ls, NTBUNDLE_ERROR__PAUSED_DEPOSITS_WITHDRAWALS as lt, findUserBundleAccountPda as lu, NTBUNDLE_ERROR__EQUITY_OUT_OF_BUFFER_BOUND as m, getRequestWithdrawalInstructionDataEncoder as ma, INITIALIZE_BUNDLE_DEPOSITOR_DISCRIMINATOR as mc, fetchAllMaybeReferrerAccount as md, decodeBundle as mf, getSetMinDepositAmountInstruction as mi, getClearUserWithdrawalTimingOverrideInstructionDataEncoder as ml, getUpdateOracleInstructionDataEncoder as mn, getReferrerRequestWithdrawInstructionDataCodec as mo, getSetReferrerRateOverrideInstructionDataEncoder as mr, getNetPendingTransactionsInstruction as ms, NTBUNDLE_ERROR__PENDING_STATE_ACTIVE as mt, findTargetOracleDataPda as mu, NTBUNDLE_ERROR__ALLOCATION_BPS_GREATER_THAN_GLOBAL_ALLOCATION_BPS as n, getSetBundleCreatorInstruction as na, getInitializePermissionedBundleDepositorInstructionDataCodec as nc, decodeStrategy as nd, BUNDLE_CREATOR_ACCOUNT_DISCRIMINATOR as nf, getSetOracleBufferInstructionDataEncoder as ni, getCloseUserBundleAccountInstruction as nl, NtbundleAccount as nn, REFUND_DEPOSIT_DISCRIMINATOR as no, getSetUserFeeOverrideDiscriminatorBytes as nr, getPerformRefillInstructionDataEncoder as ns, NTBUNDLE_ERROR__NO_PENDING_SWITCH as nt, getAddStrategyDiscriminatorBytes as nu, NTBUNDLE_ERROR__BUNDLE_NOT_PERMISSIONNED as o, getSetBundleCreatorInstructionDataEncoder as oa, INITIALIZE_BUNDLE_MASTER_ACCOUNT_DISCRIMINATOR as oc, fetchStrategy as od, fetchBundleCreatorAccount as of, getSetMintCapPerCycleInstruction as oi, getCloseUserBundleAccountInstructionDataEncoder as ol, ntbundleProgram as on, getRefundDepositInstructionDataCodec as oo, getSetUserFeeOverrideInstructionDataDecoder as or, getPauseDepositsWithdrawalsInstruction as os, NTBUNDLE_ERROR__NO_USER_WITHDRAWAL_TIMING_OVERRIDE_TO_CLEAR as ot, getAddStrategyInstructionDataDecoder as ou, NTBUNDLE_ERROR__EMPTY_USER_WITHDRAWAL_TIMING_CLEAR_REQUEST as p, getRequestWithdrawalInstructionDataDecoder as pa, parseInitializeBundleMasterAccountInstruction as pc, decodeReferrerAccount as pd, BUNDLE_DISCRIMINATOR as pf, getSetMinDepositAmountDiscriminatorBytes as pi, getClearUserWithdrawalTimingOverrideInstructionDataDecoder as pl, getUpdateOracleInstructionDataDecoder as pn, getReferrerRequestWithdrawInstructionAsync as po, getSetReferrerRateOverrideInstructionDataDecoder as pr, getNetPendingTransactionsDiscriminatorBytes as ps, NTBUNDLE_ERROR__PENDING_DEPOSIT_OR_WITHDRAWAL_EXISTS as pt, findTargetPendingBundleAssetAuthorityPda as pu, NTBUNDLE_ERROR__MANAGER_SHARES_ZERO as q, parseRemoveStrategyInstruction as qa, getDistributeToReceiversDiscriminatorBytes as qc, fetchAllBundleMasterAccount as qd, SET_DELAYS_DISCRIMINATOR as qi, APPLY_FEES_TO_TOKENIZED_DEPOSITOR_DISCRIMINATOR as ql, SET_USER_REFERRER_DISCRIMINATOR as qn, getProcessDepositInstructionDataDecoder as qo, getSetOracleMaxAgeInstructionDataCodec as qr, getInitializeTokenizedBundleDepositorInstructionAsync as qs, NTBUNDLE_ERROR__UNAUTHORIZED_REFERRER_ACTION as qt, fetchAllTokenizedBundleDepositor as qu, NTBUNDLE_ERROR__ALLOCATION_BPS_IS_ZERO as r, getSetBundleCreatorInstructionAsync as ra, getInitializePermissionedBundleDepositorInstructionDataDecoder as rc, fetchAllMaybeStrategy as rd, decodeBundleCreatorAccount as rf, parseSetOracleBufferInstruction as ri, getCloseUserBundleAccountInstructionAsync as rl, NtbundleInstruction as rn, getRefundDepositDiscriminatorBytes as ro, getSetUserFeeOverrideInstruction as rr, parsePerformRefillInstruction as rs, NTBUNDLE_ERROR__NO_PENDING_TRANSACTIONS as rt, getAddStrategyInstruction as ru, NTBUNDLE_ERROR__CALLER_NOT_NEUTRAL_FEE_INCREMENTER as s, parseSetBundleCreatorInstruction as sa, getInitializeBundleMasterAccountDiscriminatorBytes as sc, getStrategyCodec as sd, fetchMaybeBundleCreatorAccount as sf, getSetMintCapPerCycleInstructionAsync as si, parseCloseUserBundleAccountInstruction as sl, parseNtbundleInstruction as sn, getRefundDepositInstructionDataDecoder as so, getSetUserFeeOverrideInstructionDataEncoder as sr, getPauseDepositsWithdrawalsInstructionAsync as ss, NTBUNDLE_ERROR__ORACLE_NOT_UPDATED as st, getAddStrategyInstructionDataEncoder as su, NTBUNDLE_ERROR__ALLOCATION_AMOUNT_ZERO as t, getSetBundleCreatorDiscriminatorBytes as ta, getInitializePermissionedBundleDepositorInstructionAsync as tc, STRATEGY_DISCRIMINATOR as td, getBundleMasterAccountSize as tf, getSetOracleBufferInstructionDataDecoder as ti, getCloseUserBundleAccountDiscriminatorBytes as tl, NTBUNDLE_PROGRAM_ADDRESS as tn, parseRegisterReferrerInstruction as to, SET_USER_FEE_OVERRIDE_DISCRIMINATOR as tr, getPerformRefillInstructionDataDecoder as ts, NTBUNDLE_ERROR__NETTING_NOT_DONE as tt, ADD_STRATEGY_DISCRIMINATOR as tu, NTBUNDLE_ERROR__DISTRIBUTION_ALREADY_STARTED as u, getRequestWithdrawalInstruction as ua, getInitializeBundleMasterAccountInstructionDataCodec as uc, getStrategyEncoder as ud, getBundleCreatorAccountDiscriminatorBytes as uf, getSetMintCapPerCycleInstructionDataEncoder as ui, getClearUserWithdrawalTimingOverrideInstruction as ul, getUpdateOracleInstruction as un, REFERRER_REQUEST_WITHDRAW_DISCRIMINATOR as uo, getSetReferrerRateOverrideDiscriminatorBytes as ur, getPauseDepositsWithdrawalsInstructionDataEncoder as us, NTBUNDLE_ERROR__PAYER_NOT_AUTHORITY as ut, findTokenizedBundleDepositorPda as uu, NTBUNDLE_ERROR__EXCESSIVE_PERFORMANCE_FEE as v, getRequestTokenWithdrawalInstruction as va, getInitializeBundleDepositorInstructionDataCodec as vc, getReferrerAccountCodec as vd, fetchMaybeBundle as vf, parseSetMinDepositAmountInstruction as vi, getClearUserFeeOverrideInstruction as vl, getUpdateAllocationsInstruction as vn, PROCESS_WITHDRAWAL_DISCRIMINATOR as vo, getSetReferrerConfigInstruction as vr, getNetPendingTransactionsInstructionDataEncoder as vs, NTBUNDLE_ERROR__POD_TOKEN_TOTAL_SUPPLY_ZERO as vt, findSourceOracleDataPda as vu, NTBUNDLE_ERROR__INVALID_ALLOCATIONS as w, REQUEST_DEPOSIT_DISCRIMINATOR as wa, getInitializeBundleInstruction as wc, decodeOracleData as wd, getReferralTierDecoder as wf, getSetMaxDepositAmountInstructionDataEncoder as wi, CHANGE_MANAGER_DISCRIMINATOR as wl, START_DISTRIBUTION_DISCRIMINATOR as wn, getProcessWithdrawalInstructionDataEncoder as wo, getSetReferrerActiveDiscriminatorBytes as wr, getManagerWithdrawWithSplitInstructionDataCodec as ws, NTBUNDLE_ERROR__REFERRAL_ALREADY_SET as wt, findPendingBundleAssetAuthorityPda as wu, NTBUNDLE_ERROR__INSUFFICIENT_BUNDLE_BALANCE as x, getRequestTokenWithdrawalInstructionDataDecoder as xa, parseInitializeBundleDepositorInstruction as xc, getReferrerAccountEncoder as xd, getBundleDiscriminatorBytes as xf, getSetMaxDepositAmountInstruction as xi, getClearUserFeeOverrideInstructionDataDecoder as xl, getUpdateAllocationsInstructionDataDecoder as xn, getProcessWithdrawalInstructionAsync as xo, getSetReferrerConfigInstructionDataEncoder as xr, getManagerWithdrawWithSplitDiscriminatorBytes as xs, NTBUNDLE_ERROR__REDEMPTION_AMOUNT_EXCEEDED as xt, findRequestBundleSwitchUserBundleAccountPda as xu, NTBUNDLE_ERROR__EXCESSIVE_WITHDRAW_FEE as y, getRequestTokenWithdrawalInstructionAsync as ya, getInitializeBundleDepositorInstructionDataDecoder as yc, getReferrerAccountDecoder as yd, getBundleCodec as yf, SET_MAX_DEPOSIT_AMOUNT_DISCRIMINATOR as yi, getClearUserFeeOverrideInstructionAsync as yl, getUpdateAllocationsInstructionAsync as yn, getProcessWithdrawalDiscriminatorBytes as yo, getSetReferrerConfigInstructionDataCodec as yr, parseNetPendingTransactionsInstruction as ys, NTBUNDLE_ERROR__RAW_TRANSFER_RECEIVER as yt, findSourceBundleTempDataPda as yu, NTBUNDLE_ERROR__INVALID_TWAP_PERIOD as z, parseRequestBundleSwitchInstruction as za, getEnableStrategyDiscriminatorBytes as zc, fetchMaybeBundleTempData as zd, parseSetIssuanceFeeInstruction as zi, APPLY_FEES_TO_USER_DISCRIMINATOR as zl, SET_USER_WITHDRAWAL_TIMING_OVERRIDE_DISCRIMINATOR as zn, getProcessReferrerWithdrawalInstructionDataDecoder as zo, getSetOracleUpdateTimeLimitInstruction as zr, getInstantMintBundleTokensInstructionAsync as zs, NTBUNDLE_ERROR__TOKEN_AMOUNT_TOO_SMALL as zt, getUserBundleAccountCodec as zu };