@towns-labs/web3 3.1.0 → 3.3.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 (334) hide show
  1. package/dist/cache/KVCacheStorage.d.ts +3 -3
  2. package/dist/cache/KVCacheStorage.d.ts.map +1 -1
  3. package/dist/cache/KVCacheStorage.js +10 -103
  4. package/dist/cache/KVCacheStorage.js.map +1 -1
  5. package/dist/cache/Keyable.d.ts +2 -3
  6. package/dist/cache/Keyable.d.ts.map +1 -1
  7. package/dist/cache/Keyable.js +1 -2
  8. package/dist/cache/Keyable.js.map +1 -1
  9. package/dist/eip-712/EIP-712.d.ts +16 -6
  10. package/dist/eip-712/EIP-712.d.ts.map +1 -1
  11. package/dist/eip-712/EIP-712.js +20 -8
  12. package/dist/eip-712/EIP-712.js.map +1 -1
  13. package/dist/index.d.ts +2 -77
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -77
  16. package/dist/index.js.map +1 -1
  17. package/dist/test-helpers/MockERC1155.d.ts +1 -1
  18. package/dist/test-helpers/MockERC1155.d.ts.map +1 -1
  19. package/dist/test-helpers/MockERC20.d.ts +1 -1
  20. package/dist/test-helpers/MockERC20.d.ts.map +1 -1
  21. package/dist/types/ContractTypes.d.ts +0 -170
  22. package/dist/types/ContractTypes.d.ts.map +1 -1
  23. package/dist/types/ContractTypes.js +0 -32
  24. package/dist/types/ContractTypes.js.map +1 -1
  25. package/dist/utils/ut.d.ts +1 -4
  26. package/dist/utils/ut.d.ts.map +1 -1
  27. package/dist/utils/ut.js +2 -14
  28. package/dist/utils/ut.js.map +1 -1
  29. package/dist/utils/web3Env.js +1 -1
  30. package/dist/utils/web3Env.js.map +1 -1
  31. package/dist/utils/xchain.d.ts +21 -0
  32. package/dist/utils/xchain.d.ts.map +1 -0
  33. package/dist/{space/entitlements/XChainConfig.js → utils/xchain.js} +45 -29
  34. package/dist/utils/xchain.js.map +1 -0
  35. package/dist/web3Types.d.ts +33 -0
  36. package/dist/web3Types.d.ts.map +1 -0
  37. package/dist/web3Types.js +89 -0
  38. package/dist/web3Types.js.map +1 -0
  39. package/package.json +3 -5
  40. package/dist/BaseContractShim.d.ts +0 -57
  41. package/dist/BaseContractShim.d.ts.map +0 -1
  42. package/dist/BaseContractShim.js +0 -224
  43. package/dist/BaseContractShim.js.map +0 -1
  44. package/dist/airdrop/IDropFacetShim.d.ts +0 -9
  45. package/dist/airdrop/IDropFacetShim.d.ts.map +0 -1
  46. package/dist/airdrop/IDropFacetShim.js +0 -9
  47. package/dist/airdrop/IDropFacetShim.js.map +0 -1
  48. package/dist/airdrop/IRiverPointsShim.d.ts +0 -9
  49. package/dist/airdrop/IRiverPointsShim.d.ts.map +0 -1
  50. package/dist/airdrop/IRiverPointsShim.js +0 -9
  51. package/dist/airdrop/IRiverPointsShim.js.map +0 -1
  52. package/dist/airdrop/RiverAirdropDapp.d.ts +0 -16
  53. package/dist/airdrop/RiverAirdropDapp.d.ts.map +0 -1
  54. package/dist/airdrop/RiverAirdropDapp.js +0 -30
  55. package/dist/airdrop/RiverAirdropDapp.js.map +0 -1
  56. package/dist/app-registry/AppRegistryDapp.d.ts +0 -68
  57. package/dist/app-registry/AppRegistryDapp.d.ts.map +0 -1
  58. package/dist/app-registry/AppRegistryDapp.js +0 -182
  59. package/dist/app-registry/AppRegistryDapp.js.map +0 -1
  60. package/dist/app-registry/IAppFactoryShim.d.ts +0 -9
  61. package/dist/app-registry/IAppFactoryShim.d.ts.map +0 -1
  62. package/dist/app-registry/IAppFactoryShim.js +0 -9
  63. package/dist/app-registry/IAppFactoryShim.js.map +0 -1
  64. package/dist/app-registry/IAppInstallerShim.d.ts +0 -9
  65. package/dist/app-registry/IAppInstallerShim.d.ts.map +0 -1
  66. package/dist/app-registry/IAppInstallerShim.js +0 -9
  67. package/dist/app-registry/IAppInstallerShim.js.map +0 -1
  68. package/dist/app-registry/IAppRegistryShim.d.ts +0 -9
  69. package/dist/app-registry/IAppRegistryShim.d.ts.map +0 -1
  70. package/dist/app-registry/IAppRegistryShim.js +0 -9
  71. package/dist/app-registry/IAppRegistryShim.js.map +0 -1
  72. package/dist/app-registry/IIdentityRegistryShim.d.ts +0 -9
  73. package/dist/app-registry/IIdentityRegistryShim.d.ts.map +0 -1
  74. package/dist/app-registry/IIdentityRegistryShim.js +0 -9
  75. package/dist/app-registry/IIdentityRegistryShim.js.map +0 -1
  76. package/dist/app-registry/IReputationRegistryShim.d.ts +0 -9
  77. package/dist/app-registry/IReputationRegistryShim.d.ts.map +0 -1
  78. package/dist/app-registry/IReputationRegistryShim.js +0 -9
  79. package/dist/app-registry/IReputationRegistryShim.js.map +0 -1
  80. package/dist/app-registry/SimpleAppShim.d.ts +0 -9
  81. package/dist/app-registry/SimpleAppShim.d.ts.map +0 -1
  82. package/dist/app-registry/SimpleAppShim.js +0 -9
  83. package/dist/app-registry/SimpleAppShim.js.map +0 -1
  84. package/dist/base-registry/BaseRegistry.d.ts +0 -32
  85. package/dist/base-registry/BaseRegistry.d.ts.map +0 -1
  86. package/dist/base-registry/BaseRegistry.js +0 -67
  87. package/dist/base-registry/BaseRegistry.js.map +0 -1
  88. package/dist/base-registry/IEntitlementCheckerShim.d.ts +0 -9
  89. package/dist/base-registry/IEntitlementCheckerShim.d.ts.map +0 -1
  90. package/dist/base-registry/IEntitlementCheckerShim.js +0 -9
  91. package/dist/base-registry/IEntitlementCheckerShim.js.map +0 -1
  92. package/dist/base-registry/INodeOperatorShim.d.ts +0 -9
  93. package/dist/base-registry/INodeOperatorShim.d.ts.map +0 -1
  94. package/dist/base-registry/INodeOperatorShim.js +0 -9
  95. package/dist/base-registry/INodeOperatorShim.js.map +0 -1
  96. package/dist/base-registry/ISpaceDelegationShim.d.ts +0 -9
  97. package/dist/base-registry/ISpaceDelegationShim.d.ts.map +0 -1
  98. package/dist/base-registry/ISpaceDelegationShim.js +0 -9
  99. package/dist/base-registry/ISpaceDelegationShim.js.map +0 -1
  100. package/dist/base-registry/RewardsDistributionShim.d.ts +0 -9
  101. package/dist/base-registry/RewardsDistributionShim.d.ts.map +0 -1
  102. package/dist/base-registry/RewardsDistributionShim.js +0 -9
  103. package/dist/base-registry/RewardsDistributionShim.js.map +0 -1
  104. package/dist/delegate-registry/DelegateRegistry.d.ts +0 -3
  105. package/dist/delegate-registry/DelegateRegistry.d.ts.map +0 -1
  106. package/dist/delegate-registry/DelegateRegistry.js +0 -72
  107. package/dist/delegate-registry/DelegateRegistry.js.map +0 -1
  108. package/dist/erc-721/IERC721AQueryableShim.d.ts +0 -9
  109. package/dist/erc-721/IERC721AQueryableShim.d.ts.map +0 -1
  110. package/dist/erc-721/IERC721AQueryableShim.js +0 -9
  111. package/dist/erc-721/IERC721AQueryableShim.js.map +0 -1
  112. package/dist/erc-721/IERC721AShim.d.ts +0 -9
  113. package/dist/erc-721/IERC721AShim.d.ts.map +0 -1
  114. package/dist/erc-721/IERC721AShim.js +0 -9
  115. package/dist/erc-721/IERC721AShim.js.map +0 -1
  116. package/dist/platform-requirements/PlatformRequirements.d.ts +0 -12
  117. package/dist/platform-requirements/PlatformRequirements.d.ts.map +0 -1
  118. package/dist/platform-requirements/PlatformRequirements.js +0 -18
  119. package/dist/platform-requirements/PlatformRequirements.js.map +0 -1
  120. package/dist/pricing-modules/IPricingShim.d.ts +0 -9
  121. package/dist/pricing-modules/IPricingShim.d.ts.map +0 -1
  122. package/dist/pricing-modules/IPricingShim.js +0 -9
  123. package/dist/pricing-modules/IPricingShim.js.map +0 -1
  124. package/dist/pricing-modules/PricingModules.d.ts +0 -13
  125. package/dist/pricing-modules/PricingModules.d.ts.map +0 -1
  126. package/dist/pricing-modules/PricingModules.js +0 -23
  127. package/dist/pricing-modules/PricingModules.js.map +0 -1
  128. package/dist/pricing-modules/helpers.d.ts +0 -16
  129. package/dist/pricing-modules/helpers.d.ts.map +0 -1
  130. package/dist/pricing-modules/helpers.js +0 -35
  131. package/dist/pricing-modules/helpers.js.map +0 -1
  132. package/dist/readContractRetryer.d.ts +0 -10
  133. package/dist/readContractRetryer.d.ts.map +0 -1
  134. package/dist/readContractRetryer.js +0 -68
  135. package/dist/readContractRetryer.js.map +0 -1
  136. package/dist/river-registry/IOperatorRegistryShim.d.ts +0 -9
  137. package/dist/river-registry/IOperatorRegistryShim.d.ts.map +0 -1
  138. package/dist/river-registry/IOperatorRegistryShim.js +0 -9
  139. package/dist/river-registry/IOperatorRegistryShim.js.map +0 -1
  140. package/dist/river-registry/IStreamRegistryShim.d.ts +0 -9
  141. package/dist/river-registry/IStreamRegistryShim.d.ts.map +0 -1
  142. package/dist/river-registry/IStreamRegistryShim.js +0 -9
  143. package/dist/river-registry/IStreamRegistryShim.js.map +0 -1
  144. package/dist/river-registry/RiverRegistry.d.ts +0 -18
  145. package/dist/river-registry/RiverRegistry.d.ts.map +0 -1
  146. package/dist/river-registry/RiverRegistry.js +0 -42
  147. package/dist/river-registry/RiverRegistry.js.map +0 -1
  148. package/dist/river-registry/RiverRegistryFactory.d.ts +0 -5
  149. package/dist/river-registry/RiverRegistryFactory.d.ts.map +0 -1
  150. package/dist/river-registry/RiverRegistryFactory.js +0 -5
  151. package/dist/river-registry/RiverRegistryFactory.js.map +0 -1
  152. package/dist/space/IAppAccountShim.d.ts +0 -9
  153. package/dist/space/IAppAccountShim.d.ts.map +0 -1
  154. package/dist/space/IAppAccountShim.js +0 -9
  155. package/dist/space/IAppAccountShim.js.map +0 -1
  156. package/dist/space/IBanningShim.d.ts +0 -9
  157. package/dist/space/IBanningShim.d.ts.map +0 -1
  158. package/dist/space/IBanningShim.js +0 -9
  159. package/dist/space/IBanningShim.js.map +0 -1
  160. package/dist/space/IChannelShim.d.ts +0 -9
  161. package/dist/space/IChannelShim.d.ts.map +0 -1
  162. package/dist/space/IChannelShim.js +0 -9
  163. package/dist/space/IChannelShim.js.map +0 -1
  164. package/dist/space/IEntitlementDataQueryableShim.d.ts +0 -11
  165. package/dist/space/IEntitlementDataQueryableShim.d.ts.map +0 -1
  166. package/dist/space/IEntitlementDataQueryableShim.js +0 -9
  167. package/dist/space/IEntitlementDataQueryableShim.js.map +0 -1
  168. package/dist/space/IEntitlementsShim.d.ts +0 -13
  169. package/dist/space/IEntitlementsShim.d.ts.map +0 -1
  170. package/dist/space/IEntitlementsShim.js +0 -19
  171. package/dist/space/IEntitlementsShim.js.map +0 -1
  172. package/dist/space/IMembershipMetadataShim.d.ts +0 -9
  173. package/dist/space/IMembershipMetadataShim.d.ts.map +0 -1
  174. package/dist/space/IMembershipMetadataShim.js +0 -9
  175. package/dist/space/IMembershipMetadataShim.js.map +0 -1
  176. package/dist/space/IMembershipShim.d.ts +0 -33
  177. package/dist/space/IMembershipShim.d.ts.map +0 -1
  178. package/dist/space/IMembershipShim.js +0 -139
  179. package/dist/space/IMembershipShim.js.map +0 -1
  180. package/dist/space/IMulticallShim.d.ts +0 -13
  181. package/dist/space/IMulticallShim.d.ts.map +0 -1
  182. package/dist/space/IMulticallShim.js +0 -15
  183. package/dist/space/IMulticallShim.js.map +0 -1
  184. package/dist/space/IReviewShim.d.ts +0 -64
  185. package/dist/space/IReviewShim.d.ts.map +0 -1
  186. package/dist/space/IReviewShim.js +0 -102
  187. package/dist/space/IReviewShim.js.map +0 -1
  188. package/dist/space/IRolesShim.d.ts +0 -10
  189. package/dist/space/IRolesShim.d.ts.map +0 -1
  190. package/dist/space/IRolesShim.js +0 -9
  191. package/dist/space/IRolesShim.js.map +0 -1
  192. package/dist/space/ITippingShim.d.ts +0 -39
  193. package/dist/space/ITippingShim.d.ts.map +0 -1
  194. package/dist/space/ITippingShim.js +0 -76
  195. package/dist/space/ITippingShim.js.map +0 -1
  196. package/dist/space/ITreasuryShim.d.ts +0 -9
  197. package/dist/space/ITreasuryShim.d.ts.map +0 -1
  198. package/dist/space/ITreasuryShim.js +0 -9
  199. package/dist/space/ITreasuryShim.js.map +0 -1
  200. package/dist/space/OwnableFacetShim.d.ts +0 -12
  201. package/dist/space/OwnableFacetShim.d.ts.map +0 -1
  202. package/dist/space/OwnableFacetShim.js +0 -19
  203. package/dist/space/OwnableFacetShim.js.map +0 -1
  204. package/dist/space/Space.d.ts +0 -107
  205. package/dist/space/Space.d.ts.map +0 -1
  206. package/dist/space/Space.js +0 -511
  207. package/dist/space/Space.js.map +0 -1
  208. package/dist/space/TokenPausableFacetShim.d.ts +0 -9
  209. package/dist/space/TokenPausableFacetShim.d.ts.map +0 -1
  210. package/dist/space/TokenPausableFacetShim.js +0 -9
  211. package/dist/space/TokenPausableFacetShim.js.map +0 -1
  212. package/dist/space/entitlements/ConvertersEntitlements.d.ts +0 -14
  213. package/dist/space/entitlements/ConvertersEntitlements.d.ts.map +0 -1
  214. package/dist/space/entitlements/ConvertersEntitlements.js +0 -193
  215. package/dist/space/entitlements/ConvertersEntitlements.js.map +0 -1
  216. package/dist/space/entitlements/RuleBuilder.d.ts +0 -83
  217. package/dist/space/entitlements/RuleBuilder.d.ts.map +0 -1
  218. package/dist/space/entitlements/RuleBuilder.js +0 -86
  219. package/dist/space/entitlements/RuleBuilder.js.map +0 -1
  220. package/dist/space/entitlements/RuleEntitlementShim.d.ts +0 -353
  221. package/dist/space/entitlements/RuleEntitlementShim.d.ts.map +0 -1
  222. package/dist/space/entitlements/RuleEntitlementShim.js +0 -40
  223. package/dist/space/entitlements/RuleEntitlementShim.js.map +0 -1
  224. package/dist/space/entitlements/RuleEntitlementV2Shim.d.ts +0 -353
  225. package/dist/space/entitlements/RuleEntitlementV2Shim.d.ts.map +0 -1
  226. package/dist/space/entitlements/RuleEntitlementV2Shim.js +0 -40
  227. package/dist/space/entitlements/RuleEntitlementV2Shim.js.map +0 -1
  228. package/dist/space/entitlements/UserEntitlementShim.d.ts +0 -13
  229. package/dist/space/entitlements/UserEntitlementShim.d.ts.map +0 -1
  230. package/dist/space/entitlements/UserEntitlementShim.js +0 -45
  231. package/dist/space/entitlements/UserEntitlementShim.js.map +0 -1
  232. package/dist/space/entitlements/XChainConfig.d.ts +0 -14
  233. package/dist/space/entitlements/XChainConfig.d.ts.map +0 -1
  234. package/dist/space/entitlements/XChainConfig.js.map +0 -1
  235. package/dist/space/entitlements/entitlement.d.ts +0 -147
  236. package/dist/space/entitlements/entitlement.d.ts.map +0 -1
  237. package/dist/space/entitlements/entitlement.js +0 -940
  238. package/dist/space/entitlements/entitlement.js.map +0 -1
  239. package/dist/space/entitlements/validateAndParseXChainConfig.d.ts +0 -6
  240. package/dist/space/entitlements/validateAndParseXChainConfig.d.ts.map +0 -1
  241. package/dist/space/entitlements/validateAndParseXChainConfig.js +0 -34
  242. package/dist/space/entitlements/validateAndParseXChainConfig.js.map +0 -1
  243. package/dist/space-dapp/SpaceDapp.d.ts +0 -223
  244. package/dist/space-dapp/SpaceDapp.d.ts.map +0 -1
  245. package/dist/space-dapp/SpaceDapp.js +0 -1260
  246. package/dist/space-dapp/SpaceDapp.js.map +0 -1
  247. package/dist/space-dapp/SpaceDappFactory.d.ts +0 -5
  248. package/dist/space-dapp/SpaceDappFactory.d.ts.map +0 -1
  249. package/dist/space-dapp/SpaceDappFactory.js +0 -8
  250. package/dist/space-dapp/SpaceDappFactory.js.map +0 -1
  251. package/dist/space-dapp/wrapTransaction.d.ts +0 -4
  252. package/dist/space-dapp/wrapTransaction.d.ts.map +0 -1
  253. package/dist/space-dapp/wrapTransaction.js +0 -99
  254. package/dist/space-dapp/wrapTransaction.js.map +0 -1
  255. package/dist/space-owner/GuardianFacetShim.d.ts +0 -9
  256. package/dist/space-owner/GuardianFacetShim.d.ts.map +0 -1
  257. package/dist/space-owner/GuardianFacetShim.js +0 -9
  258. package/dist/space-owner/GuardianFacetShim.js.map +0 -1
  259. package/dist/space-owner/SpaceOwner.d.ts +0 -48
  260. package/dist/space-owner/SpaceOwner.d.ts.map +0 -1
  261. package/dist/space-owner/SpaceOwner.js +0 -81
  262. package/dist/space-owner/SpaceOwner.js.map +0 -1
  263. package/dist/space-registrar/ICreateSpaceShim.d.ts +0 -11
  264. package/dist/space-registrar/ICreateSpaceShim.d.ts.map +0 -1
  265. package/dist/space-registrar/ICreateSpaceShim.js +0 -9
  266. package/dist/space-registrar/ICreateSpaceShim.js.map +0 -1
  267. package/dist/space-registrar/ILegacySpaceArchitectShim.d.ts +0 -10
  268. package/dist/space-registrar/ILegacySpaceArchitectShim.d.ts.map +0 -1
  269. package/dist/space-registrar/ILegacySpaceArchitectShim.js +0 -9
  270. package/dist/space-registrar/ILegacySpaceArchitectShim.js.map +0 -1
  271. package/dist/space-registrar/ISpaceArchitectShim.d.ts +0 -10
  272. package/dist/space-registrar/ISpaceArchitectShim.d.ts.map +0 -1
  273. package/dist/space-registrar/ISpaceArchitectShim.js +0 -39
  274. package/dist/space-registrar/ISpaceArchitectShim.js.map +0 -1
  275. package/dist/space-registrar/SpaceRegistrar.d.ts +0 -27
  276. package/dist/space-registrar/SpaceRegistrar.d.ts.map +0 -1
  277. package/dist/space-registrar/SpaceRegistrar.js +0 -58
  278. package/dist/space-registrar/SpaceRegistrar.js.map +0 -1
  279. package/dist/test-helpers/LocalhostWeb3Provider.d.ts +0 -19
  280. package/dist/test-helpers/LocalhostWeb3Provider.d.ts.map +0 -1
  281. package/dist/test-helpers/LocalhostWeb3Provider.js +0 -80
  282. package/dist/test-helpers/LocalhostWeb3Provider.js.map +0 -1
  283. package/dist/test-helpers/MockCrossChainEntitlement.d.ts +0 -6
  284. package/dist/test-helpers/MockCrossChainEntitlement.d.ts.map +0 -1
  285. package/dist/test-helpers/MockCrossChainEntitlement.js +0 -104
  286. package/dist/test-helpers/MockCrossChainEntitlement.js.map +0 -1
  287. package/dist/test-helpers/MockERC721AShim.d.ts +0 -9
  288. package/dist/test-helpers/MockERC721AShim.d.ts.map +0 -1
  289. package/dist/test-helpers/MockERC721AShim.js +0 -9
  290. package/dist/test-helpers/MockERC721AShim.js.map +0 -1
  291. package/dist/test-helpers/TestCrossChainEntitlement.d.ts +0 -14
  292. package/dist/test-helpers/TestCrossChainEntitlement.d.ts.map +0 -1
  293. package/dist/test-helpers/TestCrossChainEntitlement.js +0 -99
  294. package/dist/test-helpers/TestCrossChainEntitlement.js.map +0 -1
  295. package/dist/test-helpers/TestGatingERC1155.d.ts +0 -17
  296. package/dist/test-helpers/TestGatingERC1155.d.ts.map +0 -1
  297. package/dist/test-helpers/TestGatingERC1155.js +0 -100
  298. package/dist/test-helpers/TestGatingERC1155.js.map +0 -1
  299. package/dist/test-helpers/TestGatingERC20.d.ts +0 -17
  300. package/dist/test-helpers/TestGatingERC20.d.ts.map +0 -1
  301. package/dist/test-helpers/TestGatingERC20.js +0 -149
  302. package/dist/test-helpers/TestGatingERC20.js.map +0 -1
  303. package/dist/test-helpers/TestGatingNFT.d.ts +0 -17
  304. package/dist/test-helpers/TestGatingNFT.d.ts.map +0 -1
  305. package/dist/test-helpers/TestGatingNFT.js +0 -137
  306. package/dist/test-helpers/TestGatingNFT.js.map +0 -1
  307. package/dist/test-helpers/TestGatingUtils.d.ts +0 -15
  308. package/dist/test-helpers/TestGatingUtils.d.ts.map +0 -1
  309. package/dist/test-helpers/TestGatingUtils.js +0 -112
  310. package/dist/test-helpers/TestGatingUtils.js.map +0 -1
  311. package/dist/test-helpers/utils.d.ts +0 -22
  312. package/dist/test-helpers/utils.d.ts.map +0 -1
  313. package/dist/test-helpers/utils.js +0 -30
  314. package/dist/test-helpers/utils.js.map +0 -1
  315. package/dist/towns-token/TownsToken.d.ts +0 -17
  316. package/dist/towns-token/TownsToken.d.ts.map +0 -1
  317. package/dist/towns-token/TownsToken.js +0 -33
  318. package/dist/towns-token/TownsToken.js.map +0 -1
  319. package/dist/types/typechain.d.ts +0 -4
  320. package/dist/types/typechain.d.ts.map +0 -1
  321. package/dist/types/typechain.js +0 -2
  322. package/dist/types/typechain.js.map +0 -1
  323. package/dist/utils/ContractHelpers.d.ts +0 -14
  324. package/dist/utils/ContractHelpers.d.ts.map +0 -1
  325. package/dist/utils/ContractHelpers.js +0 -54
  326. package/dist/utils/ContractHelpers.js.map +0 -1
  327. package/dist/wallet-link/WalletLink.d.ts +0 -58
  328. package/dist/wallet-link/WalletLink.d.ts.map +0 -1
  329. package/dist/wallet-link/WalletLink.js +0 -226
  330. package/dist/wallet-link/WalletLink.js.map +0 -1
  331. package/dist/wallet-link/WalletLinkShim.d.ts +0 -9
  332. package/dist/wallet-link/WalletLinkShim.d.ts.map +0 -1
  333. package/dist/wallet-link/WalletLinkShim.js +0 -9
  334. package/dist/wallet-link/WalletLinkShim.js.map +0 -1
@@ -1,182 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { IAppRegistryShim } from './IAppRegistryShim';
3
- import { IAppInstallerShim } from './IAppInstallerShim';
4
- import { IAppFactoryShim } from './IAppFactoryShim';
5
- import { IReputationRegistryShim } from './IReputationRegistryShim';
6
- import { SimpleAppShim } from './SimpleAppShim';
7
- import { Permission } from '../types/ContractTypes';
8
- export class AppRegistryDapp {
9
- registry;
10
- installer;
11
- factory;
12
- reputation;
13
- provider;
14
- constructor(config, provider) {
15
- if (!config.addresses.appRegistry) {
16
- throw new Error('App registry address is not set');
17
- }
18
- this.registry = new IAppRegistryShim(config.addresses.appRegistry, provider);
19
- this.installer = new IAppInstallerShim(config.addresses.appRegistry, provider);
20
- this.factory = new IAppFactoryShim(config.addresses.appRegistry, provider);
21
- this.reputation = new IReputationRegistryShim(config.addresses.appRegistry, provider);
22
- this.provider = provider;
23
- }
24
- callApp(appAddress) {
25
- return new SimpleAppShim(appAddress, this.provider);
26
- }
27
- // TODO: better api for passing access duration
28
- async createApp(signer, name, permissions, client, installPrice, accessDuration) {
29
- return this.factory.write(signer).createApp({
30
- name,
31
- permissions: permissions.map((p) => ethers.utils.formatBytes32String(Permission[p])),
32
- client,
33
- installPrice,
34
- accessDuration,
35
- });
36
- }
37
- getCreateAppEvent(receipt, senderAddress) {
38
- for (const log of receipt.logs) {
39
- try {
40
- const parsedLog = this.factory.parseLog(log);
41
- if (parsedLog.name === 'AppCreated') {
42
- if ('owner' in parsedLog.args && typeof parsedLog.args.owner === 'string') {
43
- // newer contracts - filter by owner from event
44
- if (parsedLog.args.owner.toLowerCase() === senderAddress.toLowerCase()) {
45
- return {
46
- app: parsedLog.args.app,
47
- uid: parsedLog.args.uid,
48
- owner: parsedLog.args.owner,
49
- };
50
- }
51
- }
52
- else {
53
- // older contracts - return first match
54
- return {
55
- app: parsedLog.args.app,
56
- uid: parsedLog.args.uid,
57
- owner: '',
58
- };
59
- }
60
- }
61
- }
62
- catch {
63
- // no need for error, this log is not from the contract we're interested in
64
- }
65
- }
66
- return { app: '', uid: '', owner: '' };
67
- }
68
- getRegisterAppEvent(receipt, appAddress) {
69
- for (const log of receipt.logs) {
70
- try {
71
- const parsedLog = this.registry.parseLog(log);
72
- if (parsedLog.name === 'AppRegistered') {
73
- const eventAppAddress = parsedLog.args.app;
74
- if (eventAppAddress.toLowerCase() === appAddress.toLowerCase()) {
75
- return {
76
- app: parsedLog.args.app,
77
- uid: parsedLog.args.uid,
78
- };
79
- }
80
- }
81
- }
82
- catch {
83
- // no need for error, this log is not from the contract we're interested in
84
- }
85
- }
86
- return { app: '', uid: '' };
87
- }
88
- /** To register a smart contract app with a App Client */
89
- async registerApp(signer, app, client) {
90
- return this.registry.write(signer).registerApp(app, client);
91
- }
92
- /** To install a smart contract app in a space */
93
- async installApp(
94
- /** The signer of the app owner */
95
- signer,
96
- /** The address of the app to install */
97
- app,
98
- /** The address of the space to install the app in */
99
- spaceAddress,
100
- /** The price of the app in wei */
101
- price,
102
- /** The data to pass to the app's onInstall function */
103
- data) {
104
- return this.installer
105
- .write(signer)
106
- .installApp(app, spaceAddress, data ?? new Uint8Array(0), { value: price });
107
- }
108
- /** To uninstall a smart contract app from a space */
109
- async uninstallApp(
110
- /** The signer of the app owner */
111
- signer,
112
- /** The address of the app to uninstall */
113
- app,
114
- /** The address of the space to uninstall the app from */
115
- spaceAddress,
116
- /** The data to pass to the app's onUninstall function */
117
- data) {
118
- return this.installer
119
- .write(signer)
120
- .uninstallApp(app, spaceAddress, data ?? new Uint8Array(0));
121
- }
122
- async removeApp(signer, appId) {
123
- return this.registry.write(signer).removeApp(appId);
124
- }
125
- async getAppPrice(app) {
126
- return this.registry.read.getAppPrice(app);
127
- }
128
- async getAppDuration(app) {
129
- return this.registry.read.getAppDuration(app);
130
- }
131
- async getAppSchema() {
132
- return this.registry.read.getAppSchema();
133
- }
134
- async getAppSchemaId() {
135
- return this.registry.read.getAppSchemaId();
136
- }
137
- async isAppBanned(app) {
138
- return this.registry.read.isAppBanned(app);
139
- }
140
- async getLatestAppId(app) {
141
- return this.registry.read.getLatestAppId(app);
142
- }
143
- async getAppById(appId) {
144
- return this.registry.read.getAppById(appId);
145
- }
146
- async adminRegisterAppSchema(signer, schema, resolver, revocable) {
147
- return this.registry.write(signer).adminRegisterAppSchema(schema, resolver, revocable);
148
- }
149
- async adminBanApp(signer, app) {
150
- return this.registry.write(signer).adminBanApp(app);
151
- }
152
- async getAllAppsByOwner(targetOwner, fromBlock) {
153
- const appCreatedEvents = await this.factory.read.queryFilter(this.factory.read.filters.AppCreated(), fromBlock);
154
- const appRegisteredEvents = await this.registry.read.queryFilter(this.registry.read.filters.AppRegistered(), fromBlock);
155
- const allAppIds = new Set([
156
- ...appCreatedEvents.map((event) => event.args.uid),
157
- ...appRegisteredEvents.map((event) => event.args.uid),
158
- ]);
159
- const ownerApps = [];
160
- for (const appId of allAppIds) {
161
- try {
162
- const app = await this.registry.read.getAppById(appId);
163
- if (app.owner.toLowerCase() === targetOwner.toLowerCase()) {
164
- ownerApps.push({
165
- appId: appId,
166
- app: {
167
- client: app.client,
168
- module: app.module,
169
- owner: app.owner,
170
- permissions: app.permissions.map((p) => Permission[ethers.utils.parseBytes32String(p)]),
171
- },
172
- });
173
- }
174
- }
175
- catch {
176
- // no need for error, this app is not from the owner
177
- }
178
- }
179
- return ownerApps;
180
- }
181
- }
182
- //# sourceMappingURL=AppRegistryDapp.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppRegistryDapp.js","sourceRoot":"","sources":["../../src/app-registry/AppRegistryDapp.ts"],"names":[],"mappings":"AA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CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;YAClD,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC;SACxD,CAAC,CAAA;QAEF,MAAM,SAAS,GAAc,EAAE,CAAA;QAC/B,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;YAC5B,IAAI,CAAC;gBACD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;gBACtD,IAAI,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,EAAE,CAAC;oBACxD,SAAS,CAAC,IAAI,CAAC;wBACX,KAAK,EAAE,KAAgB;wBACvB,GAAG,EAAE;4BACD,MAAM,EAAE,GAAG,CAAC,MAAiB;4BAC7B,MAAM,EAAE,GAAG,CAAC,MAAiB;4BAC7B,KAAK,EAAE,GAAG,CAAC,KAAgB;4BAC3B,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,CAC5B,CAAC,CAAC,EAAE,EAAE,CACF,UAAU,CACN,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAC3B,CAAC,CACuB,CAC/B,CACR;yBACJ;qBACJ,CAAC,CAAA;gBACN,CAAC;YACL,CAAC;YAAC,MAAM,CAAC;gBACL,oDAAoD;YACxD,CAAC;QACL,CAAC;QAED,OAAO,SAAS,CAAA;IACpB,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { IAppFactory__factory } from '@towns-labs/generated/dev/typings/factories/IAppFactory__factory';
4
- declare const connect: typeof IAppFactory__factory.connect;
5
- export declare class IAppFactoryShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=IAppFactoryShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAppFactoryShim.d.ts","sourceRoot":"","sources":["../../src/app-registry/IAppFactoryShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAA;AAEvG,QAAA,MAAa,OAAO,qCAAyB,CAAA;AAE7C,qBAAa,eAAgB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBACrD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { IAppFactory__factory } from '@towns-labs/generated/dev/typings/factories/IAppFactory__factory';
3
- const { abi, connect } = IAppFactory__factory;
4
- export class IAppFactoryShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=IAppFactoryShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAppFactoryShim.js","sourceRoot":"","sources":["../../src/app-registry/IAppFactoryShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kEAAkE,CAAA;AAEvG,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,oBAAoB,CAAA;AAE7C,MAAM,OAAO,eAAgB,SAAQ,gBAAgC;IACjE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { IAppInstaller__factory } from '@towns-labs/generated/dev/typings/factories/IAppInstaller__factory';
4
- declare const connect: typeof IAppInstaller__factory.connect;
5
- export declare class IAppInstallerShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=IAppInstallerShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAppInstallerShim.d.ts","sourceRoot":"","sources":["../../src/app-registry/IAppInstallerShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAA;AAE3G,QAAA,MAAa,OAAO,uCAA2B,CAAA;AAE/C,qBAAa,iBAAkB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBACvD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { IAppInstaller__factory } from '@towns-labs/generated/dev/typings/factories/IAppInstaller__factory';
3
- const { abi, connect } = IAppInstaller__factory;
4
- export class IAppInstallerShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=IAppInstallerShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAppInstallerShim.js","sourceRoot":"","sources":["../../src/app-registry/IAppInstallerShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAA;AAE3G,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAA;AAE/C,MAAM,OAAO,iBAAkB,SAAQ,gBAAgC;IACnE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { IAppRegistry__factory } from '@towns-labs/generated/dev/typings/factories/IAppRegistry__factory';
4
- declare const connect: typeof IAppRegistry__factory.connect;
5
- export declare class IAppRegistryShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=IAppRegistryShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAppRegistryShim.d.ts","sourceRoot":"","sources":["../../src/app-registry/IAppRegistryShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAA;AAEzG,QAAA,MAAa,OAAO,sCAA0B,CAAA;AAE9C,qBAAa,gBAAiB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBACtD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { IAppRegistry__factory } from '@towns-labs/generated/dev/typings/factories/IAppRegistry__factory';
3
- const { abi, connect } = IAppRegistry__factory;
4
- export class IAppRegistryShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=IAppRegistryShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IAppRegistryShim.js","sourceRoot":"","sources":["../../src/app-registry/IAppRegistryShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAA;AAEzG,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,qBAAqB,CAAA;AAE9C,MAAM,OAAO,gBAAiB,SAAQ,gBAAgC;IAClE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { IIdentityRegistry__factory } from '@towns-labs/generated/dev/typings/factories/IIdentityRegistry__factory';
4
- declare const connect: typeof IIdentityRegistry__factory.connect;
5
- export declare class IIdentityRegistryShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=IIdentityRegistryShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IIdentityRegistryShim.d.ts","sourceRoot":"","sources":["../../src/app-registry/IIdentityRegistryShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wEAAwE,CAAA;AAEnH,QAAA,MAAa,OAAO,2CAA+B,CAAA;AAEnD,qBAAa,qBAAsB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBAC3D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { IIdentityRegistry__factory } from '@towns-labs/generated/dev/typings/factories/IIdentityRegistry__factory';
3
- const { abi, connect } = IIdentityRegistry__factory;
4
- export class IIdentityRegistryShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=IIdentityRegistryShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IIdentityRegistryShim.js","sourceRoot":"","sources":["../../src/app-registry/IIdentityRegistryShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wEAAwE,CAAA;AAEnH,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,0BAA0B,CAAA;AAEnD,MAAM,OAAO,qBAAsB,SAAQ,gBAAgC;IACvE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { IReputationRegistry__factory } from '@towns-labs/generated/dev/typings/factories/IReputationRegistry__factory';
4
- declare const connect: typeof IReputationRegistry__factory.connect;
5
- export declare class IReputationRegistryShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=IReputationRegistryShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReputationRegistryShim.d.ts","sourceRoot":"","sources":["../../src/app-registry/IReputationRegistryShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0EAA0E,CAAA;AAEvH,QAAA,MAAa,OAAO,6CAAiC,CAAA;AAErD,qBAAa,uBAAwB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBAC7D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { IReputationRegistry__factory } from '@towns-labs/generated/dev/typings/factories/IReputationRegistry__factory';
3
- const { abi, connect } = IReputationRegistry__factory;
4
- export class IReputationRegistryShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=IReputationRegistryShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IReputationRegistryShim.js","sourceRoot":"","sources":["../../src/app-registry/IReputationRegistryShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0EAA0E,CAAA;AAEvH,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,4BAA4B,CAAA;AAErD,MAAM,OAAO,uBAAwB,SAAQ,gBAAgC;IACzE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { ISimpleApp__factory } from '@towns-labs/generated/dev/typings/factories/ISimpleApp__factory';
4
- declare const connect: typeof ISimpleApp__factory.connect;
5
- export declare class SimpleAppShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=SimpleAppShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleAppShim.d.ts","sourceRoot":"","sources":["../../src/app-registry/SimpleAppShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iEAAiE,CAAA;AAErG,QAAA,MAAa,OAAO,oCAAwB,CAAA;AAE5C,qBAAa,aAAc,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { ISimpleApp__factory } from '@towns-labs/generated/dev/typings/factories/ISimpleApp__factory';
3
- const { abi, connect } = ISimpleApp__factory;
4
- export class SimpleAppShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=SimpleAppShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleAppShim.js","sourceRoot":"","sources":["../../src/app-registry/SimpleAppShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iEAAiE,CAAA;AAErG,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,mBAAmB,CAAA;AAE5C,MAAM,OAAO,aAAc,SAAQ,gBAAgC;IAC/D,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,32 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseChainConfig } from '../utils/web3Env';
3
- import { INodeOperatorShim } from './INodeOperatorShim';
4
- import { IEntitlementCheckerShim } from './IEntitlementCheckerShim';
5
- import { ISpaceDelegationShim } from './ISpaceDelegationShim';
6
- import { IERC721AShim } from '../erc-721/IERC721AShim';
7
- import { RewardsDistributionV2Shim } from './RewardsDistributionShim';
8
- export type BaseOperator = {
9
- operatorAddress: string;
10
- status: number;
11
- };
12
- export type BaseNodeWithOperator = {
13
- node: string;
14
- operator: BaseOperator;
15
- };
16
- export declare class BaseRegistry {
17
- readonly config: BaseChainConfig;
18
- readonly provider: ethers.providers.Provider;
19
- readonly nodeOperator: INodeOperatorShim;
20
- readonly entitlementChecker: IEntitlementCheckerShim;
21
- readonly spaceDelegation: ISpaceDelegationShim;
22
- readonly rewardsDistributionV2: RewardsDistributionV2Shim;
23
- readonly erc721A: IERC721AShim;
24
- constructor(config: BaseChainConfig, provider: ethers.providers.Provider);
25
- private getOperatorStatus;
26
- getOperators(): Promise<BaseOperator[]>;
27
- private getNodeCount;
28
- private getNodeAtIndex;
29
- getNodes(): Promise<string[]>;
30
- getNodesWithOperators(): Promise<BaseNodeWithOperator[]>;
31
- }
32
- //# sourceMappingURL=BaseRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseRegistry.d.ts","sourceRoot":"","sources":["../../src/base-registry/BaseRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AAErE,MAAM,MAAM,YAAY,GAAG;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAA;AAE3E,qBAAa,YAAY;IACrB,SAAgB,MAAM,EAAE,eAAe,CAAA;IACvC,SAAgB,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAA;IACnD,SAAgB,YAAY,EAAE,iBAAiB,CAAA;IAC/C,SAAgB,kBAAkB,EAAE,uBAAuB,CAAA;IAC3D,SAAgB,eAAe,EAAE,oBAAoB,CAAA;IACrD,SAAgB,qBAAqB,EAAE,yBAAyB,CAAA;IAEhE,SAAgB,OAAO,EAAE,YAAY,CAAA;gBAEzB,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;YAiB1D,iBAAiB;IAIzB,YAAY,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YAc/B,YAAY;YAIZ,cAAc;IAIf,QAAQ;IAUR,qBAAqB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAoBxE"}
@@ -1,67 +0,0 @@
1
- import { INodeOperatorShim } from './INodeOperatorShim';
2
- import { IEntitlementCheckerShim } from './IEntitlementCheckerShim';
3
- import { ISpaceDelegationShim } from './ISpaceDelegationShim';
4
- import { IERC721AShim } from '../erc-721/IERC721AShim';
5
- import { RewardsDistributionV2Shim } from './RewardsDistributionShim';
6
- export class BaseRegistry {
7
- config;
8
- provider;
9
- nodeOperator;
10
- entitlementChecker;
11
- spaceDelegation;
12
- rewardsDistributionV2;
13
- erc721A;
14
- constructor(config, provider) {
15
- this.config = config;
16
- this.provider = provider;
17
- this.nodeOperator = new INodeOperatorShim(config.addresses.baseRegistry, provider);
18
- this.entitlementChecker = new IEntitlementCheckerShim(config.addresses.baseRegistry, provider);
19
- this.spaceDelegation = new ISpaceDelegationShim(config.addresses.baseRegistry, provider);
20
- this.rewardsDistributionV2 = new RewardsDistributionV2Shim(config.addresses.baseRegistry, provider);
21
- this.erc721A = new IERC721AShim(config.addresses.baseRegistry, provider);
22
- }
23
- async getOperatorStatus(operator) {
24
- return this.nodeOperator.read.getOperatorStatus(operator);
25
- }
26
- async getOperators() {
27
- const operatorAddresses = await this.nodeOperator.read.getOperators();
28
- const operatorStatusPromises = operatorAddresses.map((operatorAddress) => this.getOperatorStatus(operatorAddress));
29
- const operatorsStatus = await Promise.all(operatorStatusPromises);
30
- const operators = operatorAddresses.map((operatorAddress, index) => ({
31
- operatorAddress,
32
- status: operatorsStatus[index],
33
- }));
34
- return operators;
35
- }
36
- async getNodeCount() {
37
- return this.entitlementChecker.read.getNodeCount();
38
- }
39
- async getNodeAtIndex(index) {
40
- return this.entitlementChecker.read.getNodeAtIndex(index);
41
- }
42
- async getNodes() {
43
- const nodeCountBigInt = await this.getNodeCount();
44
- const nodeCount = Number(nodeCountBigInt);
45
- const zeroToNodeCount = Array.from(Array(nodeCount).keys());
46
- const nodeAtIndexPromises = zeroToNodeCount.map((index) => this.getNodeAtIndex(index));
47
- const nodes = await Promise.all(nodeAtIndexPromises);
48
- return nodes;
49
- }
50
- async getNodesWithOperators() {
51
- const operators = await this.getOperators();
52
- const nodesByOperatorPromises = operators.map((operator) => this.entitlementChecker.read.getNodesByOperator(operator.operatorAddress));
53
- const nodesByOperator = await Promise.all(nodesByOperatorPromises);
54
- const operatorsWithNodes = operators.map((operator, index) => ({
55
- operator,
56
- nodes: nodesByOperator[index],
57
- }));
58
- const nodesWithOperators = [];
59
- operatorsWithNodes.forEach(({ operator, nodes }) => {
60
- nodes.forEach((node) => {
61
- nodesWithOperators.push({ node, operator });
62
- });
63
- });
64
- return nodesWithOperators;
65
- }
66
- }
67
- //# sourceMappingURL=BaseRegistry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseRegistry.js","sourceRoot":"","sources":["../../src/base-registry/BaseRegistry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,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D,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAC5E,CAAA;QACD,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;QAClE,MAAM,kBAAkB,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YAC3D,QAAQ;YACR,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC;SAChC,CAAC,CAAC,CAAA;QAEH,MAAM,kBAAkB,GAA2B,EAAE,CAAA;QACrD,kBAAkB,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;YAC/C,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACnB,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC/C,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;QAEF,OAAO,kBAAkB,CAAA;IAC7B,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { IEntitlementChecker__factory } from '@towns-labs/generated/dev/typings/factories/IEntitlementChecker__factory';
4
- declare const connect: typeof IEntitlementChecker__factory.connect;
5
- export declare class IEntitlementCheckerShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=IEntitlementCheckerShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEntitlementCheckerShim.d.ts","sourceRoot":"","sources":["../../src/base-registry/IEntitlementCheckerShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0EAA0E,CAAA;AAEvH,QAAA,MAAa,OAAO,6CAAiC,CAAA;AAErD,qBAAa,uBAAwB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBAC7D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { IEntitlementChecker__factory } from '@towns-labs/generated/dev/typings/factories/IEntitlementChecker__factory';
3
- const { abi, connect } = IEntitlementChecker__factory;
4
- export class IEntitlementCheckerShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=IEntitlementCheckerShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IEntitlementCheckerShim.js","sourceRoot":"","sources":["../../src/base-registry/IEntitlementCheckerShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0EAA0E,CAAA;AAEvH,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,4BAA4B,CAAA;AAErD,MAAM,OAAO,uBAAwB,SAAQ,gBAAgC;IACzE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { INodeOperator__factory } from '@towns-labs/generated/dev/typings/factories/INodeOperator__factory';
4
- declare const connect: typeof INodeOperator__factory.connect;
5
- export declare class INodeOperatorShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=INodeOperatorShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INodeOperatorShim.d.ts","sourceRoot":"","sources":["../../src/base-registry/INodeOperatorShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAA;AAE3G,QAAA,MAAa,OAAO,uCAA2B,CAAA;AAE/C,qBAAa,iBAAkB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBACvD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { INodeOperator__factory } from '@towns-labs/generated/dev/typings/factories/INodeOperator__factory';
3
- const { abi, connect } = INodeOperator__factory;
4
- export class INodeOperatorShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=INodeOperatorShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"INodeOperatorShim.js","sourceRoot":"","sources":["../../src/base-registry/INodeOperatorShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAA;AAE3G,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,sBAAsB,CAAA;AAE/C,MAAM,OAAO,iBAAkB,SAAQ,gBAAgC;IACnE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { ISpaceDelegation__factory } from '@towns-labs/generated/dev/typings/factories/ISpaceDelegation__factory';
4
- declare const connect: typeof ISpaceDelegation__factory.connect;
5
- export declare class ISpaceDelegationShim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=ISpaceDelegationShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISpaceDelegationShim.d.ts","sourceRoot":"","sources":["../../src/base-registry/ISpaceDelegationShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uEAAuE,CAAA;AAEjH,QAAA,MAAa,OAAO,0CAA8B,CAAA;AAElD,qBAAa,oBAAqB,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBAC1D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { ISpaceDelegation__factory } from '@towns-labs/generated/dev/typings/factories/ISpaceDelegation__factory';
3
- const { abi, connect } = ISpaceDelegation__factory;
4
- export class ISpaceDelegationShim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=ISpaceDelegationShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISpaceDelegationShim.js","sourceRoot":"","sources":["../../src/base-registry/ISpaceDelegationShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uEAAuE,CAAA;AAEjH,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,yBAAyB,CAAA;AAElD,MAAM,OAAO,oBAAqB,SAAQ,gBAAgC;IACtE,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { BaseContractShim } from '../BaseContractShim';
3
- import { RewardsDistributionV2__factory } from '@towns-labs/generated/dev/typings/factories/RewardsDistributionV2__factory';
4
- declare const connect: typeof RewardsDistributionV2__factory.connect;
5
- export declare class RewardsDistributionV2Shim extends BaseContractShim<typeof connect> {
6
- constructor(address: string, provider: ethers.providers.Provider);
7
- }
8
- export {};
9
- //# sourceMappingURL=RewardsDistributionShim.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RewardsDistributionShim.d.ts","sourceRoot":"","sources":["../../src/base-registry/RewardsDistributionShim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4EAA4E,CAAA;AAE3H,QAAA,MAAa,OAAO,+CAAmC,CAAA;AAEvD,qBAAa,yBAA0B,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CAAC;gBAC/D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;CAGnE"}
@@ -1,9 +0,0 @@
1
- import { BaseContractShim } from '../BaseContractShim';
2
- import { RewardsDistributionV2__factory } from '@towns-labs/generated/dev/typings/factories/RewardsDistributionV2__factory';
3
- const { abi, connect } = RewardsDistributionV2__factory;
4
- export class RewardsDistributionV2Shim extends BaseContractShim {
5
- constructor(address, provider) {
6
- super(address, provider, connect, abi);
7
- }
8
- }
9
- //# sourceMappingURL=RewardsDistributionShim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RewardsDistributionShim.js","sourceRoot":"","sources":["../../src/base-registry/RewardsDistributionShim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4EAA4E,CAAA;AAE3H,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,8BAA8B,CAAA;AAEvD,MAAM,OAAO,yBAA0B,SAAQ,gBAAgC;IAC3E,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;CACJ"}
@@ -1,3 +0,0 @@
1
- import { ethers } from 'ethers';
2
- export declare function computeDelegatorsForProvider(provider: ethers.providers.BaseProvider, wallets: string[]): Promise<string[]>;
3
- //# sourceMappingURL=DelegateRegistry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DelegateRegistry.d.ts","sourceRoot":"","sources":["../../src/delegate-registry/DelegateRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,QAAQ,CAAA;AAqEtC,wBAAsB,4BAA4B,CAC9C,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY,EACvC,OAAO,EAAE,MAAM,EAAE,GAClB,OAAO,CAAC,MAAM,EAAE,CAAC,CAwBnB"}