@sonarwatch/portfolio-plugins 0.14.151 → 0.14.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/CHANGELOG.md +2232 -2228
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/plugins/allbridge/constants.d.ts +0 -6
  5. package/src/plugins/allbridge/constants.js +1 -9
  6. package/src/plugins/allbridge/constants.js.map +1 -1
  7. package/src/plugins/allbridge/helpers.d.ts +1 -1
  8. package/src/plugins/allbridge/helpers.js +1 -3
  9. package/src/plugins/allbridge/helpers.js.map +1 -1
  10. package/src/plugins/allbridge/positionsFetcher.js +2 -1
  11. package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
  12. package/src/plugins/allbridge/structs.d.ts +13 -0
  13. package/src/plugins/allbridge/structs.js +14 -0
  14. package/src/plugins/allbridge/structs.js.map +1 -0
  15. package/src/plugins/allbridge/types.d.ts +0 -6
  16. package/src/plugins/balancer/helpers/pools.js +21 -21
  17. package/src/plugins/bonfida/constants.js +1 -1
  18. package/src/plugins/bonfida/constants.js.map +1 -1
  19. package/src/plugins/divvy/constants.d.ts +0 -2
  20. package/src/plugins/divvy/constants.js +1 -7
  21. package/src/plugins/divvy/constants.js.map +1 -1
  22. package/src/plugins/divvy/houseJob.js +6 -3
  23. package/src/plugins/divvy/houseJob.js.map +1 -1
  24. package/src/plugins/divvy/housePoolFetcher.js +9 -11
  25. package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
  26. package/src/plugins/divvy/stakingFetcher.js +7 -12
  27. package/src/plugins/divvy/stakingFetcher.js.map +1 -1
  28. package/src/plugins/divvy/structs.d.ts +57 -0
  29. package/src/plugins/divvy/structs.js +57 -0
  30. package/src/plugins/divvy/structs.js.map +1 -0
  31. package/src/plugins/elemental/constants.d.ts +4 -2
  32. package/src/plugins/elemental/constants.js +3 -7
  33. package/src/plugins/elemental/constants.js.map +1 -1
  34. package/src/plugins/elemental/filters.d.ts +0 -1
  35. package/src/plugins/elemental/filters.js +1 -6
  36. package/src/plugins/elemental/filters.js.map +1 -1
  37. package/src/plugins/elemental/helpers.js +2 -2
  38. package/src/plugins/elemental/helpers.js.map +1 -1
  39. package/src/plugins/elemental/poolsJob.js +4 -4
  40. package/src/plugins/elemental/poolsJob.js.map +1 -1
  41. package/src/plugins/ensofi/constants.d.ts +4 -2
  42. package/src/plugins/ensofi/constants.js +3 -7
  43. package/src/plugins/ensofi/constants.js.map +1 -1
  44. package/src/plugins/ensofi/idl.d.ts +149 -6
  45. package/src/plugins/ensofi/idl.js +1074 -61
  46. package/src/plugins/ensofi/idl.js.map +1 -1
  47. package/src/plugins/ensofi/solanaLoansFetcher.js +23 -37
  48. package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
  49. package/src/plugins/ensofi/structs.d.ts +58 -0
  50. package/src/plugins/ensofi/structs.js +60 -0
  51. package/src/plugins/ensofi/structs.js.map +1 -0
  52. package/src/plugins/jupiter/governance/constants.js +3 -3
  53. package/src/plugins/jupiter/governance/constants.js.map +1 -1
  54. package/src/plugins/jupiter/launchpad/constants.d.ts +1 -0
  55. package/src/plugins/jupiter/launchpad/constants.js +8 -7
  56. package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
  57. package/src/plugins/jupiter/pricingJob.js +2 -1
  58. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  59. package/src/plugins/orca/getWhirlpoolPositions.js +7 -7
  60. package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
  61. package/src/plugins/orca/types.d.ts +2 -0
  62. package/src/plugins/picasso/constants.d.ts +0 -2
  63. package/src/plugins/picasso/constants.js +1 -7
  64. package/src/plugins/picasso/constants.js.map +1 -1
  65. package/src/plugins/picasso/helpers.js +7 -4
  66. package/src/plugins/picasso/helpers.js.map +1 -1
  67. package/src/plugins/picasso/structs.d.ts +39 -0
  68. package/src/plugins/picasso/structs.js +37 -0
  69. package/src/plugins/picasso/structs.js.map +1 -0
  70. package/src/plugins/picasso/unstakingNftsJob.js +2 -1
  71. package/src/plugins/picasso/unstakingNftsJob.js.map +1 -1
  72. package/src/plugins/picasso/unstakingPositionsFetcher.js +4 -4
  73. package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
  74. package/src/plugins/raydium/ammV2ApiJob.js +24 -0
  75. package/src/plugins/raydium/ammV2ApiJob.js.map +1 -1
  76. package/src/plugins/raydium/constants.d.ts +1 -0
  77. package/src/plugins/raydium/constants.js +2 -1
  78. package/src/plugins/raydium/constants.js.map +1 -1
  79. package/src/plugins/raydium/getRaydiumCLMMPositions.js +9 -5
  80. package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
  81. package/src/plugins/raydium/types.d.ts +14 -4
  82. package/src/plugins/sanctum/s1AirdropFetcher.js +2 -2
  83. package/src/plugins/sanctum/s1AirdropFetcher.js.map +1 -1
  84. package/src/plugins/sharky/collectionsJob.js +8 -9
  85. package/src/plugins/sharky/collectionsJob.js.map +1 -1
  86. package/src/plugins/sharky/constants.d.ts +0 -2
  87. package/src/plugins/sharky/constants.js +1 -7
  88. package/src/plugins/sharky/constants.js.map +1 -1
  89. package/src/plugins/sharky/loansFetcher.js +25 -19
  90. package/src/plugins/sharky/loansFetcher.js.map +1 -1
  91. package/src/plugins/sharky/structs.d.ts +96 -0
  92. package/src/plugins/sharky/structs.js +103 -0
  93. package/src/plugins/sharky/structs.js.map +1 -0
  94. package/src/plugins/sharky/types.d.ts +0 -15
  95. package/src/plugins/sharky/types.js +0 -8
  96. package/src/plugins/sharky/types.js.map +1 -1
  97. package/src/plugins/stabble/constants.d.ts +0 -3
  98. package/src/plugins/stabble/constants.js +1 -13
  99. package/src/plugins/stabble/constants.js.map +1 -1
  100. package/src/plugins/stabble/poolsJob.js +14 -9
  101. package/src/plugins/stabble/poolsJob.js.map +1 -1
  102. package/src/plugins/stabble/structs.d.ts +43 -0
  103. package/src/plugins/stabble/structs.js +42 -0
  104. package/src/plugins/stabble/structs.js.map +1 -0
  105. package/src/plugins/sushiswap/helpers.js +24 -24
  106. package/src/plugins/uniswap-v2/helpers.js +22 -22
  107. package/src/utils/sei/constants.js +8 -8
  108. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  109. package/src/utils/solana/beets/ParsedGpa.d.ts +1 -0
  110. package/src/utils/solana/beets/ParsedGpa.js +9 -0
  111. package/src/utils/solana/beets/ParsedGpa.js.map +1 -1
  112. package/src/plugins/divvy/types.d.ts +0 -28
  113. package/src/plugins/divvy/types.js +0 -3
  114. package/src/plugins/divvy/types.js.map +0 -1
  115. package/src/plugins/picasso/types.d.ts +0 -17
  116. package/src/plugins/picasso/types.js +0 -3
  117. package/src/plugins/picasso/types.js.map +0 -1
  118. package/src/plugins/sharky/filters.d.ts +0 -8
  119. package/src/plugins/sharky/filters.js +0 -43
  120. package/src/plugins/sharky/filters.js.map +0 -1
  121. package/src/plugins/stabble/filters.d.ts +0 -5
  122. package/src/plugins/stabble/filters.js +0 -20
  123. package/src/plugins/stabble/filters.js.map +0 -1
  124. package/src/plugins/stabble/types.d.ts +0 -40
  125. package/src/plugins/stabble/types.js +0 -3
  126. package/src/plugins/stabble/types.js.map +0 -1
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getStatus = exports.getPositionAddress = void 0;
4
4
  const web3_js_1 = require("@solana/web3.js");
5
- const elementalVaultIDL_1 = require("./elementalVaultIDL");
5
+ const constants_1 = require("./constants");
6
6
  function getPositionAddress(poolAddress, ownerAddress) {
7
7
  return web3_js_1.PublicKey.findProgramAddressSync([
8
8
  Buffer.from('position'),
9
9
  new web3_js_1.PublicKey(ownerAddress).toBuffer(),
10
10
  new web3_js_1.PublicKey(poolAddress).toBuffer(),
11
- ], new web3_js_1.PublicKey(elementalVaultIDL_1.elementalIDLs.address))[0];
11
+ ], constants_1.programId)[0];
12
12
  }
13
13
  exports.getPositionAddress = getPositionAddress;
14
14
  function getStatus(position, pool) {
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,2DAAoD;AAIpD,SAAgB,kBAAkB,CAChC,WAAmB,EACnB,YAAoB;IAEpB,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;QACvB,IAAI,mBAAS,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;QACtC,IAAI,mBAAS,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;KACtC,EACD,IAAI,mBAAS,CAAC,iCAAa,CAAC,OAAO,CAAC,CACrC,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAZD,gDAYC;AAED,SAAgB,SAAS,CAAC,QAAkB,EAAE,IAAgB;IAC5D,IAAI,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,IAAI,QAAQ,CAAC,wBAAwB,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;YAClE,OAAO,UAAU,CAAC;QAEpB,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,QAAQ,CAAC,wBAAwB,KAAK,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnE,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAjBD,8BAiBC"}
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/helpers.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG5C,2CAAwC;AAExC,SAAgB,kBAAkB,CAChC,WAAmB,EACnB,YAAoB;IAEpB,OAAO,mBAAS,CAAC,sBAAsB,CACrC;QACE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;QACvB,IAAI,mBAAS,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;QACtC,IAAI,mBAAS,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;KACtC,EACD,qBAAS,CACV,CAAC,CAAC,CAAC,CAAC;AACP,CAAC;AAZD,gDAYC;AAED,SAAgB,SAAS,CAAC,QAAkB,EAAE,IAAgB;IAC5D,IAAI,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,IAAI,QAAQ,CAAC,wBAAwB,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC;YAClE,OAAO,UAAU,CAAC;QAEpB,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,QAAQ,CAAC,wBAAwB,KAAK,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnE,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AAjBD,8BAiBC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
13
- const web3_js_1 = require("@solana/web3.js");
14
13
  const constants_1 = require("./constants");
15
14
  const clients_1 = require("../../utils/clients");
16
- const solana_1 = require("../../utils/solana");
17
- const filters_1 = require("./filters");
18
15
  const structs_1 = require("./structs");
16
+ const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
19
17
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
20
18
  const client = (0, clients_1.getClientSolana)();
21
- const pools = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.poolStruct, new web3_js_1.PublicKey(constants_1.elementalIdlItem.programId), filters_1.poolFilter);
19
+ const pools = yield ParsedGpa_1.ParsedGpa.build(client, structs_1.poolStruct, constants_1.programId)
20
+ .addDataSizeFilter(254)
21
+ .run();
22
22
  if (pools.length === 0)
23
23
  return;
24
24
  yield cache.setItem(constants_1.poolsCacheKey, pools, {
@@ -1 +1 @@
1
- {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AACvD,6CAA4C;AAG5C,2CAA0E;AAC1E,iDAAsD;AACtD,+CAA8D;AAC9D,uCAAuC;AACvC,uCAAuC;AAEvC,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,KAAK,GAAG,MAAM,IAAA,iCAAwB,EAC1C,MAAM,EACN,oBAAU,EACV,IAAI,mBAAS,CAAC,4BAAgB,CAAC,SAAS,CAAC,EACzC,oBAAU,CACX,CAAC;IAEF,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAE/B,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,KAAK,EAAE;QACxC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/elemental/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuD;AAGvD,2CAAmE;AACnE,iDAAsD;AACtD,uCAAuC;AACvC,kEAA+D;AAE/D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,KAAK,GAAG,MAAM,qBAAS,CAAC,KAAK,CAAC,MAAM,EAAE,oBAAU,EAAE,qBAAS,CAAC;SAC/D,iBAAiB,CAAC,GAAG,CAAC;SACtB,GAAG,EAAE,CAAC;IAET,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAE/B,MAAM,KAAK,CAAC,OAAO,CAAC,yBAAa,EAAE,KAAK,EAAE;QACxC,MAAM,EAAE,sBAAU;QAClB,SAAS,EAAE,0BAAS,CAAC,MAAM;KAC5B,CAAC,CAAC;AACL,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
@@ -1,5 +1,7 @@
1
+ /// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
2
+ /// <reference types="jito-ts/node_modules/@solana/web3.js" />
1
3
  import { Platform } from '@sonarwatch/portfolio-core';
2
- import { IdlItem } from '@solanafm/explorer-kit-idls';
4
+ import { PublicKey } from '@solana/web3.js';
3
5
  export declare const platformId = "ensofi";
4
6
  export declare const platform: Platform;
5
7
  export declare const State = "0x4ca6dfe03908e35241186dee292edaf97bebe75be2d2b8133342cf365be2a0b5";
@@ -7,4 +9,4 @@ export declare const OfferType = "0x92d5efc1eec7e45b9e806fbc88ba175555dc605e63fa
7
9
  export declare const LoanType = "0x92d5efc1eec7e45b9e806fbc88ba175555dc605e63fa2db9da2b90b8b68f2e5c::loan_registry::Loan";
8
10
  export declare const offersCacheKey = "offers";
9
11
  export declare const loansCacheKey = "loans";
10
- export declare const ensofiIdlItem: IdlItem;
12
+ export declare const ensofiProgramId: PublicKey;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensofiIdlItem = exports.loansCacheKey = exports.offersCacheKey = exports.LoanType = exports.OfferType = exports.State = exports.platform = exports.platformId = void 0;
4
- const idl_1 = require("./idl");
3
+ exports.ensofiProgramId = exports.loansCacheKey = exports.offersCacheKey = exports.LoanType = exports.OfferType = exports.State = exports.platform = exports.platformId = void 0;
4
+ const web3_js_1 = require("@solana/web3.js");
5
5
  exports.platformId = 'ensofi';
6
6
  exports.platform = {
7
7
  id: exports.platformId,
@@ -21,9 +21,5 @@ exports.OfferType = '0x92d5efc1eec7e45b9e806fbc88ba175555dc605e63fa2db9da2b90b8b
21
21
  exports.LoanType = '0x92d5efc1eec7e45b9e806fbc88ba175555dc605e63fa2db9da2b90b8b68f2e5c::loan_registry::Loan';
22
22
  exports.offersCacheKey = 'offers';
23
23
  exports.loansCacheKey = 'loans';
24
- exports.ensofiIdlItem = {
25
- programId: 'ensoQXKf4MvNuEC3M9xmcqUqgucFNd5UzAonDdUtgqn',
26
- idl: idl_1.ensofiIdl,
27
- idlType: 'anchor',
28
- };
24
+ exports.ensofiProgramId = new web3_js_1.PublicKey('ensoQXKf4MvNuEC3M9xmcqUqgucFNd5UzAonDdUtgqn');
29
25
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ensofi/constants.ts"],"names":[],"mappings":";;;AAEA,+BAAkC;AAErB,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EACH,4EAA4E;IAC9E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,mCAAmC;IAC5C,aAAa,EAAE,kCAAkC;IACjD,QAAQ,EAAE,oDAAoD;IAC9D,MAAM,EAAE,+BAA+B;IACvC,WAAW,EACT,4EAA4E;CAC/E,CAAC;AAEF,oGAAoG;AACvF,QAAA,KAAK,GAChB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,2FAA2F,CAAC;AACjF,QAAA,QAAQ,GACnB,yFAAyF,CAAC;AAC/E,QAAA,cAAc,GAAG,QAAQ,CAAC;AAC1B,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,6CAA6C;IACxD,GAAG,EAAE,eAAS;IACd,OAAO,EAAE,QAAQ;CACP,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/ensofi/constants.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,QAAQ;IACd,KAAK,EACH,4EAA4E;IAC9E,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,gCAAgC;IACzC,OAAO,EAAE,mCAAmC;IAC5C,aAAa,EAAE,kCAAkC;IACjD,QAAQ,EAAE,oDAAoD;IAC9D,MAAM,EAAE,+BAA+B;IACvC,WAAW,EACT,4EAA4E;CAC/E,CAAC;AAEF,oGAAoG;AACvF,QAAA,KAAK,GAChB,oEAAoE,CAAC;AAC1D,QAAA,SAAS,GACpB,2FAA2F,CAAC;AACjF,QAAA,QAAQ,GACnB,yFAAyF,CAAC;AAC/E,QAAA,cAAc,GAAG,QAAQ,CAAC;AAC1B,QAAA,aAAa,GAAG,OAAO,CAAC;AAExB,QAAA,eAAe,GAAG,IAAI,mBAAS,CAC1C,6CAA6C,CAC9C,CAAC"}
@@ -17,6 +17,24 @@ export declare const ensofiIdl: {
17
17
  option: string;
18
18
  };
19
19
  })[];
20
+ } | {
21
+ name: string;
22
+ accounts: {
23
+ name: string;
24
+ isMut: boolean;
25
+ isSigner: boolean;
26
+ }[];
27
+ args: ({
28
+ name: string;
29
+ type: string;
30
+ } | {
31
+ name: string;
32
+ type: {
33
+ option: {
34
+ array: (string | number)[];
35
+ };
36
+ };
37
+ })[];
20
38
  } | {
21
39
  name: string;
22
40
  accounts: ({
@@ -30,14 +48,100 @@ export declare const ensofiIdl: {
30
48
  isSigner: boolean;
31
49
  isOptional: boolean;
32
50
  })[];
33
- args: {
51
+ args: ({
34
52
  name: string;
35
53
  type: {
36
54
  option: string;
37
55
  };
38
- }[];
56
+ } | {
57
+ name: string;
58
+ type: {
59
+ option: {
60
+ array: (string | number)[];
61
+ };
62
+ };
63
+ })[];
64
+ } | {
65
+ name: string;
66
+ accounts: ({
67
+ name: string;
68
+ isMut: boolean;
69
+ isSigner: boolean;
70
+ docs?: undefined;
71
+ } | {
72
+ name: string;
73
+ isMut: boolean;
74
+ isSigner: boolean;
75
+ docs: string[];
76
+ })[];
77
+ args: ({
78
+ name: string;
79
+ type: string;
80
+ } | {
81
+ name: string;
82
+ type: {
83
+ array: (string | number)[];
84
+ };
85
+ })[];
39
86
  })[];
40
- accounts: {
87
+ accounts: ({
88
+ name: string;
89
+ type: {
90
+ kind: string;
91
+ fields: ({
92
+ name: string;
93
+ type: string;
94
+ } | {
95
+ name: string;
96
+ type: {
97
+ option: {
98
+ array: (string | number)[];
99
+ };
100
+ };
101
+ })[];
102
+ };
103
+ } | {
104
+ name: string;
105
+ type: {
106
+ kind: string;
107
+ fields: ({
108
+ name: string;
109
+ type: string;
110
+ } | {
111
+ name: string;
112
+ type: {
113
+ defined: string;
114
+ array?: undefined;
115
+ };
116
+ } | {
117
+ name: string;
118
+ type: {
119
+ array: (string | number)[];
120
+ defined?: undefined;
121
+ };
122
+ })[];
123
+ };
124
+ } | {
125
+ name: string;
126
+ type: {
127
+ kind: string;
128
+ fields: ({
129
+ name: string;
130
+ docs: string[];
131
+ type: string;
132
+ } | {
133
+ name: string;
134
+ type: {
135
+ array: (string | number)[];
136
+ };
137
+ docs?: undefined;
138
+ } | {
139
+ name: string;
140
+ type: string;
141
+ docs?: undefined;
142
+ })[];
143
+ };
144
+ } | {
41
145
  name: string;
42
146
  type: {
43
147
  kind: string;
@@ -58,17 +162,56 @@ export declare const ensofiIdl: {
58
162
  };
59
163
  })[];
60
164
  };
61
- }[];
62
- types: {
165
+ })[];
166
+ types: ({
167
+ name: string;
168
+ type: {
169
+ kind: string;
170
+ fields: {
171
+ name: string;
172
+ type: string;
173
+ }[];
174
+ variants?: undefined;
175
+ };
176
+ } | {
63
177
  name: string;
64
178
  type: {
65
179
  kind: string;
66
180
  variants: {
67
181
  name: string;
68
182
  }[];
183
+ fields?: undefined;
69
184
  };
70
- }[];
185
+ } | {
186
+ name: string;
187
+ type: {
188
+ kind: string;
189
+ variants: {
190
+ name: string;
191
+ fields: {
192
+ name: string;
193
+ type: string;
194
+ }[];
195
+ }[];
196
+ fields?: undefined;
197
+ };
198
+ })[];
71
199
  events: ({
200
+ name: string;
201
+ fields: ({
202
+ name: string;
203
+ type: string;
204
+ index: boolean;
205
+ } | {
206
+ name: string;
207
+ type: {
208
+ option: {
209
+ array: (string | number)[];
210
+ };
211
+ };
212
+ index: boolean;
213
+ })[];
214
+ } | {
72
215
  name: string;
73
216
  fields: ({
74
217
  name: string;