bitbadgesjs-sdk 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/amino/objectConverter.d.ts +1 -1
  2. package/dist/amino/objectConverter.d.ts.map +1 -1
  3. package/dist/amino/registry.js +3 -3
  4. package/dist/amino/registry.js.map +1 -1
  5. package/dist/eip712/payload/createTypedData.d.ts +1 -1
  6. package/dist/eip712/payload/createTypedData.d.ts.map +1 -1
  7. package/dist/eip712/payload/createTypes/parseMessage.d.ts +1 -1
  8. package/dist/eip712/payload/createTypes/parseMessage.d.ts.map +1 -1
  9. package/dist/eip712/payload/createTypes/parseMessage.js.map +1 -1
  10. package/dist/eip712/payload/createTypes/parsePayload.d.ts +1 -1
  11. package/dist/eip712/payload/createTypes/parsePayload.d.ts.map +1 -1
  12. package/dist/eip712/payload/createTypes/parsePayload.js.map +1 -1
  13. package/dist/eip712/payload/flattenPayload.d.ts +1 -1
  14. package/dist/eip712/payload/flattenPayload.d.ts.map +1 -1
  15. package/dist/eip712/payload/samples/getSampleMsg.js +1 -1
  16. package/dist/eip712/payload/samples/getSampleMsg.js.map +1 -1
  17. package/dist/index.d.ts +9 -9
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +9 -9
  20. package/dist/index.js.map +1 -1
  21. package/dist/transactions/messages/base.d.ts +3 -3
  22. package/dist/transactions/messages/base.d.ts.map +1 -1
  23. package/dist/transactions/messages/base.js +6 -9
  24. package/dist/transactions/messages/base.js.map +1 -1
  25. package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.d.ts +12 -5
  26. package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.d.ts.map +1 -1
  27. package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js +26 -14
  28. package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js.map +1 -1
  29. package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.d.ts +24 -6
  30. package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.d.ts.map +1 -1
  31. package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js +75 -43
  32. package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js.map +1 -1
  33. package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.d.ts +14 -6
  34. package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.d.ts.map +1 -1
  35. package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js +32 -21
  36. package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js.map +1 -1
  37. package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.d.ts +14 -6
  38. package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.d.ts.map +1 -1
  39. package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js +35 -23
  40. package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js.map +1 -1
  41. package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.d.ts +22 -6
  42. package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.d.ts.map +1 -1
  43. package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js +118 -55
  44. package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js.map +1 -1
  45. package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts +11 -6
  46. package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.d.ts.map +1 -1
  47. package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js +108 -52
  48. package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
  49. package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts +23 -6
  50. package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.d.ts.map +1 -1
  51. package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js +71 -31
  52. package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js.map +1 -1
  53. package/dist/transactions/messages/bitbadges/protocols/msgCreateProtocol.d.ts +15 -3
  54. package/dist/transactions/messages/bitbadges/protocols/msgCreateProtocol.d.ts.map +1 -1
  55. package/dist/transactions/messages/bitbadges/protocols/msgCreateProtocol.js +35 -6
  56. package/dist/transactions/messages/bitbadges/protocols/msgCreateProtocol.js.map +1 -1
  57. package/dist/transactions/messages/bitbadges/protocols/msgDeleteProtocol.d.ts +12 -5
  58. package/dist/transactions/messages/bitbadges/protocols/msgDeleteProtocol.d.ts.map +1 -1
  59. package/dist/transactions/messages/bitbadges/protocols/msgDeleteProtocol.js +26 -6
  60. package/dist/transactions/messages/bitbadges/protocols/msgDeleteProtocol.js.map +1 -1
  61. package/dist/transactions/messages/bitbadges/protocols/msgSetCollectionForProtocol.d.ts +14 -4
  62. package/dist/transactions/messages/bitbadges/protocols/msgSetCollectionForProtocol.d.ts.map +1 -1
  63. package/dist/transactions/messages/bitbadges/protocols/msgSetCollectionForProtocol.js +36 -6
  64. package/dist/transactions/messages/bitbadges/protocols/msgSetCollectionForProtocol.js.map +1 -1
  65. package/dist/transactions/messages/bitbadges/protocols/msgUnsetCollectionForProtocol.d.ts +12 -3
  66. package/dist/transactions/messages/bitbadges/protocols/msgUnsetCollectionForProtocol.d.ts.map +1 -1
  67. package/dist/transactions/messages/bitbadges/protocols/msgUnsetCollectionForProtocol.js +26 -6
  68. package/dist/transactions/messages/bitbadges/protocols/msgUnsetCollectionForProtocol.js.map +1 -1
  69. package/dist/transactions/messages/bitbadges/protocols/msgUpdateProtocol.d.ts +15 -3
  70. package/dist/transactions/messages/bitbadges/protocols/msgUpdateProtocol.d.ts.map +1 -1
  71. package/dist/transactions/messages/bitbadges/protocols/msgUpdateProtocol.js +35 -6
  72. package/dist/transactions/messages/bitbadges/protocols/msgUpdateProtocol.js.map +1 -1
  73. package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.d.ts +14 -3
  74. package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.d.ts.map +1 -1
  75. package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js +32 -6
  76. package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js.map +1 -1
  77. package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.d.ts +14 -3
  78. package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.d.ts.map +1 -1
  79. package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js +32 -11
  80. package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js.map +1 -1
  81. package/dist/transactions/messages/bitbadges/wasmx/msgStoreCodeCompat.d.ts +15 -2
  82. package/dist/transactions/messages/bitbadges/wasmx/msgStoreCodeCompat.d.ts.map +1 -1
  83. package/dist/transactions/messages/bitbadges/wasmx/msgStoreCodeCompat.js +26 -9
  84. package/dist/transactions/messages/bitbadges/wasmx/msgStoreCodeCompat.js.map +1 -1
  85. package/dist/transactions/messages/common.d.ts +1 -1
  86. package/dist/transactions/messages/common.d.ts.map +1 -1
  87. package/dist/transactions/messages/msgSend.d.ts +2 -2
  88. package/dist/transactions/messages/msgSend.d.ts.map +1 -1
  89. package/dist/transactions/messages/transaction.d.ts +2 -2
  90. package/dist/transactions/messages/transaction.d.ts.map +1 -1
  91. package/dist/transactions/messages/transaction.js +1 -1
  92. package/dist/transactions/messages/transaction.js.map +1 -1
  93. package/dist/transactions/messages/txRaw.d.ts +2 -2
  94. package/dist/transactions/messages/txRaw.d.ts.map +1 -1
  95. package/dist/transactions/messages/txRaw.js.map +1 -1
  96. package/dist/transactions/messages/web3Extension.d.ts +2 -2
  97. package/dist/transactions/messages/web3Extension.d.ts.map +1 -1
  98. package/dist/transactions/messages/web3Extension.js +4 -4
  99. package/dist/transactions/messages/web3Extension.js.map +1 -1
  100. package/dist/tsconfig.build.tsbuildinfo +1 -1
  101. package/dist/types/badges/aminoRegistry.d.ts +3 -0
  102. package/dist/types/badges/aminoRegistry.d.ts.map +1 -0
  103. package/dist/types/badges/aminoRegistry.js.map +1 -0
  104. package/dist/{proto-types → types}/badges/string-numbers.d.ts +2 -2
  105. package/dist/types/badges/string-numbers.d.ts.map +1 -0
  106. package/dist/types/badges/string-numbers.js.map +1 -0
  107. package/dist/types/badges/typeutils/approvals.d.ts +320 -0
  108. package/dist/types/badges/typeutils/approvals.d.ts.map +1 -0
  109. package/dist/types/badges/typeutils/approvals.js +690 -0
  110. package/dist/types/badges/typeutils/approvals.js.map +1 -0
  111. package/dist/types/badges/typeutils/permissions.d.ts +230 -0
  112. package/dist/types/badges/typeutils/permissions.d.ts.map +1 -0
  113. package/dist/types/badges/typeutils/permissions.js +675 -0
  114. package/dist/types/badges/typeutils/permissions.js.map +1 -0
  115. package/dist/types/badges/typeutils/typeUtils.d.ts +411 -0
  116. package/dist/types/badges/typeutils/typeUtils.d.ts.map +1 -0
  117. package/dist/types/badges/typeutils/typeUtils.js +1086 -0
  118. package/dist/types/badges/typeutils/typeUtils.js.map +1 -0
  119. package/dist/{proto-types → types}/base.d.ts +1 -1
  120. package/dist/types/base.d.ts.map +1 -0
  121. package/dist/types/base.js.map +1 -0
  122. package/dist/types/protocols/aminoRegistry.d.ts +3 -0
  123. package/dist/types/protocols/aminoRegistry.d.ts.map +1 -0
  124. package/dist/types/protocols/aminoRegistry.js.map +1 -0
  125. package/dist/types/protocols/types.d.ts +24 -0
  126. package/dist/types/protocols/types.d.ts.map +1 -0
  127. package/dist/types/protocols/types.js +50 -0
  128. package/dist/types/protocols/types.js.map +1 -0
  129. package/dist/types/txRaw.d.ts.map +1 -0
  130. package/dist/types/txRaw.js.map +1 -0
  131. package/dist/{proto-types → types}/utils.d.ts +2 -1
  132. package/dist/types/utils.d.ts.map +1 -0
  133. package/dist/types/utils.js.map +1 -0
  134. package/dist/types/wasmx/aminoRegistry.d.ts +3 -0
  135. package/dist/types/wasmx/aminoRegistry.d.ts.map +1 -0
  136. package/dist/types/wasmx/aminoRegistry.js.map +1 -0
  137. package/dist/{proto-types → types}/web3Extension.d.ts +1 -1
  138. package/dist/types/web3Extension.d.ts.map +1 -0
  139. package/dist/{proto-types → types}/web3Extension.js +3 -3
  140. package/dist/types/web3Extension.js.map +1 -0
  141. package/dist/utils/addressLists.d.ts +1 -4
  142. package/dist/utils/addressLists.d.ts.map +1 -1
  143. package/dist/utils/addressLists.js +28 -44
  144. package/dist/utils/addressLists.js.map +1 -1
  145. package/dist/utils/aliases.d.ts +1 -1
  146. package/dist/utils/aliases.d.ts.map +1 -1
  147. package/dist/utils/api-sdk.d.ts +40 -45
  148. package/dist/utils/api-sdk.d.ts.map +1 -1
  149. package/dist/utils/api-sdk.js +84 -137
  150. package/dist/utils/api-sdk.js.map +1 -1
  151. package/dist/utils/api-utils.d.ts +3 -2
  152. package/dist/utils/api-utils.d.ts.map +1 -1
  153. package/dist/utils/api-utils.js +19 -37
  154. package/dist/utils/api-utils.js.map +1 -1
  155. package/dist/utils/approved_transfers_casts.d.ts.map +1 -1
  156. package/dist/utils/approved_transfers_casts.js +27 -24
  157. package/dist/utils/approved_transfers_casts.js.map +1 -1
  158. package/dist/utils/badgeMetadata.d.ts +4 -4
  159. package/dist/utils/badgeMetadata.d.ts.map +1 -1
  160. package/dist/utils/badgeMetadata.js +19 -17
  161. package/dist/utils/badgeMetadata.js.map +1 -1
  162. package/dist/utils/balances.d.ts +12 -16
  163. package/dist/utils/balances.d.ts.map +1 -1
  164. package/dist/utils/balances.js +119 -141
  165. package/dist/utils/balances.js.map +1 -1
  166. package/dist/utils/batch-utils.d.ts +11 -4
  167. package/dist/utils/batch-utils.d.ts.map +1 -1
  168. package/dist/utils/batch-utils.js +41 -20
  169. package/dist/utils/batch-utils.js.map +1 -1
  170. package/dist/utils/chains.d.ts +0 -2
  171. package/dist/utils/chains.d.ts.map +1 -1
  172. package/dist/utils/chains.js +12 -15
  173. package/dist/utils/chains.js.map +1 -1
  174. package/dist/utils/constants.d.ts.map +1 -1
  175. package/dist/utils/constants.js +5 -4
  176. package/dist/utils/constants.js.map +1 -1
  177. package/dist/utils/display.d.ts +1 -1
  178. package/dist/utils/display.d.ts.map +1 -1
  179. package/dist/utils/display.js +7 -5
  180. package/dist/utils/display.js.map +1 -1
  181. package/dist/utils/distribution.d.ts +4 -4
  182. package/dist/utils/distribution.d.ts.map +1 -1
  183. package/dist/utils/distribution.js +32 -31
  184. package/dist/utils/distribution.js.map +1 -1
  185. package/dist/utils/firstMatches.d.ts +2 -2
  186. package/dist/utils/firstMatches.d.ts.map +1 -1
  187. package/dist/utils/firstMatches.js +20 -19
  188. package/dist/utils/firstMatches.js.map +1 -1
  189. package/dist/utils/index.d.ts +1 -2
  190. package/dist/utils/index.d.ts.map +1 -1
  191. package/dist/utils/index.js +1 -2
  192. package/dist/utils/index.js.map +1 -1
  193. package/dist/utils/math.d.ts +8 -2
  194. package/dist/utils/math.d.ts.map +1 -1
  195. package/dist/utils/math.js +63 -15
  196. package/dist/utils/math.js.map +1 -1
  197. package/dist/utils/metadataIds.d.ts +2 -2
  198. package/dist/utils/metadataIds.d.ts.map +1 -1
  199. package/dist/utils/metadataIds.js +8 -8
  200. package/dist/utils/metadataIds.js.map +1 -1
  201. package/dist/utils/node-rest-api/balances.d.ts +1 -1
  202. package/dist/utils/node-rest-api/balances.d.ts.map +1 -1
  203. package/dist/utils/node-rest-api/gov.d.ts +1 -1
  204. package/dist/utils/node-rest-api/gov.d.ts.map +1 -1
  205. package/dist/utils/node-rest-api/staking.d.ts +1 -1
  206. package/dist/utils/node-rest-api/staking.d.ts.map +1 -1
  207. package/dist/utils/overlaps.d.ts.map +1 -1
  208. package/dist/utils/overlaps.js +67 -67
  209. package/dist/utils/overlaps.js.map +1 -1
  210. package/dist/utils/permission_checks.d.ts +10 -10
  211. package/dist/utils/permission_checks.d.ts.map +1 -1
  212. package/dist/utils/permission_checks.js +58 -57
  213. package/dist/utils/permission_checks.js.map +1 -1
  214. package/dist/utils/permissions.d.ts +2 -2
  215. package/dist/utils/permissions.d.ts.map +1 -1
  216. package/dist/utils/permissions.js +20 -18
  217. package/dist/utils/permissions.js.map +1 -1
  218. package/dist/utils/types/activity.d.ts +51 -74
  219. package/dist/utils/types/activity.d.ts.map +1 -1
  220. package/dist/utils/types/activity.js +118 -105
  221. package/dist/utils/types/activity.js.map +1 -1
  222. package/dist/utils/types/api.d.ts +349 -134
  223. package/dist/utils/types/api.d.ts.map +1 -1
  224. package/dist/utils/types/api.js +512 -248
  225. package/dist/utils/types/api.js.map +1 -1
  226. package/dist/utils/types/coin.d.ts +9 -3
  227. package/dist/utils/types/coin.d.ts.map +1 -1
  228. package/dist/utils/types/coin.js +17 -9
  229. package/dist/utils/types/coin.js.map +1 -1
  230. package/dist/utils/types/collections.d.ts +263 -26
  231. package/dist/utils/types/collections.d.ts.map +1 -1
  232. package/dist/utils/types/collections.js +717 -99
  233. package/dist/utils/types/collections.js.map +1 -1
  234. package/dist/utils/types/db.d.ts +434 -187
  235. package/dist/utils/types/db.d.ts.map +1 -1
  236. package/dist/utils/types/db.js +859 -502
  237. package/dist/utils/types/db.js.map +1 -1
  238. package/dist/utils/types/indexer.d.ts +2 -2
  239. package/dist/utils/types/indexer.d.ts.map +1 -1
  240. package/dist/utils/types/metadata.d.ts +77 -9
  241. package/dist/utils/types/metadata.d.ts.map +1 -1
  242. package/dist/utils/types/metadata.js +133 -18
  243. package/dist/utils/types/metadata.js.map +1 -1
  244. package/dist/utils/types/routes.d.ts +49 -47
  245. package/dist/utils/types/routes.d.ts.map +1 -1
  246. package/dist/utils/types/routes.js +50 -93
  247. package/dist/utils/types/routes.js.map +1 -1
  248. package/dist/utils/types/schemas.d.ts +120 -0
  249. package/dist/utils/types/schemas.d.ts.map +1 -0
  250. package/dist/utils/types/schemas.js +261 -0
  251. package/dist/utils/types/schemas.js.map +1 -0
  252. package/dist/utils/types/transfers.d.ts +11 -5
  253. package/dist/utils/types/transfers.d.ts.map +1 -1
  254. package/dist/utils/types/transfers.js +22 -13
  255. package/dist/utils/types/transfers.js.map +1 -1
  256. package/dist/utils/types/types.d.ts +6 -6
  257. package/dist/utils/types/types.d.ts.map +1 -1
  258. package/dist/utils/types/types.js +3 -6
  259. package/dist/utils/types/types.js.map +1 -1
  260. package/dist/utils/types/users.d.ts +125 -15
  261. package/dist/utils/types/users.d.ts.map +1 -1
  262. package/dist/utils/types/users.js +275 -57
  263. package/dist/utils/types/users.js.map +1 -1
  264. package/dist/utils/uintRanges.d.ts +10 -14
  265. package/dist/utils/uintRanges.d.ts.map +1 -1
  266. package/dist/utils/uintRanges.js +53 -65
  267. package/dist/utils/uintRanges.js.map +1 -1
  268. package/dist/utils/update_checks.d.ts +2 -2
  269. package/dist/utils/update_checks.d.ts.map +1 -1
  270. package/dist/utils/update_checks.js +247 -185
  271. package/dist/utils/update_checks.js.map +1 -1
  272. package/dist/utils/userApprovals.d.ts.map +1 -1
  273. package/dist/utils/userApprovals.js +19 -34
  274. package/dist/utils/userApprovals.js.map +1 -1
  275. package/dist/utils/validate_permissions_updates.d.ts +2 -2
  276. package/dist/utils/validate_permissions_updates.d.ts.map +1 -1
  277. package/dist/utils/validate_permissions_updates.js.map +1 -1
  278. package/package.json +8 -16
  279. package/dist/proto-types/badges/aminoRegistry.d.ts +0 -3
  280. package/dist/proto-types/badges/aminoRegistry.d.ts.map +0 -1
  281. package/dist/proto-types/badges/aminoRegistry.js.map +0 -1
  282. package/dist/proto-types/badges/string-numbers.d.ts.map +0 -1
  283. package/dist/proto-types/badges/string-numbers.js.map +0 -1
  284. package/dist/proto-types/badges/typeutils/approvals.d.ts +0 -127
  285. package/dist/proto-types/badges/typeutils/approvals.d.ts.map +0 -1
  286. package/dist/proto-types/badges/typeutils/approvals.js +0 -209
  287. package/dist/proto-types/badges/typeutils/approvals.js.map +0 -1
  288. package/dist/proto-types/badges/typeutils/permissions.d.ts +0 -88
  289. package/dist/proto-types/badges/typeutils/permissions.d.ts.map +0 -1
  290. package/dist/proto-types/badges/typeutils/permissions.js +0 -124
  291. package/dist/proto-types/badges/typeutils/permissions.js.map +0 -1
  292. package/dist/proto-types/badges/typeutils/typeUtils.d.ts +0 -119
  293. package/dist/proto-types/badges/typeutils/typeUtils.d.ts.map +0 -1
  294. package/dist/proto-types/badges/typeutils/typeUtils.js +0 -146
  295. package/dist/proto-types/badges/typeutils/typeUtils.js.map +0 -1
  296. package/dist/proto-types/base.d.ts.map +0 -1
  297. package/dist/proto-types/base.js.map +0 -1
  298. package/dist/proto-types/protocols/aminoRegistry.d.ts +0 -3
  299. package/dist/proto-types/protocols/aminoRegistry.d.ts.map +0 -1
  300. package/dist/proto-types/protocols/aminoRegistry.js.map +0 -1
  301. package/dist/proto-types/protocols/types.d.ts +0 -8
  302. package/dist/proto-types/protocols/types.d.ts.map +0 -1
  303. package/dist/proto-types/protocols/types.js +0 -3
  304. package/dist/proto-types/protocols/types.js.map +0 -1
  305. package/dist/proto-types/txRaw.d.ts.map +0 -1
  306. package/dist/proto-types/txRaw.js.map +0 -1
  307. package/dist/proto-types/utils.d.ts.map +0 -1
  308. package/dist/proto-types/utils.js.map +0 -1
  309. package/dist/proto-types/wasmx/aminoRegistry.d.ts +0 -3
  310. package/dist/proto-types/wasmx/aminoRegistry.d.ts.map +0 -1
  311. package/dist/proto-types/wasmx/aminoRegistry.js.map +0 -1
  312. package/dist/proto-types/web3Extension.d.ts.map +0 -1
  313. package/dist/proto-types/web3Extension.js.map +0 -1
  314. package/dist/utils/collections.d.ts +0 -7
  315. package/dist/utils/collections.d.ts.map +0 -1
  316. package/dist/utils/collections.js +0 -99
  317. package/dist/utils/collections.js.map +0 -1
  318. package/dist/utils/timeline_helpers.d.ts +0 -30
  319. package/dist/utils/timeline_helpers.d.ts.map +0 -1
  320. package/dist/utils/timeline_helpers.js +0 -74
  321. package/dist/utils/timeline_helpers.js.map +0 -1
  322. package/dist/utils/timelines.d.ts +0 -32
  323. package/dist/utils/timelines.d.ts.map +0 -1
  324. package/dist/utils/timelines.js +0 -106
  325. package/dist/utils/timelines.js.map +0 -1
  326. package/dist/utils/types/utils.d.ts +0 -2
  327. package/dist/utils/types/utils.d.ts.map +0 -1
  328. package/dist/utils/types/utils.js +0 -26
  329. package/dist/utils/types/utils.js.map +0 -1
  330. package/dist/utils/utils/compare.d.ts +0 -2
  331. package/dist/utils/utils/compare.d.ts.map +0 -1
  332. package/dist/utils/utils/compare.js +0 -42
  333. package/dist/utils/utils/compare.js.map +0 -1
  334. /package/dist/{proto-types → types}/badges/aminoRegistry.js +0 -0
  335. /package/dist/{proto-types → types}/badges/string-numbers.js +0 -0
  336. /package/dist/{proto-types → types}/base.js +0 -0
  337. /package/dist/{proto-types → types}/protocols/aminoRegistry.js +0 -0
  338. /package/dist/{proto-types → types}/txRaw.d.ts +0 -0
  339. /package/dist/{proto-types → types}/txRaw.js +0 -0
  340. /package/dist/{proto-types → types}/utils.js +0 -0
  341. /package/dist/{proto-types → types}/wasmx/aminoRegistry.js +0 -0
@@ -0,0 +1,1086 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IsArchivedTimeline = exports.StandardsTimeline = exports.CustomDataTimeline = exports.OffChainBalancesMetadataTimeline = exports.BadgeMetadataTimeline = exports.CollectionMetadataTimeline = exports.ManagerTimeline = exports.TimelineItem = exports.MerkleProof = exports.MerklePathItem = exports.MerkleChallenge = exports.AmountTrackerIdDetails = exports.ApprovalIdentifierDetails = exports.Transfer = exports.AddressList = exports.Balance = exports.MustOwnBadges = exports.OffChainBalancesMetadata = exports.CollectionMetadata = exports.BadgeMetadata = exports.UintRange = exports.BaseNumberTypeClass = exports.CustomTypeClass = exports.compareCustomTypes = exports.compareNumberTypeConvertibles = exports.deepCopy = exports.compareObjects = void 0;
4
+ const __1 = require("../../..");
5
+ const string_numbers_1 = require("../string-numbers");
6
+ function compareObjects(obj1, obj2) {
7
+ if (obj1 === obj2) {
8
+ return true;
9
+ }
10
+ if (typeof obj1 !== typeof obj2 || typeof obj1 !== 'object' || obj1 === null || obj2 === null) {
11
+ return false;
12
+ }
13
+ if (Array.isArray(obj1) !== Array.isArray(obj2)) {
14
+ return false;
15
+ }
16
+ if (Array.isArray(obj1)) {
17
+ if (obj1.length !== obj2.length) {
18
+ return false;
19
+ }
20
+ for (let i = 0; i < obj1.length; i++) {
21
+ if (!compareObjects(obj1[i], obj2[i])) {
22
+ return false;
23
+ }
24
+ }
25
+ }
26
+ else {
27
+ const keys1 = Object.keys(obj1);
28
+ const keys2 = Object.keys(obj2);
29
+ if (keys1.length !== keys2.length) {
30
+ return false;
31
+ }
32
+ for (const key of keys1) {
33
+ if (!obj2.hasOwnProperty(key) || !compareObjects(obj1[key], obj2[key])) {
34
+ return false;
35
+ }
36
+ }
37
+ }
38
+ if (typeof obj1 === 'bigint' || typeof obj2 === 'bigint') {
39
+ return BigInt(obj1) === BigInt(obj2);
40
+ }
41
+ return true;
42
+ }
43
+ exports.compareObjects = compareObjects;
44
+ function deepCopy(obj) {
45
+ return deepCopyWithBigInts(obj);
46
+ }
47
+ exports.deepCopy = deepCopy;
48
+ function deepCopyWithBigInts(obj) {
49
+ if (typeof obj !== 'object' || obj === null) {
50
+ return obj;
51
+ }
52
+ if (typeof obj === 'bigint') {
53
+ return BigInt(obj);
54
+ }
55
+ if (Array.isArray(obj)) {
56
+ return obj.map((item) => deepCopyWithBigInts(item));
57
+ }
58
+ const copiedObj = {};
59
+ for (const key in obj) {
60
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
61
+ copiedObj[key] = deepCopyWithBigInts(obj[key]);
62
+ }
63
+ }
64
+ return copiedObj;
65
+ }
66
+ function compareNumberTypeConvertibles(obj1, obj2, normalizeNumberTypes) {
67
+ if (obj1 === obj2) {
68
+ return true;
69
+ }
70
+ if (obj1 === undefined || obj1 === null || obj2 === undefined || obj2 === null) {
71
+ return false;
72
+ }
73
+ if (normalizeNumberTypes) {
74
+ return compareObjects(obj1.convert(string_numbers_1.BigIntify).toJson(), obj2.convert(string_numbers_1.BigIntify).toJson());
75
+ }
76
+ else {
77
+ return compareObjects(obj1.toJson(), obj2.toJson());
78
+ }
79
+ }
80
+ exports.compareNumberTypeConvertibles = compareNumberTypeConvertibles;
81
+ function compareCustomTypes(obj1, obj2) {
82
+ if (obj1 === obj2) {
83
+ return true;
84
+ }
85
+ if (obj1 === undefined || obj1 === null || obj2 === undefined || obj2 === null) {
86
+ return false;
87
+ }
88
+ return compareObjects(obj1.toJson(), obj2.toJson());
89
+ }
90
+ exports.compareCustomTypes = compareCustomTypes;
91
+ class CustomTypeClass {
92
+ toJson() {
93
+ return (0, __1.convertClassPropertiesToJson)(this);
94
+ }
95
+ toJsonString() {
96
+ return JSON.stringify(this.toJson());
97
+ }
98
+ equals(other) {
99
+ return compareCustomTypes(this, other);
100
+ }
101
+ }
102
+ exports.CustomTypeClass = CustomTypeClass;
103
+ class BaseNumberTypeClass {
104
+ toJson() {
105
+ return (0, __1.convertClassPropertiesToJson)(this);
106
+ }
107
+ toJsonString() {
108
+ return JSON.stringify(this.toJson());
109
+ }
110
+ equals(other, normalizeNumberTypes) {
111
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
112
+ }
113
+ convert(convertFunction) {
114
+ throw new Error('Method not implemented. Must be implemented in the child interface.');
115
+ }
116
+ }
117
+ exports.BaseNumberTypeClass = BaseNumberTypeClass;
118
+ class UintRange extends BaseNumberTypeClass {
119
+ start;
120
+ end;
121
+ constructor(uintRange) {
122
+ super();
123
+ this.start = uintRange.start;
124
+ this.end = uintRange.end;
125
+ }
126
+ static required() {
127
+ return new UintRange({
128
+ start: 0,
129
+ end: 0
130
+ });
131
+ }
132
+ convert(convertFunction) {
133
+ return new UintRange(deepCopy({
134
+ start: convertFunction(this.start),
135
+ end: convertFunction(this.end)
136
+ }));
137
+ }
138
+ toProto() {
139
+ return new __1.proto.badges.UintRange(this.convert(string_numbers_1.Stringify));
140
+ }
141
+ static fromJson(jsonValue, convertFunction, options) {
142
+ return this.convertFromProto(__1.proto.badges.UintRange.fromJson(jsonValue, options), convertFunction);
143
+ }
144
+ static fromJsonString(jsonString, convertFunction, options) {
145
+ return this.convertFromProto(__1.proto.badges.UintRange.fromJsonString(jsonString, options), convertFunction);
146
+ }
147
+ static convertFromProto(item, convertFunction) {
148
+ return new UintRange({
149
+ start: convertFunction(BigInt(item.start)),
150
+ end: convertFunction(BigInt(item.end))
151
+ });
152
+ }
153
+ size() {
154
+ const diff = (0, __1.safeSubtractUints)(this.end, this.start);
155
+ return (0, __1.safeAddKeepLeft)(diff, 1);
156
+ }
157
+ isFull() {
158
+ return BigInt(this.start) == 1n && BigInt(this.end) == __1.GO_MAX_UINT_64;
159
+ }
160
+ static FullRange() {
161
+ return new UintRange({
162
+ start: 1n,
163
+ end: __1.GO_MAX_UINT_64
164
+ });
165
+ }
166
+ overlaps(other) {
167
+ const otherArr = Array.isArray(other) ? other : [other];
168
+ try {
169
+ (0, __1.assertRangesDoNotOverlapAtAll)([this.convert(string_numbers_1.BigIntify)], [...otherArr.map((o) => o.convert(string_numbers_1.BigIntify))]);
170
+ }
171
+ catch (e) {
172
+ return true;
173
+ }
174
+ return false;
175
+ }
176
+ invert(minId = 1n, maxId = __1.GO_MAX_UINT_64) {
177
+ return (0, __1.invertUintRanges)([this.convert(string_numbers_1.BigIntify)], minId, maxId);
178
+ }
179
+ includes(id) {
180
+ return this.start <= id && this.end >= id;
181
+ }
182
+ }
183
+ exports.UintRange = UintRange;
184
+ class BadgeMetadata extends BaseNumberTypeClass {
185
+ uri;
186
+ badgeIds;
187
+ customData;
188
+ constructor(badgeMetadata) {
189
+ super();
190
+ this.uri = badgeMetadata.uri;
191
+ this.badgeIds = badgeMetadata.badgeIds.map((b) => new UintRange(b));
192
+ this.customData = badgeMetadata.customData;
193
+ }
194
+ static required() {
195
+ return new BadgeMetadata({
196
+ uri: '',
197
+ badgeIds: [],
198
+ customData: ''
199
+ });
200
+ }
201
+ convert(convertFunction) {
202
+ return new BadgeMetadata(deepCopy({
203
+ uri: this.uri,
204
+ badgeIds: this.badgeIds.map((b) => b.convert(convertFunction)),
205
+ customData: this.customData
206
+ }));
207
+ }
208
+ toProto() {
209
+ return new __1.proto.badges.BadgeMetadata({
210
+ uri: this.uri,
211
+ badgeIds: this.badgeIds.map((b) => b.toProto()),
212
+ customData: this.customData
213
+ });
214
+ }
215
+ equals(other, normalizeNumberTypes) {
216
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
217
+ }
218
+ static fromJson(jsonValue, convertFunction, options) {
219
+ return this.convertFromProto(__1.proto.badges.BadgeMetadata.fromJson(jsonValue, options), convertFunction);
220
+ }
221
+ static fromJsonString(jsonString, convertFunction, options) {
222
+ return this.convertFromProto(__1.proto.badges.BadgeMetadata.fromJsonString(jsonString, options), convertFunction);
223
+ }
224
+ static convertFromProto(item, convertFunction) {
225
+ return new BadgeMetadata({
226
+ uri: item.uri,
227
+ badgeIds: item.badgeIds.map((b) => UintRange.convertFromProto(b, convertFunction)),
228
+ customData: item.customData
229
+ });
230
+ }
231
+ }
232
+ exports.BadgeMetadata = BadgeMetadata;
233
+ class CollectionMetadata extends CustomTypeClass {
234
+ uri;
235
+ customData;
236
+ constructor(collectionMetadata) {
237
+ super();
238
+ this.uri = collectionMetadata.uri;
239
+ this.customData = collectionMetadata.customData;
240
+ }
241
+ static required() {
242
+ return new CollectionMetadata({
243
+ uri: '',
244
+ customData: ''
245
+ });
246
+ }
247
+ toProto() {
248
+ return new __1.proto.badges.CollectionMetadata({
249
+ uri: this.uri,
250
+ customData: this.customData
251
+ });
252
+ }
253
+ clone() {
254
+ return new CollectionMetadata({ uri: this.uri, customData: this.customData });
255
+ }
256
+ static fromJson(jsonValue, convertFunction, options) {
257
+ return this.convertFromProto(__1.proto.badges.CollectionMetadata.fromJson(jsonValue, options), convertFunction);
258
+ }
259
+ static fromJsonString(jsonString, convertFunction, options) {
260
+ return this.convertFromProto(__1.proto.badges.CollectionMetadata.fromJsonString(jsonString, options), convertFunction);
261
+ }
262
+ static convertFromProto(item, convertFunction) {
263
+ return new CollectionMetadata({
264
+ uri: item.uri,
265
+ customData: item.customData
266
+ });
267
+ }
268
+ }
269
+ exports.CollectionMetadata = CollectionMetadata;
270
+ class OffChainBalancesMetadata extends CustomTypeClass {
271
+ uri;
272
+ customData;
273
+ constructor(offChainBalancesMetadata) {
274
+ super();
275
+ this.uri = offChainBalancesMetadata.uri;
276
+ this.customData = offChainBalancesMetadata.customData;
277
+ }
278
+ static required() {
279
+ return new OffChainBalancesMetadata({
280
+ uri: '',
281
+ customData: ''
282
+ });
283
+ }
284
+ toProto() {
285
+ return new __1.proto.badges.OffChainBalancesMetadata({
286
+ uri: this.uri,
287
+ customData: this.customData
288
+ });
289
+ }
290
+ clone() {
291
+ return new OffChainBalancesMetadata({ uri: this.uri, customData: this.customData });
292
+ }
293
+ static fromJson(jsonValue, convertFunction, options) {
294
+ return this.convertFromProto(__1.proto.badges.OffChainBalancesMetadata.fromJson(jsonValue, options), convertFunction);
295
+ }
296
+ static fromJsonString(jsonString, convertFunction, options) {
297
+ return this.convertFromProto(__1.proto.badges.OffChainBalancesMetadata.fromJsonString(jsonString, options), convertFunction);
298
+ }
299
+ static convertFromProto(item, convertFunction) {
300
+ return new OffChainBalancesMetadata({
301
+ uri: item.uri,
302
+ customData: item.customData
303
+ });
304
+ }
305
+ }
306
+ exports.OffChainBalancesMetadata = OffChainBalancesMetadata;
307
+ class MustOwnBadges extends BaseNumberTypeClass {
308
+ collectionId;
309
+ amountRange;
310
+ ownershipTimes;
311
+ badgeIds;
312
+ overrideWithCurrentTime;
313
+ mustSatisfyForAllAssets;
314
+ constructor(mustOwn) {
315
+ super();
316
+ this.collectionId = mustOwn.collectionId;
317
+ this.amountRange = new UintRange(mustOwn.amountRange);
318
+ this.ownershipTimes = mustOwn.ownershipTimes.map((b) => new UintRange(b));
319
+ this.badgeIds = mustOwn.badgeIds.map((b) => new UintRange(b));
320
+ this.overrideWithCurrentTime = mustOwn.overrideWithCurrentTime;
321
+ this.mustSatisfyForAllAssets = mustOwn.mustSatisfyForAllAssets;
322
+ }
323
+ static required() {
324
+ return new MustOwnBadges({
325
+ collectionId: 0,
326
+ amountRange: UintRange.required(),
327
+ ownershipTimes: [],
328
+ badgeIds: [],
329
+ overrideWithCurrentTime: false,
330
+ mustSatisfyForAllAssets: false
331
+ });
332
+ }
333
+ convert(convertFunction) {
334
+ return new MustOwnBadges(deepCopy({
335
+ collectionId: convertFunction(this.collectionId),
336
+ amountRange: this.amountRange.convert(convertFunction),
337
+ ownershipTimes: this.ownershipTimes.map((b) => b.convert(convertFunction)),
338
+ badgeIds: this.badgeIds.map((b) => b.convert(convertFunction)),
339
+ overrideWithCurrentTime: this.overrideWithCurrentTime,
340
+ mustSatisfyForAllAssets: this.mustSatisfyForAllAssets
341
+ }));
342
+ }
343
+ toProto() {
344
+ return new __1.proto.badges.MustOwnBadges(this.convert(string_numbers_1.Stringify));
345
+ }
346
+ toJson() {
347
+ return (0, __1.convertClassPropertiesToJson)(this);
348
+ }
349
+ toJsonString() {
350
+ return JSON.stringify(this.toJson());
351
+ }
352
+ equals(other, normalizeNumberTypes) {
353
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
354
+ }
355
+ static fromJson(jsonValue, convertFunction, options) {
356
+ return this.convertFromProto(__1.proto.badges.MustOwnBadges.fromJson(jsonValue, options), convertFunction);
357
+ }
358
+ static fromJsonString(jsonString, convertFunction, options) {
359
+ return this.convertFromProto(__1.proto.badges.MustOwnBadges.fromJsonString(jsonString, options), convertFunction);
360
+ }
361
+ static convertFromProto(item, convertFunction) {
362
+ if (!item.amountRange) {
363
+ throw new Error('amountRange is required');
364
+ }
365
+ return new MustOwnBadges({
366
+ collectionId: convertFunction(BigInt(item.collectionId)),
367
+ amountRange: UintRange.convertFromProto(item.amountRange, convertFunction),
368
+ ownershipTimes: item.ownershipTimes.map((b) => UintRange.convertFromProto(b, convertFunction)),
369
+ badgeIds: item.badgeIds.map((b) => UintRange.convertFromProto(b, convertFunction)),
370
+ overrideWithCurrentTime: item.overrideWithCurrentTime,
371
+ mustSatisfyForAllAssets: item.mustSatisfyForAllAssets
372
+ });
373
+ }
374
+ }
375
+ exports.MustOwnBadges = MustOwnBadges;
376
+ class Balance extends BaseNumberTypeClass {
377
+ amount;
378
+ badgeIds;
379
+ ownershipTimes;
380
+ constructor(balance) {
381
+ super();
382
+ this.amount = balance.amount;
383
+ this.badgeIds = balance.badgeIds.map((b) => new UintRange(b));
384
+ this.ownershipTimes = balance.ownershipTimes.map((b) => new UintRange(b));
385
+ }
386
+ static required() {
387
+ return new Balance({
388
+ amount: 0,
389
+ badgeIds: [],
390
+ ownershipTimes: []
391
+ });
392
+ }
393
+ convert(convertFunction) {
394
+ return new Balance(deepCopy({
395
+ amount: convertFunction(this.amount),
396
+ badgeIds: this.badgeIds.map((b) => b.convert(convertFunction)),
397
+ ownershipTimes: this.ownershipTimes.map((b) => b.convert(convertFunction))
398
+ }));
399
+ }
400
+ toProto() {
401
+ return new __1.proto.badges.Balance(this.convert(string_numbers_1.Stringify));
402
+ }
403
+ toJson() {
404
+ return (0, __1.convertClassPropertiesToJson)(this);
405
+ }
406
+ toJsonString() {
407
+ return JSON.stringify(this.toJson());
408
+ }
409
+ equals(other, normalizeNumberTypes) {
410
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
411
+ }
412
+ static fromJson(jsonValue, convertFunction, options) {
413
+ return this.convertFromProto(__1.proto.badges.Balance.fromJson(jsonValue, options), convertFunction);
414
+ }
415
+ static fromJsonString(jsonString, convertFunction, options) {
416
+ return this.convertFromProto(__1.proto.badges.Balance.fromJsonString(jsonString, options), convertFunction);
417
+ }
418
+ static convertFromProto(item, convertFunction) {
419
+ return new Balance({
420
+ amount: convertFunction(BigInt(item.amount)),
421
+ badgeIds: item.badgeIds.map((b) => UintRange.convertFromProto(b, convertFunction)),
422
+ ownershipTimes: item.ownershipTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
423
+ });
424
+ }
425
+ }
426
+ exports.Balance = Balance;
427
+ class AddressList extends CustomTypeClass {
428
+ listId;
429
+ addresses;
430
+ whitelist;
431
+ uri;
432
+ customData;
433
+ createdBy;
434
+ aliasAddress;
435
+ constructor(addressList) {
436
+ super();
437
+ this.listId = addressList.listId;
438
+ this.addresses = addressList.addresses;
439
+ this.whitelist = addressList.whitelist;
440
+ this.uri = addressList.uri;
441
+ this.customData = addressList.customData;
442
+ this.createdBy = addressList.createdBy;
443
+ this.aliasAddress = addressList.aliasAddress;
444
+ }
445
+ static required() {
446
+ return new AddressList({
447
+ listId: '',
448
+ addresses: [],
449
+ whitelist: false,
450
+ uri: '',
451
+ customData: ''
452
+ });
453
+ }
454
+ addDefaults() {
455
+ this.createdBy = this.createdBy ? this.createdBy : '';
456
+ this.aliasAddress = this.aliasAddress ? this.aliasAddress : '';
457
+ }
458
+ toProto() {
459
+ return new __1.proto.badges.AddressList(this.clone().toJson());
460
+ }
461
+ clone() {
462
+ return new AddressList({ ...this });
463
+ }
464
+ static fromJson(jsonValue, options) {
465
+ return this.convertFromProto(__1.proto.badges.AddressList.fromJson(jsonValue, options));
466
+ }
467
+ static fromJsonString(jsonString, options) {
468
+ return this.convertFromProto(__1.proto.badges.AddressList.fromJsonString(jsonString, options));
469
+ }
470
+ static convertFromProto(item) {
471
+ return new AddressList({ ...item });
472
+ }
473
+ checkAddress(address) {
474
+ let found = this.addresses.includes(address);
475
+ if (!this.whitelist) {
476
+ found = !found;
477
+ }
478
+ return found;
479
+ }
480
+ isEmpty() {
481
+ return this.addresses.length === 0 && this.whitelist;
482
+ }
483
+ invert() {
484
+ this.whitelist = !this.whitelist;
485
+ }
486
+ removeAddress(address) {
487
+ const addressListToRemove = new AddressList({
488
+ listId: '',
489
+ addresses: [address],
490
+ whitelist: true,
491
+ uri: '',
492
+ customData: '',
493
+ createdBy: '',
494
+ });
495
+ const [remaining] = (0, __1.removeAddressListFromAddressList)(addressListToRemove, this);
496
+ this.addresses = remaining.addresses;
497
+ this.whitelist = remaining.whitelist;
498
+ }
499
+ removeAddressList(addressListToRemove) {
500
+ const [remaining] = (0, __1.removeAddressListFromAddressList)(addressListToRemove, this);
501
+ this.addresses = remaining.addresses;
502
+ this.whitelist = remaining.whitelist;
503
+ }
504
+ getOverlappingAddresses(addressList) {
505
+ const [, removed] = (0, __1.removeAddressListFromAddressList)(addressList, this);
506
+ return removed;
507
+ }
508
+ static AllAddresses() {
509
+ return (0, __1.getReservedAddressList)('All');
510
+ }
511
+ }
512
+ exports.AddressList = AddressList;
513
+ class Transfer extends BaseNumberTypeClass {
514
+ from;
515
+ toAddresses;
516
+ balances;
517
+ precalculateBalancesFromApproval;
518
+ merkleProofs;
519
+ memo;
520
+ prioritizedApprovals;
521
+ onlyCheckPrioritizedApprovals;
522
+ constructor(transfer) {
523
+ super();
524
+ this.from = transfer.from;
525
+ this.toAddresses = transfer.toAddresses;
526
+ this.balances = transfer.balances;
527
+ this.precalculateBalancesFromApproval = transfer.precalculateBalancesFromApproval;
528
+ this.merkleProofs = transfer.merkleProofs;
529
+ this.memo = transfer.memo;
530
+ this.prioritizedApprovals = transfer.prioritizedApprovals;
531
+ this.onlyCheckPrioritizedApprovals = transfer.onlyCheckPrioritizedApprovals;
532
+ }
533
+ static required() {
534
+ return new Transfer({
535
+ from: '',
536
+ toAddresses: [],
537
+ balances: [],
538
+ precalculateBalancesFromApproval: ApprovalIdentifierDetails.required(),
539
+ merkleProofs: [],
540
+ memo: '',
541
+ prioritizedApprovals: [],
542
+ onlyCheckPrioritizedApprovals: false
543
+ });
544
+ }
545
+ addDefaults() {
546
+ this.precalculateBalancesFromApproval = this.precalculateBalancesFromApproval ? this.precalculateBalancesFromApproval : ApprovalIdentifierDetails.required();
547
+ this.merkleProofs = this.merkleProofs ? this.merkleProofs : [];
548
+ this.memo = this.memo ? this.memo : '';
549
+ this.prioritizedApprovals = this.prioritizedApprovals ? this.prioritizedApprovals : [];
550
+ this.onlyCheckPrioritizedApprovals = this.onlyCheckPrioritizedApprovals ? this.onlyCheckPrioritizedApprovals : false;
551
+ }
552
+ convert(convertFunction) {
553
+ return new Transfer(deepCopy({
554
+ from: this.from,
555
+ toAddresses: this.toAddresses,
556
+ balances: this.balances.map((b) => b.convert(convertFunction)),
557
+ precalculateBalancesFromApproval: this.precalculateBalancesFromApproval ? this.precalculateBalancesFromApproval : undefined,
558
+ merkleProofs: this.merkleProofs ? this.merkleProofs : undefined,
559
+ memo: this.memo ? this.memo : undefined,
560
+ prioritizedApprovals: this.prioritizedApprovals ? this.prioritizedApprovals : undefined,
561
+ onlyCheckPrioritizedApprovals: this.onlyCheckPrioritizedApprovals ? this.onlyCheckPrioritizedApprovals : undefined
562
+ }));
563
+ }
564
+ toProto() {
565
+ return new __1.proto.badges.Transfer(this.convert(string_numbers_1.Stringify));
566
+ }
567
+ toJson() {
568
+ return (0, __1.convertClassPropertiesToJson)(this);
569
+ }
570
+ toJsonString() {
571
+ return JSON.stringify(this.toJson());
572
+ }
573
+ equals(other, normalizeNumberTypes) {
574
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
575
+ }
576
+ static fromJson(jsonValue, convertFunction, options) {
577
+ return this.convertFromProto(__1.proto.badges.Transfer.fromJson(jsonValue, options), convertFunction);
578
+ }
579
+ static fromJsonString(jsonString, convertFunction, options) {
580
+ return this.convertFromProto(__1.proto.badges.Transfer.fromJsonString(jsonString, options), convertFunction);
581
+ }
582
+ static convertFromProto(item, convertFunction) {
583
+ return new Transfer({
584
+ from: item.from,
585
+ toAddresses: item.toAddresses,
586
+ balances: item.balances.map((b) => Balance.convertFromProto(b, convertFunction)),
587
+ precalculateBalancesFromApproval: item.precalculateBalancesFromApproval ? ApprovalIdentifierDetails.convertFromProto(item.precalculateBalancesFromApproval) : undefined,
588
+ merkleProofs: item.merkleProofs ? item.merkleProofs.map((b) => MerkleProof.convertFromProto(b)) : undefined,
589
+ memo: item.memo ? item.memo : undefined,
590
+ prioritizedApprovals: item.prioritizedApprovals ? item.prioritizedApprovals.map((b) => ApprovalIdentifierDetails.convertFromProto(b)) : undefined,
591
+ onlyCheckPrioritizedApprovals: item.onlyCheckPrioritizedApprovals ? item.onlyCheckPrioritizedApprovals : undefined
592
+ });
593
+ }
594
+ }
595
+ exports.Transfer = Transfer;
596
+ class ApprovalIdentifierDetails extends CustomTypeClass {
597
+ approvalId;
598
+ approvalLevel;
599
+ approverAddress;
600
+ constructor(approvalIdDetails) {
601
+ super();
602
+ this.approvalId = approvalIdDetails.approvalId;
603
+ this.approvalLevel = approvalIdDetails.approvalLevel;
604
+ this.approverAddress = approvalIdDetails.approverAddress;
605
+ }
606
+ static required() {
607
+ return new ApprovalIdentifierDetails({
608
+ approvalId: '',
609
+ approvalLevel: '',
610
+ approverAddress: ''
611
+ });
612
+ }
613
+ toProto() {
614
+ return new __1.proto.badges.ApprovalIdentifierDetails(this.clone().toJson());
615
+ }
616
+ clone() {
617
+ return new ApprovalIdentifierDetails({ ...this });
618
+ }
619
+ static fromJson(jsonValue, options) {
620
+ return this.convertFromProto(__1.proto.badges.ApprovalIdentifierDetails.fromJson(jsonValue, options));
621
+ }
622
+ static fromJsonString(jsonString, options) {
623
+ return this.convertFromProto(__1.proto.badges.ApprovalIdentifierDetails.fromJsonString(jsonString, options));
624
+ }
625
+ static convertFromProto(item) {
626
+ return new ApprovalIdentifierDetails({ ...item });
627
+ }
628
+ }
629
+ exports.ApprovalIdentifierDetails = ApprovalIdentifierDetails;
630
+ class AmountTrackerIdDetails extends BaseNumberTypeClass {
631
+ collectionId;
632
+ amountTrackerId;
633
+ approvalLevel;
634
+ approverAddress;
635
+ trackerType;
636
+ approvedAddress;
637
+ constructor(approvalIdDetails) {
638
+ super();
639
+ this.collectionId = approvalIdDetails.collectionId;
640
+ this.amountTrackerId = approvalIdDetails.amountTrackerId;
641
+ this.approvalLevel = approvalIdDetails.approvalLevel;
642
+ this.approverAddress = approvalIdDetails.approverAddress;
643
+ this.trackerType = approvalIdDetails.trackerType;
644
+ this.approvedAddress = approvalIdDetails.approvedAddress;
645
+ }
646
+ static required() {
647
+ return new AmountTrackerIdDetails({
648
+ collectionId: 0,
649
+ amountTrackerId: '',
650
+ approvalLevel: '',
651
+ approverAddress: '',
652
+ trackerType: '',
653
+ approvedAddress: ''
654
+ });
655
+ }
656
+ convert(convertFunction) {
657
+ return new AmountTrackerIdDetails(deepCopy({
658
+ collectionId: convertFunction(this.collectionId),
659
+ amountTrackerId: this.amountTrackerId,
660
+ approvalLevel: this.approvalLevel,
661
+ approverAddress: this.approverAddress,
662
+ trackerType: this.trackerType,
663
+ approvedAddress: this.approvedAddress
664
+ }));
665
+ }
666
+ toJson() {
667
+ return (0, __1.convertClassPropertiesToJson)(this);
668
+ }
669
+ toJsonString() {
670
+ return JSON.stringify(this.toJson());
671
+ }
672
+ equals(other, normalizeNumberTypes) {
673
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
674
+ }
675
+ }
676
+ exports.AmountTrackerIdDetails = AmountTrackerIdDetails;
677
+ class MerkleChallenge extends BaseNumberTypeClass {
678
+ root;
679
+ expectedProofLength;
680
+ useCreatorAddressAsLeaf;
681
+ maxUsesPerLeaf;
682
+ uri;
683
+ customData;
684
+ constructor(merkleChallenge) {
685
+ super();
686
+ this.root = merkleChallenge.root;
687
+ this.expectedProofLength = merkleChallenge.expectedProofLength;
688
+ this.useCreatorAddressAsLeaf = merkleChallenge.useCreatorAddressAsLeaf;
689
+ this.maxUsesPerLeaf = merkleChallenge.maxUsesPerLeaf;
690
+ this.uri = merkleChallenge.uri;
691
+ this.customData = merkleChallenge.customData;
692
+ }
693
+ static required() {
694
+ return new MerkleChallenge({
695
+ root: '',
696
+ expectedProofLength: 0,
697
+ useCreatorAddressAsLeaf: false,
698
+ maxUsesPerLeaf: 0,
699
+ uri: '',
700
+ customData: ''
701
+ });
702
+ }
703
+ convert(convertFunction) {
704
+ return new MerkleChallenge(deepCopy({
705
+ root: this.root,
706
+ expectedProofLength: convertFunction(this.expectedProofLength),
707
+ useCreatorAddressAsLeaf: this.useCreatorAddressAsLeaf,
708
+ maxUsesPerLeaf: convertFunction(this.maxUsesPerLeaf),
709
+ uri: this.uri,
710
+ customData: this.customData
711
+ }));
712
+ }
713
+ toProto() {
714
+ return new __1.proto.badges.MerkleChallenge(this.convert(string_numbers_1.Stringify));
715
+ }
716
+ toJson() {
717
+ return (0, __1.convertClassPropertiesToJson)(this);
718
+ }
719
+ toJsonString() {
720
+ return JSON.stringify(this.toJson());
721
+ }
722
+ equals(other, normalizeNumberTypes) {
723
+ return compareNumberTypeConvertibles(this, other, normalizeNumberTypes);
724
+ }
725
+ static fromJson(jsonValue, convertFunction, options) {
726
+ return this.convertFromProto(__1.proto.badges.MerkleChallenge.fromJson(jsonValue, options), convertFunction);
727
+ }
728
+ static fromJsonString(jsonString, convertFunction, options) {
729
+ return this.convertFromProto(__1.proto.badges.MerkleChallenge.fromJsonString(jsonString, options), convertFunction);
730
+ }
731
+ static convertFromProto(item, convertFunction) {
732
+ return new MerkleChallenge({
733
+ root: item.root,
734
+ expectedProofLength: convertFunction(BigInt(item.expectedProofLength)),
735
+ useCreatorAddressAsLeaf: item.useCreatorAddressAsLeaf,
736
+ maxUsesPerLeaf: convertFunction(BigInt(item.maxUsesPerLeaf)),
737
+ uri: item.uri,
738
+ customData: item.customData
739
+ });
740
+ }
741
+ }
742
+ exports.MerkleChallenge = MerkleChallenge;
743
+ class MerklePathItem extends CustomTypeClass {
744
+ aunt;
745
+ onRight;
746
+ constructor(merklePathItem) {
747
+ super();
748
+ this.aunt = merklePathItem.aunt;
749
+ this.onRight = merklePathItem.onRight;
750
+ }
751
+ static required() {
752
+ return new MerklePathItem({
753
+ aunt: '',
754
+ onRight: false
755
+ });
756
+ }
757
+ toProto() {
758
+ return new __1.proto.badges.MerklePathItem(this.clone().toJson());
759
+ }
760
+ clone() {
761
+ return new MerklePathItem({ ...this });
762
+ }
763
+ static fromJson(jsonValue, options) {
764
+ return this.convertFromProto(__1.proto.badges.MerklePathItem.fromJson(jsonValue, options));
765
+ }
766
+ static fromJsonString(jsonString, options) {
767
+ return this.convertFromProto(__1.proto.badges.MerklePathItem.fromJsonString(jsonString, options));
768
+ }
769
+ static convertFromProto(item) {
770
+ return new MerklePathItem({ ...item });
771
+ }
772
+ }
773
+ exports.MerklePathItem = MerklePathItem;
774
+ class MerkleProof extends CustomTypeClass {
775
+ aunts;
776
+ leaf;
777
+ constructor(merkleProof) {
778
+ super();
779
+ this.aunts = merkleProof.aunts;
780
+ this.leaf = merkleProof.leaf;
781
+ }
782
+ static required() {
783
+ return new MerkleProof({
784
+ aunts: [],
785
+ leaf: ''
786
+ });
787
+ }
788
+ toProto() {
789
+ return new __1.proto.badges.MerkleProof(this.clone().toJson());
790
+ }
791
+ clone() {
792
+ return new MerkleProof({ ...this });
793
+ }
794
+ static fromJson(jsonValue, options) {
795
+ return this.convertFromProto(__1.proto.badges.MerkleProof.fromJson(jsonValue, options));
796
+ }
797
+ static fromJsonString(jsonString, options) {
798
+ return this.convertFromProto(__1.proto.badges.MerkleProof.fromJsonString(jsonString, options));
799
+ }
800
+ static convertFromProto(item) {
801
+ return new MerkleProof({
802
+ aunts: item.aunts.map((b) => MerklePathItem.convertFromProto(b)),
803
+ leaf: item.leaf
804
+ });
805
+ }
806
+ }
807
+ exports.MerkleProof = MerkleProof;
808
+ class TimelineItem extends BaseNumberTypeClass {
809
+ timelineTimes;
810
+ constructor(timelineItem) {
811
+ super();
812
+ this.timelineTimes = timelineItem.timelineTimes.map((b) => new UintRange(b));
813
+ }
814
+ convert(convertFunction) {
815
+ return new TimelineItem(deepCopy({
816
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
817
+ }));
818
+ }
819
+ }
820
+ exports.TimelineItem = TimelineItem;
821
+ class ManagerTimeline extends BaseNumberTypeClass {
822
+ manager;
823
+ timelineTimes;
824
+ constructor(managerTimeline) {
825
+ super();
826
+ this.manager = managerTimeline.manager;
827
+ this.timelineTimes = managerTimeline.timelineTimes.map((b) => new UintRange(b));
828
+ }
829
+ static required() {
830
+ return new ManagerTimeline({
831
+ manager: '',
832
+ timelineTimes: []
833
+ });
834
+ }
835
+ convert(convertFunction) {
836
+ return new ManagerTimeline(deepCopy({
837
+ manager: this.manager,
838
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
839
+ }));
840
+ }
841
+ toProto() {
842
+ return new __1.proto.badges.ManagerTimeline(this.convert(string_numbers_1.Stringify));
843
+ }
844
+ static fromJson(jsonValue, convertFunction, options) {
845
+ return this.convertFromProto(__1.proto.badges.ManagerTimeline.fromJson(jsonValue, options), convertFunction);
846
+ }
847
+ static fromJsonString(jsonString, convertFunction, options) {
848
+ return this.convertFromProto(__1.proto.badges.ManagerTimeline.fromJsonString(jsonString, options), convertFunction);
849
+ }
850
+ static convertFromProto(item, convertFunction) {
851
+ return new ManagerTimeline({
852
+ manager: item.manager,
853
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
854
+ });
855
+ }
856
+ }
857
+ exports.ManagerTimeline = ManagerTimeline;
858
+ class CollectionMetadataTimeline extends BaseNumberTypeClass {
859
+ collectionMetadata;
860
+ timelineTimes;
861
+ constructor(collectionMetadataTimeline) {
862
+ super();
863
+ this.collectionMetadata = new CollectionMetadata(collectionMetadataTimeline.collectionMetadata);
864
+ this.timelineTimes = collectionMetadataTimeline.timelineTimes.map((b) => new UintRange(b));
865
+ }
866
+ static required() {
867
+ return new CollectionMetadataTimeline({
868
+ collectionMetadata: CollectionMetadata.required(),
869
+ timelineTimes: []
870
+ });
871
+ }
872
+ convert(convertFunction) {
873
+ return new CollectionMetadataTimeline(deepCopy({
874
+ collectionMetadata: this.collectionMetadata,
875
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
876
+ }));
877
+ }
878
+ toProto() {
879
+ return new __1.proto.badges.CollectionMetadataTimeline(this.convert(string_numbers_1.Stringify));
880
+ }
881
+ static fromJson(jsonValue, convertFunction, options) {
882
+ return this.convertFromProto(__1.proto.badges.CollectionMetadataTimeline.fromJson(jsonValue, options), convertFunction);
883
+ }
884
+ static fromJsonString(jsonString, convertFunction, options) {
885
+ return this.convertFromProto(__1.proto.badges.CollectionMetadataTimeline.fromJsonString(jsonString, options), convertFunction);
886
+ }
887
+ static convertFromProto(item, convertFunction) {
888
+ if (item.collectionMetadata === undefined) {
889
+ throw new Error('CollectionMetadataTimeline: invalid collectionMetadata');
890
+ }
891
+ return new CollectionMetadataTimeline({
892
+ collectionMetadata: CollectionMetadata.convertFromProto(item.collectionMetadata, convertFunction),
893
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
894
+ });
895
+ }
896
+ }
897
+ exports.CollectionMetadataTimeline = CollectionMetadataTimeline;
898
+ class BadgeMetadataTimeline extends BaseNumberTypeClass {
899
+ badgeMetadata;
900
+ timelineTimes;
901
+ constructor(badgeMetadataTimeline) {
902
+ super();
903
+ this.timelineTimes = badgeMetadataTimeline.timelineTimes.map((b) => new UintRange(b));
904
+ this.badgeMetadata = badgeMetadataTimeline.badgeMetadata.map((b) => new BadgeMetadata(b));
905
+ }
906
+ static required() {
907
+ return new BadgeMetadataTimeline({
908
+ badgeMetadata: [],
909
+ timelineTimes: []
910
+ });
911
+ }
912
+ convert(convertFunction) {
913
+ return new BadgeMetadataTimeline(deepCopy({
914
+ badgeMetadata: this.badgeMetadata.map((b) => b.convert(convertFunction)),
915
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
916
+ }));
917
+ }
918
+ toProto() {
919
+ return new __1.proto.badges.BadgeMetadataTimeline(this.convert(string_numbers_1.Stringify));
920
+ }
921
+ static fromJson(jsonValue, convertFunction, options) {
922
+ return this.convertFromProto(__1.proto.badges.BadgeMetadataTimeline.fromJson(jsonValue, options), convertFunction);
923
+ }
924
+ static fromJsonString(jsonString, convertFunction, options) {
925
+ return this.convertFromProto(__1.proto.badges.BadgeMetadataTimeline.fromJsonString(jsonString, options), convertFunction);
926
+ }
927
+ static convertFromProto(item, convertFunction) {
928
+ return new BadgeMetadataTimeline({
929
+ badgeMetadata: item.badgeMetadata.map((b) => BadgeMetadata.convertFromProto(b, convertFunction)),
930
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
931
+ });
932
+ }
933
+ }
934
+ exports.BadgeMetadataTimeline = BadgeMetadataTimeline;
935
+ class OffChainBalancesMetadataTimeline extends BaseNumberTypeClass {
936
+ offChainBalancesMetadata;
937
+ timelineTimes;
938
+ constructor(offChainBalancesMetadataTimeline) {
939
+ super();
940
+ this.offChainBalancesMetadata = new OffChainBalancesMetadata(offChainBalancesMetadataTimeline.offChainBalancesMetadata);
941
+ this.timelineTimes = offChainBalancesMetadataTimeline.timelineTimes.map((b) => new UintRange(b));
942
+ }
943
+ static required() {
944
+ return new OffChainBalancesMetadataTimeline({
945
+ offChainBalancesMetadata: OffChainBalancesMetadata.required(),
946
+ timelineTimes: []
947
+ });
948
+ }
949
+ convert(convertFunction) {
950
+ return new OffChainBalancesMetadataTimeline(deepCopy({
951
+ offChainBalancesMetadata: this.offChainBalancesMetadata,
952
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
953
+ }));
954
+ }
955
+ toProto() {
956
+ return new __1.proto.badges.OffChainBalancesMetadataTimeline(this.convert(string_numbers_1.Stringify));
957
+ }
958
+ static fromJson(jsonValue, convertFunction, options) {
959
+ return this.convertFromProto(__1.proto.badges.OffChainBalancesMetadataTimeline.fromJson(jsonValue, options), convertFunction);
960
+ }
961
+ static fromJsonString(jsonString, convertFunction, options) {
962
+ return this.convertFromProto(__1.proto.badges.OffChainBalancesMetadataTimeline.fromJsonString(jsonString, options), convertFunction);
963
+ }
964
+ static convertFromProto(item, convertFunction) {
965
+ if (!item.offChainBalancesMetadata) {
966
+ throw new Error("OffChainBalancesMetadataTimeline: offChainBalancesMetadata is required");
967
+ }
968
+ return new OffChainBalancesMetadataTimeline({
969
+ offChainBalancesMetadata: OffChainBalancesMetadata.convertFromProto(item.offChainBalancesMetadata, convertFunction),
970
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
971
+ });
972
+ }
973
+ }
974
+ exports.OffChainBalancesMetadataTimeline = OffChainBalancesMetadataTimeline;
975
+ class CustomDataTimeline extends BaseNumberTypeClass {
976
+ customData;
977
+ timelineTimes;
978
+ constructor(customDataTimeline) {
979
+ super();
980
+ this.customData = customDataTimeline.customData;
981
+ this.timelineTimes = customDataTimeline.timelineTimes.map((b) => new UintRange(b));
982
+ }
983
+ static required() {
984
+ return new CustomDataTimeline({
985
+ customData: '',
986
+ timelineTimes: []
987
+ });
988
+ }
989
+ convert(convertFunction) {
990
+ return new CustomDataTimeline(deepCopy({
991
+ customData: this.customData,
992
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
993
+ }));
994
+ }
995
+ toProto() {
996
+ return new __1.proto.badges.CustomDataTimeline(this.convert(string_numbers_1.Stringify));
997
+ }
998
+ static fromJson(jsonValue, convertFunction, options) {
999
+ return this.convertFromProto(__1.proto.badges.CustomDataTimeline.fromJson(jsonValue, options), convertFunction);
1000
+ }
1001
+ static fromJsonString(jsonString, convertFunction, options) {
1002
+ return this.convertFromProto(__1.proto.badges.CustomDataTimeline.fromJsonString(jsonString, options), convertFunction);
1003
+ }
1004
+ static convertFromProto(item, convertFunction) {
1005
+ return new CustomDataTimeline({
1006
+ customData: item.customData,
1007
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
1008
+ });
1009
+ }
1010
+ }
1011
+ exports.CustomDataTimeline = CustomDataTimeline;
1012
+ class StandardsTimeline extends BaseNumberTypeClass {
1013
+ standards;
1014
+ timelineTimes;
1015
+ constructor(standardsTimeline) {
1016
+ super();
1017
+ this.standards = standardsTimeline.standards;
1018
+ this.timelineTimes = standardsTimeline.timelineTimes.map((b) => new UintRange(b));
1019
+ }
1020
+ static required() {
1021
+ return new StandardsTimeline({
1022
+ standards: [],
1023
+ timelineTimes: []
1024
+ });
1025
+ }
1026
+ convert(convertFunction) {
1027
+ return new StandardsTimeline(deepCopy({
1028
+ standards: this.standards,
1029
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
1030
+ }));
1031
+ }
1032
+ toProto() {
1033
+ return new __1.proto.badges.StandardsTimeline(this.convert(string_numbers_1.Stringify));
1034
+ }
1035
+ static fromJson(jsonValue, convertFunction, options) {
1036
+ return this.convertFromProto(__1.proto.badges.StandardsTimeline.fromJson(jsonValue, options), convertFunction);
1037
+ }
1038
+ static fromJsonString(jsonString, convertFunction, options) {
1039
+ return this.convertFromProto(__1.proto.badges.StandardsTimeline.fromJsonString(jsonString, options), convertFunction);
1040
+ }
1041
+ static convertFromProto(item, convertFunction) {
1042
+ return new StandardsTimeline({
1043
+ standards: item.standards,
1044
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
1045
+ });
1046
+ }
1047
+ }
1048
+ exports.StandardsTimeline = StandardsTimeline;
1049
+ class IsArchivedTimeline extends BaseNumberTypeClass {
1050
+ isArchived;
1051
+ timelineTimes;
1052
+ constructor(isArchivedTimeline) {
1053
+ super();
1054
+ this.isArchived = isArchivedTimeline.isArchived;
1055
+ this.timelineTimes = isArchivedTimeline.timelineTimes.map((b) => new UintRange(b));
1056
+ }
1057
+ static required() {
1058
+ return new IsArchivedTimeline({
1059
+ isArchived: false,
1060
+ timelineTimes: []
1061
+ });
1062
+ }
1063
+ convert(convertFunction) {
1064
+ return new IsArchivedTimeline(deepCopy({
1065
+ isArchived: this.isArchived,
1066
+ timelineTimes: this.timelineTimes.map((b) => b.convert(convertFunction))
1067
+ }));
1068
+ }
1069
+ toProto() {
1070
+ return new __1.proto.badges.IsArchivedTimeline(this.convert(string_numbers_1.Stringify));
1071
+ }
1072
+ static fromJson(jsonValue, convertFunction, options) {
1073
+ return this.convertFromProto(__1.proto.badges.IsArchivedTimeline.fromJson(jsonValue, options), convertFunction);
1074
+ }
1075
+ static fromJsonString(jsonString, convertFunction, options) {
1076
+ return this.convertFromProto(__1.proto.badges.IsArchivedTimeline.fromJsonString(jsonString, options), convertFunction);
1077
+ }
1078
+ static convertFromProto(item, convertFunction) {
1079
+ return new IsArchivedTimeline({
1080
+ isArchived: item.isArchived,
1081
+ timelineTimes: item.timelineTimes.map((b) => UintRange.convertFromProto(b, convertFunction))
1082
+ });
1083
+ }
1084
+ }
1085
+ exports.IsArchivedTimeline = IsArchivedTimeline;
1086
+ //# sourceMappingURL=typeUtils.js.map