@zenx-labs/godl-supply 0.1.0

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 (234) hide show
  1. package/README.md +289 -0
  2. package/dist/accounts.d.ts +35 -0
  3. package/dist/accounts.d.ts.map +1 -0
  4. package/dist/accounts.js +276 -0
  5. package/dist/accounts.js.map +1 -0
  6. package/dist/cache/store.d.ts +11 -0
  7. package/dist/cache/store.d.ts.map +1 -0
  8. package/dist/cache/store.js +31 -0
  9. package/dist/cache/store.js.map +1 -0
  10. package/dist/client.d.ts +65 -0
  11. package/dist/client.d.ts.map +1 -0
  12. package/dist/client.js +210 -0
  13. package/dist/client.js.map +1 -0
  14. package/dist/constants.d.ts +13 -0
  15. package/dist/constants.d.ts.map +1 -0
  16. package/dist/constants.js +13 -0
  17. package/dist/constants.js.map +1 -0
  18. package/dist/generated/accounts/automation.d.ts +39 -0
  19. package/dist/generated/accounts/automation.d.ts.map +1 -0
  20. package/dist/generated/accounts/automation.js +60 -0
  21. package/dist/generated/accounts/automation.js.map +1 -0
  22. package/dist/generated/accounts/board.d.ts +31 -0
  23. package/dist/generated/accounts/board.d.ts.map +1 -0
  24. package/dist/generated/accounts/board.js +52 -0
  25. package/dist/generated/accounts/board.js.map +1 -0
  26. package/dist/generated/accounts/config.d.ts +39 -0
  27. package/dist/generated/accounts/config.d.ts.map +1 -0
  28. package/dist/generated/accounts/config.js +60 -0
  29. package/dist/generated/accounts/config.js.map +1 -0
  30. package/dist/generated/accounts/index.d.ts +19 -0
  31. package/dist/generated/accounts/index.d.ts.map +1 -0
  32. package/dist/generated/accounts/index.js +19 -0
  33. package/dist/generated/accounts/index.js.map +1 -0
  34. package/dist/generated/accounts/miner.d.ts +58 -0
  35. package/dist/generated/accounts/miner.d.ts.map +1 -0
  36. package/dist/generated/accounts/miner.js +79 -0
  37. package/dist/generated/accounts/miner.js.map +1 -0
  38. package/dist/generated/accounts/poolMember.d.ts +33 -0
  39. package/dist/generated/accounts/poolMember.d.ts.map +1 -0
  40. package/dist/generated/accounts/poolMember.js +54 -0
  41. package/dist/generated/accounts/poolMember.js.map +1 -0
  42. package/dist/generated/accounts/poolRound.d.ts +35 -0
  43. package/dist/generated/accounts/poolRound.d.ts.map +1 -0
  44. package/dist/generated/accounts/poolRound.js +56 -0
  45. package/dist/generated/accounts/poolRound.js.map +1 -0
  46. package/dist/generated/accounts/referrer.d.ts +37 -0
  47. package/dist/generated/accounts/referrer.d.ts.map +1 -0
  48. package/dist/generated/accounts/referrer.js +58 -0
  49. package/dist/generated/accounts/referrer.js.map +1 -0
  50. package/dist/generated/accounts/round.d.ts +49 -0
  51. package/dist/generated/accounts/round.d.ts.map +1 -0
  52. package/dist/generated/accounts/round.js +70 -0
  53. package/dist/generated/accounts/round.js.map +1 -0
  54. package/dist/generated/accounts/stake.d.ts +44 -0
  55. package/dist/generated/accounts/stake.d.ts.map +1 -0
  56. package/dist/generated/accounts/stake.js +65 -0
  57. package/dist/generated/accounts/stake.js.map +1 -0
  58. package/dist/generated/accounts/stakeV2.d.ts +56 -0
  59. package/dist/generated/accounts/stakeV2.d.ts.map +1 -0
  60. package/dist/generated/accounts/stakeV2.js +77 -0
  61. package/dist/generated/accounts/stakeV2.js.map +1 -0
  62. package/dist/generated/accounts/treasury.d.ts +40 -0
  63. package/dist/generated/accounts/treasury.d.ts.map +1 -0
  64. package/dist/generated/accounts/treasury.js +61 -0
  65. package/dist/generated/accounts/treasury.js.map +1 -0
  66. package/dist/generated/errors/godl.d.ts +24 -0
  67. package/dist/generated/errors/godl.d.ts.map +1 -0
  68. package/dist/generated/errors/godl.js +30 -0
  69. package/dist/generated/errors/godl.js.map +1 -0
  70. package/dist/generated/errors/index.d.ts +9 -0
  71. package/dist/generated/errors/index.d.ts.map +1 -0
  72. package/dist/generated/errors/index.js +9 -0
  73. package/dist/generated/errors/index.js.map +1 -0
  74. package/dist/generated/index.d.ts +13 -0
  75. package/dist/generated/index.d.ts.map +1 -0
  76. package/dist/generated/index.js +13 -0
  77. package/dist/generated/index.js.map +1 -0
  78. package/dist/generated/instructions/automate.d.ts +68 -0
  79. package/dist/generated/instructions/automate.d.ts.map +1 -0
  80. package/dist/generated/instructions/automate.js +94 -0
  81. package/dist/generated/instructions/automate.js.map +1 -0
  82. package/dist/generated/instructions/automateLegacy.d.ts +65 -0
  83. package/dist/generated/instructions/automateLegacy.d.ts.map +1 -0
  84. package/dist/generated/instructions/automateLegacy.js +92 -0
  85. package/dist/generated/instructions/automateLegacy.js.map +1 -0
  86. package/dist/generated/instructions/automateV3.d.ts +74 -0
  87. package/dist/generated/instructions/automateV3.d.ts.map +1 -0
  88. package/dist/generated/instructions/automateV3.js +98 -0
  89. package/dist/generated/instructions/automateV3.js.map +1 -0
  90. package/dist/generated/instructions/checkpointV3.d.ts +58 -0
  91. package/dist/generated/instructions/checkpointV3.d.ts.map +1 -0
  92. package/dist/generated/instructions/checkpointV3.js +87 -0
  93. package/dist/generated/instructions/checkpointV3.js.map +1 -0
  94. package/dist/generated/instructions/claimGodl.d.ts +70 -0
  95. package/dist/generated/instructions/claimGodl.d.ts.map +1 -0
  96. package/dist/generated/instructions/claimGodl.js +103 -0
  97. package/dist/generated/instructions/claimGodl.js.map +1 -0
  98. package/dist/generated/instructions/claimReferral.d.ts +58 -0
  99. package/dist/generated/instructions/claimReferral.d.ts.map +1 -0
  100. package/dist/generated/instructions/claimReferral.js +88 -0
  101. package/dist/generated/instructions/claimReferral.js.map +1 -0
  102. package/dist/generated/instructions/claimSol.d.ts +46 -0
  103. package/dist/generated/instructions/claimSol.d.ts.map +1 -0
  104. package/dist/generated/instructions/claimSol.js +75 -0
  105. package/dist/generated/instructions/claimSol.js.map +1 -0
  106. package/dist/generated/instructions/claimYield.d.ts +65 -0
  107. package/dist/generated/instructions/claimYield.d.ts.map +1 -0
  108. package/dist/generated/instructions/claimYield.js +103 -0
  109. package/dist/generated/instructions/claimYield.js.map +1 -0
  110. package/dist/generated/instructions/claimYieldV2.d.ts +68 -0
  111. package/dist/generated/instructions/claimYieldV2.d.ts.map +1 -0
  112. package/dist/generated/instructions/claimYieldV2.js +105 -0
  113. package/dist/generated/instructions/claimYieldV2.js.map +1 -0
  114. package/dist/generated/instructions/compoundYieldV2.d.ts +65 -0
  115. package/dist/generated/instructions/compoundYieldV2.d.ts.map +1 -0
  116. package/dist/generated/instructions/compoundYieldV2.js +98 -0
  117. package/dist/generated/instructions/compoundYieldV2.js.map +1 -0
  118. package/dist/generated/instructions/deploy.d.ts +71 -0
  119. package/dist/generated/instructions/deploy.d.ts.map +1 -0
  120. package/dist/generated/instructions/deploy.js +101 -0
  121. package/dist/generated/instructions/deploy.js.map +1 -0
  122. package/dist/generated/instructions/deployV3.d.ts +80 -0
  123. package/dist/generated/instructions/deployV3.d.ts.map +1 -0
  124. package/dist/generated/instructions/deployV3.js +108 -0
  125. package/dist/generated/instructions/deployV3.js.map +1 -0
  126. package/dist/generated/instructions/deposit.d.ts +65 -0
  127. package/dist/generated/instructions/deposit.d.ts.map +1 -0
  128. package/dist/generated/instructions/deposit.js +103 -0
  129. package/dist/generated/instructions/deposit.js.map +1 -0
  130. package/dist/generated/instructions/depositV2.d.ts +74 -0
  131. package/dist/generated/instructions/depositV2.d.ts.map +1 -0
  132. package/dist/generated/instructions/depositV2.js +110 -0
  133. package/dist/generated/instructions/depositV2.js.map +1 -0
  134. package/dist/generated/instructions/fundAutomation.d.ts +40 -0
  135. package/dist/generated/instructions/fundAutomation.d.ts.map +1 -0
  136. package/dist/generated/instructions/fundAutomation.js +66 -0
  137. package/dist/generated/instructions/fundAutomation.js.map +1 -0
  138. package/dist/generated/instructions/index.d.ts +30 -0
  139. package/dist/generated/instructions/index.d.ts.map +1 -0
  140. package/dist/generated/instructions/index.js +30 -0
  141. package/dist/generated/instructions/index.js.map +1 -0
  142. package/dist/generated/instructions/initializeReferrer.d.ts +55 -0
  143. package/dist/generated/instructions/initializeReferrer.d.ts.map +1 -0
  144. package/dist/generated/instructions/initializeReferrer.js +85 -0
  145. package/dist/generated/instructions/initializeReferrer.js.map +1 -0
  146. package/dist/generated/instructions/log.d.ts +37 -0
  147. package/dist/generated/instructions/log.d.ts.map +1 -0
  148. package/dist/generated/instructions/log.js +59 -0
  149. package/dist/generated/instructions/log.js.map +1 -0
  150. package/dist/generated/instructions/setReferrer.d.ts +47 -0
  151. package/dist/generated/instructions/setReferrer.d.ts.map +1 -0
  152. package/dist/generated/instructions/setReferrer.js +68 -0
  153. package/dist/generated/instructions/setReferrer.js.map +1 -0
  154. package/dist/generated/instructions/setStakeExecutor.d.ts +47 -0
  155. package/dist/generated/instructions/setStakeExecutor.d.ts.map +1 -0
  156. package/dist/generated/instructions/setStakeExecutor.js +69 -0
  157. package/dist/generated/instructions/setStakeExecutor.js.map +1 -0
  158. package/dist/generated/instructions/stakeNft.d.ts +52 -0
  159. package/dist/generated/instructions/stakeNft.d.ts.map +1 -0
  160. package/dist/generated/instructions/stakeNft.js +78 -0
  161. package/dist/generated/instructions/stakeNft.js.map +1 -0
  162. package/dist/generated/instructions/unstakeNft.d.ts +52 -0
  163. package/dist/generated/instructions/unstakeNft.d.ts.map +1 -0
  164. package/dist/generated/instructions/unstakeNft.js +78 -0
  165. package/dist/generated/instructions/unstakeNft.js.map +1 -0
  166. package/dist/generated/instructions/withdraw.d.ts +65 -0
  167. package/dist/generated/instructions/withdraw.d.ts.map +1 -0
  168. package/dist/generated/instructions/withdraw.js +103 -0
  169. package/dist/generated/instructions/withdraw.js.map +1 -0
  170. package/dist/generated/instructions/withdrawV2.d.ts +68 -0
  171. package/dist/generated/instructions/withdrawV2.d.ts.map +1 -0
  172. package/dist/generated/instructions/withdrawV2.js +105 -0
  173. package/dist/generated/instructions/withdrawV2.js.map +1 -0
  174. package/dist/generated/programs/godl.d.ts +56 -0
  175. package/dist/generated/programs/godl.d.ts.map +1 -0
  176. package/dist/generated/programs/godl.js +74 -0
  177. package/dist/generated/programs/godl.js.map +1 -0
  178. package/dist/generated/programs/index.d.ts +9 -0
  179. package/dist/generated/programs/index.d.ts.map +1 -0
  180. package/dist/generated/programs/index.js +9 -0
  181. package/dist/generated/programs/index.js.map +1 -0
  182. package/dist/generated/shared/index.d.ts +50 -0
  183. package/dist/generated/shared/index.d.ts.map +1 -0
  184. package/dist/generated/shared/index.js +80 -0
  185. package/dist/generated/shared/index.js.map +1 -0
  186. package/dist/generated/types/index.d.ts +9 -0
  187. package/dist/generated/types/index.d.ts.map +1 -0
  188. package/dist/generated/types/index.js +9 -0
  189. package/dist/generated/types/index.js.map +1 -0
  190. package/dist/generated/types/numeric.d.ts +17 -0
  191. package/dist/generated/types/numeric.d.ts.map +1 -0
  192. package/dist/generated/types/numeric.js +18 -0
  193. package/dist/generated/types/numeric.js.map +1 -0
  194. package/dist/index.d.ts +11 -0
  195. package/dist/index.d.ts.map +1 -0
  196. package/dist/index.js +13 -0
  197. package/dist/index.js.map +1 -0
  198. package/dist/instructions/autominer.d.ts +6 -0
  199. package/dist/instructions/autominer.d.ts.map +1 -0
  200. package/dist/instructions/autominer.js +68 -0
  201. package/dist/instructions/autominer.js.map +1 -0
  202. package/dist/instructions/index.d.ts +4 -0
  203. package/dist/instructions/index.d.ts.map +1 -0
  204. package/dist/instructions/index.js +4 -0
  205. package/dist/instructions/index.js.map +1 -0
  206. package/dist/instructions/mining.d.ts +7 -0
  207. package/dist/instructions/mining.d.ts.map +1 -0
  208. package/dist/instructions/mining.js +96 -0
  209. package/dist/instructions/mining.js.map +1 -0
  210. package/dist/instructions/staking.d.ts +13 -0
  211. package/dist/instructions/staking.d.ts.map +1 -0
  212. package/dist/instructions/staking.js +169 -0
  213. package/dist/instructions/staking.js.map +1 -0
  214. package/dist/pda.d.ts +16 -0
  215. package/dist/pda.d.ts.map +1 -0
  216. package/dist/pda.js +58 -0
  217. package/dist/pda.js.map +1 -0
  218. package/dist/slot/tracker.d.ts +13 -0
  219. package/dist/slot/tracker.d.ts.map +1 -0
  220. package/dist/slot/tracker.js +47 -0
  221. package/dist/slot/tracker.js.map +1 -0
  222. package/dist/types.d.ts +178 -0
  223. package/dist/types.d.ts.map +1 -0
  224. package/dist/types.js +16 -0
  225. package/dist/types.js.map +1 -0
  226. package/dist/websocket/codecs.d.ts +12 -0
  227. package/dist/websocket/codecs.d.ts.map +1 -0
  228. package/dist/websocket/codecs.js +243 -0
  229. package/dist/websocket/codecs.js.map +1 -0
  230. package/dist/websocket/connection.d.ts +30 -0
  231. package/dist/websocket/connection.d.ts.map +1 -0
  232. package/dist/websocket/connection.js +212 -0
  233. package/dist/websocket/connection.js.map +1 -0
  234. package/package.json +42 -0
@@ -0,0 +1,60 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, getAddressDecoder, getAddressEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, } from 'gill';
9
+ export function getConfigEncoder() {
10
+ return getStructEncoder([
11
+ ['discriminator', getU64Encoder()],
12
+ ['admin', getAddressEncoder()],
13
+ ['godlPerRound', getU64Encoder()],
14
+ ['buryAuthority', getAddressEncoder()],
15
+ ['feeCollector', getAddressEncoder()],
16
+ ['swapProgram', getAddressEncoder()],
17
+ ['varAddress', getAddressEncoder()],
18
+ ['buffer', getU64Encoder()],
19
+ ]);
20
+ }
21
+ export function getConfigDecoder() {
22
+ return getStructDecoder([
23
+ ['discriminator', getU64Decoder()],
24
+ ['admin', getAddressDecoder()],
25
+ ['godlPerRound', getU64Decoder()],
26
+ ['buryAuthority', getAddressDecoder()],
27
+ ['feeCollector', getAddressDecoder()],
28
+ ['swapProgram', getAddressDecoder()],
29
+ ['varAddress', getAddressDecoder()],
30
+ ['buffer', getU64Decoder()],
31
+ ]);
32
+ }
33
+ export function getConfigCodec() {
34
+ return combineCodec(getConfigEncoder(), getConfigDecoder());
35
+ }
36
+ export function decodeConfig(encodedAccount) {
37
+ return decodeAccount(encodedAccount, getConfigDecoder());
38
+ }
39
+ export async function fetchConfig(rpc, address, config) {
40
+ const maybeAccount = await fetchMaybeConfig(rpc, address, config);
41
+ assertAccountExists(maybeAccount);
42
+ return maybeAccount;
43
+ }
44
+ export async function fetchMaybeConfig(rpc, address, config) {
45
+ const maybeAccount = await fetchEncodedAccount(rpc, address, config);
46
+ return decodeConfig(maybeAccount);
47
+ }
48
+ export async function fetchAllConfig(rpc, addresses, config) {
49
+ const maybeAccounts = await fetchAllMaybeConfig(rpc, addresses, config);
50
+ assertAccountsExist(maybeAccounts);
51
+ return maybeAccounts;
52
+ }
53
+ export async function fetchAllMaybeConfig(rpc, addresses, config) {
54
+ const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
55
+ return maybeAccounts.map((maybeAccount) => decodeConfig(maybeAccount));
56
+ }
57
+ export function getConfigSize() {
58
+ return 168;
59
+ }
60
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/generated/accounts/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,GAWd,MAAM,MAAM,CAAA;AAwBb,MAAM,UAAU,gBAAgB;IAC9B,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,aAAa,EAAE,CAAC;QAClC,CAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC;QAC9B,CAAC,cAAc,EAAE,aAAa,EAAE,CAAC;QACjC,CAAC,eAAe,EAAE,iBAAiB,EAAE,CAAC;QACtC,CAAC,cAAc,EAAE,iBAAiB,EAAE,CAAC;QACrC,CA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O,YAAY,CAAC,YAAY,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACvE,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAClC,OAAO,aAAa,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACxE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAAA;AACxE,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,OAAO,GAAG,CAAA;AACZ,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ export * from './automation';
9
+ export * from './board';
10
+ export * from './config';
11
+ export * from './miner';
12
+ export * from './poolMember';
13
+ export * from './poolRound';
14
+ export * from './referrer';
15
+ export * from './round';
16
+ export * from './stake';
17
+ export * from './stakeV2';
18
+ export * from './treasury';
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ export * from './automation';
9
+ export * from './board';
10
+ export * from './config';
11
+ export * from './miner';
12
+ export * from './poolMember';
13
+ export * from './poolRound';
14
+ export * from './referrer';
15
+ export * from './round';
16
+ export * from './stake';
17
+ export * from './stakeV2';
18
+ export * from './treasury';
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/accounts/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from 'gill';
9
+ import { type Numeric, type NumericArgs } from '../types';
10
+ export type Miner = {
11
+ discriminator: bigint;
12
+ referrer: Address;
13
+ authority: Address;
14
+ deployed: Array<bigint>;
15
+ cumulative: Array<bigint>;
16
+ checkpointFee: bigint;
17
+ checkpointId: bigint;
18
+ lastClaimGodlAt: bigint;
19
+ lastClaimSolAt: bigint;
20
+ rewardsFactor: Numeric;
21
+ rewardsSol: bigint;
22
+ rewardsGodl: bigint;
23
+ refinedGodl: bigint;
24
+ roundId: bigint;
25
+ lifetimeDeployed: bigint;
26
+ lifetimeRewardsSol: bigint;
27
+ lifetimeRewardsGodl: bigint;
28
+ };
29
+ export type MinerArgs = {
30
+ discriminator: bigint;
31
+ referrer: Address;
32
+ authority: Address;
33
+ deployed: Array<number | bigint>;
34
+ cumulative: Array<number | bigint>;
35
+ checkpointFee: number | bigint;
36
+ checkpointId: number | bigint;
37
+ lastClaimGodlAt: number | bigint;
38
+ lastClaimSolAt: number | bigint;
39
+ rewardsFactor: NumericArgs;
40
+ rewardsSol: number | bigint;
41
+ rewardsGodl: number | bigint;
42
+ refinedGodl: number | bigint;
43
+ roundId: number | bigint;
44
+ lifetimeDeployed: number | bigint;
45
+ lifetimeRewardsSol: number | bigint;
46
+ lifetimeRewardsGodl: number | bigint;
47
+ };
48
+ export declare function getMinerEncoder(): FixedSizeEncoder<MinerArgs>;
49
+ export declare function getMinerDecoder(): FixedSizeDecoder<Miner>;
50
+ export declare function getMinerCodec(): FixedSizeCodec<MinerArgs, Miner>;
51
+ export declare function decodeMiner<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Miner, TAddress>;
52
+ export declare function decodeMiner<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Miner, TAddress>;
53
+ export declare function fetchMiner<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Miner, TAddress>>;
54
+ export declare function fetchMaybeMiner<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Miner, TAddress>>;
55
+ export declare function fetchAllMiner(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Miner>[]>;
56
+ export declare function fetchAllMaybeMiner(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Miner>[]>;
57
+ export declare function getMinerSize(): number;
58
+ //# sourceMappingURL=miner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"miner.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/miner.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAWpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,MAAM,CAAA;AACb,OAAO,EAAwC,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAE/F,MAAM,MAAM,KAAK,GAAG;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACvB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACzB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,E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code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getI64Decoder, getI64Encoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, } from 'gill';
9
+ import { getNumericDecoder, getNumericEncoder } from '../types';
10
+ export function getMinerEncoder() {
11
+ return getStructEncoder([
12
+ ['discriminator', getU64Encoder()],
13
+ ['authority', getAddressEncoder()],
14
+ ['referrer', getAddressEncoder()],
15
+ ['deployed', getArrayEncoder(getU64Encoder(), { size: 25 })],
16
+ ['cumulative', getArrayEncoder(getU64Encoder(), { size: 25 })],
17
+ ['checkpointFee', getU64Encoder()],
18
+ ['checkpointId', getU64Encoder()],
19
+ ['lastClaimGodlAt', getI64Encoder()],
20
+ ['lastClaimSolAt', getI64Encoder()],
21
+ ['rewardsFactor', getNumericEncoder()],
22
+ ['rewardsSol', getU64Encoder()],
23
+ ['rewardsGodl', getU64Encoder()],
24
+ ['refinedGodl', getU64Encoder()],
25
+ ['roundId', getU64Encoder()],
26
+ ['lifetimeDeployed', getU64Encoder()],
27
+ ['lifetimeRewardsSol', getU64Encoder()],
28
+ ['lifetimeRewardsGodl', getU64Encoder()],
29
+ ]);
30
+ }
31
+ export function getMinerDecoder() {
32
+ return getStructDecoder([
33
+ ['discriminator', getU64Decoder()],
34
+ ['authority', getAddressDecoder()],
35
+ ['referrer', getAddressDecoder()],
36
+ ['deployed', getArrayDecoder(getU64Decoder(), { size: 25 })],
37
+ ['cumulative', getArrayDecoder(getU64Decoder(), { size: 25 })],
38
+ ['checkpointFee', getU64Decoder()],
39
+ ['checkpointId', getU64Decoder()],
40
+ ['lastClaimGodlAt', getI64Decoder()],
41
+ ['lastClaimSolAt', getI64Decoder()],
42
+ ['rewardsFactor', getNumericDecoder()],
43
+ ['rewardsSol', getU64Decoder()],
44
+ ['rewardsGodl', getU64Decoder()],
45
+ ['refinedGodl', getU64Decoder()],
46
+ ['roundId', getU64Decoder()],
47
+ ['lifetimeDeployed', getU64Decoder()],
48
+ ['lifetimeRewardsSol', getU64Decoder()],
49
+ ['lifetimeRewardsGodl', getU64Decoder()],
50
+ ]);
51
+ }
52
+ export function getMinerCodec() {
53
+ return combineCodec(getMinerEncoder(), getMinerDecoder());
54
+ }
55
+ export function decodeMiner(encodedAccount) {
56
+ return decodeAccount(encodedAccount, getMinerDecoder());
57
+ }
58
+ export async function fetchMiner(rpc, address, config) {
59
+ const maybeAccount = await fetchMaybeMiner(rpc, address, config);
60
+ assertAccountExists(maybeAccount);
61
+ return maybeAccount;
62
+ }
63
+ export async function fetchMaybeMiner(rpc, address, config) {
64
+ const maybeAccount = await fetchEncodedAccount(rpc, address, config);
65
+ return decodeMiner(maybeAccount);
66
+ }
67
+ export async function fetchAllMiner(rpc, addresses, config) {
68
+ const maybeAccounts = await fetchAllMaybeMiner(rpc, addresses, config);
69
+ assertAccountsExist(maybeAccounts);
70
+ return maybeAccounts;
71
+ }
72
+ export async function fetchAllMaybeMiner(rpc, addresses, config) {
73
+ const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
74
+ return maybeAccounts.map((maybeAccount) => decodeMiner(maybeAccount));
75
+ }
76
+ export function getMinerSize() {
77
+ return 560;
78
+ }
79
+ //# sourceMappingURL=miner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"miner.js","sourceRoot":"","sources":["../../../src/generated/accounts/miner.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EA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AU,eAAe,CACnC,GAA8C,EAC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IACpE,OAAO,WAAW,CAAC,YAAY,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACtE,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAClC,OAAO,aAAa,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACxE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;AACvE,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,OAAO,GAAG,CAAA;AACZ,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from 'gill';
9
+ export type PoolMember = {
10
+ discriminator: bigint;
11
+ authority: Address;
12
+ roundId: bigint;
13
+ deployed: Array<bigint>;
14
+ totalDeployed: bigint;
15
+ };
16
+ export type PoolMemberArgs = {
17
+ discriminator: number | bigint;
18
+ authority: Address;
19
+ roundId: number | bigint;
20
+ deployed: Array<number | bigint>;
21
+ totalDeployed: number | bigint;
22
+ };
23
+ export declare function getPoolMemberEncoder(): FixedSizeEncoder<PoolMemberArgs>;
24
+ export declare function getPoolMemberDecoder(): FixedSizeDecoder<PoolMember>;
25
+ export declare function getPoolMemberCodec(): FixedSizeCodec<PoolMemberArgs, PoolMember>;
26
+ export declare function decodePoolMember<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PoolMember, TAddress>;
27
+ export declare function decodePoolMember<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PoolMember, TAddress>;
28
+ export declare function fetchPoolMember<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PoolMember, TAddress>>;
29
+ export declare function fetchMaybePoolMember<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PoolMember, TAddress>>;
30
+ export declare function fetchAllPoolMember(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PoolMember>[]>;
31
+ export declare function fetchAllMaybePoolMember(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PoolMember>[]>;
32
+ export declare function getPoolMemberSize(): number;
33
+ //# sourceMappingURL=poolMember.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolMember.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/poolMember.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EASpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAA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AQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAIxC;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EACzE,GAAG,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAG7C;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAIhC;AAED,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,CAGrC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, } from 'gill';
9
+ export function getPoolMemberEncoder() {
10
+ return getStructEncoder([
11
+ ['discriminator', getU64Encoder()],
12
+ ['authority', getAddressEncoder()],
13
+ ['roundId', getU64Encoder()],
14
+ ['deployed', getArrayEncoder(getU64Encoder(), { size: 25 })],
15
+ ['totalDeployed', getU64Encoder()],
16
+ ]);
17
+ }
18
+ export function getPoolMemberDecoder() {
19
+ return getStructDecoder([
20
+ ['discriminator', getU64Decoder()],
21
+ ['authority', getAddressDecoder()],
22
+ ['roundId', getU64Decoder()],
23
+ ['deployed', getArrayDecoder(getU64Decoder(), { size: 25 })],
24
+ ['totalDeployed', getU64Decoder()],
25
+ ]);
26
+ }
27
+ export function getPoolMemberCodec() {
28
+ return combineCodec(getPoolMemberEncoder(), getPoolMemberDecoder());
29
+ }
30
+ export function decodePoolMember(encodedAccount) {
31
+ return decodeAccount(encodedAccount, getPoolMemberDecoder());
32
+ }
33
+ export async function fetchPoolMember(rpc, address, config) {
34
+ const maybeAccount = await fetchMaybePoolMember(rpc, address, config);
35
+ assertAccountExists(maybeAccount);
36
+ return maybeAccount;
37
+ }
38
+ export async function fetchMaybePoolMember(rpc, address, config) {
39
+ const maybeAccount = await fetchEncodedAccount(rpc, address, config);
40
+ return decodePoolMember(maybeAccount);
41
+ }
42
+ export async function fetchAllPoolMember(rpc, addresses, config) {
43
+ const maybeAccounts = await fetchAllMaybePoolMember(rpc, addresses, config);
44
+ assertAccountsExist(maybeAccounts);
45
+ return maybeAccounts;
46
+ }
47
+ export async function fetchAllMaybePoolMember(rpc, addresses, config) {
48
+ const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
49
+ return maybeAccounts.map((maybeAccount) => decodePoolMember(maybeAccount));
50
+ }
51
+ export function getPoolMemberSize() {
52
+ return 256;
53
+ }
54
+ //# sourceMappingURL=poolMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolMember.js","sourceRoot":"","sources":["../../../src/generated/accounts/poolMember.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAC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AAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IACrE,mBAAmB,CAAC,YAAY,CAAC,CAAA;IACjC,OAAO,YAAY,CAAA;AACrB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,GAA8C,EAC9C,OAA0B,EAC1B,MAA2B;IAE3B,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IACpE,OAAO,gBAAgB,CAAC,YAAY,CAAC,CAAA;AACvC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,uBAAuB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IAC3E,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAClC,OAAO,aAAa,CAAA;AACtB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACxE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAA;AAC5E,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,GAAG,CAAA;AACZ,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from 'gill';
9
+ export type PoolRound = {
10
+ discriminator: bigint;
11
+ id: bigint;
12
+ deployed: Array<bigint>;
13
+ count: Array<bigint>;
14
+ totalDeployed: bigint;
15
+ rentPayer: Address;
16
+ };
17
+ export type PoolRoundArgs = {
18
+ discriminator: number | bigint;
19
+ id: number | bigint;
20
+ deployed: Array<number | bigint>;
21
+ count: Array<number | bigint>;
22
+ totalDeployed: number | bigint;
23
+ rentPayer: Address;
24
+ };
25
+ export declare function getPoolRoundEncoder(): FixedSizeEncoder<PoolRoundArgs>;
26
+ export declare function getPoolRoundDecoder(): FixedSizeDecoder<PoolRound>;
27
+ export declare function getPoolRoundCodec(): FixedSizeCodec<PoolRoundArgs, PoolRound>;
28
+ export declare function decodePoolRound<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<PoolRound, TAddress>;
29
+ export declare function decodePoolRound<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<PoolRound, TAddress>;
30
+ export declare function fetchPoolRound<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<PoolRound, TAddress>>;
31
+ export declare function fetchMaybePoolRound<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<PoolRound, TAddress>>;
32
+ export declare function fetchAllPoolRound(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<PoolRound>[]>;
33
+ export declare function fetchAllMaybePoolRound(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<PoolRound>[]>;
34
+ export declare function getPoolRoundSize(): number;
35
+ //# sourceMappingURL=poolRound.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolRound.d.ts","sourceRoot":"","s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56 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, } from 'gill';
9
+ export function getPoolRoundEncoder() {
10
+ return getStructEncoder([
11
+ ['discriminator', getU64Encoder()],
12
+ ['id', getU64Encoder()],
13
+ ['deployed', getArrayEncoder(getU64Encoder(), { size: 25 })],
14
+ ['count', getArrayEncoder(getU64Encoder(), { size: 25 })],
15
+ ['totalDeployed', getU64Encoder()],
16
+ ['rentPayer', getAddressEncoder()],
17
+ ]);
18
+ }
19
+ export function getPoolRoundDecoder() {
20
+ return getStructDecoder([
21
+ ['discriminator', getU64Decoder()],
22
+ ['id', getU64Decoder()],
23
+ ['deployed', getArrayDecoder(getU64Decoder(), { size: 25 })],
24
+ ['count', getArrayDecoder(getU64Decoder(), { size: 25 })],
25
+ ['totalDeployed', getU64Decoder()],
26
+ ['rentPayer', getAddressDecoder()],
27
+ ]);
28
+ }
29
+ export function getPoolRoundCodec() {
30
+ return combineCodec(getPoolRoundEncoder(), getPoolRoundDecoder());
31
+ }
32
+ export function decodePoolRound(encodedAccount) {
33
+ return decodeAccount(encodedAccount, getPoolRoundDecoder());
34
+ }
35
+ export async function fetchPoolRound(rpc, address, config) {
36
+ const maybeAccount = await fetchMaybePoolRound(rpc, address, config);
37
+ assertAccountExists(maybeAccount);
38
+ return maybeAccount;
39
+ }
40
+ export async function fetchMaybePoolRound(rpc, address, config) {
41
+ const maybeAccount = await fetchEncodedAccount(rpc, address, config);
42
+ return decodePoolRound(maybeAccount);
43
+ }
44
+ export async function fetchAllPoolRound(rpc, addresses, config) {
45
+ const maybeAccounts = await fetchAllMaybePoolRound(rpc, addresses, config);
46
+ assertAccountsExist(maybeAccounts);
47
+ return maybeAccounts;
48
+ }
49
+ export async function fetchAllMaybePoolRound(rpc, addresses, config) {
50
+ const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
51
+ return maybeAccounts.map((maybeAccount) => decodePoolRound(maybeAccount));
52
+ }
53
+ export function getPoolRoundSize() {
54
+ return 448;
55
+ }
56
+ //# sourceMappingURL=poolRound.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poolRound.js","sourceRoot":"","sources":["../../../src/generated/accounts/poolRound.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,GAWd,MAAM,MAAM,CAAA;AAoBb,MAAM,UAAU,mBAAmB;IACjC,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,aAAa,EAAE,CAAC;QAClC,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC;QACvB,CAAC,UAAU,EAAE,eAAe,CAAC,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC5D,CAAC,OAAO,EAAE,eAAe,CAAC,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzD,CAAC,eAAe,EAAE,aAAa,EAAE,CAAC;QAClC,CAAC,WAAW,EAAE,iBAAiB,EAAE,CAAC;KACnC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,gBAAgB,CAAC;QACtB,CAAC,eAAe,EAAE,aAAa,EAAE,CAAC;QAClC,CAAC,IAAI,EAAE,aAAa,EAAE,CAAC;QACvB,CAAC,UAAU,EAAE,eAAe,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AAU,sBAAsB,CAC1C,GAA+C,EAC/C,SAAyB,EACzB,MAA4B;IAE5B,MAAM,aAAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACxE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAA;AAC3E,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,GAAG,CAAA;AACZ,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount } from 'gill';
9
+ export type Referrer = {
10
+ discriminator: bigint;
11
+ authority: Address;
12
+ rewardsSol: bigint;
13
+ rewardsGodl: bigint;
14
+ cumulativeRewardsSol: bigint;
15
+ cumulativeRewardsGodl: bigint;
16
+ referrerCount: bigint;
17
+ };
18
+ export type ReferrerArgs = {
19
+ discriminator: number | bigint;
20
+ authority: Address;
21
+ rewardsSol: number | bigint;
22
+ rewardsGodl: number | bigint;
23
+ cumulativeRewardsSol: number | bigint;
24
+ cumulativeRewardsGodl: number | bigint;
25
+ referrerCount: number | bigint;
26
+ };
27
+ export declare function getReferrerEncoder(): FixedSizeEncoder<ReferrerArgs>;
28
+ export declare function getReferrerDecoder(): FixedSizeDecoder<Referrer>;
29
+ export declare function getReferrerCodec(): FixedSizeCodec<ReferrerArgs, Referrer>;
30
+ export declare function decodeReferrer<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Referrer, TAddress>;
31
+ export declare function decodeReferrer<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Referrer, TAddress>;
32
+ export declare function fetchReferrer<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Referrer, TAddress>>;
33
+ export declare function fetchMaybeReferrer<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Referrer, TAddress>>;
34
+ export declare function fetchAllReferrer(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Referrer>[]>;
35
+ export declare function fetchAllMaybeReferrer(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Referrer>[]>;
36
+ export declare function getReferrerSize(): number;
37
+ //# sourceMappingURL=referrer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referrer.d.ts","sourceRoot":"","sources":["../../../src/generated/accounts/referrer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAKL,mBAAmB,EACnB,oBAAoB,EAOpB,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACzB,MAAM,MAAM,CAAA;AAEb,MAAM,MAAM,QAAQ,GAAG;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,qBAAqB,EAAE,MAAM,CAAA;IAC7B,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,M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C9C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAG3C;AAED,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAI9B;AAED,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAC/C,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,EACzB,MAAM,CAAC,EAAE,mBAAmB,GAC3B,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAGnC;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, getAddressDecoder, getAddressEncoder, getStructDecoder, getStructEncoder, getU64Decoder, getU64Encoder, } from 'gill';
9
+ export function getReferrerEncoder() {
10
+ return getStructEncoder([
11
+ ['discriminator', getU64Encoder()],
12
+ ['authority', getAddressEncoder()],
13
+ ['rewardsSol', getU64Encoder()],
14
+ ['rewardsGodl', getU64Encoder()],
15
+ ['cumulativeRewardsSol', getU64Encoder()],
16
+ ['cumulativeRewardsGodl', getU64Encoder()],
17
+ ['referrerCount', getU64Encoder()],
18
+ ]);
19
+ }
20
+ export function getReferrerDecoder() {
21
+ return getStructDecoder([
22
+ ['discriminator', getU64Decoder()],
23
+ ['authority', getAddressDecoder()],
24
+ ['rewardsSol', getU64Decoder()],
25
+ ['rewardsGodl', getU64Decoder()],
26
+ ['cumulativeRewardsSol', getU64Decoder()],
27
+ ['cumulativeRewardsGodl', getU64Decoder()],
28
+ ['referrerCount', getU64Decoder()],
29
+ ]);
30
+ }
31
+ export function getReferrerCodec() {
32
+ return combineCodec(getReferrerEncoder(), getReferrerDecoder());
33
+ }
34
+ export function decodeReferrer(encodedAccount) {
35
+ return decodeAccount(encodedAccount, getReferrerDecoder());
36
+ }
37
+ export async function fetchReferrer(rpc, address, config) {
38
+ const maybeAccount = await fetchMaybeReferrer(rpc, address, config);
39
+ assertAccountExists(maybeAccount);
40
+ return maybeAccount;
41
+ }
42
+ export async function fetchMaybeReferrer(rpc, address, config) {
43
+ const maybeAccount = await fetchEncodedAccount(rpc, address, config);
44
+ return decodeReferrer(maybeAccount);
45
+ }
46
+ export async function fetchAllReferrer(rpc, addresses, config) {
47
+ const maybeAccounts = await fetchAllMaybeReferrer(rpc, addresses, config);
48
+ assertAccountsExist(maybeAccounts);
49
+ return maybeAccounts;
50
+ }
51
+ export async function fetchAllMaybeReferrer(rpc, addresses, config) {
52
+ const maybeAccounts = await fetchEncodedAccounts(rpc, addresses, config);
53
+ return maybeAccounts.map((maybeAccount) => decodeReferrer(maybeAccount));
54
+ }
55
+ export function getReferrerSize() {
56
+ return 80;
57
+ }
58
+ //# sourceMappingURL=referrer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"referrer.js","sourceRoot":"","sources":["../../../src/generated/accounts/referrer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,aAAa,GAWd,MAAM,MAAM,CAA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