sablier 2.0.0-beta.2 → 2.0.0-beta.21

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 (560) hide show
  1. package/README.md +2 -2
  2. package/dist/evm/abi/airdrops/v1.1/SablierV2MerkleStreamer.json +263 -0
  3. package/dist/evm/abi/airdrops/v1.1/SablierV2MerkleStreamerFactory.json +174 -0
  4. package/dist/evm/abi/airdrops/v1.1/SablierV2MerkleStreamerLL.json +423 -0
  5. package/dist/evm/abi/airdrops/v1.2/SablierV2MerkleLL.json +520 -0
  6. package/dist/evm/abi/airdrops/v1.2/SablierV2MerkleLT.json +578 -0
  7. package/dist/evm/abi/airdrops/v1.2/SablierV2MerkleLockup.json +348 -0
  8. package/dist/evm/abi/airdrops/v1.2/SablierV2MerkleLockupFactory.json +419 -0
  9. package/dist/evm/abi/airdrops/v1.3/SablierMerkleBase.json +441 -0
  10. package/dist/evm/abi/airdrops/v1.3/SablierMerkleFactory.json +364 -0
  11. package/dist/evm/abi/airdrops/v1.3/SablierMerkleInstant.json +519 -0
  12. package/dist/evm/abi/airdrops/v1.3/SablierMerkleLL.json +678 -0
  13. package/dist/evm/abi/airdrops/v1.3/SablierMerkleLT.json +690 -0
  14. package/dist/evm/abi/airdrops/v1.3/SablierMerkleLockup.json +651 -0
  15. package/dist/evm/abi/airdrops/v2.0/SablierFactoryMerkleInstant.json +400 -0
  16. package/dist/evm/abi/airdrops/v2.0/SablierFactoryMerkleLL.json +535 -0
  17. package/dist/evm/abi/airdrops/v2.0/SablierFactoryMerkleLT.json +574 -0
  18. package/dist/evm/abi/airdrops/v2.0/SablierFactoryMerkleVCA.json +498 -0
  19. package/dist/evm/abi/airdrops/v2.0/SablierMerkleInstant.json +696 -0
  20. package/dist/evm/abi/airdrops/v2.0/SablierMerkleLL.json +947 -0
  21. package/dist/evm/abi/airdrops/v2.0/SablierMerkleLT.json +917 -0
  22. package/dist/evm/abi/airdrops/v2.0/SablierMerkleVCA.json +843 -0
  23. package/dist/evm/abi/flow/v1.0/SablierFlow.json +2356 -0
  24. package/dist/evm/abi/flow/v1.1/SablierFlow.json +2393 -0
  25. package/dist/evm/abi/flow/v2.0/SablierFlow.json +961 -0
  26. package/dist/evm/abi/lockup/v1.0/SablierV2Lockup.json +1288 -0
  27. package/dist/evm/abi/lockup/v1.0/SablierV2LockupDynamic.json +916 -0
  28. package/dist/evm/abi/lockup/v1.0/SablierV2LockupLinear.json +829 -0
  29. package/dist/evm/abi/lockup/v1.1/SablierV2Lockup.json +1351 -0
  30. package/dist/evm/abi/lockup/v1.1/SablierV2LockupDynamic.json +934 -0
  31. package/dist/evm/abi/lockup/v1.1/SablierV2LockupLinear.json +847 -0
  32. package/dist/evm/abi/lockup/v1.2/SablierV2Lockup.json +1494 -0
  33. package/dist/evm/abi/lockup/v1.2/SablierV2LockupDynamic.json +974 -0
  34. package/dist/evm/abi/lockup/v1.2/SablierV2LockupLinear.json +895 -0
  35. package/dist/evm/abi/lockup/v1.2/SablierV2LockupTranched.json +927 -0
  36. package/dist/evm/abi/lockup/v2.0/SablierBatchLockup.json +570 -0
  37. package/dist/evm/abi/lockup/v2.0/SablierLockup.json +1220 -0
  38. package/dist/evm/abi/lockup/v3.0/SablierBatchLockup.json +674 -0
  39. package/dist/evm/abi/lockup/v3.0/SablierLockup.json +1168 -0
  40. package/dist/evm/chains/data.d.ts +1 -0
  41. package/dist/evm/chains/data.d.ts.map +1 -1
  42. package/dist/evm/chains/data.js +21 -2
  43. package/dist/evm/chains/data.js.map +1 -1
  44. package/dist/evm/chains/queries.d.ts.map +1 -1
  45. package/dist/evm/chains/queries.js +2 -29
  46. package/dist/evm/chains/queries.js.map +1 -1
  47. package/dist/evm/comptroller.d.ts.map +1 -1
  48. package/dist/evm/comptroller.js +33 -29
  49. package/dist/evm/comptroller.js.map +1 -1
  50. package/dist/evm/contracts/queries.d.ts +5 -5
  51. package/dist/evm/contracts/queries.d.ts.map +1 -1
  52. package/dist/evm/contracts/queries.js +8 -75
  53. package/dist/evm/contracts/queries.js.map +1 -1
  54. package/dist/evm/releases/airdrops/index.d.ts +9650 -1
  55. package/dist/evm/releases/airdrops/index.d.ts.map +1 -1
  56. package/dist/evm/releases/airdrops/index.js.map +1 -1
  57. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamer.d.ts.map +1 -1
  58. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamer.js +26 -161
  59. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamer.js.map +1 -1
  60. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamerFactory.d.ts.map +1 -1
  61. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamerFactory.js +26 -143
  62. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamerFactory.js.map +1 -1
  63. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamerLL.d.ts.map +1 -1
  64. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamerLL.js +48 -277
  65. package/dist/evm/releases/airdrops/v1.1/abi/SablierV2MerkleStreamerLL.js.map +1 -1
  66. package/dist/evm/releases/airdrops/v1.1/abi.d.ts +3 -4
  67. package/dist/evm/releases/airdrops/v1.1/abi.d.ts.map +1 -1
  68. package/dist/evm/releases/airdrops/v1.1/abi.js.map +1 -1
  69. package/dist/evm/releases/airdrops/v1.1/aliases.d.ts +1 -2
  70. package/dist/evm/releases/airdrops/v1.1/aliases.d.ts.map +1 -1
  71. package/dist/evm/releases/airdrops/v1.1/index.d.ts +669 -1
  72. package/dist/evm/releases/airdrops/v1.1/index.d.ts.map +1 -1
  73. package/dist/evm/releases/airdrops/v1.1/manifest.d.ts +3 -3
  74. package/dist/evm/releases/airdrops/v1.1/manifest.d.ts.map +1 -1
  75. package/dist/evm/releases/airdrops/v1.1/manifest.js.map +1 -1
  76. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLL.d.ts.map +1 -1
  77. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLL.js +58 -341
  78. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLL.js.map +1 -1
  79. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLT.d.ts.map +1 -1
  80. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLT.js +63 -372
  81. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLT.js.map +1 -1
  82. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLockup.d.ts.map +1 -1
  83. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLockup.js +35 -220
  84. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLockup.js.map +1 -1
  85. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLockupFactory.d.ts.map +1 -1
  86. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLockupFactory.js +60 -315
  87. package/dist/evm/releases/airdrops/v1.2/abi/SablierV2MerkleLockupFactory.js.map +1 -1
  88. package/dist/evm/releases/airdrops/v1.2/abi.d.ts +4 -5
  89. package/dist/evm/releases/airdrops/v1.2/abi.d.ts.map +1 -1
  90. package/dist/evm/releases/airdrops/v1.2/abi.js.map +1 -1
  91. package/dist/evm/releases/airdrops/v1.2/aliases.d.ts +1 -2
  92. package/dist/evm/releases/airdrops/v1.2/aliases.d.ts.map +1 -1
  93. package/dist/evm/releases/airdrops/v1.2/index.d.ts +1437 -1
  94. package/dist/evm/releases/airdrops/v1.2/index.d.ts.map +1 -1
  95. package/dist/evm/releases/airdrops/v1.2/manifest.d.ts +4 -4
  96. package/dist/evm/releases/airdrops/v1.2/manifest.d.ts.map +1 -1
  97. package/dist/evm/releases/airdrops/v1.2/manifest.js.map +1 -1
  98. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleBase.d.ts.map +1 -1
  99. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleBase.js +46 -279
  100. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleBase.js.map +1 -1
  101. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleInstant.d.ts.map +1 -1
  102. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleInstant.js +57 -337
  103. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleInstant.js.map +1 -1
  104. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLL.d.ts +463 -22
  105. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLL.d.ts.map +1 -1
  106. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLL.js +292 -85
  107. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLL.js.map +1 -1
  108. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLT.d.ts +477 -20
  109. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLT.d.ts.map +1 -1
  110. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLT.js +306 -75
  111. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLT.js.map +1 -1
  112. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLockup.d.ts.map +1 -1
  113. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLockup.js +68 -415
  114. package/dist/evm/releases/airdrops/v1.3/abi/SablierMerkleLockup.js.map +1 -1
  115. package/dist/evm/releases/airdrops/v1.3/abi.d.ts +987 -90
  116. package/dist/evm/releases/airdrops/v1.3/abi.d.ts.map +1 -1
  117. package/dist/evm/releases/airdrops/v1.3/abi.js.map +1 -1
  118. package/dist/evm/releases/airdrops/v1.3/aliases.d.ts +1 -2
  119. package/dist/evm/releases/airdrops/v1.3/aliases.d.ts.map +1 -1
  120. package/dist/evm/releases/airdrops/v1.3/index.d.ts +2998 -1
  121. package/dist/evm/releases/airdrops/v1.3/index.d.ts.map +1 -1
  122. package/dist/evm/releases/airdrops/v1.3/manifest.d.ts +6 -6
  123. package/dist/evm/releases/airdrops/v1.3/manifest.d.ts.map +1 -1
  124. package/dist/evm/releases/airdrops/v1.3/manifest.js.map +1 -1
  125. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleInstant.d.ts.map +1 -1
  126. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleInstant.js +1 -7
  127. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleInstant.js.map +1 -1
  128. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleLL.d.ts.map +1 -1
  129. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleLL.js +1 -7
  130. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleLL.js.map +1 -1
  131. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleLT.d.ts.map +1 -1
  132. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleLT.js +1 -7
  133. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleLT.js.map +1 -1
  134. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleVCA.d.ts.map +1 -1
  135. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleVCA.js +1 -7
  136. package/dist/evm/releases/airdrops/v2.0/abi/SablierFactoryMerkleVCA.js.map +1 -1
  137. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleBase.d.ts.map +1 -1
  138. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleBase.js +38 -236
  139. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleBase.js.map +1 -1
  140. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleInstant.d.ts.map +1 -1
  141. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleInstant.js +81 -458
  142. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleInstant.js.map +1 -1
  143. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLL.d.ts.map +1 -1
  144. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLL.js +110 -633
  145. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLL.js.map +1 -1
  146. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLT.d.ts.map +1 -1
  147. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLT.js +106 -605
  148. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLT.js.map +1 -1
  149. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLockup.d.ts.map +1 -1
  150. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLockup.js +44 -278
  151. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleLockup.js.map +1 -1
  152. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleVCA.d.ts.map +1 -1
  153. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleVCA.js +97 -555
  154. package/dist/evm/releases/airdrops/v2.0/abi/SablierMerkleVCA.js.map +1 -1
  155. package/dist/evm/releases/airdrops/v2.0/abi.d.ts +9 -10
  156. package/dist/evm/releases/airdrops/v2.0/abi.d.ts.map +1 -1
  157. package/dist/evm/releases/airdrops/v2.0/abi.js.map +1 -1
  158. package/dist/evm/releases/airdrops/v2.0/aliases.d.ts +4 -5
  159. package/dist/evm/releases/airdrops/v2.0/aliases.d.ts.map +1 -1
  160. package/dist/evm/releases/airdrops/v2.0/deployments.d.ts.map +1 -1
  161. package/dist/evm/releases/airdrops/v2.0/deployments.js +6 -0
  162. package/dist/evm/releases/airdrops/v2.0/deployments.js.map +1 -1
  163. package/dist/evm/releases/airdrops/v2.0/index.d.ts +4544 -1
  164. package/dist/evm/releases/airdrops/v2.0/index.d.ts.map +1 -1
  165. package/dist/evm/releases/airdrops/v2.0/manifest.d.ts +11 -11
  166. package/dist/evm/releases/airdrops/v2.0/manifest.d.ts.map +1 -1
  167. package/dist/evm/releases/airdrops/v2.0/manifest.js.map +1 -1
  168. package/dist/evm/releases/data.d.ts +35671 -4
  169. package/dist/evm/releases/data.d.ts.map +1 -1
  170. package/dist/evm/releases/flow/index.d.ts +5372 -1
  171. package/dist/evm/releases/flow/index.d.ts.map +1 -1
  172. package/dist/evm/releases/flow/index.js.map +1 -1
  173. package/dist/evm/releases/flow/v1.0/abi/SablierFlow.d.ts +1614 -234
  174. package/dist/evm/releases/flow/v1.0/abi/SablierFlow.d.ts.map +1 -1
  175. package/dist/evm/releases/flow/v1.0/abi/SablierFlow.js +849 -396
  176. package/dist/evm/releases/flow/v1.0/abi/SablierFlow.js.map +1 -1
  177. package/dist/evm/releases/flow/v1.0/abi.d.ts +1615 -236
  178. package/dist/evm/releases/flow/v1.0/abi.d.ts.map +1 -1
  179. package/dist/evm/releases/flow/v1.0/abi.js.map +1 -1
  180. package/dist/evm/releases/flow/v1.0/aliases.d.ts +1 -2
  181. package/dist/evm/releases/flow/v1.0/aliases.d.ts.map +1 -1
  182. package/dist/evm/releases/flow/v1.0/index.d.ts +1803 -1
  183. package/dist/evm/releases/flow/v1.0/index.d.ts.map +1 -1
  184. package/dist/evm/releases/flow/v1.0/manifest.d.ts +2 -2
  185. package/dist/evm/releases/flow/v1.0/manifest.d.ts.map +1 -1
  186. package/dist/evm/releases/flow/v1.0/manifest.js.map +1 -1
  187. package/dist/evm/releases/flow/v1.1/abi/SablierFlow.d.ts +1642 -233
  188. package/dist/evm/releases/flow/v1.1/abi/SablierFlow.d.ts.map +1 -1
  189. package/dist/evm/releases/flow/v1.1/abi/SablierFlow.js +866 -396
  190. package/dist/evm/releases/flow/v1.1/abi/SablierFlow.js.map +1 -1
  191. package/dist/evm/releases/flow/v1.1/abi.d.ts +1643 -235
  192. package/dist/evm/releases/flow/v1.1/abi.d.ts.map +1 -1
  193. package/dist/evm/releases/flow/v1.1/abi.js.map +1 -1
  194. package/dist/evm/releases/flow/v1.1/aliases.d.ts +1 -2
  195. package/dist/evm/releases/flow/v1.1/aliases.d.ts.map +1 -1
  196. package/dist/evm/releases/flow/v1.1/index.d.ts +1832 -1
  197. package/dist/evm/releases/flow/v1.1/index.d.ts.map +1 -1
  198. package/dist/evm/releases/flow/v1.1/manifest.d.ts +2 -2
  199. package/dist/evm/releases/flow/v1.1/manifest.d.ts.map +1 -1
  200. package/dist/evm/releases/flow/v1.1/manifest.js.map +1 -1
  201. package/dist/evm/releases/flow/v2.0/abi/SablierFlow.d.ts +1555 -243
  202. package/dist/evm/releases/flow/v2.0/abi/SablierFlow.d.ts.map +1 -1
  203. package/dist/evm/releases/flow/v2.0/abi/SablierFlow.js +820 -399
  204. package/dist/evm/releases/flow/v2.0/abi/SablierFlow.js.map +1 -1
  205. package/dist/evm/releases/flow/v2.0/abi.d.ts +1556 -245
  206. package/dist/evm/releases/flow/v2.0/abi.d.ts.map +1 -1
  207. package/dist/evm/releases/flow/v2.0/abi.js.map +1 -1
  208. package/dist/evm/releases/flow/v2.0/aliases.d.ts +1 -2
  209. package/dist/evm/releases/flow/v2.0/aliases.d.ts.map +1 -1
  210. package/dist/evm/releases/flow/v2.0/deployments.d.ts.map +1 -1
  211. package/dist/evm/releases/flow/v2.0/deployments.js +5 -1
  212. package/dist/evm/releases/flow/v2.0/deployments.js.map +1 -1
  213. package/dist/evm/releases/flow/v2.0/index.d.ts +1735 -1
  214. package/dist/evm/releases/flow/v2.0/index.d.ts.map +1 -1
  215. package/dist/evm/releases/flow/v2.0/manifest.d.ts +2 -2
  216. package/dist/evm/releases/flow/v2.0/manifest.d.ts.map +1 -1
  217. package/dist/evm/releases/flow/v2.0/manifest.js.map +1 -1
  218. package/dist/evm/releases/helpers.d.ts +0 -1
  219. package/dist/evm/releases/helpers.d.ts.map +1 -1
  220. package/dist/evm/releases/helpers.js +0 -13
  221. package/dist/evm/releases/helpers.js.map +1 -1
  222. package/dist/evm/releases/legacy/index.d.ts +1483 -1
  223. package/dist/evm/releases/legacy/index.d.ts.map +1 -1
  224. package/dist/evm/releases/legacy/index.js.map +1 -1
  225. package/dist/evm/releases/legacy/v1.0/abi.d.ts +2 -3
  226. package/dist/evm/releases/legacy/v1.0/abi.d.ts.map +1 -1
  227. package/dist/evm/releases/legacy/v1.0/abi.js.map +1 -1
  228. package/dist/evm/releases/legacy/v1.0/index.d.ts +1223 -1
  229. package/dist/evm/releases/legacy/v1.0/index.d.ts.map +1 -1
  230. package/dist/evm/releases/legacy/v1.0/manifest.d.ts +2 -2
  231. package/dist/evm/releases/legacy/v1.0/manifest.d.ts.map +1 -1
  232. package/dist/evm/releases/legacy/v1.0/manifest.js.map +1 -1
  233. package/dist/evm/releases/legacy/v1.1/abi.d.ts +1 -2
  234. package/dist/evm/releases/legacy/v1.1/abi.d.ts.map +1 -1
  235. package/dist/evm/releases/legacy/v1.1/abi.js.map +1 -1
  236. package/dist/evm/releases/legacy/v1.1/index.d.ts +258 -1
  237. package/dist/evm/releases/legacy/v1.1/index.d.ts.map +1 -1
  238. package/dist/evm/releases/legacy/v1.1/manifest.d.ts +1 -1
  239. package/dist/evm/releases/legacy/v1.1/manifest.d.ts.map +1 -1
  240. package/dist/evm/releases/legacy/v1.1/manifest.js.map +1 -1
  241. package/dist/evm/releases/lockup/index.d.ts +19166 -1
  242. package/dist/evm/releases/lockup/index.d.ts.map +1 -1
  243. package/dist/evm/releases/lockup/index.js.map +1 -1
  244. package/dist/evm/releases/lockup/v1.0/abi/SablierV2Lockup.d.ts.map +1 -1
  245. package/dist/evm/releases/lockup/v1.0/abi/SablierV2Lockup.js +139 -871
  246. package/dist/evm/releases/lockup/v1.0/abi/SablierV2Lockup.js.map +1 -1
  247. package/dist/evm/releases/lockup/v1.0/abi/SablierV2LockupDynamic.d.ts.map +1 -1
  248. package/dist/evm/releases/lockup/v1.0/abi/SablierV2LockupDynamic.js +4 -24
  249. package/dist/evm/releases/lockup/v1.0/abi/SablierV2LockupDynamic.js.map +1 -1
  250. package/dist/evm/releases/lockup/v1.0/abi/SablierV2LockupLinear.d.ts.map +1 -1
  251. package/dist/evm/releases/lockup/v1.0/abi/SablierV2LockupLinear.js +4 -24
  252. package/dist/evm/releases/lockup/v1.0/abi/SablierV2LockupLinear.js.map +1 -1
  253. package/dist/evm/releases/lockup/v1.0/abi.d.ts +3 -4
  254. package/dist/evm/releases/lockup/v1.0/abi.d.ts.map +1 -1
  255. package/dist/evm/releases/lockup/v1.0/abi.js.map +1 -1
  256. package/dist/evm/releases/lockup/v1.0/aliases.d.ts +2 -3
  257. package/dist/evm/releases/lockup/v1.0/aliases.d.ts.map +1 -1
  258. package/dist/evm/releases/lockup/v1.0/index.d.ts +3973 -1
  259. package/dist/evm/releases/lockup/v1.0/index.d.ts.map +1 -1
  260. package/dist/evm/releases/lockup/v1.0/manifest.d.ts +11 -11
  261. package/dist/evm/releases/lockup/v1.0/manifest.d.ts.map +1 -1
  262. package/dist/evm/releases/lockup/v1.0/manifest.js.map +1 -1
  263. package/dist/evm/releases/lockup/v1.1/abi/SablierV2Lockup.d.ts.map +1 -1
  264. package/dist/evm/releases/lockup/v1.1/abi/SablierV2Lockup.js +147 -919
  265. package/dist/evm/releases/lockup/v1.1/abi/SablierV2Lockup.js.map +1 -1
  266. package/dist/evm/releases/lockup/v1.1/abi/SablierV2LockupDynamic.d.ts.map +1 -1
  267. package/dist/evm/releases/lockup/v1.1/abi/SablierV2LockupDynamic.js +4 -24
  268. package/dist/evm/releases/lockup/v1.1/abi/SablierV2LockupDynamic.js.map +1 -1
  269. package/dist/evm/releases/lockup/v1.1/abi/SablierV2LockupLinear.d.ts.map +1 -1
  270. package/dist/evm/releases/lockup/v1.1/abi/SablierV2LockupLinear.js +4 -24
  271. package/dist/evm/releases/lockup/v1.1/abi/SablierV2LockupLinear.js.map +1 -1
  272. package/dist/evm/releases/lockup/v1.1/abi.d.ts +3 -4
  273. package/dist/evm/releases/lockup/v1.1/abi.d.ts.map +1 -1
  274. package/dist/evm/releases/lockup/v1.1/abi.js.map +1 -1
  275. package/dist/evm/releases/lockup/v1.1/aliases.d.ts +3 -4
  276. package/dist/evm/releases/lockup/v1.1/aliases.d.ts.map +1 -1
  277. package/dist/evm/releases/lockup/v1.1/index.d.ts +4119 -1
  278. package/dist/evm/releases/lockup/v1.1/index.d.ts.map +1 -1
  279. package/dist/evm/releases/lockup/v1.1/manifest.d.ts +11 -11
  280. package/dist/evm/releases/lockup/v1.1/manifest.d.ts.map +1 -1
  281. package/dist/evm/releases/lockup/v1.1/manifest.js.map +1 -1
  282. package/dist/evm/releases/lockup/v1.2/abi/SablierV2Lockup.d.ts.map +1 -1
  283. package/dist/evm/releases/lockup/v1.2/abi/SablierV2Lockup.js +161 -1021
  284. package/dist/evm/releases/lockup/v1.2/abi/SablierV2Lockup.js.map +1 -1
  285. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupDynamic.d.ts.map +1 -1
  286. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupDynamic.js +4 -22
  287. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupDynamic.js.map +1 -1
  288. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupLinear.d.ts.map +1 -1
  289. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupLinear.js +4 -22
  290. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupLinear.js.map +1 -1
  291. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupTranched.d.ts.map +1 -1
  292. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupTranched.js +4 -22
  293. package/dist/evm/releases/lockup/v1.2/abi/SablierV2LockupTranched.js.map +1 -1
  294. package/dist/evm/releases/lockup/v1.2/abi.d.ts +4 -5
  295. package/dist/evm/releases/lockup/v1.2/abi.d.ts.map +1 -1
  296. package/dist/evm/releases/lockup/v1.2/abi.js.map +1 -1
  297. package/dist/evm/releases/lockup/v1.2/aliases.d.ts +4 -5
  298. package/dist/evm/releases/lockup/v1.2/aliases.d.ts.map +1 -1
  299. package/dist/evm/releases/lockup/v1.2/index.d.ts +5998 -1
  300. package/dist/evm/releases/lockup/v1.2/index.d.ts.map +1 -1
  301. package/dist/evm/releases/lockup/v1.2/manifest.d.ts +12 -12
  302. package/dist/evm/releases/lockup/v1.2/manifest.d.ts.map +1 -1
  303. package/dist/evm/releases/lockup/v1.2/manifest.js.map +1 -1
  304. package/dist/evm/releases/lockup/v2.0/abi/SablierBatchLockup.d.ts.map +1 -1
  305. package/dist/evm/releases/lockup/v2.0/abi/SablierBatchLockup.js +92 -482
  306. package/dist/evm/releases/lockup/v2.0/abi/SablierBatchLockup.js.map +1 -1
  307. package/dist/evm/releases/lockup/v2.0/abi/SablierLockup.d.ts.map +1 -1
  308. package/dist/evm/releases/lockup/v2.0/abi/SablierLockup.js +4 -22
  309. package/dist/evm/releases/lockup/v2.0/abi/SablierLockup.js.map +1 -1
  310. package/dist/evm/releases/lockup/v2.0/abi.d.ts +2 -3
  311. package/dist/evm/releases/lockup/v2.0/abi.d.ts.map +1 -1
  312. package/dist/evm/releases/lockup/v2.0/abi.js.map +1 -1
  313. package/dist/evm/releases/lockup/v2.0/aliases.d.ts +1 -2
  314. package/dist/evm/releases/lockup/v2.0/aliases.d.ts.map +1 -1
  315. package/dist/evm/releases/lockup/v2.0/index.d.ts +2611 -1
  316. package/dist/evm/releases/lockup/v2.0/index.d.ts.map +1 -1
  317. package/dist/evm/releases/lockup/v2.0/manifest.d.ts +5 -5
  318. package/dist/evm/releases/lockup/v2.0/manifest.d.ts.map +1 -1
  319. package/dist/evm/releases/lockup/v2.0/manifest.js.map +1 -1
  320. package/dist/evm/releases/lockup/v3.0/abi/SablierBatchLockup.d.ts.map +1 -1
  321. package/dist/evm/releases/lockup/v3.0/abi/SablierBatchLockup.js +80 -417
  322. package/dist/evm/releases/lockup/v3.0/abi/SablierBatchLockup.js.map +1 -1
  323. package/dist/evm/releases/lockup/v3.0/abi/SablierLockup.d.ts.map +1 -1
  324. package/dist/evm/releases/lockup/v3.0/abi/SablierLockup.js +4 -24
  325. package/dist/evm/releases/lockup/v3.0/abi/SablierLockup.js.map +1 -1
  326. package/dist/evm/releases/lockup/v3.0/abi.d.ts +2 -3
  327. package/dist/evm/releases/lockup/v3.0/abi.d.ts.map +1 -1
  328. package/dist/evm/releases/lockup/v3.0/abi.js.map +1 -1
  329. package/dist/evm/releases/lockup/v3.0/aliases.d.ts +1 -2
  330. package/dist/evm/releases/lockup/v3.0/aliases.d.ts.map +1 -1
  331. package/dist/evm/releases/lockup/v3.0/deployments.d.ts.map +1 -1
  332. package/dist/evm/releases/lockup/v3.0/deployments.js +8 -1
  333. package/dist/evm/releases/lockup/v3.0/deployments.js.map +1 -1
  334. package/dist/evm/releases/lockup/v3.0/index.d.ts +2463 -1
  335. package/dist/evm/releases/lockup/v3.0/index.d.ts.map +1 -1
  336. package/dist/evm/releases/lockup/v3.0/manifest.d.ts +5 -5
  337. package/dist/evm/releases/lockup/v3.0/manifest.d.ts.map +1 -1
  338. package/dist/evm/releases/lockup/v3.0/manifest.js.map +1 -1
  339. package/dist/evm/releases/queries.d.ts +2 -2
  340. package/dist/evm/releases/queries.d.ts.map +1 -1
  341. package/dist/evm/releases/queries.js +5 -33
  342. package/dist/evm/releases/queries.js.map +1 -1
  343. package/dist/evm/releases/resolvers.d.ts +4 -3
  344. package/dist/evm/releases/resolvers.d.ts.map +1 -1
  345. package/dist/evm/releases/resolvers.js +17 -38
  346. package/dist/evm/releases/resolvers.js.map +1 -1
  347. package/dist/evm/types.d.ts +9 -44
  348. package/dist/evm/types.d.ts.map +1 -1
  349. package/dist/helpers.d.ts +2 -0
  350. package/dist/helpers.d.ts.map +1 -1
  351. package/dist/helpers.js +35 -0
  352. package/dist/helpers.js.map +1 -1
  353. package/dist/internal/factories/chains.d.ts +10 -0
  354. package/dist/internal/factories/chains.d.ts.map +1 -0
  355. package/dist/internal/factories/chains.js +35 -0
  356. package/dist/internal/factories/chains.js.map +1 -0
  357. package/dist/internal/factories/queries.d.ts +60 -0
  358. package/dist/internal/factories/queries.d.ts.map +1 -0
  359. package/dist/internal/factories/queries.js +125 -0
  360. package/dist/internal/factories/queries.js.map +1 -0
  361. package/dist/internal/factories/resolver.d.ts +27 -0
  362. package/dist/internal/factories/resolver.d.ts.map +1 -0
  363. package/dist/internal/factories/resolver.js +43 -0
  364. package/dist/internal/factories/resolver.js.map +1 -0
  365. package/dist/sablier.d.ts +30 -30
  366. package/dist/sablier.d.ts.map +1 -1
  367. package/dist/sablier.js +2 -2
  368. package/dist/sablier.js.map +1 -1
  369. package/dist/shared/types.d.ts +46 -0
  370. package/dist/shared/types.d.ts.map +1 -0
  371. package/dist/{solana/idl/lockup/v1.0/SablierLockupLinearV10Type.js → shared/types.js} +1 -1
  372. package/dist/shared/types.js.map +1 -0
  373. package/dist/solana/chains/data.d.ts +2 -2
  374. package/dist/solana/chains/data.d.ts.map +1 -1
  375. package/dist/solana/chains/data.js +3 -3
  376. package/dist/solana/chains/data.js.map +1 -1
  377. package/dist/solana/chains/queries.d.ts.map +1 -1
  378. package/dist/solana/chains/queries.js +2 -29
  379. package/dist/solana/chains/queries.js.map +1 -1
  380. package/dist/solana/enums.d.ts +14 -2
  381. package/dist/solana/enums.d.ts.map +1 -1
  382. package/dist/solana/enums.js +17 -3
  383. package/dist/solana/enums.js.map +1 -1
  384. package/dist/solana/index.d.ts +1 -2
  385. package/dist/solana/index.d.ts.map +1 -1
  386. package/dist/solana/index.js +1 -2
  387. package/dist/solana/index.js.map +1 -1
  388. package/dist/solana/programs/catalog.d.ts +3 -0
  389. package/dist/solana/programs/catalog.d.ts.map +1 -0
  390. package/dist/solana/{contracts → programs}/catalog.js +2 -2
  391. package/dist/solana/programs/catalog.js.map +1 -0
  392. package/dist/solana/programs/index.d.ts +8 -0
  393. package/dist/solana/programs/index.d.ts.map +1 -0
  394. package/dist/solana/{contracts → programs}/index.js +2 -2
  395. package/dist/solana/programs/index.js.map +1 -0
  396. package/dist/solana/{contracts → programs}/names.d.ts +2 -2
  397. package/dist/solana/programs/names.d.ts.map +1 -0
  398. package/dist/solana/{contracts → programs}/names.js +2 -2
  399. package/dist/solana/programs/names.js.map +1 -0
  400. package/dist/solana/programs/queries.d.ts +16 -0
  401. package/dist/solana/programs/queries.d.ts.map +1 -0
  402. package/dist/solana/programs/queries.js +15 -0
  403. package/dist/solana/programs/queries.js.map +1 -0
  404. package/dist/solana/releases/airdrops/index.d.ts.map +1 -1
  405. package/dist/solana/releases/airdrops/index.js +2 -4
  406. package/dist/solana/releases/airdrops/index.js.map +1 -1
  407. package/dist/solana/releases/airdrops/v0.1/aliases.d.ts.map +1 -0
  408. package/dist/solana/releases/airdrops/{v1.0 → v0.1}/aliases.js +1 -3
  409. package/dist/solana/releases/airdrops/v0.1/aliases.js.map +1 -0
  410. package/dist/solana/releases/airdrops/{v1.0 → v0.1}/deployments.d.ts.map +1 -1
  411. package/dist/solana/releases/airdrops/{v1.0 → v0.1}/deployments.js +7 -7
  412. package/dist/solana/releases/airdrops/v0.1/deployments.js.map +1 -0
  413. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/errors.d.ts +9 -0
  414. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/errors.d.ts.map +1 -0
  415. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/errors.js +11 -0
  416. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/errors.js.map +1 -0
  417. package/dist/solana/{idl/airdrops/v1.0/SablierMerkleInstantV10Type.d.ts → releases/airdrops/v0.1/idl/SablierMerkleInstant/idl-type.d.ts} +46 -69
  418. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/idl-type.d.ts.map +1 -0
  419. package/dist/solana/{idl/airdrops/v1.0/SablierMerkleInstantV10Type.js → releases/airdrops/v0.1/idl/SablierMerkleInstant/idl-type.js} +1 -1
  420. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/idl-type.js.map +1 -0
  421. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/idl.d.ts +677 -0
  422. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/idl.d.ts.map +1 -0
  423. package/dist/solana/{idl/airdrops/v1.0/SablierMerkleInstantV10.js → releases/airdrops/v0.1/idl/SablierMerkleInstant/idl.js} +333 -750
  424. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/idl.js.map +1 -0
  425. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/structs.d.ts +53 -0
  426. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/structs.d.ts.map +1 -0
  427. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/structs.js +3 -0
  428. package/dist/solana/releases/airdrops/v0.1/idl/SablierMerkleInstant/structs.js.map +1 -0
  429. package/dist/solana/releases/airdrops/v0.1/idl.d.ts +696 -0
  430. package/dist/solana/releases/airdrops/v0.1/idl.d.ts.map +1 -0
  431. package/dist/solana/releases/airdrops/v0.1/idl.js +49 -0
  432. package/dist/solana/releases/airdrops/v0.1/idl.js.map +1 -0
  433. package/dist/solana/releases/airdrops/{v1.0 → v0.1}/index.d.ts.map +1 -1
  434. package/dist/solana/releases/airdrops/{v1.0 → v0.1}/index.js +1 -1
  435. package/dist/solana/releases/airdrops/{v1.0 → v0.1}/index.js.map +1 -1
  436. package/dist/solana/releases/airdrops/v0.1/manifest.d.ts.map +1 -0
  437. package/dist/solana/releases/airdrops/v0.1/manifest.js +5 -0
  438. package/dist/solana/releases/airdrops/v0.1/manifest.js.map +1 -0
  439. package/dist/solana/releases/data.d.ts.map +1 -1
  440. package/dist/solana/releases/data.js +1 -4
  441. package/dist/solana/releases/data.js.map +1 -1
  442. package/dist/solana/releases/helpers.d.ts +0 -1
  443. package/dist/solana/releases/helpers.d.ts.map +1 -1
  444. package/dist/solana/releases/helpers.js +0 -13
  445. package/dist/solana/releases/helpers.js.map +1 -1
  446. package/dist/solana/releases/lockup/index.d.ts.map +1 -1
  447. package/dist/solana/releases/lockup/index.js +2 -4
  448. package/dist/solana/releases/lockup/index.js.map +1 -1
  449. package/dist/solana/releases/lockup/v0.1/aliases.d.ts.map +1 -0
  450. package/dist/solana/releases/lockup/{v1.0 → v0.1}/aliases.js +1 -3
  451. package/dist/solana/releases/lockup/v0.1/aliases.js.map +1 -0
  452. package/dist/solana/releases/lockup/{v1.0 → v0.1}/deployments.d.ts.map +1 -1
  453. package/dist/solana/releases/lockup/{v1.0 → v0.1}/deployments.js +7 -7
  454. package/dist/solana/releases/lockup/v0.1/deployments.js.map +1 -0
  455. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/errors.d.ts +19 -0
  456. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/errors.d.ts.map +1 -0
  457. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/errors.js +21 -0
  458. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/errors.js.map +1 -0
  459. package/dist/solana/{idl/lockup/v1.0/SablierLockupLinearV10Type.d.ts → releases/lockup/v0.1/idl/SablierLockupLinear/idl-type.d.ts} +54 -79
  460. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/idl-type.d.ts.map +1 -0
  461. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/idl-type.js +3 -0
  462. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/idl-type.js.map +1 -0
  463. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/idl.d.ts +1513 -0
  464. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/idl.d.ts.map +1 -0
  465. package/dist/solana/{idl/lockup/v1.0/SablierLockupLinearV10.js → releases/lockup/v0.1/idl/SablierLockupLinear/idl.js} +679 -1509
  466. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/idl.js.map +1 -0
  467. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/structs.d.ts +69 -0
  468. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/structs.d.ts.map +1 -0
  469. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/structs.js +3 -0
  470. package/dist/solana/releases/lockup/v0.1/idl/SablierLockupLinear/structs.js.map +1 -0
  471. package/dist/solana/releases/lockup/v0.1/idl.d.ts +1542 -0
  472. package/dist/solana/releases/lockup/v0.1/idl.d.ts.map +1 -0
  473. package/dist/solana/releases/lockup/v0.1/idl.js +49 -0
  474. package/dist/solana/releases/lockup/v0.1/idl.js.map +1 -0
  475. package/dist/solana/releases/lockup/{v1.0 → v0.1}/index.d.ts.map +1 -1
  476. package/dist/solana/releases/lockup/{v1.0 → v0.1}/index.js +1 -1
  477. package/dist/solana/releases/lockup/{v1.0 → v0.1}/index.js.map +1 -1
  478. package/dist/solana/releases/lockup/v0.1/manifest.d.ts.map +1 -0
  479. package/dist/solana/releases/lockup/{v1.0 → v0.1}/manifest.js +1 -3
  480. package/dist/solana/releases/lockup/v0.1/manifest.js.map +1 -0
  481. package/dist/solana/releases/queries.d.ts +2 -2
  482. package/dist/solana/releases/queries.d.ts.map +1 -1
  483. package/dist/solana/releases/queries.js +5 -33
  484. package/dist/solana/releases/queries.js.map +1 -1
  485. package/dist/solana/releases/resolvers.d.ts +4 -3
  486. package/dist/solana/releases/resolvers.d.ts.map +1 -1
  487. package/dist/solana/releases/resolvers.js +6 -32
  488. package/dist/solana/releases/resolvers.js.map +1 -1
  489. package/dist/solana/types.d.ts +12 -46
  490. package/dist/solana/types.d.ts.map +1 -1
  491. package/package.json +30 -3
  492. package/dist/solana/contracts/catalog.d.ts +0 -3
  493. package/dist/solana/contracts/catalog.d.ts.map +0 -1
  494. package/dist/solana/contracts/catalog.js.map +0 -1
  495. package/dist/solana/contracts/index.d.ts +0 -8
  496. package/dist/solana/contracts/index.d.ts.map +0 -1
  497. package/dist/solana/contracts/index.js.map +0 -1
  498. package/dist/solana/contracts/names.d.ts.map +0 -1
  499. package/dist/solana/contracts/names.js.map +0 -1
  500. package/dist/solana/contracts/queries.d.ts +0 -16
  501. package/dist/solana/contracts/queries.d.ts.map +0 -1
  502. package/dist/solana/contracts/queries.js +0 -79
  503. package/dist/solana/contracts/queries.js.map +0 -1
  504. package/dist/solana/idl/airdrops/index.d.ts +0 -2
  505. package/dist/solana/idl/airdrops/index.d.ts.map +0 -1
  506. package/dist/solana/idl/airdrops/index.js +0 -18
  507. package/dist/solana/idl/airdrops/index.js.map +0 -1
  508. package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.d.ts +0 -298
  509. package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.d.ts.map +0 -1
  510. package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10.js.map +0 -1
  511. package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10Type.d.ts.map +0 -1
  512. package/dist/solana/idl/airdrops/v1.0/SablierMerkleInstantV10Type.js.map +0 -1
  513. package/dist/solana/idl/airdrops/v1.0/index.d.ts +0 -3
  514. package/dist/solana/idl/airdrops/v1.0/index.d.ts.map +0 -1
  515. package/dist/solana/idl/airdrops/v1.0/index.js +0 -9
  516. package/dist/solana/idl/airdrops/v1.0/index.js.map +0 -1
  517. package/dist/solana/idl/index.d.ts +0 -3
  518. package/dist/solana/idl/index.d.ts.map +0 -1
  519. package/dist/solana/idl/index.js +0 -19
  520. package/dist/solana/idl/index.js.map +0 -1
  521. package/dist/solana/idl/lockup/index.d.ts +0 -2
  522. package/dist/solana/idl/lockup/index.d.ts.map +0 -1
  523. package/dist/solana/idl/lockup/index.js +0 -18
  524. package/dist/solana/idl/lockup/index.js.map +0 -1
  525. package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.d.ts +0 -413
  526. package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.d.ts.map +0 -1
  527. package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10.js.map +0 -1
  528. package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10Type.d.ts.map +0 -1
  529. package/dist/solana/idl/lockup/v1.0/SablierLockupLinearV10Type.js.map +0 -1
  530. package/dist/solana/idl/lockup/v1.0/index.d.ts +0 -3
  531. package/dist/solana/idl/lockup/v1.0/index.d.ts.map +0 -1
  532. package/dist/solana/idl/lockup/v1.0/index.js +0 -9
  533. package/dist/solana/idl/lockup/v1.0/index.js.map +0 -1
  534. package/dist/solana/releases/airdrops/v1.0/aliases.d.ts.map +0 -1
  535. package/dist/solana/releases/airdrops/v1.0/aliases.js.map +0 -1
  536. package/dist/solana/releases/airdrops/v1.0/deployments.js.map +0 -1
  537. package/dist/solana/releases/airdrops/v1.0/idl.d.ts +0 -3
  538. package/dist/solana/releases/airdrops/v1.0/idl.d.ts.map +0 -1
  539. package/dist/solana/releases/airdrops/v1.0/idl.js +0 -12
  540. package/dist/solana/releases/airdrops/v1.0/idl.js.map +0 -1
  541. package/dist/solana/releases/airdrops/v1.0/manifest.d.ts.map +0 -1
  542. package/dist/solana/releases/airdrops/v1.0/manifest.js +0 -7
  543. package/dist/solana/releases/airdrops/v1.0/manifest.js.map +0 -1
  544. package/dist/solana/releases/lockup/v1.0/aliases.d.ts.map +0 -1
  545. package/dist/solana/releases/lockup/v1.0/aliases.js.map +0 -1
  546. package/dist/solana/releases/lockup/v1.0/deployments.js.map +0 -1
  547. package/dist/solana/releases/lockup/v1.0/idl.d.ts +0 -3
  548. package/dist/solana/releases/lockup/v1.0/idl.d.ts.map +0 -1
  549. package/dist/solana/releases/lockup/v1.0/idl.js +0 -12
  550. package/dist/solana/releases/lockup/v1.0/idl.js.map +0 -1
  551. package/dist/solana/releases/lockup/v1.0/manifest.d.ts.map +0 -1
  552. package/dist/solana/releases/lockup/v1.0/manifest.js.map +0 -1
  553. /package/dist/solana/releases/airdrops/{v1.0 → v0.1}/aliases.d.ts +0 -0
  554. /package/dist/solana/releases/airdrops/{v1.0 → v0.1}/deployments.d.ts +0 -0
  555. /package/dist/solana/releases/airdrops/{v1.0 → v0.1}/index.d.ts +0 -0
  556. /package/dist/solana/releases/airdrops/{v1.0 → v0.1}/manifest.d.ts +0 -0
  557. /package/dist/solana/releases/lockup/{v1.0 → v0.1}/aliases.d.ts +0 -0
  558. /package/dist/solana/releases/lockup/{v1.0 → v0.1}/deployments.d.ts +0 -0
  559. /package/dist/solana/releases/lockup/{v1.0 → v0.1}/index.d.ts +0 -0
  560. /package/dist/solana/releases/lockup/{v1.0 → v0.1}/manifest.d.ts +0 -0
@@ -1,228 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- accounts: [
5
- {
6
- discriminator: [159, 26, 37, 150, 44, 84, 171, 172],
7
- name: "NftCollectionData",
8
- },
9
- {
10
- discriminator: [61, 89, 148, 141, 154, 81, 86, 113],
11
- name: "StreamData",
12
- },
13
- {
14
- discriminator: [238, 239, 123, 238, 89, 1, 168, 253],
15
- name: "Treasury",
16
- },
17
- ],
3
+ exports.idl = void 0;
4
+ exports.idl = {
18
5
  address: "4EauRKrNErKfsR4XetEZJNmvACGHbHnHV4R5dvJuqupC",
6
+ metadata: { name: "sablier_lockup", version: "0.1.0", spec: "0.1.0", description: "Created with Anchor" },
19
7
  docs: ["Sablier Lockup program for creating and managing token streams."],
20
- errors: [
21
- {
22
- code: 6000,
23
- msg: "Can't perform the action on a depleted stream!",
24
- name: "StreamDepleted",
25
- },
26
- {
27
- code: 6001,
28
- msg: "Can't renounce an already-renounced Stream!",
29
- name: "StreamCanceled",
30
- },
31
- {
32
- code: 6002,
33
- msg: "Can't cancel a non-cancelable Stream!",
34
- name: "StreamIsNotCancelable",
35
- },
36
- {
37
- code: 6003,
38
- msg: "Can't cancel a settled Stream!",
39
- name: "StreamSettled",
40
- },
41
- {
42
- code: 6004,
43
- msg: "Can't collect zero fees!",
44
- name: "CantCollectZeroFees",
45
- },
46
- {
47
- code: 6005,
48
- msg: "Invalid cliff time of the Stream!",
49
- name: "CliffTimeNotLessThanEndTime",
50
- },
51
- {
52
- code: 6006,
53
- msg: "Cliff time zero but unlock amount not zero!",
54
- name: "CliffTimeZeroUnlockAmountNotZero",
55
- },
56
- {
57
- code: 6007,
58
- msg: "Invalid deposit amount!",
59
- name: "DepositAmountZero",
60
- },
61
- {
62
- code: 6008,
63
- msg: "Start time must be less than cliff time!",
64
- name: "StartTimeNotLessThanCliffTime",
65
- },
66
- {
67
- code: 6009,
68
- msg: "Start time must be less than end time!",
69
- name: "StartTimeNotLessThanEndTime",
70
- },
71
- {
72
- code: 6010,
73
- msg: "Start time can't be zero!",
74
- name: "StartTimeZero",
75
- },
76
- {
77
- code: 6011,
78
- msg: "Unlock amounts sum is greater than deposit amount!",
79
- name: "UnlockAmountsSumTooHigh",
80
- },
81
- {
82
- code: 6012,
83
- msg: "Can't renounce a non-cancelable Stream!",
84
- name: "StreamAlreadyNonCancelable",
85
- },
86
- {
87
- code: 6013,
88
- msg: "Attempting to withdraw more than available in the stream!",
89
- name: "Overdraw",
90
- },
91
- {
92
- code: 6014,
93
- msg: "Can't withdraw a zero amount!",
94
- name: "WithdrawAmountZero",
95
- },
96
- ],
97
- events: [
98
- {
99
- discriminator: [82, 106, 117, 112, 153, 245, 190, 66],
100
- name: "CancelLockupStream",
101
- },
102
- {
103
- discriminator: [234, 181, 19, 52, 67, 64, 151, 173],
104
- name: "CreateLockupLinearStream",
105
- },
106
- {
107
- discriminator: [233, 23, 117, 225, 107, 178, 254, 8],
108
- name: "FeesCollected",
109
- },
110
- {
111
- discriminator: [28, 66, 144, 150, 118, 56, 81, 93],
112
- name: "RenounceLockupStream",
113
- },
114
- {
115
- discriminator: [232, 101, 27, 150, 85, 222, 243, 9],
116
- name: "WithdrawFromLockupStream",
117
- },
118
- ],
119
8
  instructions: [
120
9
  {
121
- accounts: [
122
- {
123
- docs: ["Write account: the sender of the stream who can cancel it."],
124
- name: "sender",
125
- signer: true,
126
- writable: true,
127
- },
128
- {
129
- docs: ["Create if needed account: the deposited token ATA owned by the sender."],
130
- name: "sender_ata",
131
- pda: {
132
- program: {
133
- kind: "const",
134
- value: [
135
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
136
- 132, 4, 142, 123, 216, 219, 233, 248, 89,
137
- ],
138
- },
139
- seeds: [
140
- {
141
- kind: "account",
142
- path: "sender",
143
- },
144
- {
145
- kind: "account",
146
- path: "deposited_token_program",
147
- },
148
- {
149
- kind: "account",
150
- path: "deposited_token_mint",
151
- },
152
- ],
153
- },
154
- writable: true,
155
- },
156
- {
157
- docs: ["Read account: the mint account of the deposited token."],
158
- name: "deposited_token_mint",
159
- },
160
- {
161
- docs: ["Write account: the stream data account storing stream details."],
162
- name: "stream_data",
163
- pda: {
164
- seeds: [
165
- {
166
- kind: "const",
167
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
168
- },
169
- {
170
- kind: "account",
171
- path: "stream_nft_mint",
172
- },
173
- ],
174
- },
175
- writable: true,
176
- },
177
- {
178
- docs: ["Write account: the deposited token ATA owned by the stream data account."],
179
- name: "stream_data_ata",
180
- pda: {
181
- program: {
182
- kind: "const",
183
- value: [
184
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
185
- 132, 4, 142, 123, 216, 219, 233, 248, 89,
186
- ],
187
- },
188
- seeds: [
189
- {
190
- kind: "account",
191
- path: "stream_data",
192
- },
193
- {
194
- kind: "account",
195
- path: "deposited_token_program",
196
- },
197
- {
198
- kind: "account",
199
- path: "deposited_token_mint",
200
- },
201
- ],
202
- },
203
- writable: true,
204
- },
205
- {
206
- docs: ["Read account: the mint account for the stream NFT."],
207
- name: "stream_nft_mint",
208
- },
209
- {
210
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
211
- docs: ["Program account: the Associated Token program."],
212
- name: "associated_token_program",
213
- },
214
- {
215
- docs: ["Program account: the Token program of the deposited token."],
216
- name: "deposited_token_program",
217
- },
218
- {
219
- address: "11111111111111111111111111111111",
220
- docs: ["Program account: the System program."],
221
- name: "system_program",
222
- },
223
- ],
224
- args: [],
225
- discriminator: [232, 219, 223, 41, 219, 236, 220, 190],
10
+ name: "cancel",
226
11
  docs: [
227
12
  "Cancels the stream and refunds any remaining tokens to the sender ATA.",
228
13
  "",
@@ -247,206 +32,24 @@ exports.default = {
247
32
  "- The stream must be cancelable.",
248
33
  "- The stream must be Pending or Streaming.",
249
34
  ],
250
- name: "cancel",
251
- },
252
- {
253
- accounts: [
254
- {
255
- docs: ["Write account: the account authorized to collect fees from the treasury."],
256
- name: "fee_collector",
257
- signer: true,
258
- },
259
- {
260
- docs: ["Write account: the address that will receive the collected fees."],
261
- name: "fee_recipient",
262
- writable: true,
263
- },
264
- {
265
- docs: ["Write account: the treasury account that holds the fees."],
266
- name: "treasury",
267
- pda: {
268
- seeds: [
269
- {
270
- kind: "const",
271
- value: [116, 114, 101, 97, 115, 117, 114, 121],
272
- },
273
- ],
274
- },
275
- writable: true,
276
- },
277
- ],
278
- args: [],
279
- discriminator: [164, 152, 207, 99, 30, 186, 19, 182],
280
- docs: [
281
- "Collects the fees accumulated in the treasury by transferring them to the fee recipient.",
282
- "",
283
- "# Accounts Expected",
284
- "",
285
- "- `fee_collector` The transaction signer and the fee collector.",
286
- "- `fee_recipient` The address receiving the collected fees.",
287
- "",
288
- "# Notes",
289
- "",
290
- "- Leaves a buffer of 0.001 SOL to ensure the account remains rent-exempt after the fee collection.",
291
- "- Emits a [`crate::utils::events::FeesCollected`] event.",
292
- "",
293
- "# Requirements",
294
- "",
295
- "- `fee_collector` must be authorized for fee collection.",
296
- ],
297
- name: "collect_fees",
298
- },
299
- {
35
+ discriminator: [232, 219, 223, 41, 219, 236, 220, 190],
300
36
  accounts: [
301
37
  {
302
- docs: ["Write account: the creator and funder of the stream."],
303
- name: "creator",
304
- signer: true,
305
- writable: true,
306
- },
307
- {
308
- docs: ["Write account: the creator's ATA for the deposit token."],
309
- name: "creator_ata",
310
- pda: {
311
- program: {
312
- kind: "const",
313
- value: [
314
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
315
- 132, 4, 142, 123, 216, 219, 233, 248, 89,
316
- ],
317
- },
318
- seeds: [
319
- {
320
- kind: "account",
321
- path: "creator",
322
- },
323
- {
324
- kind: "account",
325
- path: "deposit_token_program",
326
- },
327
- {
328
- kind: "account",
329
- path: "deposit_token_mint",
330
- },
331
- ],
332
- },
333
- writable: true,
334
- },
335
- {
336
- docs: ["Read account: the recipient of the stream."],
337
- name: "recipient",
338
- },
339
- {
340
- docs: ["Read account: the sender of the stream."],
341
38
  name: "sender",
342
- },
343
- {
344
- docs: ["Write account: the NFT collection data storing the total supply."],
345
- name: "nft_collection_data",
346
- pda: {
347
- seeds: [
348
- {
349
- kind: "const",
350
- value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 100, 97, 116, 97],
351
- },
352
- ],
353
- },
39
+ docs: ["Write account: the sender of the stream who can cancel it."],
354
40
  writable: true,
41
+ signer: true,
355
42
  },
356
43
  {
357
- docs: ["Write account: the master edition account for the NFT collection."],
358
- name: "nft_collection_master_edition",
359
- pda: {
360
- program: {
361
- kind: "account",
362
- path: "token_metadata_program",
363
- },
364
- seeds: [
365
- {
366
- kind: "const",
367
- value: [109, 101, 116, 97, 100, 97, 116, 97],
368
- },
369
- {
370
- kind: "account",
371
- path: "token_metadata_program",
372
- },
373
- {
374
- kind: "account",
375
- path: "nft_collection_mint",
376
- },
377
- {
378
- kind: "const",
379
- value: [101, 100, 105, 116, 105, 111, 110],
380
- },
381
- ],
382
- },
383
- },
384
- {
385
- docs: ["Write account: the metadata account for the NFT collection."],
386
- name: "nft_collection_metadata",
387
- pda: {
388
- program: {
389
- kind: "account",
390
- path: "token_metadata_program",
391
- },
392
- seeds: [
393
- {
394
- kind: "const",
395
- value: [109, 101, 116, 97, 100, 97, 116, 97],
396
- },
397
- {
398
- kind: "account",
399
- path: "token_metadata_program",
400
- },
401
- {
402
- kind: "account",
403
- path: "nft_collection_mint",
404
- },
405
- ],
406
- },
44
+ name: "sender_ata",
45
+ docs: ["Create if needed account: the deposited token ATA owned by the sender."],
407
46
  writable: true,
408
- },
409
- {
410
- docs: ["Read account: the mint account for the NFT collection."],
411
- name: "nft_collection_mint",
412
- pda: {
413
- seeds: [
414
- {
415
- kind: "const",
416
- value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 109, 105, 110, 116],
417
- },
418
- ],
419
- },
420
- },
421
- {
422
- docs: ["Read account: the mint account for the deposit token."],
423
- name: "deposit_token_mint",
424
- },
425
- {
426
- docs: ["Create account: the mint account for the stream NFT."],
427
- name: "stream_nft_mint",
428
47
  pda: {
429
48
  seeds: [
430
- {
431
- kind: "const",
432
- value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116],
433
- },
434
- {
435
- kind: "account",
436
- path: "sender",
437
- },
438
- {
439
- kind: "arg",
440
- path: "salt",
441
- },
49
+ { kind: "account", path: "sender" },
50
+ { kind: "account", path: "deposited_token_program" },
51
+ { kind: "account", path: "deposited_token_mint" },
442
52
  ],
443
- },
444
- writable: true,
445
- },
446
- {
447
- docs: ["Create account: the ATA for the stream NFT owned by the recipient."],
448
- name: "recipient_stream_nft_ata",
449
- pda: {
450
53
  program: {
451
54
  kind: "const",
452
55
  value: [
@@ -454,182 +57,96 @@ exports.default = {
454
57
  132, 4, 142, 123, 216, 219, 233, 248, 89,
455
58
  ],
456
59
  },
457
- seeds: [
458
- {
459
- kind: "account",
460
- path: "recipient",
461
- },
462
- {
463
- kind: "account",
464
- path: "nft_token_program",
465
- },
466
- {
467
- kind: "account",
468
- path: "stream_nft_mint",
469
- },
470
- ],
471
60
  },
472
- writable: true,
473
61
  },
62
+ { name: "deposited_token_mint", docs: ["Read account: the mint account of the deposited token."] },
474
63
  {
475
- docs: ["Create account: the account that will store the stream data."],
476
64
  name: "stream_data",
477
- pda: {
478
- seeds: [
479
- {
480
- kind: "const",
481
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
482
- },
483
- {
484
- kind: "account",
485
- path: "stream_nft_mint",
486
- },
487
- ],
488
- },
65
+ docs: ["Write account: the stream data account storing stream details."],
489
66
  writable: true,
490
- },
491
- {
492
- docs: ["Create account: the ATA for deposit tokens owned by stream data account."],
493
- name: "stream_data_ata",
494
67
  pda: {
495
- program: {
496
- kind: "const",
497
- value: [
498
- 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
499
- 132, 4, 142, 123, 216, 219, 233, 248, 89,
500
- ],
501
- },
502
68
  seeds: [
503
- {
504
- kind: "account",
505
- path: "stream_data",
506
- },
507
- {
508
- kind: "account",
509
- path: "deposit_token_program",
510
- },
511
- {
512
- kind: "account",
513
- path: "deposit_token_mint",
514
- },
69
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
70
+ { kind: "account", path: "stream_nft_mint" },
515
71
  ],
516
72
  },
517
- writable: true,
518
73
  },
519
74
  {
520
- docs: ["Create account: the master edition account for the stream NFT."],
521
- name: "stream_nft_master_edition",
522
- pda: {
523
- program: {
524
- kind: "account",
525
- path: "token_metadata_program",
526
- },
527
- seeds: [
528
- {
529
- kind: "const",
530
- value: [109, 101, 116, 97, 100, 97, 116, 97],
531
- },
532
- {
533
- kind: "account",
534
- path: "token_metadata_program",
535
- },
536
- {
537
- kind: "account",
538
- path: "stream_nft_mint",
539
- },
540
- {
541
- kind: "const",
542
- value: [101, 100, 105, 116, 105, 111, 110],
543
- },
544
- ],
545
- },
75
+ name: "stream_data_ata",
76
+ docs: ["Write account: the deposited token ATA owned by the stream data account."],
546
77
  writable: true,
547
- },
548
- {
549
- docs: ["Create account: the metadata account for the stream NFT."],
550
- name: "stream_nft_metadata",
551
78
  pda: {
552
- program: {
553
- kind: "account",
554
- path: "token_metadata_program",
555
- },
556
79
  seeds: [
557
- {
558
- kind: "const",
559
- value: [109, 101, 116, 97, 100, 97, 116, 97],
560
- },
561
- {
562
- kind: "account",
563
- path: "token_metadata_program",
564
- },
565
- {
566
- kind: "account",
567
- path: "stream_nft_mint",
568
- },
80
+ { kind: "account", path: "stream_data" },
81
+ { kind: "account", path: "deposited_token_program" },
82
+ { kind: "account", path: "deposited_token_mint" },
569
83
  ],
84
+ program: {
85
+ kind: "const",
86
+ value: [
87
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
88
+ 132, 4, 142, 123, 216, 219, 233, 248, 89,
89
+ ],
90
+ },
570
91
  },
571
- writable: true,
572
92
  },
93
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
573
94
  {
574
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
575
- docs: ["Program account: the Associated Token program."],
576
95
  name: "associated_token_program",
96
+ docs: ["Program account: the Associated Token program."],
97
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
577
98
  },
99
+ { name: "deposited_token_program", docs: ["Program account: the Token program of the deposited token."] },
578
100
  {
579
- docs: ["Program account: the Token program of the deposit token."],
580
- name: "deposit_token_program",
581
- },
582
- {
583
- docs: ["Program account: the Token program of the stream NFT."],
584
- name: "nft_token_program",
585
- },
586
- {
587
- address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
588
- docs: ["Program account: the Token Metadata program."],
589
- name: "token_metadata_program",
590
- },
591
- {
592
- address: "11111111111111111111111111111111",
593
- docs: ["Program account: the System program."],
594
101
  name: "system_program",
595
- },
596
- {
597
- address: "SysvarRent111111111111111111111111111111111",
598
- docs: ["Sysvar account: Rent."],
599
- name: "rent",
102
+ docs: ["Program account: the System program."],
103
+ address: "11111111111111111111111111111111",
600
104
  },
601
105
  ],
602
- args: [
603
- {
604
- name: "salt",
605
- type: "u128",
606
- },
607
- {
608
- name: "deposit_amount",
609
- type: "u64",
610
- },
611
- {
612
- name: "cliff_duration",
613
- type: "u64",
614
- },
615
- {
616
- name: "total_duration",
617
- type: "u64",
618
- },
106
+ args: [],
107
+ },
108
+ {
109
+ name: "collect_fees",
110
+ docs: [
111
+ "Collects the fees accumulated in the treasury by transferring them to the fee recipient.",
112
+ "",
113
+ "# Accounts Expected",
114
+ "",
115
+ "- `fee_collector` The transaction signer and the fee collector.",
116
+ "- `fee_recipient` The address receiving the collected fees.",
117
+ "",
118
+ "# Notes",
119
+ "",
120
+ "- Leaves a buffer of 0.001 SOL to ensure the account remains rent-exempt after the fee collection.",
121
+ "- Emits a [`crate::utils::events::FeesCollected`] event.",
122
+ "",
123
+ "# Requirements",
124
+ "",
125
+ "- `fee_collector` must be authorized for fee collection.",
126
+ ],
127
+ discriminator: [164, 152, 207, 99, 30, 186, 19, 182],
128
+ accounts: [
619
129
  {
620
- name: "start_unlock_amount",
621
- type: "u64",
130
+ name: "fee_collector",
131
+ docs: ["Write account: the account authorized to collect fees from the treasury."],
132
+ signer: true,
622
133
  },
623
134
  {
624
- name: "cliff_unlock_amount",
625
- type: "u64",
135
+ name: "fee_recipient",
136
+ docs: ["Write account: the address that will receive the collected fees."],
137
+ writable: true,
626
138
  },
627
139
  {
628
- name: "is_cancelable",
629
- type: "bool",
140
+ name: "treasury",
141
+ docs: ["Write account: the treasury account that holds the fees."],
142
+ writable: true,
143
+ pda: { seeds: [{ kind: "const", value: [116, 114, 101, 97, 115, 117, 114, 121] }] },
630
144
  },
631
145
  ],
632
- discriminator: [87, 17, 170, 167, 156, 152, 169, 61],
146
+ args: [],
147
+ },
148
+ {
149
+ name: "create_with_durations_ll",
633
150
  docs: [
634
151
  "Creates a stream by setting the start time to the current timestamp, and the end time to the sum of the",
635
152
  "current timestamp and the total duration The stream is funded by the signer and wrapped in a Metaplex NFT.",
@@ -650,20 +167,24 @@ exports.default = {
650
167
  "",
651
168
  "Refer to the requirements in [`fn@crate::sablier_lockup::create_with_timestamps_ll`].",
652
169
  ],
653
- name: "create_with_durations_ll",
654
- },
655
- {
170
+ discriminator: [87, 17, 170, 167, 156, 152, 169, 61],
656
171
  accounts: [
657
172
  {
658
- docs: ["Write account: the creator and funder of the stream."],
659
173
  name: "creator",
660
- signer: true,
174
+ docs: ["Write account: the creator and funder of the stream."],
661
175
  writable: true,
176
+ signer: true,
662
177
  },
663
178
  {
664
- docs: ["Write account: the creator's ATA for the deposit token."],
665
179
  name: "creator_ata",
180
+ docs: ["Write account: the creator's ATA for the deposit token."],
181
+ writable: true,
666
182
  pda: {
183
+ seeds: [
184
+ { kind: "account", path: "creator" },
185
+ { kind: "account", path: "deposit_token_program" },
186
+ { kind: "account", path: "deposit_token_mint" },
187
+ ],
667
188
  program: {
668
189
  kind: "const",
669
190
  value: [
@@ -671,34 +192,14 @@ exports.default = {
671
192
  132, 4, 142, 123, 216, 219, 233, 248, 89,
672
193
  ],
673
194
  },
674
- seeds: [
675
- {
676
- kind: "account",
677
- path: "creator",
678
- },
679
- {
680
- kind: "account",
681
- path: "deposit_token_program",
682
- },
683
- {
684
- kind: "account",
685
- path: "deposit_token_mint",
686
- },
687
- ],
688
195
  },
689
- writable: true,
690
196
  },
197
+ { name: "recipient", docs: ["Read account: the recipient of the stream."] },
198
+ { name: "sender", docs: ["Read account: the sender of the stream."] },
691
199
  {
692
- docs: ["Read account: the recipient of the stream."],
693
- name: "recipient",
694
- },
695
- {
696
- docs: ["Read account: the sender of the stream."],
697
- name: "sender",
698
- },
699
- {
700
- docs: ["Write account: the NFT collection data storing the total supply."],
701
200
  name: "nft_collection_data",
201
+ docs: ["Write account: the NFT collection data storing the total supply."],
202
+ writable: true,
702
203
  pda: {
703
204
  seeds: [
704
205
  {
@@ -707,64 +208,36 @@ exports.default = {
707
208
  },
708
209
  ],
709
210
  },
710
- writable: true,
711
211
  },
712
212
  {
713
- docs: ["Write account: the master edition account for the NFT collection."],
714
213
  name: "nft_collection_master_edition",
214
+ docs: ["Write account: the master edition account for the NFT collection."],
715
215
  pda: {
716
- program: {
717
- kind: "account",
718
- path: "token_metadata_program",
719
- },
720
216
  seeds: [
721
- {
722
- kind: "const",
723
- value: [109, 101, 116, 97, 100, 97, 116, 97],
724
- },
725
- {
726
- kind: "account",
727
- path: "token_metadata_program",
728
- },
729
- {
730
- kind: "account",
731
- path: "nft_collection_mint",
732
- },
733
- {
734
- kind: "const",
735
- value: [101, 100, 105, 116, 105, 111, 110],
736
- },
217
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
218
+ { kind: "account", path: "token_metadata_program" },
219
+ { kind: "account", path: "nft_collection_mint" },
220
+ { kind: "const", value: [101, 100, 105, 116, 105, 111, 110] },
737
221
  ],
222
+ program: { kind: "account", path: "token_metadata_program" },
738
223
  },
739
224
  },
740
225
  {
741
- docs: ["Write account: the metadata account for the NFT collection."],
742
226
  name: "nft_collection_metadata",
227
+ docs: ["Write account: the metadata account for the NFT collection."],
228
+ writable: true,
743
229
  pda: {
744
- program: {
745
- kind: "account",
746
- path: "token_metadata_program",
747
- },
748
230
  seeds: [
749
- {
750
- kind: "const",
751
- value: [109, 101, 116, 97, 100, 97, 116, 97],
752
- },
753
- {
754
- kind: "account",
755
- path: "token_metadata_program",
756
- },
757
- {
758
- kind: "account",
759
- path: "nft_collection_mint",
760
- },
231
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
232
+ { kind: "account", path: "token_metadata_program" },
233
+ { kind: "account", path: "nft_collection_mint" },
761
234
  ],
235
+ program: { kind: "account", path: "token_metadata_program" },
762
236
  },
763
- writable: true,
764
237
  },
765
238
  {
766
- docs: ["Read account: the mint account for the NFT collection."],
767
239
  name: "nft_collection_mint",
240
+ docs: ["Read account: the mint account for the NFT collection."],
768
241
  pda: {
769
242
  seeds: [
770
243
  {
@@ -774,35 +247,29 @@ exports.default = {
774
247
  ],
775
248
  },
776
249
  },
250
+ { name: "deposit_token_mint", docs: ["Read account: the mint account for the deposit token."] },
777
251
  {
778
- docs: ["Read account: the mint account for the deposit token."],
779
- name: "deposit_token_mint",
780
- },
781
- {
782
- docs: ["Create account: the mint account for the stream NFT."],
783
252
  name: "stream_nft_mint",
253
+ docs: ["Create account: the mint account for the stream NFT."],
254
+ writable: true,
784
255
  pda: {
785
256
  seeds: [
786
- {
787
- kind: "const",
788
- value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116],
789
- },
790
- {
791
- kind: "account",
792
- path: "sender",
793
- },
794
- {
795
- kind: "arg",
796
- path: "salt",
797
- },
257
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116] },
258
+ { kind: "account", path: "sender" },
259
+ { kind: "arg", path: "salt" },
798
260
  ],
799
261
  },
800
- writable: true,
801
262
  },
802
263
  {
803
- docs: ["Create account: the ATA for the stream NFT owned by the recipient."],
804
264
  name: "recipient_stream_nft_ata",
265
+ docs: ["Create account: the ATA for the stream NFT owned by the recipient."],
266
+ writable: true,
805
267
  pda: {
268
+ seeds: [
269
+ { kind: "account", path: "recipient" },
270
+ { kind: "account", path: "nft_token_program" },
271
+ { kind: "account", path: "stream_nft_mint" },
272
+ ],
806
273
  program: {
807
274
  kind: "const",
808
275
  value: [
@@ -810,44 +277,29 @@ exports.default = {
810
277
  132, 4, 142, 123, 216, 219, 233, 248, 89,
811
278
  ],
812
279
  },
813
- seeds: [
814
- {
815
- kind: "account",
816
- path: "recipient",
817
- },
818
- {
819
- kind: "account",
820
- path: "nft_token_program",
821
- },
822
- {
823
- kind: "account",
824
- path: "stream_nft_mint",
825
- },
826
- ],
827
280
  },
828
- writable: true,
829
281
  },
830
282
  {
831
- docs: ["Create account: the account that will store the stream data."],
832
283
  name: "stream_data",
284
+ docs: ["Create account: the account that will store the stream data."],
285
+ writable: true,
833
286
  pda: {
834
287
  seeds: [
835
- {
836
- kind: "const",
837
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
838
- },
839
- {
840
- kind: "account",
841
- path: "stream_nft_mint",
842
- },
288
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
289
+ { kind: "account", path: "stream_nft_mint" },
843
290
  ],
844
291
  },
845
- writable: true,
846
292
  },
847
293
  {
848
- docs: ["Create account: the ATA for deposit tokens owned by stream data account."],
849
294
  name: "stream_data_ata",
295
+ docs: ["Create account: the ATA for deposit tokens owned by stream data account."],
296
+ writable: true,
850
297
  pda: {
298
+ seeds: [
299
+ { kind: "account", path: "stream_data" },
300
+ { kind: "account", path: "deposit_token_program" },
301
+ { kind: "account", path: "deposit_token_mint" },
302
+ ],
851
303
  program: {
852
304
  kind: "const",
853
305
  value: [
@@ -855,141 +307,66 @@ exports.default = {
855
307
  132, 4, 142, 123, 216, 219, 233, 248, 89,
856
308
  ],
857
309
  },
858
- seeds: [
859
- {
860
- kind: "account",
861
- path: "stream_data",
862
- },
863
- {
864
- kind: "account",
865
- path: "deposit_token_program",
866
- },
867
- {
868
- kind: "account",
869
- path: "deposit_token_mint",
870
- },
871
- ],
872
310
  },
873
- writable: true,
874
311
  },
875
312
  {
876
- docs: ["Create account: the master edition account for the stream NFT."],
877
313
  name: "stream_nft_master_edition",
314
+ docs: ["Create account: the master edition account for the stream NFT."],
315
+ writable: true,
878
316
  pda: {
879
- program: {
880
- kind: "account",
881
- path: "token_metadata_program",
882
- },
883
317
  seeds: [
884
- {
885
- kind: "const",
886
- value: [109, 101, 116, 97, 100, 97, 116, 97],
887
- },
888
- {
889
- kind: "account",
890
- path: "token_metadata_program",
891
- },
892
- {
893
- kind: "account",
894
- path: "stream_nft_mint",
895
- },
896
- {
897
- kind: "const",
898
- value: [101, 100, 105, 116, 105, 111, 110],
899
- },
318
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
319
+ { kind: "account", path: "token_metadata_program" },
320
+ { kind: "account", path: "stream_nft_mint" },
321
+ { kind: "const", value: [101, 100, 105, 116, 105, 111, 110] },
900
322
  ],
323
+ program: { kind: "account", path: "token_metadata_program" },
901
324
  },
902
- writable: true,
903
325
  },
904
326
  {
905
- docs: ["Create account: the metadata account for the stream NFT."],
906
327
  name: "stream_nft_metadata",
328
+ docs: ["Create account: the metadata account for the stream NFT."],
329
+ writable: true,
907
330
  pda: {
908
- program: {
909
- kind: "account",
910
- path: "token_metadata_program",
911
- },
912
331
  seeds: [
913
- {
914
- kind: "const",
915
- value: [109, 101, 116, 97, 100, 97, 116, 97],
916
- },
917
- {
918
- kind: "account",
919
- path: "token_metadata_program",
920
- },
921
- {
922
- kind: "account",
923
- path: "stream_nft_mint",
924
- },
332
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
333
+ { kind: "account", path: "token_metadata_program" },
334
+ { kind: "account", path: "stream_nft_mint" },
925
335
  ],
336
+ program: { kind: "account", path: "token_metadata_program" },
926
337
  },
927
- writable: true,
928
338
  },
929
339
  {
930
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
931
- docs: ["Program account: the Associated Token program."],
932
340
  name: "associated_token_program",
341
+ docs: ["Program account: the Associated Token program."],
342
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
933
343
  },
344
+ { name: "deposit_token_program", docs: ["Program account: the Token program of the deposit token."] },
345
+ { name: "nft_token_program", docs: ["Program account: the Token program of the stream NFT."] },
934
346
  {
935
- docs: ["Program account: the Token program of the deposit token."],
936
- name: "deposit_token_program",
937
- },
938
- {
939
- docs: ["Program account: the Token program of the stream NFT."],
940
- name: "nft_token_program",
941
- },
942
- {
943
- address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
944
- docs: ["Program account: the Token Metadata program."],
945
347
  name: "token_metadata_program",
348
+ docs: ["Program account: the Token Metadata program."],
349
+ address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
946
350
  },
947
351
  {
948
- address: "11111111111111111111111111111111",
949
- docs: ["Program account: the System program."],
950
352
  name: "system_program",
353
+ docs: ["Program account: the System program."],
354
+ address: "11111111111111111111111111111111",
951
355
  },
952
- {
953
- address: "SysvarRent111111111111111111111111111111111",
954
- docs: ["Sysvar account: Rent."],
955
- name: "rent",
956
- },
957
- ],
958
- args: [
959
- {
960
- name: "salt",
961
- type: "u128",
962
- },
963
- {
964
- name: "deposit_amount",
965
- type: "u64",
966
- },
967
- {
968
- name: "start_time",
969
- type: "u64",
970
- },
971
- {
972
- name: "cliff_time",
973
- type: "u64",
974
- },
975
- {
976
- name: "end_time",
977
- type: "u64",
978
- },
979
- {
980
- name: "start_unlock_amount",
981
- type: "u64",
982
- },
983
- {
984
- name: "cliff_unlock_amount",
985
- type: "u64",
986
- },
987
- {
988
- name: "is_cancelable",
989
- type: "bool",
990
- },
356
+ { name: "rent", docs: ["Sysvar account: Rent."], address: "SysvarRent111111111111111111111111111111111" },
991
357
  ],
992
- discriminator: [150, 165, 147, 28, 68, 41, 48, 41],
358
+ args: [
359
+ { name: "salt", type: "u128" },
360
+ { name: "deposit_amount", type: "u64" },
361
+ { name: "cliff_duration", type: "u64" },
362
+ { name: "total_duration", type: "u64" },
363
+ { name: "start_unlock_amount", type: "u64" },
364
+ { name: "cliff_unlock_amount", type: "u64" },
365
+ { name: "is_cancelable", type: "bool" },
366
+ ],
367
+ },
368
+ {
369
+ name: "create_with_timestamps_ll",
993
370
  docs: [
994
371
  "Creates a stream with the provided start and end times. The stream is funded by the signer and wrapped in",
995
372
  "a Metaplex NFT.",
@@ -1031,32 +408,39 @@ exports.default = {
1031
408
  "- The sum of `start_unlock_amount` and `cliff_unlock_amount` must be less than or equal to deposit amount.",
1032
409
  "- If `cliff_time` is not set, the `cliff_unlock_amount` amount must be zero.",
1033
410
  ],
1034
- name: "create_with_timestamps_ll",
1035
- },
1036
- {
411
+ discriminator: [150, 165, 147, 28, 68, 41, 48, 41],
1037
412
  accounts: [
1038
413
  {
1039
- docs: ["Write account: the initializer of the program."],
1040
- name: "initializer",
1041
- signer: true,
414
+ name: "creator",
415
+ docs: ["Write account: the creator and funder of the stream."],
1042
416
  writable: true,
417
+ signer: true,
1043
418
  },
1044
419
  {
1045
- docs: ["Create account: the treasury account that will hold the fees."],
1046
- name: "treasury",
420
+ name: "creator_ata",
421
+ docs: ["Write account: the creator's ATA for the deposit token."],
422
+ writable: true,
1047
423
  pda: {
1048
424
  seeds: [
1049
- {
1050
- kind: "const",
1051
- value: [116, 114, 101, 97, 115, 117, 114, 121],
1052
- },
425
+ { kind: "account", path: "creator" },
426
+ { kind: "account", path: "deposit_token_program" },
427
+ { kind: "account", path: "deposit_token_mint" },
1053
428
  ],
429
+ program: {
430
+ kind: "const",
431
+ value: [
432
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
433
+ 132, 4, 142, 123, 216, 219, 233, 248, 89,
434
+ ],
435
+ },
1054
436
  },
1055
- writable: true,
1056
437
  },
438
+ { name: "recipient", docs: ["Read account: the recipient of the stream."] },
439
+ { name: "sender", docs: ["Read account: the sender of the stream."] },
1057
440
  {
1058
- docs: ["Create account: the NFT collection data account storing collection metadata."],
1059
441
  name: "nft_collection_data",
442
+ docs: ["Write account: the NFT collection data storing the total supply."],
443
+ writable: true,
1060
444
  pda: {
1061
445
  seeds: [
1062
446
  {
@@ -1065,65 +449,36 @@ exports.default = {
1065
449
  },
1066
450
  ],
1067
451
  },
1068
- writable: true,
1069
452
  },
1070
453
  {
1071
- docs: ["Create account: the master edition account for the NFT collection."],
1072
454
  name: "nft_collection_master_edition",
455
+ docs: ["Write account: the master edition account for the NFT collection."],
1073
456
  pda: {
1074
- program: {
1075
- kind: "account",
1076
- path: "token_metadata_program",
1077
- },
1078
457
  seeds: [
1079
- {
1080
- kind: "const",
1081
- value: [109, 101, 116, 97, 100, 97, 116, 97],
1082
- },
1083
- {
1084
- kind: "account",
1085
- path: "token_metadata_program",
1086
- },
1087
- {
1088
- kind: "account",
1089
- path: "nft_collection_mint",
1090
- },
1091
- {
1092
- kind: "const",
1093
- value: [101, 100, 105, 116, 105, 111, 110],
1094
- },
458
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
459
+ { kind: "account", path: "token_metadata_program" },
460
+ { kind: "account", path: "nft_collection_mint" },
461
+ { kind: "const", value: [101, 100, 105, 116, 105, 111, 110] },
1095
462
  ],
463
+ program: { kind: "account", path: "token_metadata_program" },
1096
464
  },
1097
- writable: true,
1098
465
  },
1099
466
  {
1100
- docs: ["Create account: the metadata account for the NFT collection."],
1101
467
  name: "nft_collection_metadata",
468
+ docs: ["Write account: the metadata account for the NFT collection."],
469
+ writable: true,
1102
470
  pda: {
1103
- program: {
1104
- kind: "account",
1105
- path: "token_metadata_program",
1106
- },
1107
471
  seeds: [
1108
- {
1109
- kind: "const",
1110
- value: [109, 101, 116, 97, 100, 97, 116, 97],
1111
- },
1112
- {
1113
- kind: "account",
1114
- path: "token_metadata_program",
1115
- },
1116
- {
1117
- kind: "account",
1118
- path: "nft_collection_mint",
1119
- },
472
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
473
+ { kind: "account", path: "token_metadata_program" },
474
+ { kind: "account", path: "nft_collection_mint" },
1120
475
  ],
476
+ program: { kind: "account", path: "token_metadata_program" },
1121
477
  },
1122
- writable: true,
1123
478
  },
1124
479
  {
1125
- docs: ["Create account: the mint account for the NFT collection."],
1126
480
  name: "nft_collection_mint",
481
+ docs: ["Read account: the mint account for the NFT collection."],
1127
482
  pda: {
1128
483
  seeds: [
1129
484
  {
@@ -1132,12 +487,30 @@ exports.default = {
1132
487
  },
1133
488
  ],
1134
489
  },
490
+ },
491
+ { name: "deposit_token_mint", docs: ["Read account: the mint account for the deposit token."] },
492
+ {
493
+ name: "stream_nft_mint",
494
+ docs: ["Create account: the mint account for the stream NFT."],
1135
495
  writable: true,
496
+ pda: {
497
+ seeds: [
498
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116] },
499
+ { kind: "account", path: "sender" },
500
+ { kind: "arg", path: "salt" },
501
+ ],
502
+ },
1136
503
  },
1137
504
  {
1138
- docs: ["Create account: the ATA for the NFT collection owned by treasury."],
1139
- name: "nft_collection_ata",
505
+ name: "recipient_stream_nft_ata",
506
+ docs: ["Create account: the ATA for the stream NFT owned by the recipient."],
507
+ writable: true,
1140
508
  pda: {
509
+ seeds: [
510
+ { kind: "account", path: "recipient" },
511
+ { kind: "account", path: "nft_token_program" },
512
+ { kind: "account", path: "stream_nft_mint" },
513
+ ],
1141
514
  program: {
1142
515
  kind: "const",
1143
516
  value: [
@@ -1145,63 +518,97 @@ exports.default = {
1145
518
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1146
519
  ],
1147
520
  },
521
+ },
522
+ },
523
+ {
524
+ name: "stream_data",
525
+ docs: ["Create account: the account that will store the stream data."],
526
+ writable: true,
527
+ pda: {
1148
528
  seeds: [
1149
- {
1150
- kind: "account",
1151
- path: "treasury",
1152
- },
1153
- {
1154
- kind: "account",
1155
- path: "nft_token_program",
1156
- },
1157
- {
1158
- kind: "account",
1159
- path: "nft_collection_mint",
1160
- },
529
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
530
+ { kind: "account", path: "stream_nft_mint" },
1161
531
  ],
1162
532
  },
533
+ },
534
+ {
535
+ name: "stream_data_ata",
536
+ docs: ["Create account: the ATA for deposit tokens owned by stream data account."],
1163
537
  writable: true,
538
+ pda: {
539
+ seeds: [
540
+ { kind: "account", path: "stream_data" },
541
+ { kind: "account", path: "deposit_token_program" },
542
+ { kind: "account", path: "deposit_token_mint" },
543
+ ],
544
+ program: {
545
+ kind: "const",
546
+ value: [
547
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
548
+ 132, 4, 142, 123, 216, 219, 233, 248, 89,
549
+ ],
550
+ },
551
+ },
1164
552
  },
1165
553
  {
1166
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1167
- docs: ["Program account: the Associated Token program."],
1168
- name: "associated_token_program",
554
+ name: "stream_nft_master_edition",
555
+ docs: ["Create account: the master edition account for the stream NFT."],
556
+ writable: true,
557
+ pda: {
558
+ seeds: [
559
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
560
+ { kind: "account", path: "token_metadata_program" },
561
+ { kind: "account", path: "stream_nft_mint" },
562
+ { kind: "const", value: [101, 100, 105, 116, 105, 111, 110] },
563
+ ],
564
+ program: { kind: "account", path: "token_metadata_program" },
565
+ },
1169
566
  },
1170
567
  {
1171
- docs: ["Program account: the Token program of the collection NFT."],
1172
- name: "nft_token_program",
568
+ name: "stream_nft_metadata",
569
+ docs: ["Create account: the metadata account for the stream NFT."],
570
+ writable: true,
571
+ pda: {
572
+ seeds: [
573
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
574
+ { kind: "account", path: "token_metadata_program" },
575
+ { kind: "account", path: "stream_nft_mint" },
576
+ ],
577
+ program: { kind: "account", path: "token_metadata_program" },
578
+ },
1173
579
  },
1174
580
  {
1175
- address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
1176
- docs: ["Program account: the Token Metadata program."],
1177
- name: "token_metadata_program",
581
+ name: "associated_token_program",
582
+ docs: ["Program account: the Associated Token program."],
583
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1178
584
  },
585
+ { name: "deposit_token_program", docs: ["Program account: the Token program of the deposit token."] },
586
+ { name: "nft_token_program", docs: ["Program account: the Token program of the stream NFT."] },
1179
587
  {
1180
- address: "SysvarRent111111111111111111111111111111111",
1181
- docs: ["Sysvar account: Rent."],
1182
- name: "rent",
588
+ name: "token_metadata_program",
589
+ docs: ["Program account: the Token Metadata program."],
590
+ address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
1183
591
  },
1184
592
  {
1185
- address: "11111111111111111111111111111111",
1186
- docs: ["Program account: the System program."],
1187
593
  name: "system_program",
594
+ docs: ["Program account: the System program."],
595
+ address: "11111111111111111111111111111111",
1188
596
  },
597
+ { name: "rent", docs: ["Sysvar account: Rent."], address: "SysvarRent111111111111111111111111111111111" },
1189
598
  ],
1190
599
  args: [
1191
- {
1192
- name: "fee_collector",
1193
- type: "pubkey",
1194
- },
1195
- {
1196
- name: "chainlink_program",
1197
- type: "pubkey",
1198
- },
1199
- {
1200
- name: "chainlink_sol_usd_feed",
1201
- type: "pubkey",
1202
- },
600
+ { name: "salt", type: "u128" },
601
+ { name: "deposit_amount", type: "u64" },
602
+ { name: "start_time", type: "u64" },
603
+ { name: "cliff_time", type: "u64" },
604
+ { name: "end_time", type: "u64" },
605
+ { name: "start_unlock_amount", type: "u64" },
606
+ { name: "cliff_unlock_amount", type: "u64" },
607
+ { name: "is_cancelable", type: "bool" },
1203
608
  ],
1204
- discriminator: [175, 175, 109, 31, 13, 152, 155, 237],
609
+ },
610
+ {
611
+ name: "initialize",
1205
612
  docs: [
1206
613
  "Initializes the program with the provided fee collector address by creating a Metaplex NFT collection.",
1207
614
  "",
@@ -1216,33 +623,113 @@ exports.default = {
1216
623
  "- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
1217
624
  "- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
1218
625
  ],
1219
- name: "initialize",
1220
- },
1221
- {
626
+ discriminator: [175, 175, 109, 31, 13, 152, 155, 237],
1222
627
  accounts: [
628
+ { name: "initializer", docs: ["Write account: the initializer of the program."], writable: true, signer: true },
1223
629
  {
1224
- docs: ["Read account: the account storing stream details."],
1225
- name: "stream_data",
630
+ name: "treasury",
631
+ docs: ["Create account: the treasury account that will hold the fees."],
632
+ writable: true,
633
+ pda: { seeds: [{ kind: "const", value: [116, 114, 101, 97, 115, 117, 114, 121] }] },
634
+ },
635
+ {
636
+ name: "nft_collection_data",
637
+ docs: ["Create account: the NFT collection data account storing collection metadata."],
638
+ writable: true,
1226
639
  pda: {
1227
640
  seeds: [
1228
641
  {
1229
642
  kind: "const",
1230
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
643
+ value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 100, 97, 116, 97],
1231
644
  },
645
+ ],
646
+ },
647
+ },
648
+ {
649
+ name: "nft_collection_master_edition",
650
+ docs: ["Create account: the master edition account for the NFT collection."],
651
+ writable: true,
652
+ pda: {
653
+ seeds: [
654
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
655
+ { kind: "account", path: "token_metadata_program" },
656
+ { kind: "account", path: "nft_collection_mint" },
657
+ { kind: "const", value: [101, 100, 105, 116, 105, 111, 110] },
658
+ ],
659
+ program: { kind: "account", path: "token_metadata_program" },
660
+ },
661
+ },
662
+ {
663
+ name: "nft_collection_metadata",
664
+ docs: ["Create account: the metadata account for the NFT collection."],
665
+ writable: true,
666
+ pda: {
667
+ seeds: [
668
+ { kind: "const", value: [109, 101, 116, 97, 100, 97, 116, 97] },
669
+ { kind: "account", path: "token_metadata_program" },
670
+ { kind: "account", path: "nft_collection_mint" },
671
+ ],
672
+ program: { kind: "account", path: "token_metadata_program" },
673
+ },
674
+ },
675
+ {
676
+ name: "nft_collection_mint",
677
+ docs: ["Create account: the mint account for the NFT collection."],
678
+ writable: true,
679
+ pda: {
680
+ seeds: [
1232
681
  {
1233
- kind: "account",
1234
- path: "stream_nft_mint",
682
+ kind: "const",
683
+ value: [110, 102, 116, 95, 99, 111, 108, 108, 101, 99, 116, 105, 111, 110, 95, 109, 105, 110, 116],
1235
684
  },
1236
685
  ],
1237
686
  },
1238
687
  },
1239
688
  {
1240
- docs: ["Read account: the mint account for the stream NFT."],
1241
- name: "stream_nft_mint",
689
+ name: "nft_collection_ata",
690
+ docs: ["Create account: the ATA for the NFT collection owned by treasury."],
691
+ writable: true,
692
+ pda: {
693
+ seeds: [
694
+ { kind: "account", path: "treasury" },
695
+ { kind: "account", path: "nft_token_program" },
696
+ { kind: "account", path: "nft_collection_mint" },
697
+ ],
698
+ program: {
699
+ kind: "const",
700
+ value: [
701
+ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16,
702
+ 132, 4, 142, 123, 216, 219, 233, 248, 89,
703
+ ],
704
+ },
705
+ },
706
+ },
707
+ {
708
+ name: "associated_token_program",
709
+ docs: ["Program account: the Associated Token program."],
710
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
711
+ },
712
+ { name: "nft_token_program", docs: ["Program account: the Token program of the collection NFT."] },
713
+ {
714
+ name: "token_metadata_program",
715
+ docs: ["Program account: the Token Metadata program."],
716
+ address: "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",
717
+ },
718
+ { name: "rent", docs: ["Sysvar account: Rent."], address: "SysvarRent111111111111111111111111111111111" },
719
+ {
720
+ name: "system_program",
721
+ docs: ["Program account: the System program."],
722
+ address: "11111111111111111111111111111111",
1242
723
  },
1243
724
  ],
1244
- args: [],
1245
- discriminator: [160, 136, 114, 120, 234, 178, 146, 58],
725
+ args: [
726
+ { name: "fee_collector", type: "pubkey" },
727
+ { name: "chainlink_program", type: "pubkey" },
728
+ { name: "chainlink_sol_usd_feed", type: "pubkey" },
729
+ ],
730
+ },
731
+ {
732
+ name: "refundable_amount_of",
1246
733
  docs: [
1247
734
  "Calculates the amount that the sender would be refunded if the stream were canceled, denoted in units of the",
1248
735
  "token's decimals.",
@@ -1255,40 +742,25 @@ exports.default = {
1255
742
  "",
1256
743
  "- The stream does not exist.",
1257
744
  ],
1258
- name: "refundable_amount_of",
1259
- returns: "u64",
1260
- },
1261
- {
745
+ discriminator: [160, 136, 114, 120, 234, 178, 146, 58],
1262
746
  accounts: [
1263
747
  {
1264
- docs: ["Write account: the sender of the stream."],
1265
- name: "sender",
1266
- signer: true,
1267
- },
1268
- {
1269
- docs: ["Write account: the stream data account storing stream details."],
1270
748
  name: "stream_data",
749
+ docs: ["Read account: the account storing stream details."],
1271
750
  pda: {
1272
- seeds: [
1273
- {
1274
- kind: "const",
1275
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
1276
- },
1277
- {
1278
- kind: "account",
1279
- path: "stream_nft_mint",
1280
- },
1281
- ],
1282
- },
1283
- writable: true,
1284
- },
1285
- {
1286
- docs: ["Read account: the mint account for the stream NFT."],
1287
- name: "stream_nft_mint",
751
+ seeds: [
752
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
753
+ { kind: "account", path: "stream_nft_mint" },
754
+ ],
755
+ },
1288
756
  },
757
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1289
758
  ],
1290
759
  args: [],
1291
- discriminator: [241, 157, 138, 210, 8, 235, 187, 123],
760
+ returns: "u64",
761
+ },
762
+ {
763
+ name: "renounce",
1292
764
  docs: [
1293
765
  "Removes the right of the stream's sender to cancel the stream.",
1294
766
  "",
@@ -1301,33 +773,26 @@ exports.default = {
1301
773
  "",
1302
774
  "- Emits a [`crate::utils::events::RenounceLockupStream`] event.",
1303
775
  ],
1304
- name: "renounce",
1305
- },
1306
- {
776
+ discriminator: [241, 157, 138, 210, 8, 235, 187, 123],
1307
777
  accounts: [
778
+ { name: "sender", docs: ["Write account: the sender of the stream."], signer: true },
1308
779
  {
1309
- docs: ["Read account: the account storing stream details."],
1310
780
  name: "stream_data",
781
+ docs: ["Write account: the stream data account storing stream details."],
782
+ writable: true,
1311
783
  pda: {
1312
784
  seeds: [
1313
- {
1314
- kind: "const",
1315
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
1316
- },
1317
- {
1318
- kind: "account",
1319
- path: "stream_nft_mint",
1320
- },
785
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
786
+ { kind: "account", path: "stream_nft_mint" },
1321
787
  ],
1322
788
  },
1323
789
  },
1324
- {
1325
- docs: ["Read account: the mint account for the stream NFT."],
1326
- name: "stream_nft_mint",
1327
- },
790
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1328
791
  ],
1329
792
  args: [],
1330
- discriminator: [90, 214, 253, 237, 126, 236, 132, 237],
793
+ },
794
+ {
795
+ name: "status_of",
1331
796
  docs: [
1332
797
  "Retrieves the stream's status.",
1333
798
  "",
@@ -1339,47 +804,25 @@ exports.default = {
1339
804
  "",
1340
805
  "- The stream does not exist.",
1341
806
  ],
1342
- name: "status_of",
1343
- returns: {
1344
- defined: {
1345
- name: "StreamStatus",
1346
- },
1347
- },
1348
- },
1349
- {
807
+ discriminator: [90, 214, 253, 237, 126, 236, 132, 237],
1350
808
  accounts: [
1351
809
  {
1352
- docs: ["Read account: the mint account for the stream NFT."],
1353
- name: "stream_nft_mint",
810
+ name: "stream_data",
811
+ docs: ["Read account: the account storing stream details."],
1354
812
  pda: {
1355
813
  seeds: [
1356
- {
1357
- kind: "const",
1358
- value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116],
1359
- },
1360
- {
1361
- kind: "arg",
1362
- path: "_sender",
1363
- },
1364
- {
1365
- kind: "arg",
1366
- path: "_salt",
1367
- },
814
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
815
+ { kind: "account", path: "stream_nft_mint" },
1368
816
  ],
1369
817
  },
1370
818
  },
819
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1371
820
  ],
1372
- args: [
1373
- {
1374
- name: "_sender",
1375
- type: "pubkey",
1376
- },
1377
- {
1378
- name: "_salt",
1379
- type: "u128",
1380
- },
1381
- ],
1382
- discriminator: [104, 209, 104, 97, 122, 35, 165, 195],
821
+ args: [],
822
+ returns: { defined: { name: "StreamStatus" } },
823
+ },
824
+ {
825
+ name: "stream_exists",
1383
826
  docs: [
1384
827
  "Returns a flag indicating whether a stream based on the `_sender` and the `_salt` already exists.",
1385
828
  "",
@@ -1388,34 +831,28 @@ exports.default = {
1388
831
  "- `_sender` The sender of the stream.",
1389
832
  "- `_salt` The unique salt used to derive the stream NFT mint address.",
1390
833
  ],
1391
- name: "stream_exists",
1392
- returns: "bool",
1393
- },
1394
- {
834
+ discriminator: [104, 209, 104, 97, 122, 35, 165, 195],
1395
835
  accounts: [
1396
836
  {
1397
- docs: ["Read account: the account storing stream details."],
1398
- name: "stream_data",
837
+ name: "stream_nft_mint",
838
+ docs: ["Read account: the mint account for the stream NFT."],
1399
839
  pda: {
1400
840
  seeds: [
1401
- {
1402
- kind: "const",
1403
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
1404
- },
1405
- {
1406
- kind: "account",
1407
- path: "stream_nft_mint",
1408
- },
841
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 110, 102, 116, 95, 109, 105, 110, 116] },
842
+ { kind: "arg", path: "_sender" },
843
+ { kind: "arg", path: "_salt" },
1409
844
  ],
1410
845
  },
1411
846
  },
1412
- {
1413
- docs: ["Read account: the mint account for the stream NFT."],
1414
- name: "stream_nft_mint",
1415
- },
1416
847
  ],
1417
- args: [],
1418
- discriminator: [91, 69, 219, 48, 189, 26, 13, 33],
848
+ args: [
849
+ { name: "_sender", type: "pubkey" },
850
+ { name: "_salt", type: "u128" },
851
+ ],
852
+ returns: "bool",
853
+ },
854
+ {
855
+ name: "streamed_amount_of",
1419
856
  docs: [
1420
857
  "Calculates the amount streamed to the recipient, denoted in units of the token's decimals.",
1421
858
  "",
@@ -1433,54 +870,94 @@ exports.default = {
1433
870
  "",
1434
871
  "- The stream does not exist.",
1435
872
  ],
1436
- name: "streamed_amount_of",
1437
- returns: "u64",
1438
- },
1439
- {
873
+ discriminator: [91, 69, 219, 48, 189, 26, 13, 33],
1440
874
  accounts: [
1441
875
  {
1442
- docs: ["Read account: the account storing the treasury details."],
1443
- name: "treasury",
876
+ name: "stream_data",
877
+ docs: ["Read account: the account storing stream details."],
1444
878
  pda: {
1445
879
  seeds: [
1446
- {
1447
- kind: "const",
1448
- value: [116, 114, 101, 97, 115, 117, 114, 121],
1449
- },
880
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
881
+ { kind: "account", path: "stream_nft_mint" },
1450
882
  ],
1451
883
  },
1452
884
  },
885
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1453
886
  ],
1454
887
  args: [],
1455
- discriminator: [247, 160, 213, 237, 247, 121, 164, 82],
1456
- docs: ["Returns the treasury details."],
888
+ returns: "u64",
889
+ },
890
+ {
1457
891
  name: "treasury_view",
1458
- returns: {
1459
- defined: {
1460
- name: "Treasury",
892
+ docs: ["Returns the treasury details."],
893
+ discriminator: [247, 160, 213, 237, 247, 121, 164, 82],
894
+ accounts: [
895
+ {
896
+ name: "treasury",
897
+ docs: ["Read account: the account storing the treasury details."],
898
+ pda: { seeds: [{ kind: "const", value: [116, 114, 101, 97, 115, 117, 114, 121] }] },
1461
899
  },
1462
- },
900
+ ],
901
+ args: [],
902
+ returns: { defined: { name: "Treasury" } },
1463
903
  },
1464
904
  {
905
+ name: "withdraw",
906
+ docs: [
907
+ "Withdraws the provided amount of tokens from the stream data ATA to the provided account.",
908
+ "",
909
+ "# Accounts Expected",
910
+ "",
911
+ "- `signer` The transaction signer.",
912
+ "- `deposited_token_mint` The mint of the deposited token.",
913
+ "- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
914
+ "- `withdrawal_recipient` The address of the recipient receiving the withdrawn tokens.",
915
+ "- `deposited_token_program` The Token Program of the deposited token.",
916
+ "- `nft_token_program` The Token Program of the NFT.",
917
+ "- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
918
+ "- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
919
+ "",
920
+ "# Parameters",
921
+ "",
922
+ "- `amount` The amount to withdraw, denoted in units of the token's decimals.",
923
+ "",
924
+ "# Notes",
925
+ "",
926
+ "- If the withdrawal recipient does not have an ATA for the deposited token, one is created.",
927
+ "- The instruction charges a fee in the native token (SOL), equivalent to $1 USD.",
928
+ "- Emits [`crate::utils::events::WithdrawFromLockupStream`] event.",
929
+ "",
930
+ "# Requirements",
931
+ "",
932
+ "- `stream_nft_mint` must exist.",
933
+ "- `withdrawal_recipient` must be the recipient if the signer is not the stream's recipient.",
934
+ "- `amount` must be greater than zero and must not exceed the withdrawable amount.",
935
+ "- The stream must not be Depleted.",
936
+ "- `chainlink_program` and `chainlink_sol_usd_feed` must match the ones stored in the treasury.",
937
+ ],
938
+ discriminator: [183, 18, 70, 156, 148, 109, 161, 34],
1465
939
  accounts: [
1466
940
  {
1467
- docs: ["Write account: the signer of the withdrawal who pays the withdrawal fee."],
1468
941
  name: "signer",
1469
- signer: true,
942
+ docs: ["Write account: the signer of the withdrawal who pays the withdrawal fee."],
1470
943
  writable: true,
944
+ signer: true,
1471
945
  },
946
+ { name: "stream_recipient", docs: ["Read account: the recipient of the stream who owns the stream NFT."] },
1472
947
  {
1473
- docs: ["Read account: the recipient of the stream who owns the stream NFT."],
1474
- name: "stream_recipient",
1475
- },
1476
- {
1477
- docs: ["Read account: the account that will receive the withdrawn tokens.", "recipient."],
1478
948
  name: "withdrawal_recipient",
949
+ docs: ["Read account: the account that will receive the withdrawn tokens.", "recipient."],
1479
950
  },
1480
951
  {
1481
- docs: ["Create if needed account: the ATA for deposited tokens owned by withdrawal recipient."],
1482
952
  name: "withdrawal_recipient_ata",
953
+ docs: ["Create if needed account: the ATA for deposited tokens owned by withdrawal recipient."],
954
+ writable: true,
1483
955
  pda: {
956
+ seeds: [
957
+ { kind: "account", path: "withdrawal_recipient" },
958
+ { kind: "account", path: "deposited_token_program" },
959
+ { kind: "account", path: "deposited_token_mint" },
960
+ ],
1484
961
  program: {
1485
962
  kind: "const",
1486
963
  value: [
@@ -1488,44 +965,24 @@ exports.default = {
1488
965
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1489
966
  ],
1490
967
  },
1491
- seeds: [
1492
- {
1493
- kind: "account",
1494
- path: "withdrawal_recipient",
1495
- },
1496
- {
1497
- kind: "account",
1498
- path: "deposited_token_program",
1499
- },
1500
- {
1501
- kind: "account",
1502
- path: "deposited_token_mint",
1503
- },
1504
- ],
1505
968
  },
1506
- writable: true,
1507
969
  },
1508
970
  {
1509
- docs: ["Write account: the treasury account that receives the withdrawal fee."],
1510
971
  name: "treasury",
1511
- pda: {
1512
- seeds: [
1513
- {
1514
- kind: "const",
1515
- value: [116, 114, 101, 97, 115, 117, 114, 121],
1516
- },
1517
- ],
1518
- },
972
+ docs: ["Write account: the treasury account that receives the withdrawal fee."],
1519
973
  writable: true,
974
+ pda: { seeds: [{ kind: "const", value: [116, 114, 101, 97, 115, 117, 114, 121] }] },
1520
975
  },
976
+ { name: "deposited_token_mint", docs: ["Read account: the mint account for the deposited token."] },
1521
977
  {
1522
- docs: ["Read account: the mint account for the deposited token."],
1523
- name: "deposited_token_mint",
1524
- },
1525
- {
1526
- docs: ["Read account: the ATA for the stream NFT owned by recipient.", ""],
1527
978
  name: "recipient_stream_nft_ata",
979
+ docs: ["Read account: the ATA for the stream NFT owned by recipient.", ""],
1528
980
  pda: {
981
+ seeds: [
982
+ { kind: "account", path: "stream_recipient" },
983
+ { kind: "account", path: "nft_token_program" },
984
+ { kind: "account", path: "stream_nft_mint" },
985
+ ],
1529
986
  program: {
1530
987
  kind: "const",
1531
988
  value: [
@@ -1533,43 +990,29 @@ exports.default = {
1533
990
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1534
991
  ],
1535
992
  },
1536
- seeds: [
1537
- {
1538
- kind: "account",
1539
- path: "stream_recipient",
1540
- },
1541
- {
1542
- kind: "account",
1543
- path: "nft_token_program",
1544
- },
1545
- {
1546
- kind: "account",
1547
- path: "stream_nft_mint",
1548
- },
1549
- ],
1550
993
  },
1551
994
  },
1552
995
  {
1553
- docs: ["Write account: the account storing the stream data."],
1554
996
  name: "stream_data",
997
+ docs: ["Write account: the account storing the stream data."],
998
+ writable: true,
1555
999
  pda: {
1556
1000
  seeds: [
1557
- {
1558
- kind: "const",
1559
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
1560
- },
1561
- {
1562
- kind: "account",
1563
- path: "stream_nft_mint",
1564
- },
1001
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
1002
+ { kind: "account", path: "stream_nft_mint" },
1565
1003
  ],
1566
1004
  },
1567
- writable: true,
1568
1005
  },
1569
1006
  {
1570
- docs: ["Write account: the ATA for deposited tokens owned by stream data."],
1571
1007
  name: "stream_data_ata",
1008
+ docs: ["Write account: the ATA for deposited tokens owned by stream data."],
1009
+ writable: true,
1572
1010
  pda: {
1011
+ seeds: [
1012
+ { kind: "account", path: "stream_data" },
1013
+ { kind: "account", path: "deposited_token_program" },
1014
+ { kind: "account", path: "deposited_token_mint" },
1015
+ ],
1573
1016
  program: {
1574
1017
  kind: "const",
1575
1018
  value: [
@@ -1577,115 +1020,69 @@ exports.default = {
1577
1020
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1578
1021
  ],
1579
1022
  },
1580
- seeds: [
1581
- {
1582
- kind: "account",
1583
- path: "stream_data",
1584
- },
1585
- {
1586
- kind: "account",
1587
- path: "deposited_token_program",
1588
- },
1589
- {
1590
- kind: "account",
1591
- path: "deposited_token_mint",
1592
- },
1593
- ],
1594
1023
  },
1595
- writable: true,
1596
- },
1597
- {
1598
- docs: ["Read account: the mint account for the stream NFT."],
1599
- name: "stream_nft_mint",
1600
1024
  },
1025
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1601
1026
  {
1602
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1603
- docs: ["Program account: the Associated Token program."],
1604
1027
  name: "associated_token_program",
1028
+ docs: ["Program account: the Associated Token program."],
1029
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1605
1030
  },
1606
1031
  {
1607
- docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
1608
1032
  name: "chainlink_program",
1033
+ docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
1609
1034
  },
1035
+ { name: "chainlink_sol_usd_feed", docs: ["Read account: The account providing the SOL/USD price feed data."] },
1036
+ { name: "deposited_token_program", docs: ["Program account: the Token program of the deposited token."] },
1037
+ { name: "nft_token_program", docs: ["Program account: the Token program of the stream NFT."] },
1610
1038
  {
1611
- docs: ["Read account: The account providing the SOL/USD price feed data."],
1612
- name: "chainlink_sol_usd_feed",
1613
- },
1614
- {
1615
- docs: ["Program account: the Token program of the deposited token."],
1616
- name: "deposited_token_program",
1617
- },
1618
- {
1619
- docs: ["Program account: the Token program of the stream NFT."],
1620
- name: "nft_token_program",
1621
- },
1622
- {
1623
- address: "11111111111111111111111111111111",
1624
- docs: ["Program account: the System program."],
1625
1039
  name: "system_program",
1040
+ docs: ["Program account: the System program."],
1041
+ address: "11111111111111111111111111111111",
1626
1042
  },
1627
1043
  ],
1628
- args: [
1629
- {
1630
- name: "amount",
1631
- type: "u64",
1632
- },
1633
- ],
1634
- discriminator: [183, 18, 70, 156, 148, 109, 161, 34],
1044
+ args: [{ name: "amount", type: "u64" }],
1045
+ },
1046
+ {
1047
+ name: "withdraw_max",
1635
1048
  docs: [
1636
- "Withdraws the provided amount of tokens from the stream data ATA to the provided account.",
1049
+ "Withdraws the maximum withdrawable amount from the stream data ATA to the provided account.",
1637
1050
  "",
1638
1051
  "# Accounts Expected",
1639
1052
  "",
1640
- "- `signer` The transaction signer.",
1641
- "- `deposited_token_mint` The mint of the deposited token.",
1642
- "- `stream_nft_mint` The stream NFT mint uniquely identifying the stream.",
1643
- "- `withdrawal_recipient` The address of the recipient receiving the withdrawn tokens.",
1644
- "- `deposited_token_program` The Token Program of the deposited token.",
1645
- "- `nft_token_program` The Token Program of the NFT.",
1646
- "- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
1647
- "- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
1648
- "",
1649
- "# Parameters",
1650
- "",
1651
- "- `amount` The amount to withdraw, denoted in units of the token's decimals.",
1053
+ "Refer to the accounts in [`fn@crate::sablier_lockup::withdraw`].",
1652
1054
  "",
1653
1055
  "# Notes",
1654
1056
  "",
1655
- "- If the withdrawal recipient does not have an ATA for the deposited token, one is created.",
1656
- "- The instruction charges a fee in the native token (SOL), equivalent to $1 USD.",
1657
- "- Emits [`crate::utils::events::WithdrawFromLockupStream`] event.",
1057
+ "Refer to the notes in [`fn@crate::sablier_lockup::withdraw`].",
1658
1058
  "",
1659
1059
  "# Requirements",
1660
1060
  "",
1661
- "- `stream_nft_mint` must exist.",
1662
- "- `withdrawal_recipient` must be the recipient if the signer is not the stream's recipient.",
1663
- "- `amount` must be greater than zero and must not exceed the withdrawable amount.",
1664
- "- The stream must not be Depleted.",
1665
- "- `chainlink_program` and `chainlink_sol_usd_feed` must match the ones stored in the treasury.",
1061
+ "Refer to the requirements in [`fn@crate::sablier_lockup::withdraw`].",
1666
1062
  ],
1667
- name: "withdraw",
1668
- },
1669
- {
1063
+ discriminator: [32, 71, 46, 98, 105, 76, 85, 96],
1670
1064
  accounts: [
1671
1065
  {
1672
- docs: ["Write account: the signer of the withdrawal who pays the withdrawal fee."],
1673
1066
  name: "signer",
1674
- signer: true,
1067
+ docs: ["Write account: the signer of the withdrawal who pays the withdrawal fee."],
1675
1068
  writable: true,
1069
+ signer: true,
1676
1070
  },
1071
+ { name: "stream_recipient", docs: ["Read account: the recipient of the stream who owns the stream NFT."] },
1677
1072
  {
1678
- docs: ["Read account: the recipient of the stream who owns the stream NFT."],
1679
- name: "stream_recipient",
1680
- },
1681
- {
1682
- docs: ["Read account: the account that will receive the withdrawn tokens.", "recipient."],
1683
1073
  name: "withdrawal_recipient",
1074
+ docs: ["Read account: the account that will receive the withdrawn tokens.", "recipient."],
1684
1075
  },
1685
1076
  {
1686
- docs: ["Create if needed account: the ATA for deposited tokens owned by withdrawal recipient."],
1687
1077
  name: "withdrawal_recipient_ata",
1078
+ docs: ["Create if needed account: the ATA for deposited tokens owned by withdrawal recipient."],
1079
+ writable: true,
1688
1080
  pda: {
1081
+ seeds: [
1082
+ { kind: "account", path: "withdrawal_recipient" },
1083
+ { kind: "account", path: "deposited_token_program" },
1084
+ { kind: "account", path: "deposited_token_mint" },
1085
+ ],
1689
1086
  program: {
1690
1087
  kind: "const",
1691
1088
  value: [
@@ -1693,44 +1090,24 @@ exports.default = {
1693
1090
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1694
1091
  ],
1695
1092
  },
1696
- seeds: [
1697
- {
1698
- kind: "account",
1699
- path: "withdrawal_recipient",
1700
- },
1701
- {
1702
- kind: "account",
1703
- path: "deposited_token_program",
1704
- },
1705
- {
1706
- kind: "account",
1707
- path: "deposited_token_mint",
1708
- },
1709
- ],
1710
1093
  },
1711
- writable: true,
1712
1094
  },
1713
1095
  {
1714
- docs: ["Write account: the treasury account that receives the withdrawal fee."],
1715
1096
  name: "treasury",
1716
- pda: {
1717
- seeds: [
1718
- {
1719
- kind: "const",
1720
- value: [116, 114, 101, 97, 115, 117, 114, 121],
1721
- },
1722
- ],
1723
- },
1097
+ docs: ["Write account: the treasury account that receives the withdrawal fee."],
1724
1098
  writable: true,
1099
+ pda: { seeds: [{ kind: "const", value: [116, 114, 101, 97, 115, 117, 114, 121] }] },
1725
1100
  },
1101
+ { name: "deposited_token_mint", docs: ["Read account: the mint account for the deposited token."] },
1726
1102
  {
1727
- docs: ["Read account: the mint account for the deposited token."],
1728
- name: "deposited_token_mint",
1729
- },
1730
- {
1731
- docs: ["Read account: the ATA for the stream NFT owned by recipient.", ""],
1732
1103
  name: "recipient_stream_nft_ata",
1104
+ docs: ["Read account: the ATA for the stream NFT owned by recipient.", ""],
1733
1105
  pda: {
1106
+ seeds: [
1107
+ { kind: "account", path: "stream_recipient" },
1108
+ { kind: "account", path: "nft_token_program" },
1109
+ { kind: "account", path: "stream_nft_mint" },
1110
+ ],
1734
1111
  program: {
1735
1112
  kind: "const",
1736
1113
  value: [
@@ -1738,43 +1115,29 @@ exports.default = {
1738
1115
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1739
1116
  ],
1740
1117
  },
1741
- seeds: [
1742
- {
1743
- kind: "account",
1744
- path: "stream_recipient",
1745
- },
1746
- {
1747
- kind: "account",
1748
- path: "nft_token_program",
1749
- },
1750
- {
1751
- kind: "account",
1752
- path: "stream_nft_mint",
1753
- },
1754
- ],
1755
1118
  },
1756
1119
  },
1757
1120
  {
1758
- docs: ["Write account: the account storing the stream data."],
1759
1121
  name: "stream_data",
1122
+ docs: ["Write account: the account storing the stream data."],
1123
+ writable: true,
1760
1124
  pda: {
1761
1125
  seeds: [
1762
- {
1763
- kind: "const",
1764
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
1765
- },
1766
- {
1767
- kind: "account",
1768
- path: "stream_nft_mint",
1769
- },
1126
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
1127
+ { kind: "account", path: "stream_nft_mint" },
1770
1128
  ],
1771
1129
  },
1772
- writable: true,
1773
1130
  },
1774
1131
  {
1775
- docs: ["Write account: the ATA for deposited tokens owned by stream data."],
1776
1132
  name: "stream_data_ata",
1133
+ docs: ["Write account: the ATA for deposited tokens owned by stream data."],
1134
+ writable: true,
1777
1135
  pda: {
1136
+ seeds: [
1137
+ { kind: "account", path: "stream_data" },
1138
+ { kind: "account", path: "deposited_token_program" },
1139
+ { kind: "account", path: "deposited_token_mint" },
1140
+ ],
1778
1141
  program: {
1779
1142
  kind: "const",
1780
1143
  value: [
@@ -1782,98 +1145,31 @@ exports.default = {
1782
1145
  132, 4, 142, 123, 216, 219, 233, 248, 89,
1783
1146
  ],
1784
1147
  },
1785
- seeds: [
1786
- {
1787
- kind: "account",
1788
- path: "stream_data",
1789
- },
1790
- {
1791
- kind: "account",
1792
- path: "deposited_token_program",
1793
- },
1794
- {
1795
- kind: "account",
1796
- path: "deposited_token_mint",
1797
- },
1798
- ],
1799
1148
  },
1800
- writable: true,
1801
- },
1802
- {
1803
- docs: ["Read account: the mint account for the stream NFT."],
1804
- name: "stream_nft_mint",
1805
1149
  },
1150
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1806
1151
  {
1807
- address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1808
- docs: ["Program account: the Associated Token program."],
1809
1152
  name: "associated_token_program",
1153
+ docs: ["Program account: the Associated Token program."],
1154
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
1810
1155
  },
1811
1156
  {
1812
- docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
1813
1157
  name: "chainlink_program",
1158
+ docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
1814
1159
  },
1160
+ { name: "chainlink_sol_usd_feed", docs: ["Read account: The account providing the SOL/USD price feed data."] },
1161
+ { name: "deposited_token_program", docs: ["Program account: the Token program of the deposited token."] },
1162
+ { name: "nft_token_program", docs: ["Program account: the Token program of the stream NFT."] },
1815
1163
  {
1816
- docs: ["Read account: The account providing the SOL/USD price feed data."],
1817
- name: "chainlink_sol_usd_feed",
1818
- },
1819
- {
1820
- docs: ["Program account: the Token program of the deposited token."],
1821
- name: "deposited_token_program",
1822
- },
1823
- {
1824
- docs: ["Program account: the Token program of the stream NFT."],
1825
- name: "nft_token_program",
1826
- },
1827
- {
1828
- address: "11111111111111111111111111111111",
1829
- docs: ["Program account: the System program."],
1830
1164
  name: "system_program",
1165
+ docs: ["Program account: the System program."],
1166
+ address: "11111111111111111111111111111111",
1831
1167
  },
1832
1168
  ],
1833
1169
  args: [],
1834
- discriminator: [32, 71, 46, 98, 105, 76, 85, 96],
1835
- docs: [
1836
- "Withdraws the maximum withdrawable amount from the stream data ATA to the provided account.",
1837
- "",
1838
- "# Accounts Expected",
1839
- "",
1840
- "Refer to the accounts in [`fn@crate::sablier_lockup::withdraw`].",
1841
- "",
1842
- "# Notes",
1843
- "",
1844
- "Refer to the notes in [`fn@crate::sablier_lockup::withdraw`].",
1845
- "",
1846
- "# Requirements",
1847
- "",
1848
- "Refer to the requirements in [`fn@crate::sablier_lockup::withdraw`].",
1849
- ],
1850
- name: "withdraw_max",
1851
1170
  },
1852
1171
  {
1853
- accounts: [
1854
- {
1855
- docs: ["Read account: the account storing stream details."],
1856
- name: "stream_data",
1857
- pda: {
1858
- seeds: [
1859
- {
1860
- kind: "const",
1861
- value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97],
1862
- },
1863
- {
1864
- kind: "account",
1865
- path: "stream_nft_mint",
1866
- },
1867
- ],
1868
- },
1869
- },
1870
- {
1871
- docs: ["Read account: the mint account for the stream NFT."],
1872
- name: "stream_nft_mint",
1873
- },
1874
- ],
1875
- args: [],
1876
- discriminator: [30, 195, 140, 141, 173, 123, 253, 60],
1172
+ name: "withdrawable_amount_of",
1877
1173
  docs: [
1878
1174
  "Calculates the amount that the recipient can withdraw from the stream, denoted in units of the token's",
1879
1175
  "decimals.",
@@ -1886,34 +1182,25 @@ exports.default = {
1886
1182
  "",
1887
1183
  "- The stream does not exist.",
1888
1184
  ],
1889
- name: "withdrawable_amount_of",
1890
- returns: "u64",
1891
- },
1892
- {
1185
+ discriminator: [30, 195, 140, 141, 173, 123, 253, 60],
1893
1186
  accounts: [
1894
1187
  {
1895
- docs: ["Read account: the treasury account that receives the withdrawal fee."],
1896
- name: "treasury",
1188
+ name: "stream_data",
1189
+ docs: ["Read account: the account storing stream details."],
1897
1190
  pda: {
1898
1191
  seeds: [
1899
- {
1900
- kind: "const",
1901
- value: [116, 114, 101, 97, 115, 117, 114, 121],
1902
- },
1192
+ { kind: "const", value: [115, 116, 114, 101, 97, 109, 95, 100, 97, 116, 97] },
1193
+ { kind: "account", path: "stream_nft_mint" },
1903
1194
  ],
1904
1195
  },
1905
1196
  },
1906
- {
1907
- docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
1908
- name: "chainlink_program",
1909
- },
1910
- {
1911
- docs: ["Read account: The account providing the SOL/USD price feed data."],
1912
- name: "chainlink_sol_usd_feed",
1913
- },
1197
+ { name: "stream_nft_mint", docs: ["Read account: the mint account for the stream NFT."] },
1914
1198
  ],
1915
1199
  args: [],
1916
- discriminator: [55, 255, 88, 224, 223, 23, 97, 140],
1200
+ returns: "u64",
1201
+ },
1202
+ {
1203
+ name: "withdrawal_fee_in_lamports",
1917
1204
  docs: [
1918
1205
  "Calculates the withdrawal fee in lamports, which is equivalent to $1 USD.",
1919
1206
  "",
@@ -1922,211 +1209,140 @@ exports.default = {
1922
1209
  "- `chainlink_program`: The Chainlink program used to retrieve on-chain price feeds.",
1923
1210
  "- `chainlink_sol_usd_feed`: The account providing the SOL/USD price feed data.",
1924
1211
  ],
1925
- name: "withdrawal_fee_in_lamports",
1212
+ discriminator: [55, 255, 88, 224, 223, 23, 97, 140],
1213
+ accounts: [
1214
+ {
1215
+ name: "treasury",
1216
+ docs: ["Read account: the treasury account that receives the withdrawal fee."],
1217
+ pda: { seeds: [{ kind: "const", value: [116, 114, 101, 97, 115, 117, 114, 121] }] },
1218
+ },
1219
+ {
1220
+ name: "chainlink_program",
1221
+ docs: ["Read account: The Chainlink program used to retrieve on-chain price feeds."],
1222
+ },
1223
+ { name: "chainlink_sol_usd_feed", docs: ["Read account: The account providing the SOL/USD price feed data."] },
1224
+ ],
1225
+ args: [],
1926
1226
  returns: "u64",
1927
1227
  },
1928
1228
  ],
1929
- metadata: {
1930
- description: "Created with Anchor",
1931
- name: "sablier_lockup",
1932
- spec: "0.1.0",
1933
- version: "0.1.0",
1934
- },
1229
+ accounts: [
1230
+ { name: "NftCollectionData", discriminator: [159, 26, 37, 150, 44, 84, 171, 172] },
1231
+ { name: "StreamData", discriminator: [61, 89, 148, 141, 154, 81, 86, 113] },
1232
+ { name: "Treasury", discriminator: [238, 239, 123, 238, 89, 1, 168, 253] },
1233
+ ],
1234
+ events: [
1235
+ { name: "CancelLockupStream", discriminator: [82, 106, 117, 112, 153, 245, 190, 66] },
1236
+ { name: "CreateLockupLinearStream", discriminator: [234, 181, 19, 52, 67, 64, 151, 173] },
1237
+ { name: "FeesCollected", discriminator: [233, 23, 117, 225, 107, 178, 254, 8] },
1238
+ { name: "RenounceLockupStream", discriminator: [28, 66, 144, 150, 118, 56, 81, 93] },
1239
+ { name: "WithdrawFromLockupStream", discriminator: [232, 101, 27, 150, 85, 222, 243, 9] },
1240
+ ],
1241
+ errors: [
1242
+ { code: 6000, name: "StreamDepleted", msg: "Can't perform the action on a depleted stream!" },
1243
+ { code: 6001, name: "StreamCanceled", msg: "Can't renounce an already-renounced Stream!" },
1244
+ { code: 6002, name: "StreamIsNotCancelable", msg: "Can't cancel a non-cancelable Stream!" },
1245
+ { code: 6003, name: "StreamSettled", msg: "Can't cancel a settled Stream!" },
1246
+ { code: 6004, name: "CantCollectZeroFees", msg: "Can't collect zero fees!" },
1247
+ { code: 6005, name: "CliffTimeNotLessThanEndTime", msg: "Invalid cliff time of the Stream!" },
1248
+ { code: 6006, name: "CliffTimeZeroUnlockAmountNotZero", msg: "Cliff time zero but unlock amount not zero!" },
1249
+ { code: 6007, name: "DepositAmountZero", msg: "Invalid deposit amount!" },
1250
+ { code: 6008, name: "StartTimeNotLessThanCliffTime", msg: "Start time must be less than cliff time!" },
1251
+ { code: 6009, name: "StartTimeNotLessThanEndTime", msg: "Start time must be less than end time!" },
1252
+ { code: 6010, name: "StartTimeZero", msg: "Start time can't be zero!" },
1253
+ { code: 6011, name: "UnlockAmountsSumTooHigh", msg: "Unlock amounts sum is greater than deposit amount!" },
1254
+ { code: 6012, name: "StreamAlreadyNonCancelable", msg: "Can't renounce a non-cancelable Stream!" },
1255
+ { code: 6013, name: "Overdraw", msg: "Attempting to withdraw more than available in the stream!" },
1256
+ { code: 6014, name: "WithdrawAmountZero", msg: "Can't withdraw a zero amount!" },
1257
+ ],
1935
1258
  types: [
1936
1259
  {
1937
1260
  name: "Amounts",
1938
1261
  type: {
1262
+ kind: "struct",
1939
1263
  fields: [
1940
- {
1941
- name: "start_unlock",
1942
- type: "u64",
1943
- },
1944
- {
1945
- name: "cliff_unlock",
1946
- type: "u64",
1947
- },
1948
- {
1949
- name: "deposited",
1950
- type: "u64",
1951
- },
1952
- {
1953
- name: "refunded",
1954
- type: "u64",
1955
- },
1956
- {
1957
- name: "withdrawn",
1958
- type: "u64",
1959
- },
1264
+ { name: "start_unlock", type: "u64" },
1265
+ { name: "cliff_unlock", type: "u64" },
1266
+ { name: "deposited", type: "u64" },
1267
+ { name: "refunded", type: "u64" },
1268
+ { name: "withdrawn", type: "u64" },
1960
1269
  ],
1961
- kind: "struct",
1962
1270
  },
1963
1271
  },
1964
1272
  {
1965
1273
  name: "CancelLockupStream",
1966
1274
  type: {
1275
+ kind: "struct",
1967
1276
  fields: [
1968
- {
1969
- name: "deposited_token_mint",
1970
- type: "pubkey",
1971
- },
1972
- {
1973
- name: "recipient_amount",
1974
- type: "u64",
1975
- },
1976
- {
1977
- name: "sender_amount",
1978
- type: "u64",
1979
- },
1980
- {
1981
- name: "stream_data",
1982
- type: "pubkey",
1983
- },
1984
- {
1985
- name: "stream_nft_mint",
1986
- type: "pubkey",
1987
- },
1277
+ { name: "deposited_token_mint", type: "pubkey" },
1278
+ { name: "recipient_amount", type: "u64" },
1279
+ { name: "sender_amount", type: "u64" },
1280
+ { name: "stream_data", type: "pubkey" },
1281
+ { name: "stream_nft_mint", type: "pubkey" },
1988
1282
  ],
1989
- kind: "struct",
1990
1283
  },
1991
1284
  },
1992
1285
  {
1993
1286
  name: "CreateLockupLinearStream",
1994
1287
  type: {
1288
+ kind: "struct",
1995
1289
  fields: [
1996
- {
1997
- name: "deposit_token_decimals",
1998
- type: "u8",
1999
- },
2000
- {
2001
- name: "deposit_token_mint",
2002
- type: "pubkey",
2003
- },
2004
- {
2005
- name: "recipient",
2006
- type: "pubkey",
2007
- },
2008
- {
2009
- name: "salt",
2010
- type: "u128",
2011
- },
2012
- {
2013
- name: "stream_data",
2014
- type: "pubkey",
2015
- },
2016
- {
2017
- name: "stream_nft_mint",
2018
- type: "pubkey",
2019
- },
1290
+ { name: "deposit_token_decimals", type: "u8" },
1291
+ { name: "deposit_token_mint", type: "pubkey" },
1292
+ { name: "recipient", type: "pubkey" },
1293
+ { name: "salt", type: "u128" },
1294
+ { name: "stream_data", type: "pubkey" },
1295
+ { name: "stream_nft_mint", type: "pubkey" },
2020
1296
  ],
2021
- kind: "struct",
2022
1297
  },
2023
1298
  },
2024
1299
  {
2025
1300
  name: "FeesCollected",
2026
1301
  type: {
1302
+ kind: "struct",
2027
1303
  fields: [
2028
- {
2029
- name: "fee_amount",
2030
- type: "u64",
2031
- },
2032
- {
2033
- name: "fee_collector",
2034
- type: "pubkey",
2035
- },
2036
- {
2037
- name: "fee_recipient",
2038
- type: "pubkey",
2039
- },
1304
+ { name: "fee_amount", type: "u64" },
1305
+ { name: "fee_collector", type: "pubkey" },
1306
+ { name: "fee_recipient", type: "pubkey" },
2040
1307
  ],
2041
- kind: "struct",
2042
1308
  },
2043
1309
  },
2044
1310
  {
2045
1311
  name: "NftCollectionData",
2046
1312
  type: {
1313
+ kind: "struct",
2047
1314
  fields: [
2048
- {
2049
- name: "total_supply",
2050
- type: "u64",
2051
- },
2052
- {
2053
- name: "bump",
2054
- type: "u8",
2055
- },
1315
+ { name: "total_supply", type: "u64" },
1316
+ { name: "bump", type: "u8" },
2056
1317
  ],
2057
- kind: "struct",
2058
1318
  },
2059
1319
  },
2060
1320
  {
2061
1321
  name: "RenounceLockupStream",
2062
1322
  type: {
1323
+ kind: "struct",
2063
1324
  fields: [
2064
- {
2065
- name: "deposited_token_mint",
2066
- type: "pubkey",
2067
- },
2068
- {
2069
- name: "stream_data",
2070
- type: "pubkey",
2071
- },
2072
- {
2073
- name: "stream_nft_mint",
2074
- type: "pubkey",
2075
- },
1325
+ { name: "deposited_token_mint", type: "pubkey" },
1326
+ { name: "stream_data", type: "pubkey" },
1327
+ { name: "stream_nft_mint", type: "pubkey" },
2076
1328
  ],
2077
- kind: "struct",
2078
1329
  },
2079
1330
  },
2080
1331
  {
2081
1332
  name: "StreamData",
2082
1333
  type: {
1334
+ kind: "struct",
2083
1335
  fields: [
2084
- {
2085
- name: "amounts",
2086
- type: {
2087
- defined: {
2088
- name: "Amounts",
2089
- },
2090
- },
2091
- },
2092
- {
2093
- name: "deposited_token_mint",
2094
- type: "pubkey",
2095
- },
2096
- {
2097
- name: "bump",
2098
- type: "u8",
2099
- },
2100
- {
2101
- name: "salt",
2102
- type: "u128",
2103
- },
2104
- {
2105
- name: "is_cancelable",
2106
- type: "bool",
2107
- },
2108
- {
2109
- name: "is_depleted",
2110
- type: "bool",
2111
- },
2112
- {
2113
- name: "timestamps",
2114
- type: {
2115
- defined: {
2116
- name: "Timestamps",
2117
- },
2118
- },
2119
- },
2120
- {
2121
- name: "sender",
2122
- type: "pubkey",
2123
- },
2124
- {
2125
- name: "was_canceled",
2126
- type: "bool",
2127
- },
1336
+ { name: "amounts", type: { defined: { name: "Amounts" } } },
1337
+ { name: "deposited_token_mint", type: "pubkey" },
1338
+ { name: "bump", type: "u8" },
1339
+ { name: "salt", type: "u128" },
1340
+ { name: "is_cancelable", type: "bool" },
1341
+ { name: "is_depleted", type: "bool" },
1342
+ { name: "timestamps", type: { defined: { name: "Timestamps" } } },
1343
+ { name: "sender", type: "pubkey" },
1344
+ { name: "was_canceled", type: "bool" },
2128
1345
  ],
2129
- kind: "struct",
2130
1346
  },
2131
1347
  },
2132
1348
  {
@@ -2134,97 +1350,51 @@ exports.default = {
2134
1350
  type: {
2135
1351
  kind: "enum",
2136
1352
  variants: [
2137
- {
2138
- name: "Pending",
2139
- },
2140
- {
2141
- name: "Streaming",
2142
- },
2143
- {
2144
- name: "Settled",
2145
- },
2146
- {
2147
- name: "Canceled",
2148
- },
2149
- {
2150
- name: "Depleted",
2151
- },
1353
+ { name: "Pending" },
1354
+ { name: "Streaming" },
1355
+ { name: "Settled" },
1356
+ { name: "Canceled" },
1357
+ { name: "Depleted" },
2152
1358
  ],
2153
1359
  },
2154
1360
  },
2155
1361
  {
2156
- docs: ["Groups the timestamps for a Lockup stream."],
2157
1362
  name: "Timestamps",
1363
+ docs: ["Groups the timestamps for a Lockup stream."],
2158
1364
  type: {
1365
+ kind: "struct",
2159
1366
  fields: [
2160
- {
2161
- name: "cliff",
2162
- type: "u64",
2163
- },
2164
- {
2165
- name: "end",
2166
- type: "u64",
2167
- },
2168
- {
2169
- name: "start",
2170
- type: "u64",
2171
- },
1367
+ { name: "cliff", type: "u64" },
1368
+ { name: "end", type: "u64" },
1369
+ { name: "start", type: "u64" },
2172
1370
  ],
2173
- kind: "struct",
2174
1371
  },
2175
1372
  },
2176
1373
  {
2177
1374
  name: "Treasury",
2178
1375
  type: {
1376
+ kind: "struct",
2179
1377
  fields: [
2180
- {
2181
- name: "bump",
2182
- type: "u8",
2183
- },
2184
- {
2185
- name: "fee_collector",
2186
- type: "pubkey",
2187
- },
2188
- {
2189
- name: "chainlink_program",
2190
- type: "pubkey",
2191
- },
2192
- {
2193
- name: "chainlink_sol_usd_feed",
2194
- type: "pubkey",
2195
- },
1378
+ { name: "bump", type: "u8" },
1379
+ { name: "fee_collector", type: "pubkey" },
1380
+ { name: "chainlink_program", type: "pubkey" },
1381
+ { name: "chainlink_sol_usd_feed", type: "pubkey" },
2196
1382
  ],
2197
- kind: "struct",
2198
1383
  },
2199
1384
  },
2200
1385
  {
2201
1386
  name: "WithdrawFromLockupStream",
2202
1387
  type: {
1388
+ kind: "struct",
2203
1389
  fields: [
2204
- {
2205
- name: "deposited_token_mint",
2206
- type: "pubkey",
2207
- },
2208
- {
2209
- name: "fee_in_lamports",
2210
- type: "u64",
2211
- },
2212
- {
2213
- name: "stream_data",
2214
- type: "pubkey",
2215
- },
2216
- {
2217
- name: "stream_nft_mint",
2218
- type: "pubkey",
2219
- },
2220
- {
2221
- name: "withdrawn_amount",
2222
- type: "u64",
2223
- },
1390
+ { name: "deposited_token_mint", type: "pubkey" },
1391
+ { name: "fee_in_lamports", type: "u64" },
1392
+ { name: "stream_data", type: "pubkey" },
1393
+ { name: "stream_nft_mint", type: "pubkey" },
1394
+ { name: "withdrawn_amount", type: "u64" },
2224
1395
  ],
2225
- kind: "struct",
2226
1396
  },
2227
1397
  },
2228
1398
  ],
2229
1399
  };
2230
- //# sourceMappingURL=SablierLockupLinearV10.js.map
1400
+ //# sourceMappingURL=idl.js.map