@towns-labs/web3 2.0.1
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.
- package/README.md +3 -0
- package/dist/BaseContractShim.d.ts +57 -0
- package/dist/BaseContractShim.d.ts.map +1 -0
- package/dist/BaseContractShim.js +224 -0
- package/dist/BaseContractShim.js.map +1 -0
- package/dist/airdrop/IDropFacetShim.d.ts +9 -0
- package/dist/airdrop/IDropFacetShim.d.ts.map +1 -0
- package/dist/airdrop/IDropFacetShim.js +9 -0
- package/dist/airdrop/IDropFacetShim.js.map +1 -0
- package/dist/airdrop/IRiverPointsShim.d.ts +9 -0
- package/dist/airdrop/IRiverPointsShim.d.ts.map +1 -0
- package/dist/airdrop/IRiverPointsShim.js +9 -0
- package/dist/airdrop/IRiverPointsShim.js.map +1 -0
- package/dist/airdrop/RiverAirdropDapp.d.ts +16 -0
- package/dist/airdrop/RiverAirdropDapp.d.ts.map +1 -0
- package/dist/airdrop/RiverAirdropDapp.js +30 -0
- package/dist/airdrop/RiverAirdropDapp.js.map +1 -0
- package/dist/app-registry/AppRegistryDapp.d.ts +68 -0
- package/dist/app-registry/AppRegistryDapp.d.ts.map +1 -0
- package/dist/app-registry/AppRegistryDapp.js +182 -0
- package/dist/app-registry/AppRegistryDapp.js.map +1 -0
- package/dist/app-registry/IAppFactoryShim.d.ts +9 -0
- package/dist/app-registry/IAppFactoryShim.d.ts.map +1 -0
- package/dist/app-registry/IAppFactoryShim.js +9 -0
- package/dist/app-registry/IAppFactoryShim.js.map +1 -0
- package/dist/app-registry/IAppInstallerShim.d.ts +9 -0
- package/dist/app-registry/IAppInstallerShim.d.ts.map +1 -0
- package/dist/app-registry/IAppInstallerShim.js +9 -0
- package/dist/app-registry/IAppInstallerShim.js.map +1 -0
- package/dist/app-registry/IAppRegistryShim.d.ts +9 -0
- package/dist/app-registry/IAppRegistryShim.d.ts.map +1 -0
- package/dist/app-registry/IAppRegistryShim.js +9 -0
- package/dist/app-registry/IAppRegistryShim.js.map +1 -0
- package/dist/app-registry/IIdentityRegistryShim.d.ts +9 -0
- package/dist/app-registry/IIdentityRegistryShim.d.ts.map +1 -0
- package/dist/app-registry/IIdentityRegistryShim.js +9 -0
- package/dist/app-registry/IIdentityRegistryShim.js.map +1 -0
- package/dist/app-registry/IReputationRegistryShim.d.ts +9 -0
- package/dist/app-registry/IReputationRegistryShim.d.ts.map +1 -0
- package/dist/app-registry/IReputationRegistryShim.js +9 -0
- package/dist/app-registry/IReputationRegistryShim.js.map +1 -0
- package/dist/app-registry/SimpleAppShim.d.ts +9 -0
- package/dist/app-registry/SimpleAppShim.d.ts.map +1 -0
- package/dist/app-registry/SimpleAppShim.js +9 -0
- package/dist/app-registry/SimpleAppShim.js.map +1 -0
- package/dist/base-registry/BaseRegistry.d.ts +32 -0
- package/dist/base-registry/BaseRegistry.d.ts.map +1 -0
- package/dist/base-registry/BaseRegistry.js +67 -0
- package/dist/base-registry/BaseRegistry.js.map +1 -0
- package/dist/base-registry/IEntitlementCheckerShim.d.ts +9 -0
- package/dist/base-registry/IEntitlementCheckerShim.d.ts.map +1 -0
- package/dist/base-registry/IEntitlementCheckerShim.js +9 -0
- package/dist/base-registry/IEntitlementCheckerShim.js.map +1 -0
- package/dist/base-registry/INodeOperatorShim.d.ts +9 -0
- package/dist/base-registry/INodeOperatorShim.d.ts.map +1 -0
- package/dist/base-registry/INodeOperatorShim.js +9 -0
- package/dist/base-registry/INodeOperatorShim.js.map +1 -0
- package/dist/base-registry/ISpaceDelegationShim.d.ts +9 -0
- package/dist/base-registry/ISpaceDelegationShim.d.ts.map +1 -0
- package/dist/base-registry/ISpaceDelegationShim.js +9 -0
- package/dist/base-registry/ISpaceDelegationShim.js.map +1 -0
- package/dist/base-registry/RewardsDistributionShim.d.ts +9 -0
- package/dist/base-registry/RewardsDistributionShim.d.ts.map +1 -0
- package/dist/base-registry/RewardsDistributionShim.js +9 -0
- package/dist/base-registry/RewardsDistributionShim.js.map +1 -0
- package/dist/cache/EntitlementCache.d.ts +25 -0
- package/dist/cache/EntitlementCache.d.ts.map +1 -0
- package/dist/cache/EntitlementCache.js +91 -0
- package/dist/cache/EntitlementCache.js.map +1 -0
- package/dist/cache/ICacheStorage.d.ts +44 -0
- package/dist/cache/ICacheStorage.d.ts.map +1 -0
- package/dist/cache/ICacheStorage.js +2 -0
- package/dist/cache/ICacheStorage.js.map +1 -0
- package/dist/cache/KVCacheStorage.d.ts +79 -0
- package/dist/cache/KVCacheStorage.d.ts.map +1 -0
- package/dist/cache/KVCacheStorage.js +227 -0
- package/dist/cache/KVCacheStorage.js.map +1 -0
- package/dist/cache/Keyable.d.ts +20 -0
- package/dist/cache/Keyable.d.ts.map +1 -0
- package/dist/cache/Keyable.js +62 -0
- package/dist/cache/Keyable.js.map +1 -0
- package/dist/cache/SimpleCache.d.ts +30 -0
- package/dist/cache/SimpleCache.d.ts.map +1 -0
- package/dist/cache/SimpleCache.js +84 -0
- package/dist/cache/SimpleCache.js.map +1 -0
- package/dist/cache/TTLCacheStorage.d.ts +19 -0
- package/dist/cache/TTLCacheStorage.d.ts.map +1 -0
- package/dist/cache/TTLCacheStorage.js +40 -0
- package/dist/cache/TTLCacheStorage.js.map +1 -0
- package/dist/chain.d.ts +89 -0
- package/dist/chain.d.ts.map +1 -0
- package/dist/chain.js +48 -0
- package/dist/chain.js.map +1 -0
- package/dist/delegate-registry/DelegateRegistry.d.ts +3 -0
- package/dist/delegate-registry/DelegateRegistry.d.ts.map +1 -0
- package/dist/delegate-registry/DelegateRegistry.js +72 -0
- package/dist/delegate-registry/DelegateRegistry.js.map +1 -0
- package/dist/eip-712/EIP-712.d.ts +35 -0
- package/dist/eip-712/EIP-712.d.ts.map +1 -0
- package/dist/eip-712/EIP-712.js +57 -0
- package/dist/eip-712/EIP-712.js.map +1 -0
- package/dist/erc-721/IERC721AQueryableShim.d.ts +9 -0
- package/dist/erc-721/IERC721AQueryableShim.d.ts.map +1 -0
- package/dist/erc-721/IERC721AQueryableShim.js +9 -0
- package/dist/erc-721/IERC721AQueryableShim.js.map +1 -0
- package/dist/erc-721/IERC721AShim.d.ts +9 -0
- package/dist/erc-721/IERC721AShim.d.ts.map +1 -0
- package/dist/erc-721/IERC721AShim.js +9 -0
- package/dist/erc-721/IERC721AShim.js.map +1 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96 -0
- package/dist/index.js.map +1 -0
- package/dist/platform-requirements/PlatformRequirements.d.ts +12 -0
- package/dist/platform-requirements/PlatformRequirements.d.ts.map +1 -0
- package/dist/platform-requirements/PlatformRequirements.js +18 -0
- package/dist/platform-requirements/PlatformRequirements.js.map +1 -0
- package/dist/pricing-modules/IPricingShim.d.ts +9 -0
- package/dist/pricing-modules/IPricingShim.d.ts.map +1 -0
- package/dist/pricing-modules/IPricingShim.js +9 -0
- package/dist/pricing-modules/IPricingShim.js.map +1 -0
- package/dist/pricing-modules/PricingModules.d.ts +13 -0
- package/dist/pricing-modules/PricingModules.d.ts.map +1 -0
- package/dist/pricing-modules/PricingModules.js +23 -0
- package/dist/pricing-modules/PricingModules.js.map +1 -0
- package/dist/pricing-modules/helpers.d.ts +16 -0
- package/dist/pricing-modules/helpers.d.ts.map +1 -0
- package/dist/pricing-modules/helpers.js +35 -0
- package/dist/pricing-modules/helpers.js.map +1 -0
- package/dist/readContractRetryer.d.ts +10 -0
- package/dist/readContractRetryer.d.ts.map +1 -0
- package/dist/readContractRetryer.js +68 -0
- package/dist/readContractRetryer.js.map +1 -0
- package/dist/river-registry/INodeRegistryShim.d.ts +9 -0
- package/dist/river-registry/INodeRegistryShim.d.ts.map +1 -0
- package/dist/river-registry/INodeRegistryShim.js +9 -0
- package/dist/river-registry/INodeRegistryShim.js.map +1 -0
- package/dist/river-registry/IOperatorRegistryShim.d.ts +9 -0
- package/dist/river-registry/IOperatorRegistryShim.d.ts.map +1 -0
- package/dist/river-registry/IOperatorRegistryShim.js +9 -0
- package/dist/river-registry/IOperatorRegistryShim.js.map +1 -0
- package/dist/river-registry/IStreamRegistryShim.d.ts +9 -0
- package/dist/river-registry/IStreamRegistryShim.d.ts.map +1 -0
- package/dist/river-registry/IStreamRegistryShim.js +9 -0
- package/dist/river-registry/IStreamRegistryShim.js.map +1 -0
- package/dist/river-registry/RiverRegistry.d.ts +18 -0
- package/dist/river-registry/RiverRegistry.d.ts.map +1 -0
- package/dist/river-registry/RiverRegistry.js +42 -0
- package/dist/river-registry/RiverRegistry.js.map +1 -0
- package/dist/river-registry/RiverRegistryFactory.d.ts +5 -0
- package/dist/river-registry/RiverRegistryFactory.d.ts.map +1 -0
- package/dist/river-registry/RiverRegistryFactory.js +5 -0
- package/dist/river-registry/RiverRegistryFactory.js.map +1 -0
- package/dist/space/IAppAccountShim.d.ts +9 -0
- package/dist/space/IAppAccountShim.d.ts.map +1 -0
- package/dist/space/IAppAccountShim.js +9 -0
- package/dist/space/IAppAccountShim.js.map +1 -0
- package/dist/space/IBanningShim.d.ts +9 -0
- package/dist/space/IBanningShim.d.ts.map +1 -0
- package/dist/space/IBanningShim.js +9 -0
- package/dist/space/IBanningShim.js.map +1 -0
- package/dist/space/IChannelShim.d.ts +9 -0
- package/dist/space/IChannelShim.d.ts.map +1 -0
- package/dist/space/IChannelShim.js +9 -0
- package/dist/space/IChannelShim.js.map +1 -0
- package/dist/space/IEntitlementDataQueryableShim.d.ts +11 -0
- package/dist/space/IEntitlementDataQueryableShim.d.ts.map +1 -0
- package/dist/space/IEntitlementDataQueryableShim.js +9 -0
- package/dist/space/IEntitlementDataQueryableShim.js.map +1 -0
- package/dist/space/IEntitlementsShim.d.ts +13 -0
- package/dist/space/IEntitlementsShim.d.ts.map +1 -0
- package/dist/space/IEntitlementsShim.js +19 -0
- package/dist/space/IEntitlementsShim.js.map +1 -0
- package/dist/space/IMembershipMetadataShim.d.ts +9 -0
- package/dist/space/IMembershipMetadataShim.d.ts.map +1 -0
- package/dist/space/IMembershipMetadataShim.js +9 -0
- package/dist/space/IMembershipMetadataShim.js.map +1 -0
- package/dist/space/IMembershipShim.d.ts +33 -0
- package/dist/space/IMembershipShim.d.ts.map +1 -0
- package/dist/space/IMembershipShim.js +139 -0
- package/dist/space/IMembershipShim.js.map +1 -0
- package/dist/space/IMulticallShim.d.ts +13 -0
- package/dist/space/IMulticallShim.d.ts.map +1 -0
- package/dist/space/IMulticallShim.js +15 -0
- package/dist/space/IMulticallShim.js.map +1 -0
- package/dist/space/IReviewShim.d.ts +64 -0
- package/dist/space/IReviewShim.d.ts.map +1 -0
- package/dist/space/IReviewShim.js +102 -0
- package/dist/space/IReviewShim.js.map +1 -0
- package/dist/space/IRolesShim.d.ts +10 -0
- package/dist/space/IRolesShim.d.ts.map +1 -0
- package/dist/space/IRolesShim.js +9 -0
- package/dist/space/IRolesShim.js.map +1 -0
- package/dist/space/ITippingShim.d.ts +39 -0
- package/dist/space/ITippingShim.d.ts.map +1 -0
- package/dist/space/ITippingShim.js +76 -0
- package/dist/space/ITippingShim.js.map +1 -0
- package/dist/space/ITreasuryShim.d.ts +9 -0
- package/dist/space/ITreasuryShim.d.ts.map +1 -0
- package/dist/space/ITreasuryShim.js +9 -0
- package/dist/space/ITreasuryShim.js.map +1 -0
- package/dist/space/OwnableFacetShim.d.ts +12 -0
- package/dist/space/OwnableFacetShim.d.ts.map +1 -0
- package/dist/space/OwnableFacetShim.js +19 -0
- package/dist/space/OwnableFacetShim.js.map +1 -0
- package/dist/space/Space.d.ts +107 -0
- package/dist/space/Space.d.ts.map +1 -0
- package/dist/space/Space.js +511 -0
- package/dist/space/Space.js.map +1 -0
- package/dist/space/TokenPausableFacetShim.d.ts +9 -0
- package/dist/space/TokenPausableFacetShim.d.ts.map +1 -0
- package/dist/space/TokenPausableFacetShim.js +9 -0
- package/dist/space/TokenPausableFacetShim.js.map +1 -0
- package/dist/space/entitlements/ConvertersEntitlements.d.ts +14 -0
- package/dist/space/entitlements/ConvertersEntitlements.d.ts.map +1 -0
- package/dist/space/entitlements/ConvertersEntitlements.js +193 -0
- package/dist/space/entitlements/ConvertersEntitlements.js.map +1 -0
- package/dist/space/entitlements/RuleBuilder.d.ts +83 -0
- package/dist/space/entitlements/RuleBuilder.d.ts.map +1 -0
- package/dist/space/entitlements/RuleBuilder.js +86 -0
- package/dist/space/entitlements/RuleBuilder.js.map +1 -0
- package/dist/space/entitlements/RuleEntitlementShim.d.ts +353 -0
- package/dist/space/entitlements/RuleEntitlementShim.d.ts.map +1 -0
- package/dist/space/entitlements/RuleEntitlementShim.js +40 -0
- package/dist/space/entitlements/RuleEntitlementShim.js.map +1 -0
- package/dist/space/entitlements/RuleEntitlementV2Shim.d.ts +353 -0
- package/dist/space/entitlements/RuleEntitlementV2Shim.d.ts.map +1 -0
- package/dist/space/entitlements/RuleEntitlementV2Shim.js +40 -0
- package/dist/space/entitlements/RuleEntitlementV2Shim.js.map +1 -0
- package/dist/space/entitlements/UserEntitlementShim.d.ts +13 -0
- package/dist/space/entitlements/UserEntitlementShim.d.ts.map +1 -0
- package/dist/space/entitlements/UserEntitlementShim.js +45 -0
- package/dist/space/entitlements/UserEntitlementShim.js.map +1 -0
- package/dist/space/entitlements/XChainConfig.d.ts +14 -0
- package/dist/space/entitlements/XChainConfig.d.ts.map +1 -0
- package/dist/space/entitlements/XChainConfig.js +70 -0
- package/dist/space/entitlements/XChainConfig.js.map +1 -0
- package/dist/space/entitlements/entitlement.d.ts +147 -0
- package/dist/space/entitlements/entitlement.d.ts.map +1 -0
- package/dist/space/entitlements/entitlement.js +940 -0
- package/dist/space/entitlements/entitlement.js.map +1 -0
- package/dist/space/entitlements/validateAndParseXChainConfig.d.ts +6 -0
- package/dist/space/entitlements/validateAndParseXChainConfig.d.ts.map +1 -0
- package/dist/space/entitlements/validateAndParseXChainConfig.js +34 -0
- package/dist/space/entitlements/validateAndParseXChainConfig.js.map +1 -0
- package/dist/space-dapp/SpaceDapp.d.ts +223 -0
- package/dist/space-dapp/SpaceDapp.d.ts.map +1 -0
- package/dist/space-dapp/SpaceDapp.js +1260 -0
- package/dist/space-dapp/SpaceDapp.js.map +1 -0
- package/dist/space-dapp/SpaceDappFactory.d.ts +5 -0
- package/dist/space-dapp/SpaceDappFactory.d.ts.map +1 -0
- package/dist/space-dapp/SpaceDappFactory.js +8 -0
- package/dist/space-dapp/SpaceDappFactory.js.map +1 -0
- package/dist/space-dapp/wrapTransaction.d.ts +4 -0
- package/dist/space-dapp/wrapTransaction.d.ts.map +1 -0
- package/dist/space-dapp/wrapTransaction.js +99 -0
- package/dist/space-dapp/wrapTransaction.js.map +1 -0
- package/dist/space-owner/GuardianFacetShim.d.ts +9 -0
- package/dist/space-owner/GuardianFacetShim.d.ts.map +1 -0
- package/dist/space-owner/GuardianFacetShim.js +9 -0
- package/dist/space-owner/GuardianFacetShim.js.map +1 -0
- package/dist/space-owner/SpaceOwner.d.ts +48 -0
- package/dist/space-owner/SpaceOwner.d.ts.map +1 -0
- package/dist/space-owner/SpaceOwner.js +81 -0
- package/dist/space-owner/SpaceOwner.js.map +1 -0
- package/dist/space-registrar/ICreateSpaceShim.d.ts +11 -0
- package/dist/space-registrar/ICreateSpaceShim.d.ts.map +1 -0
- package/dist/space-registrar/ICreateSpaceShim.js +9 -0
- package/dist/space-registrar/ICreateSpaceShim.js.map +1 -0
- package/dist/space-registrar/ILegacySpaceArchitectShim.d.ts +10 -0
- package/dist/space-registrar/ILegacySpaceArchitectShim.d.ts.map +1 -0
- package/dist/space-registrar/ILegacySpaceArchitectShim.js +9 -0
- package/dist/space-registrar/ILegacySpaceArchitectShim.js.map +1 -0
- package/dist/space-registrar/ISpaceArchitectShim.d.ts +10 -0
- package/dist/space-registrar/ISpaceArchitectShim.d.ts.map +1 -0
- package/dist/space-registrar/ISpaceArchitectShim.js +39 -0
- package/dist/space-registrar/ISpaceArchitectShim.js.map +1 -0
- package/dist/space-registrar/SpaceRegistrar.d.ts +27 -0
- package/dist/space-registrar/SpaceRegistrar.d.ts.map +1 -0
- package/dist/space-registrar/SpaceRegistrar.js +58 -0
- package/dist/space-registrar/SpaceRegistrar.js.map +1 -0
- package/dist/test-helpers/LocalhostWeb3Provider.d.ts +19 -0
- package/dist/test-helpers/LocalhostWeb3Provider.d.ts.map +1 -0
- package/dist/test-helpers/LocalhostWeb3Provider.js +80 -0
- package/dist/test-helpers/LocalhostWeb3Provider.js.map +1 -0
- package/dist/test-helpers/MockCrossChainEntitlement.d.ts +6 -0
- package/dist/test-helpers/MockCrossChainEntitlement.d.ts.map +1 -0
- package/dist/test-helpers/MockCrossChainEntitlement.js +104 -0
- package/dist/test-helpers/MockCrossChainEntitlement.js.map +1 -0
- package/dist/test-helpers/MockERC1155.d.ts +6 -0
- package/dist/test-helpers/MockERC1155.d.ts.map +1 -0
- package/dist/test-helpers/MockERC1155.js +518 -0
- package/dist/test-helpers/MockERC1155.js.map +1 -0
- package/dist/test-helpers/MockERC20.d.ts +6 -0
- package/dist/test-helpers/MockERC20.d.ts.map +1 -0
- package/dist/test-helpers/MockERC20.js +574 -0
- package/dist/test-helpers/MockERC20.js.map +1 -0
- package/dist/test-helpers/MockERC721A.d.ts +1563 -0
- package/dist/test-helpers/MockERC721A.d.ts.map +1 -0
- package/dist/test-helpers/MockERC721A.js +1913 -0
- package/dist/test-helpers/MockERC721A.js.map +1 -0
- package/dist/test-helpers/MockERC721AShim.d.ts +9 -0
- package/dist/test-helpers/MockERC721AShim.d.ts.map +1 -0
- package/dist/test-helpers/MockERC721AShim.js +9 -0
- package/dist/test-helpers/MockERC721AShim.js.map +1 -0
- package/dist/test-helpers/TestCrossChainEntitlement.d.ts +14 -0
- package/dist/test-helpers/TestCrossChainEntitlement.d.ts.map +1 -0
- package/dist/test-helpers/TestCrossChainEntitlement.js +99 -0
- package/dist/test-helpers/TestCrossChainEntitlement.js.map +1 -0
- package/dist/test-helpers/TestEthBalance.d.ts +72 -0
- package/dist/test-helpers/TestEthBalance.d.ts.map +1 -0
- package/dist/test-helpers/TestEthBalance.js +94 -0
- package/dist/test-helpers/TestEthBalance.js.map +1 -0
- package/dist/test-helpers/TestGatingERC1155.d.ts +17 -0
- package/dist/test-helpers/TestGatingERC1155.d.ts.map +1 -0
- package/dist/test-helpers/TestGatingERC1155.js +100 -0
- package/dist/test-helpers/TestGatingERC1155.js.map +1 -0
- package/dist/test-helpers/TestGatingERC20.d.ts +17 -0
- package/dist/test-helpers/TestGatingERC20.d.ts.map +1 -0
- package/dist/test-helpers/TestGatingERC20.js +149 -0
- package/dist/test-helpers/TestGatingERC20.js.map +1 -0
- package/dist/test-helpers/TestGatingNFT.d.ts +17 -0
- package/dist/test-helpers/TestGatingNFT.d.ts.map +1 -0
- package/dist/test-helpers/TestGatingNFT.js +137 -0
- package/dist/test-helpers/TestGatingNFT.js.map +1 -0
- package/dist/test-helpers/TestGatingUtils.d.ts +15 -0
- package/dist/test-helpers/TestGatingUtils.d.ts.map +1 -0
- package/dist/test-helpers/TestGatingUtils.js +112 -0
- package/dist/test-helpers/TestGatingUtils.js.map +1 -0
- package/dist/test-helpers/utils.d.ts +22 -0
- package/dist/test-helpers/utils.d.ts.map +1 -0
- package/dist/test-helpers/utils.js +30 -0
- package/dist/test-helpers/utils.js.map +1 -0
- package/dist/towns-token/TownsToken.d.ts +17 -0
- package/dist/towns-token/TownsToken.d.ts.map +1 -0
- package/dist/towns-token/TownsToken.js +33 -0
- package/dist/towns-token/TownsToken.js.map +1 -0
- package/dist/types/ContractTypes.d.ts +240 -0
- package/dist/types/ContractTypes.d.ts.map +1 -0
- package/dist/types/ContractTypes.js +65 -0
- package/dist/types/ContractTypes.js.map +1 -0
- package/dist/types/error-types.d.ts +7 -0
- package/dist/types/error-types.d.ts.map +1 -0
- package/dist/types/error-types.js +13 -0
- package/dist/types/error-types.js.map +1 -0
- package/dist/types/typechain.d.ts +4 -0
- package/dist/types/typechain.d.ts.map +1 -0
- package/dist/types/typechain.js +2 -0
- package/dist/types/typechain.js.map +1 -0
- package/dist/types/types.d.ts +29 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/types.js +2 -0
- package/dist/types/types.js.map +1 -0
- package/dist/utils/ContractHelpers.d.ts +14 -0
- package/dist/utils/ContractHelpers.d.ts.map +1 -0
- package/dist/utils/ContractHelpers.js +54 -0
- package/dist/utils/ContractHelpers.js.map +1 -0
- package/dist/utils/Web3Constants.d.ts +6 -0
- package/dist/utils/Web3Constants.d.ts.map +1 -0
- package/dist/utils/Web3Constants.js +7 -0
- package/dist/utils/Web3Constants.js.map +1 -0
- package/dist/utils/ut.d.ts +46 -0
- package/dist/utils/ut.d.ts.map +1 -0
- package/dist/utils/ut.js +94 -0
- package/dist/utils/ut.js.map +1 -0
- package/dist/utils/web3Env.d.ts +36 -0
- package/dist/utils/web3Env.d.ts.map +1 -0
- package/dist/utils/web3Env.js +123 -0
- package/dist/utils/web3Env.js.map +1 -0
- package/dist/wallet-link/WalletLink.d.ts +58 -0
- package/dist/wallet-link/WalletLink.d.ts.map +1 -0
- package/dist/wallet-link/WalletLink.js +226 -0
- package/dist/wallet-link/WalletLink.js.map +1 -0
- package/dist/wallet-link/WalletLinkShim.d.ts +9 -0
- package/dist/wallet-link/WalletLinkShim.d.ts.map +1 -0
- package/dist/wallet-link/WalletLinkShim.js +9 -0
- package/dist/wallet-link/WalletLinkShim.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { IRuleEntitlement, IRuleEntitlementBase } from '@towns-labs/generated/dev/typings/IRuleEntitlement.sol/IRuleEntitlement';
|
|
2
|
+
import { BaseContractShim } from '../../BaseContractShim';
|
|
3
|
+
import { BigNumberish, ethers } from 'ethers';
|
|
4
|
+
import { EntitlementModuleType, EntitlementModule } from '../../types/ContractTypes';
|
|
5
|
+
import { IRuleEntitlement__factory } from '@towns-labs/generated/dev/typings/factories/IRuleEntitlement.sol/IRuleEntitlement__factory';
|
|
6
|
+
declare const abi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly name: "description";
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly outputs: readonly [{
|
|
11
|
+
readonly name: "";
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly internalType: "string";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "view";
|
|
16
|
+
}, {
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
readonly name: "encodeRuleData";
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly name: "data";
|
|
21
|
+
readonly type: "tuple";
|
|
22
|
+
readonly internalType: "struct IRuleEntitlementBase.RuleData";
|
|
23
|
+
readonly components: readonly [{
|
|
24
|
+
readonly name: "operations";
|
|
25
|
+
readonly type: "tuple[]";
|
|
26
|
+
readonly internalType: "struct IRuleEntitlementBase.Operation[]";
|
|
27
|
+
readonly components: readonly [{
|
|
28
|
+
readonly name: "opType";
|
|
29
|
+
readonly type: "uint8";
|
|
30
|
+
readonly internalType: "enum IRuleEntitlementBase.CombinedOperationType";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "index";
|
|
33
|
+
readonly type: "uint8";
|
|
34
|
+
readonly internalType: "uint8";
|
|
35
|
+
}];
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "checkOperations";
|
|
38
|
+
readonly type: "tuple[]";
|
|
39
|
+
readonly internalType: "struct IRuleEntitlementBase.CheckOperation[]";
|
|
40
|
+
readonly components: readonly [{
|
|
41
|
+
readonly name: "opType";
|
|
42
|
+
readonly type: "uint8";
|
|
43
|
+
readonly internalType: "enum IRuleEntitlementBase.CheckOperationType";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "chainId";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "contractAddress";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "threshold";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
readonly internalType: "uint256";
|
|
56
|
+
}];
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "logicalOperations";
|
|
59
|
+
readonly type: "tuple[]";
|
|
60
|
+
readonly internalType: "struct IRuleEntitlementBase.LogicalOperation[]";
|
|
61
|
+
readonly components: readonly [{
|
|
62
|
+
readonly name: "logOpType";
|
|
63
|
+
readonly type: "uint8";
|
|
64
|
+
readonly internalType: "enum IRuleEntitlementBase.LogicalOperationType";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "leftOperationIndex";
|
|
67
|
+
readonly type: "uint8";
|
|
68
|
+
readonly internalType: "uint8";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "rightOperationIndex";
|
|
71
|
+
readonly type: "uint8";
|
|
72
|
+
readonly internalType: "uint8";
|
|
73
|
+
}];
|
|
74
|
+
}];
|
|
75
|
+
}];
|
|
76
|
+
readonly outputs: readonly [{
|
|
77
|
+
readonly name: "";
|
|
78
|
+
readonly type: "bytes";
|
|
79
|
+
readonly internalType: "bytes";
|
|
80
|
+
}];
|
|
81
|
+
readonly stateMutability: "pure";
|
|
82
|
+
}, {
|
|
83
|
+
readonly type: "function";
|
|
84
|
+
readonly name: "getEntitlementDataByRoleId";
|
|
85
|
+
readonly inputs: readonly [{
|
|
86
|
+
readonly name: "roleId";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
readonly internalType: "uint256";
|
|
89
|
+
}];
|
|
90
|
+
readonly outputs: readonly [{
|
|
91
|
+
readonly name: "";
|
|
92
|
+
readonly type: "bytes";
|
|
93
|
+
readonly internalType: "bytes";
|
|
94
|
+
}];
|
|
95
|
+
readonly stateMutability: "view";
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "function";
|
|
98
|
+
readonly name: "getRuleData";
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly name: "roleId";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
}];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly name: "data";
|
|
106
|
+
readonly type: "tuple";
|
|
107
|
+
readonly internalType: "struct IRuleEntitlementBase.RuleData";
|
|
108
|
+
readonly components: readonly [{
|
|
109
|
+
readonly name: "operations";
|
|
110
|
+
readonly type: "tuple[]";
|
|
111
|
+
readonly internalType: "struct IRuleEntitlementBase.Operation[]";
|
|
112
|
+
readonly components: readonly [{
|
|
113
|
+
readonly name: "opType";
|
|
114
|
+
readonly type: "uint8";
|
|
115
|
+
readonly internalType: "enum IRuleEntitlementBase.CombinedOperationType";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "index";
|
|
118
|
+
readonly type: "uint8";
|
|
119
|
+
readonly internalType: "uint8";
|
|
120
|
+
}];
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "checkOperations";
|
|
123
|
+
readonly type: "tuple[]";
|
|
124
|
+
readonly internalType: "struct IRuleEntitlementBase.CheckOperation[]";
|
|
125
|
+
readonly components: readonly [{
|
|
126
|
+
readonly name: "opType";
|
|
127
|
+
readonly type: "uint8";
|
|
128
|
+
readonly internalType: "enum IRuleEntitlementBase.CheckOperationType";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "chainId";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "contractAddress";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
readonly internalType: "address";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "threshold";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
readonly internalType: "uint256";
|
|
141
|
+
}];
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "logicalOperations";
|
|
144
|
+
readonly type: "tuple[]";
|
|
145
|
+
readonly internalType: "struct IRuleEntitlementBase.LogicalOperation[]";
|
|
146
|
+
readonly components: readonly [{
|
|
147
|
+
readonly name: "logOpType";
|
|
148
|
+
readonly type: "uint8";
|
|
149
|
+
readonly internalType: "enum IRuleEntitlementBase.LogicalOperationType";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "leftOperationIndex";
|
|
152
|
+
readonly type: "uint8";
|
|
153
|
+
readonly internalType: "uint8";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "rightOperationIndex";
|
|
156
|
+
readonly type: "uint8";
|
|
157
|
+
readonly internalType: "uint8";
|
|
158
|
+
}];
|
|
159
|
+
}];
|
|
160
|
+
}];
|
|
161
|
+
readonly stateMutability: "view";
|
|
162
|
+
}, {
|
|
163
|
+
readonly type: "function";
|
|
164
|
+
readonly name: "initialize";
|
|
165
|
+
readonly inputs: readonly [{
|
|
166
|
+
readonly name: "space";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
}];
|
|
170
|
+
readonly outputs: readonly [];
|
|
171
|
+
readonly stateMutability: "nonpayable";
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
readonly name: "isCrosschain";
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly type: "bool";
|
|
179
|
+
readonly internalType: "bool";
|
|
180
|
+
}];
|
|
181
|
+
readonly stateMutability: "view";
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
readonly name: "isEntitled";
|
|
185
|
+
readonly inputs: readonly [{
|
|
186
|
+
readonly name: "channelId";
|
|
187
|
+
readonly type: "bytes32";
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "user";
|
|
191
|
+
readonly type: "address[]";
|
|
192
|
+
readonly internalType: "address[]";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "permission";
|
|
195
|
+
readonly type: "bytes32";
|
|
196
|
+
readonly internalType: "bytes32";
|
|
197
|
+
}];
|
|
198
|
+
readonly outputs: readonly [{
|
|
199
|
+
readonly name: "";
|
|
200
|
+
readonly type: "bool";
|
|
201
|
+
readonly internalType: "bool";
|
|
202
|
+
}];
|
|
203
|
+
readonly stateMutability: "view";
|
|
204
|
+
}, {
|
|
205
|
+
readonly type: "function";
|
|
206
|
+
readonly name: "moduleType";
|
|
207
|
+
readonly inputs: readonly [];
|
|
208
|
+
readonly outputs: readonly [{
|
|
209
|
+
readonly name: "";
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly internalType: "string";
|
|
212
|
+
}];
|
|
213
|
+
readonly stateMutability: "view";
|
|
214
|
+
}, {
|
|
215
|
+
readonly type: "function";
|
|
216
|
+
readonly name: "name";
|
|
217
|
+
readonly inputs: readonly [];
|
|
218
|
+
readonly outputs: readonly [{
|
|
219
|
+
readonly name: "";
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
readonly internalType: "string";
|
|
222
|
+
}];
|
|
223
|
+
readonly stateMutability: "view";
|
|
224
|
+
}, {
|
|
225
|
+
readonly type: "function";
|
|
226
|
+
readonly name: "removeEntitlement";
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly name: "roleId";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
readonly internalType: "uint256";
|
|
231
|
+
}];
|
|
232
|
+
readonly outputs: readonly [];
|
|
233
|
+
readonly stateMutability: "nonpayable";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly name: "setEntitlement";
|
|
237
|
+
readonly inputs: readonly [{
|
|
238
|
+
readonly name: "roleId";
|
|
239
|
+
readonly type: "uint256";
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "entitlementData";
|
|
243
|
+
readonly type: "bytes";
|
|
244
|
+
readonly internalType: "bytes";
|
|
245
|
+
}];
|
|
246
|
+
readonly outputs: readonly [];
|
|
247
|
+
readonly stateMutability: "nonpayable";
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "error";
|
|
250
|
+
readonly name: "CheckOperationsLimitReaced";
|
|
251
|
+
readonly inputs: readonly [{
|
|
252
|
+
readonly name: "limit";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
readonly internalType: "uint256";
|
|
255
|
+
}];
|
|
256
|
+
}, {
|
|
257
|
+
readonly type: "error";
|
|
258
|
+
readonly name: "Entitlement__InvalidValue";
|
|
259
|
+
readonly inputs: readonly [];
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "error";
|
|
262
|
+
readonly name: "Entitlement__NotAllowed";
|
|
263
|
+
readonly inputs: readonly [];
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "error";
|
|
266
|
+
readonly name: "Entitlement__NotMember";
|
|
267
|
+
readonly inputs: readonly [];
|
|
268
|
+
}, {
|
|
269
|
+
readonly type: "error";
|
|
270
|
+
readonly name: "Entitlement__ValueAlreadyExists";
|
|
271
|
+
readonly inputs: readonly [];
|
|
272
|
+
}, {
|
|
273
|
+
readonly type: "error";
|
|
274
|
+
readonly name: "InvalidCheckOperationIndex";
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly name: "operationIndex";
|
|
277
|
+
readonly type: "uint8";
|
|
278
|
+
readonly internalType: "uint8";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "checkOperationsLength";
|
|
281
|
+
readonly type: "uint8";
|
|
282
|
+
readonly internalType: "uint8";
|
|
283
|
+
}];
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "error";
|
|
286
|
+
readonly name: "InvalidLeftOperationIndex";
|
|
287
|
+
readonly inputs: readonly [{
|
|
288
|
+
readonly name: "leftOperationIndex";
|
|
289
|
+
readonly type: "uint8";
|
|
290
|
+
readonly internalType: "uint8";
|
|
291
|
+
}, {
|
|
292
|
+
readonly name: "currentOperationIndex";
|
|
293
|
+
readonly type: "uint8";
|
|
294
|
+
readonly internalType: "uint8";
|
|
295
|
+
}];
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "error";
|
|
298
|
+
readonly name: "InvalidLogicalOperationIndex";
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly name: "operationIndex";
|
|
301
|
+
readonly type: "uint8";
|
|
302
|
+
readonly internalType: "uint8";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "logicalOperationsLength";
|
|
305
|
+
readonly type: "uint8";
|
|
306
|
+
readonly internalType: "uint8";
|
|
307
|
+
}];
|
|
308
|
+
}, {
|
|
309
|
+
readonly type: "error";
|
|
310
|
+
readonly name: "InvalidOperationType";
|
|
311
|
+
readonly inputs: readonly [{
|
|
312
|
+
readonly name: "opType";
|
|
313
|
+
readonly type: "uint8";
|
|
314
|
+
readonly internalType: "enum IRuleEntitlementBase.CombinedOperationType";
|
|
315
|
+
}];
|
|
316
|
+
}, {
|
|
317
|
+
readonly type: "error";
|
|
318
|
+
readonly name: "InvalidRightOperationIndex";
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly name: "rightOperationIndex";
|
|
321
|
+
readonly type: "uint8";
|
|
322
|
+
readonly internalType: "uint8";
|
|
323
|
+
}, {
|
|
324
|
+
readonly name: "currentOperationIndex";
|
|
325
|
+
readonly type: "uint8";
|
|
326
|
+
readonly internalType: "uint8";
|
|
327
|
+
}];
|
|
328
|
+
}, {
|
|
329
|
+
readonly type: "error";
|
|
330
|
+
readonly name: "LogicalOperationLimitReached";
|
|
331
|
+
readonly inputs: readonly [{
|
|
332
|
+
readonly name: "limit";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
}];
|
|
336
|
+
}, {
|
|
337
|
+
readonly type: "error";
|
|
338
|
+
readonly name: "OperationsLimitReached";
|
|
339
|
+
readonly inputs: readonly [{
|
|
340
|
+
readonly name: "limit";
|
|
341
|
+
readonly type: "uint256";
|
|
342
|
+
readonly internalType: "uint256";
|
|
343
|
+
}];
|
|
344
|
+
}], connect: typeof IRuleEntitlement__factory.connect;
|
|
345
|
+
export { abi as IRuleEntitlementAbi };
|
|
346
|
+
export type { IRuleEntitlementBase, IRuleEntitlement };
|
|
347
|
+
export declare class RuleEntitlementShim extends BaseContractShim<typeof connect> implements EntitlementModule {
|
|
348
|
+
constructor(address: string, provider: ethers.providers.Provider);
|
|
349
|
+
get moduleType(): EntitlementModuleType;
|
|
350
|
+
getRoleEntitlement(roleId: BigNumberish): Promise<IRuleEntitlementBase.RuleDataStruct | null>;
|
|
351
|
+
decodeGetRuleData(entitlementData: string): IRuleEntitlementBase.RuleDataStruct | undefined;
|
|
352
|
+
}
|
|
353
|
+
//# sourceMappingURL=RuleEntitlementShim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleEntitlementShim.d.ts","sourceRoot":"","sources":["../../../src/space/entitlements/RuleEntitlementShim.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,oBAAoB,EACvB,MAAM,yEAAyE,CAAA;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4FAA4F,CAAA;AAGtI,QAAA,MAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,OAAO,0CAA8B,CAAA;AAClD,OAAO,EAAE,GAAG,IAAI,mBAAmB,EAAE,CAAA;AACrC,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,CAAA;AAEtD,qBAAa,mBACT,SAAQ,gBAAgB,CAAC,OAAO,OAAO,CACvC,YAAW,iBAAiB;gBAEhB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;IAIhE,IAAW,UAAU,IAAI,qBAAqB,CAE7C;IAEY,kBAAkB,CAC3B,MAAM,EAAE,YAAY,GACrB,OAAO,CAAC,oBAAoB,CAAC,cAAc,GAAG,IAAI,CAAC;IAW/C,iBAAiB,CACpB,eAAe,EAAE,MAAM,GACxB,oBAAoB,CAAC,cAAc,GAAG,SAAS;CAiBrD"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseContractShim } from '../../BaseContractShim';
|
|
2
|
+
import { EntitlementModuleType } from '../../types/ContractTypes';
|
|
3
|
+
import { dlogger } from '@towns-labs/utils';
|
|
4
|
+
import { IRuleEntitlement__factory } from '@towns-labs/generated/dev/typings/factories/IRuleEntitlement.sol/IRuleEntitlement__factory';
|
|
5
|
+
const logger = dlogger('csb:SpaceDapp:debug');
|
|
6
|
+
const { abi, connect } = IRuleEntitlement__factory;
|
|
7
|
+
export { abi as IRuleEntitlementAbi };
|
|
8
|
+
export class RuleEntitlementShim extends BaseContractShim {
|
|
9
|
+
constructor(address, provider) {
|
|
10
|
+
super(address, provider, connect, abi);
|
|
11
|
+
}
|
|
12
|
+
get moduleType() {
|
|
13
|
+
return EntitlementModuleType.RuleEntitlement;
|
|
14
|
+
}
|
|
15
|
+
async getRoleEntitlement(roleId) {
|
|
16
|
+
if (roleId === 0) {
|
|
17
|
+
return {
|
|
18
|
+
operations: [],
|
|
19
|
+
checkOperations: [],
|
|
20
|
+
logicalOperations: [],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return this.read.getRuleData(roleId);
|
|
24
|
+
}
|
|
25
|
+
decodeGetRuleData(entitlementData) {
|
|
26
|
+
try {
|
|
27
|
+
const decoded = this.decodeFunctionResult('getRuleData', entitlementData);
|
|
28
|
+
if (decoded.length === 0) {
|
|
29
|
+
logger.error('RuleEntitlementShim No rule data', decoded);
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
return decoded?.length > 0 ? decoded[0] : undefined;
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
logger.error('RuleEntitlementShim Error decoding RuleDataStruct', error);
|
|
36
|
+
}
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=RuleEntitlementShim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuleEntitlementShim.js","sourceRoot":"","sources":["../../../src/space/entitlements/RuleEntitlementShim.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,qBAAqB,EAAqB,MAAM,2BAA2B,CAAA;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4FAA4F,CAAA;AACtI,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;AAE7C,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,yBAAyB,CAAA;AAClD,OAAO,EAAE,GAAG,IAAI,mBAAmB,EAAE,CAAA;AAGrC,MAAM,OAAO,mBACT,SAAQ,gBAAgC;IAGxC,YAAY,OAAe,EAAE,QAAmC;QAC5D,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,CAAC,CAAA;IAC1C,CAAC;IAED,IAAW,UAAU;QACjB,OAAO,qBAAqB,CAAC,eAAe,CAAA;IAChD,CAAC;IAEM,KAAK,CAAC,kBAAkB,CAC3B,MAAoB;QAEpB,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;YACf,OAAO;gBACH,UAAU,EAAE,EAAE;gBACd,eAAe,EAAE,EAAE;gBACnB,iBAAiB,EAAE,EAAE;aACxB,CAAA;QACL,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAEM,iBAAiB,CACpB,eAAuB;QAEvB,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,IAAI,CAAC,oBAAoB,CACrC,aAAa,EACb,eAAe,CACkC,CAAA;YAErD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvB,MAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAA;gBACzD,OAAO,SAAS,CAAA;YACpB,CAAC;YACD,OAAO,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QACvD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,CAAC,KAAK,CAAC,mDAAmD,EAAE,KAAK,CAAC,CAAA;QAC5E,CAAC;QACD,OAAM;IACV,CAAC;CACJ"}
|