@latticexyz/world-module-erc20 2.2.15-entrykit-d928bffbd5581fdc643915df1e5faad2eaafa210 → 2.2.15-f9de085862ac62ce15fe3b7743916cfd631592ea
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 +4 -8
- package/out/AccessControl.sol/AccessControl.json +1 -1
- package/out/AccessManagementSystem.sol/AccessManagementSystem.json +1 -1
- package/out/Allowances.sol/Allowances.json +1 -1
- package/out/BalanceTransferSystem.sol/BalanceTransferSystem.json +1 -1
- package/out/Balances.sol/Balances.json +1 -1
- package/out/Base.sol/CommonBase.json +1 -1
- package/out/Base.sol/ScriptBase.json +1 -1
- package/out/Base.sol/TestBase.json +1 -1
- package/out/BatchCallSystem.sol/BatchCallSystem.json +1 -1
- package/out/Bytes.sol/Bytes.json +1 -1
- package/out/Constants.sol/ERC20TableNames.json +1 -1
- package/out/Constants.sol/ModuleConstants.json +1 -1
- package/out/Constants.sol/OwnableTableNames.json +1 -1
- package/out/Constants.sol/PausableTableNames.json +1 -1
- package/out/Context.sol/Context.json +1 -1
- package/out/DecodeSlice.sol/DecodeSlice.json +1 -1
- package/out/Delegation.sol/Delegation.json +1 -1
- package/out/ERC165Checker.sol/ERC165Checker.json +1 -1
- package/out/ERC20BaseTest.t.sol/ERC20BehaviorTest.json +1 -0
- package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreBehaviorTest.json +1 -0
- package/out/ERC20BaseTest.t.sol/ERC20WithInternalStoreTest.json +1 -0
- package/out/ERC20BaseTest.t.sol/ERC20WithWorldBehaviorTest.json +1 -0
- package/out/ERC20BaseTest.t.sol/ERC20WithWorldTest.json +1 -0
- package/out/ERC20BaseTest.t.sol/MockERC20Base.json +1 -0
- package/out/ERC20BaseTest.t.sol/MockERC20WithInternalStore.json +1 -0
- package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20WithWorld.abi.json +28 -0
- package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20WithWorld.abi.json.d.ts +28 -0
- package/out/ERC20BaseTest.t.sol/MockERC20WithWorld.json +1 -0
- package/out/ERC20BaseTest.t.sol/TestConstants.json +1 -0
- package/out/ERC20Burnable.sol/ERC20Burnable.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableTest.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableWithInternalStoreTest.json +1 -1
- package/out/ERC20Burnable.t.sol/ERC20BurnableWithWorldTest.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20WithInternalStoreBurnable.json +1 -1
- package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json +28 -0
- package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.abi.json.d.ts +28 -0
- package/out/ERC20Burnable.t.sol/MockERC20WithWorldBurnable.json +1 -1
- package/out/ERC20Metadata.sol/ERC20Metadata.json +1 -1
- package/out/ERC20Module.sol/ERC20Module.json +1 -1
- package/out/ERC20Module.sol/ERC20RegistryLib.json +1 -1
- package/out/ERC20Module.t.sol/ERC20ModuleTest.json +1 -1
- package/out/ERC20Module.t.sol/TestConstants.json +1 -1
- package/out/ERC20Pausable.sol/ERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableBehaviorTest.json +1 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableWithInternalStoreTest.json +1 -1
- package/out/ERC20Pausable.t.sol/ERC20PausableWithWorldTest.json +1 -1
- package/out/ERC20Pausable.t.sol/MockERC20Pausable.json +1 -1
- package/out/ERC20Pausable.t.sol/MockERC20WithInternalStorePausable.json +1 -1
- package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json +28 -0
- package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.abi.json.d.ts +28 -0
- package/out/ERC20Pausable.t.sol/MockERC20WithWorldPausable.json +1 -1
- package/out/ERC20Registry.sol/ERC20Registry.json +1 -1
- package/out/ERC20WithInternalStore.sol/ERC20WithInternalStore.json +1 -1
- package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json +28 -0
- package/out/ERC20WithWorld.sol/ERC20WithWorld.abi.json.d.ts +28 -0
- package/out/ERC20WithWorld.sol/ERC20WithWorld.json +1 -1
- package/out/EncodeArray.sol/EncodeArray.json +1 -1
- package/out/EncodedLengths.sol/EncodedLengthsInstance.json +1 -1
- package/out/EncodedLengths.sol/EncodedLengthsLib.json +1 -1
- package/out/FieldLayout.sol/FieldLayoutInstance.json +1 -1
- package/out/FieldLayout.sol/FieldLayoutLib.json +1 -1
- package/out/FunctionSelectors.sol/FunctionSelectors.json +1 -1
- package/out/FunctionSignatures.sol/FunctionSignatures.json +1 -1
- package/out/GasReporter.sol/GasReporter.json +1 -1
- package/out/Hook.sol/HookInstance.json +1 -1
- package/out/Hook.sol/HookLib.json +1 -1
- package/out/Hooks.sol/Hooks.json +1 -1
- package/out/IAccessManagementSystem.sol/IAccessManagementSystem.json +1 -1
- package/out/IBalanceTransferSystem.sol/IBalanceTransferSystem.json +1 -1
- package/out/IBaseWorld.sol/IBaseWorld.json +1 -1
- package/out/IBatchCallSystem.sol/IBatchCallSystem.json +1 -1
- package/out/IDelegationControl.sol/IDelegationControl.json +1 -1
- package/out/IERC165.sol/IERC165.json +1 -1
- package/out/IERC20.sol/IERC20.json +1 -1
- package/out/IERC20Errors.sol/IERC20Errors.json +1 -1
- package/out/IERC20Events.sol/IERC20Events.json +1 -1
- package/out/IERC20Metadata.sol/IERC20Metadata.json +1 -1
- package/out/IEncodedLengthsErrors.sol/IEncodedLengthsErrors.json +1 -1
- package/out/IFieldLayoutErrors.sol/IFieldLayoutErrors.json +1 -1
- package/out/IModule.sol/IModule.json +1 -1
- package/out/IModuleErrors.sol/IModuleErrors.json +1 -1
- package/out/IModuleInstallationSystem.sol/IModuleInstallationSystem.json +1 -1
- package/out/IMulticall3.sol/IMulticall3.json +1 -1
- package/out/IRegistrationSystem.sol/IRegistrationSystem.json +1 -1
- package/out/ISchemaErrors.sol/ISchemaErrors.json +1 -1
- package/out/ISliceErrors.sol/ISliceErrors.json +1 -1
- package/out/IStore.sol/IStore.json +1 -1
- package/out/IStoreErrors.sol/IStoreErrors.json +1 -1
- package/out/IStoreEvents.sol/IStoreEvents.json +1 -1
- package/out/IStoreHook.sol/IStoreHook.json +1 -1
- package/out/IStoreKernel.sol/IStoreKernel.json +1 -1
- package/out/IStoreRead.sol/IStoreRead.json +1 -1
- package/out/IStoreRegistration.sol/IStoreRegistration.json +1 -1
- package/out/IStoreWrite.sol/IStoreWrite.json +1 -1
- package/out/ISystemHook.sol/ISystemHook.json +1 -1
- package/out/IWorldContextConsumer.sol/IWorldContextConsumer.json +1 -1
- package/out/IWorldErrors.sol/IWorldErrors.json +1 -1
- package/out/IWorldEvents.sol/IWorldEvents.json +1 -1
- package/out/IWorldKernel.sol/IWorldCall.json +1 -1
- package/out/IWorldKernel.sol/IWorldKernel.json +1 -1
- package/out/IWorldKernel.sol/IWorldModuleInstallation.json +1 -1
- package/out/IWorldRegistrationSystem.sol/IWorldRegistrationSystem.json +1 -1
- package/out/InitModule.sol/InitModule.json +1 -1
- package/out/InitModuleAddress.sol/InitModuleAddress.json +1 -1
- package/out/InstalledModules.sol/InstalledModules.json +1 -1
- package/out/LimitedCallContext.sol/LimitedCallContext.json +1 -1
- package/out/MUDERC20.sol/MUDERC20.json +1 -1
- package/out/Memory.sol/Memory.json +1 -1
- package/out/Module.sol/Module.json +1 -1
- package/out/ModuleInstallationSystem.sol/ModuleInstallationSystem.json +1 -1
- package/out/NamespaceDelegationControl.sol/NamespaceDelegationControl.json +1 -1
- package/out/NamespaceOwner.sol/NamespaceOwner.json +1 -1
- package/out/Ownable.sol/Ownable.json +1 -1
- package/out/Owner.sol/Owner.json +1 -1
- package/out/Pausable.sol/Pausable.json +1 -1
- package/out/Paused.sol/Paused.json +1 -1
- package/out/RegistrationSystem.sol/RegistrationSystem.json +1 -1
- package/out/ResourceAccess.sol/ResourceAccess.json +1 -1
- package/out/ResourceId.sol/ResourceIdInstance.json +1 -1
- package/out/ResourceId.sol/ResourceIdLib.json +1 -1
- package/out/ResourceIds.sol/ResourceIds.json +1 -1
- package/out/Schema.sol/SchemaInstance.json +1 -1
- package/out/Schema.sol/SchemaLib.json +1 -1
- package/out/Slice.sol/SliceInstance.json +1 -1
- package/out/Slice.sol/SliceLib.json +1 -1
- package/out/StdAssertions.sol/StdAssertions.json +1 -1
- package/out/StdChains.sol/StdChains.json +1 -1
- package/out/StdCheats.sol/StdCheats.json +1 -1
- package/out/StdCheats.sol/StdCheatsSafe.json +1 -1
- package/out/StdError.sol/stdError.json +1 -1
- package/out/StdInvariant.sol/StdInvariant.json +1 -1
- package/out/StdJson.sol/stdJson.json +1 -1
- package/out/StdMath.sol/stdMath.json +1 -1
- package/out/StdStorage.sol/stdStorage.json +1 -1
- package/out/StdStorage.sol/stdStorageSafe.json +1 -1
- package/out/StdStyle.sol/StdStyle.json +1 -1
- package/out/StdUtils.sol/StdUtils.json +1 -1
- package/out/Storage.sol/Storage.json +1 -1
- package/out/Store.sol/Store.json +1 -1
- package/out/StoreConsumer.sol/StoreConsumer.json +1 -1
- package/out/StoreCore.sol/StoreCore.json +1 -1
- package/out/StoreCore.sol/StoreCoreInternal.json +1 -1
- package/out/StoreHooks.sol/StoreHooks.json +1 -1
- package/out/StoreKernel.sol/StoreKernel.json +1 -1
- package/out/StoreRead.sol/StoreRead.json +1 -1
- package/out/StoreRegistrationSystem.sol/StoreRegistrationSystem.json +1 -1
- package/out/StoreSwitch.sol/StoreSwitch.json +1 -1
- package/out/System.sol/System.json +1 -1
- package/out/SystemCall.sol/SystemCall.json +1 -1
- package/out/SystemHooks.sol/SystemHooks.json +1 -1
- package/out/SystemRegistry.sol/SystemRegistry.json +1 -1
- package/out/Systems.sol/Systems.json +1 -1
- package/out/Tables.sol/Tables.json +1 -1
- package/out/Test.sol/Test.json +1 -1
- package/out/TightCoder.sol/TightCoder.json +1 -1
- package/out/TotalSupply.sol/TotalSupply.json +1 -1
- package/out/UserDelegationControl.sol/UserDelegationControl.json +1 -1
- package/out/Vm.sol/Vm.json +1 -1
- package/out/Vm.sol/VmSafe.json +1 -1
- package/out/WithStore.sol/WithStore.json +1 -1
- package/out/WithWorld.sol/WithWorld.abi.json +28 -0
- package/out/WithWorld.sol/WithWorld.abi.json.d.ts +28 -0
- package/out/WithWorld.sol/WithWorld.json +1 -1
- package/out/World.sol/World.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumer.json +1 -1
- package/out/WorldContext.sol/WorldContextConsumerLib.json +1 -1
- package/out/WorldContext.sol/WorldContextProviderLib.json +1 -1
- package/out/WorldRegistrationSystem.sol/WorldRegistrationSystem.json +1 -1
- package/out/WorldResourceId.sol/WorldResourceIdInstance.json +1 -1
- package/out/WorldResourceId.sol/WorldResourceIdLib.json +1 -1
- package/out/build-info/04cd01b00610d99132b6410373c2f462.json +1 -0
- package/out/console.sol/console.json +1 -1
- package/out/console2.sol/console2.json +1 -1
- package/out/constants.sol/LayoutOffsets.json +1 -1
- package/out/safeconsole.sol/safeconsole.json +1 -1
- package/out/src/IERC165.sol/IERC165.json +1 -1
- package/out/tables/Balances.sol/Balances.json +1 -1
- package/out/test.sol/DSTest.json +1 -1
- package/package.json +8 -7
- package/src/examples/ERC20WithInternalStore.sol +5 -5
- package/src/examples/ERC20WithWorld.sol +7 -5
- package/src/{ERC20Module.sol → experimental/ERC20Module.sol} +2 -2
- package/src/{MUDERC20.sol → experimental/MUDERC20.sol} +9 -10
- package/src/{Ownable.sol → experimental/Ownable.sol} +3 -3
- package/src/{Pausable.sol → experimental/Pausable.sol} +3 -3
- package/out/ERC20BaseTest.sol/ERC20BehaviorTest.json +0 -1
- package/out/ERC20BaseTest.sol/ERC20WithInternalStoreBehaviorTest.json +0 -1
- package/out/ERC20BaseTest.sol/ERC20WithInternalStoreTest.json +0 -1
- package/out/ERC20BaseTest.sol/ERC20WithWorldBehaviorTest.json +0 -1
- package/out/ERC20BaseTest.sol/ERC20WithWorldTest.json +0 -1
- package/out/ERC20BaseTest.sol/MockERC20Base.json +0 -1
- package/out/ERC20BaseTest.sol/MockERC20WithInternalStore.json +0 -1
- package/out/ERC20BaseTest.sol/MockERC20WithWorld.json +0 -1
- package/out/ERC20BaseTest.sol/TestConstants.json +0 -1
- package/out/StoreConsumer.t.sol/MockStoreConsumer.abi.json +0 -52
- package/out/StoreConsumer.t.sol/MockStoreConsumer.abi.json.d.ts +0 -54
- package/out/StoreConsumer.t.sol/MockStoreConsumer.json +0 -1
- package/out/StoreConsumer.t.sol/MockWithInternalStore.abi.json +0 -376
- package/out/StoreConsumer.t.sol/MockWithInternalStore.abi.json.d.ts +0 -378
- package/out/StoreConsumer.t.sol/MockWithInternalStore.json +0 -1
- package/out/StoreConsumer.t.sol/MockWithStore.abi.json +0 -387
- package/out/StoreConsumer.t.sol/MockWithStore.abi.json.d.ts +0 -389
- package/out/StoreConsumer.t.sol/MockWithStore.json +0 -1
- package/out/StoreConsumer.t.sol/MockWithWorld.abi.json +0 -430
- package/out/StoreConsumer.t.sol/MockWithWorld.abi.json.d.ts +0 -432
- package/out/StoreConsumer.t.sol/MockWithWorld.json +0 -1
- package/out/StoreConsumer.t.sol/StoreConsumerTest.abi.json +0 -548
- package/out/StoreConsumer.t.sol/StoreConsumerTest.abi.json.d.ts +0 -550
- package/out/StoreConsumer.t.sol/StoreConsumerTest.json +0 -1
- package/out/build-info/950e52f13a65568155d5c35a4ca4bf03.json +0 -1
- package/src/Context.sol +0 -10
- package/src/StoreConsumer.sol +0 -24
- package/src/WithStore.sol +0 -22
- package/src/WithWorld.sol +0 -40
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20BehaviorTest.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20BehaviorTest.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithInternalStoreBehaviorTest.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithInternalStoreBehaviorTest.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithInternalStoreTest.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithInternalStoreTest.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithWorldBehaviorTest.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithWorldBehaviorTest.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithWorldTest.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithWorldTest.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20Base.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20Base.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20WithInternalStore.abi.json +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20WithInternalStore.abi.json.d.ts +0 -0
- /package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/TestConstants.abi.json +0 -0
- /package/src/{Constants.sol → experimental/Constants.sol} +0 -0
- /package/src/{ERC20Burnable.sol → experimental/ERC20Burnable.sol} +0 -0
- /package/src/{ERC20Pausable.sol → experimental/ERC20Pausable.sol} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"950e52f13a65568155d5c35a4ca4bf03","source_id_to_path":{"0":"node_modules/@latticexyz/gas-report/src/GasReporter.sol","1":"node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol","2":"node_modules/@latticexyz/store/src/Bytes.sol","3":"node_modules/@latticexyz/store/src/EncodedLengths.sol","4":"node_modules/@latticexyz/store/src/FieldLayout.sol","5":"node_modules/@latticexyz/store/src/Hook.sol","6":"node_modules/@latticexyz/store/src/IERC165.sol","7":"node_modules/@latticexyz/store/src/IEncodedLengthsErrors.sol","8":"node_modules/@latticexyz/store/src/IFieldLayoutErrors.sol","9":"node_modules/@latticexyz/store/src/ISchemaErrors.sol","10":"node_modules/@latticexyz/store/src/ISliceErrors.sol","11":"node_modules/@latticexyz/store/src/IStore.sol","12":"node_modules/@latticexyz/store/src/IStoreErrors.sol","13":"node_modules/@latticexyz/store/src/IStoreEvents.sol","14":"node_modules/@latticexyz/store/src/IStoreHook.sol","15":"node_modules/@latticexyz/store/src/IStoreKernel.sol","16":"node_modules/@latticexyz/store/src/IStoreRead.sol","17":"node_modules/@latticexyz/store/src/IStoreRegistration.sol","18":"node_modules/@latticexyz/store/src/IStoreWrite.sol","19":"node_modules/@latticexyz/store/src/Memory.sol","20":"node_modules/@latticexyz/store/src/ResourceId.sol","21":"node_modules/@latticexyz/store/src/Schema.sol","22":"node_modules/@latticexyz/store/src/Slice.sol","23":"node_modules/@latticexyz/store/src/Storage.sol","24":"node_modules/@latticexyz/store/src/Store.sol","25":"node_modules/@latticexyz/store/src/StoreCore.sol","26":"node_modules/@latticexyz/store/src/StoreKernel.sol","27":"node_modules/@latticexyz/store/src/StoreRead.sol","28":"node_modules/@latticexyz/store/src/StoreSwitch.sol","29":"node_modules/@latticexyz/store/src/codegen/index.sol","30":"node_modules/@latticexyz/store/src/codegen/tables/Hooks.sol","31":"node_modules/@latticexyz/store/src/codegen/tables/ResourceIds.sol","32":"node_modules/@latticexyz/store/src/codegen/tables/StoreHooks.sol","33":"node_modules/@latticexyz/store/src/codegen/tables/Tables.sol","34":"node_modules/@latticexyz/store/src/constants.sol","35":"node_modules/@latticexyz/store/src/rightMask.sol","36":"node_modules/@latticexyz/store/src/storeHookTypes.sol","37":"node_modules/@latticexyz/store/src/storeResourceTypes.sol","38":"node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol","39":"node_modules/@latticexyz/store/src/tightcoder/EncodeArray.sol","40":"node_modules/@latticexyz/store/src/tightcoder/TightCoder.sol","41":"node_modules/@latticexyz/store/src/version.sol","42":"node_modules/@latticexyz/world/src/AccessControl.sol","43":"node_modules/@latticexyz/world/src/Delegation.sol","44":"node_modules/@latticexyz/world/src/ERC165Checker.sol","45":"node_modules/@latticexyz/world/src/IDelegationControl.sol","46":"node_modules/@latticexyz/world/src/IERC165.sol","47":"node_modules/@latticexyz/world/src/IModule.sol","48":"node_modules/@latticexyz/world/src/IModuleErrors.sol","49":"node_modules/@latticexyz/world/src/ISystemHook.sol","50":"node_modules/@latticexyz/world/src/IWorldContextConsumer.sol","51":"node_modules/@latticexyz/world/src/IWorldErrors.sol","52":"node_modules/@latticexyz/world/src/IWorldEvents.sol","53":"node_modules/@latticexyz/world/src/IWorldKernel.sol","54":"node_modules/@latticexyz/world/src/Module.sol","55":"node_modules/@latticexyz/world/src/System.sol","56":"node_modules/@latticexyz/world/src/SystemCall.sol","57":"node_modules/@latticexyz/world/src/World.sol","58":"node_modules/@latticexyz/world/src/WorldContext.sol","59":"node_modules/@latticexyz/world/src/WorldResourceId.sol","60":"node_modules/@latticexyz/world/src/codegen/interfaces/IAccessManagementSystem.sol","61":"node_modules/@latticexyz/world/src/codegen/interfaces/IBalanceTransferSystem.sol","62":"node_modules/@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol","63":"node_modules/@latticexyz/world/src/codegen/interfaces/IBatchCallSystem.sol","64":"node_modules/@latticexyz/world/src/codegen/interfaces/IModuleInstallationSystem.sol","65":"node_modules/@latticexyz/world/src/codegen/interfaces/IRegistrationSystem.sol","66":"node_modules/@latticexyz/world/src/codegen/interfaces/IWorldRegistrationSystem.sol","67":"node_modules/@latticexyz/world/src/codegen/tables/Balances.sol","68":"node_modules/@latticexyz/world/src/codegen/tables/FunctionSelectors.sol","69":"node_modules/@latticexyz/world/src/codegen/tables/FunctionSignatures.sol","70":"node_modules/@latticexyz/world/src/codegen/tables/InitModuleAddress.sol","71":"node_modules/@latticexyz/world/src/codegen/tables/InstalledModules.sol","72":"node_modules/@latticexyz/world/src/codegen/tables/NamespaceDelegationControl.sol","73":"node_modules/@latticexyz/world/src/codegen/tables/NamespaceOwner.sol","74":"node_modules/@latticexyz/world/src/codegen/tables/ResourceAccess.sol","75":"node_modules/@latticexyz/world/src/codegen/tables/SystemHooks.sol","76":"node_modules/@latticexyz/world/src/codegen/tables/SystemRegistry.sol","77":"node_modules/@latticexyz/world/src/codegen/tables/Systems.sol","78":"node_modules/@latticexyz/world/src/codegen/tables/UserDelegationControl.sol","79":"node_modules/@latticexyz/world/src/constants.sol","80":"node_modules/@latticexyz/world/src/modules/init/InitModule.sol","81":"node_modules/@latticexyz/world/src/modules/init/LimitedCallContext.sol","82":"node_modules/@latticexyz/world/src/modules/init/RegistrationSystem.sol","83":"node_modules/@latticexyz/world/src/modules/init/constants.sol","84":"node_modules/@latticexyz/world/src/modules/init/functionSignatures.sol","85":"node_modules/@latticexyz/world/src/modules/init/implementations/AccessManagementSystem.sol","86":"node_modules/@latticexyz/world/src/modules/init/implementations/BalanceTransferSystem.sol","87":"node_modules/@latticexyz/world/src/modules/init/implementations/BatchCallSystem.sol","88":"node_modules/@latticexyz/world/src/modules/init/implementations/ModuleInstallationSystem.sol","89":"node_modules/@latticexyz/world/src/modules/init/implementations/StoreRegistrationSystem.sol","90":"node_modules/@latticexyz/world/src/modules/init/implementations/WorldRegistrationSystem.sol","91":"node_modules/@latticexyz/world/src/modules/init/implementations/createDelegation.sol","92":"node_modules/@latticexyz/world/src/modules/init/types.sol","93":"node_modules/@latticexyz/world/src/requireInterface.sol","94":"node_modules/@latticexyz/world/src/requireNamespace.sol","95":"node_modules/@latticexyz/world/src/requireValidNamespace.sol","96":"node_modules/@latticexyz/world/src/revertWithBytes.sol","97":"node_modules/@latticexyz/world/src/systemHookTypes.sol","98":"node_modules/@latticexyz/world/src/version.sol","99":"node_modules/@latticexyz/world/src/worldResourceTypes.sol","100":"node_modules/@latticexyz/world/test/createInitModule.sol","101":"node_modules/@latticexyz/world/test/createWorld.sol","102":"node_modules/ds-test/src/test.sol","103":"node_modules/forge-std/src/Base.sol","104":"node_modules/forge-std/src/StdAssertions.sol","105":"node_modules/forge-std/src/StdChains.sol","106":"node_modules/forge-std/src/StdCheats.sol","107":"node_modules/forge-std/src/StdError.sol","108":"node_modules/forge-std/src/StdInvariant.sol","109":"node_modules/forge-std/src/StdJson.sol","110":"node_modules/forge-std/src/StdMath.sol","111":"node_modules/forge-std/src/StdStorage.sol","112":"node_modules/forge-std/src/StdStyle.sol","113":"node_modules/forge-std/src/StdUtils.sol","114":"node_modules/forge-std/src/Test.sol","115":"node_modules/forge-std/src/Vm.sol","116":"node_modules/forge-std/src/console.sol","117":"node_modules/forge-std/src/console2.sol","118":"node_modules/forge-std/src/interfaces/IMulticall3.sol","119":"node_modules/forge-std/src/safeconsole.sol","120":"src/Constants.sol","121":"src/Context.sol","122":"src/ERC20Burnable.sol","123":"src/ERC20Module.sol","124":"src/ERC20Pausable.sol","125":"src/MUDERC20.sol","126":"src/Ownable.sol","127":"src/Pausable.sol","128":"src/StoreConsumer.sol","129":"src/WithStore.sol","130":"src/WithWorld.sol","131":"src/codegen/index.sol","132":"src/codegen/tables/Allowances.sol","133":"src/codegen/tables/Balances.sol","134":"src/codegen/tables/ERC20Metadata.sol","135":"src/codegen/tables/ERC20Registry.sol","136":"src/codegen/tables/Owner.sol","137":"src/codegen/tables/Paused.sol","138":"src/codegen/tables/TotalSupply.sol","139":"src/examples/ERC20WithInternalStore.sol","140":"src/examples/ERC20WithWorld.sol","141":"src/interfaces/IERC20.sol","142":"src/interfaces/IERC20Errors.sol","143":"src/interfaces/IERC20Events.sol","144":"src/interfaces/IERC20Metadata.sol","145":"test/ERC20BaseTest.sol","146":"test/ERC20Burnable.t.sol","147":"test/ERC20Module.t.sol","148":"test/ERC20Pausable.t.sol","149":"test/StoreConsumer.t.sol"},"language":"Solidity"}
|
package/src/Context.sol
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.8.24;
|
|
3
|
-
|
|
4
|
-
// @dev Provides information about the current execution context
|
|
5
|
-
// We only use it in these contracts in case we want to extend it in the future
|
|
6
|
-
abstract contract Context {
|
|
7
|
-
function _msgSender() internal view virtual returns (address) {
|
|
8
|
-
return msg.sender;
|
|
9
|
-
}
|
|
10
|
-
}
|
package/src/StoreConsumer.sol
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.8.24;
|
|
3
|
-
|
|
4
|
-
import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
|
|
5
|
-
import { RESOURCE_TABLE, RESOURCE_OFFCHAIN_TABLE } from "@latticexyz/store/src/storeResourceTypes.sol";
|
|
6
|
-
import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
|
|
7
|
-
|
|
8
|
-
import { Context } from "./Context.sol";
|
|
9
|
-
|
|
10
|
-
abstract contract StoreConsumer {
|
|
11
|
-
function getStore() public view returns (address) {
|
|
12
|
-
return StoreSwitch.getStoreAddress();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function _encodeResourceId(bytes2 typeId, bytes16 name) internal view virtual returns (ResourceId);
|
|
16
|
-
|
|
17
|
-
function _encodeTableId(bytes16 name) internal view returns (ResourceId) {
|
|
18
|
-
return _encodeResourceId(RESOURCE_TABLE, name);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _encodeOffchainTableId(bytes16 name) internal view returns (ResourceId) {
|
|
22
|
-
return _encodeResourceId(RESOURCE_OFFCHAIN_TABLE, name);
|
|
23
|
-
}
|
|
24
|
-
}
|
package/src/WithStore.sol
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.8.24;
|
|
3
|
-
|
|
4
|
-
import { StoreCore } from "@latticexyz/store/src/Store.sol";
|
|
5
|
-
import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol";
|
|
6
|
-
import { ResourceId, ResourceIdLib } from "@latticexyz/store/src/ResourceId.sol";
|
|
7
|
-
import { Context } from "./Context.sol";
|
|
8
|
-
import { StoreConsumer } from "./StoreConsumer.sol";
|
|
9
|
-
|
|
10
|
-
abstract contract WithStore is Context, StoreConsumer {
|
|
11
|
-
constructor(address store) {
|
|
12
|
-
StoreSwitch.setStoreAddress(store);
|
|
13
|
-
|
|
14
|
-
if (store == address(this)) {
|
|
15
|
-
StoreCore.registerInternalTables();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function _encodeResourceId(bytes2 typeId, bytes16 name) internal view virtual override returns (ResourceId) {
|
|
20
|
-
return ResourceIdLib.encode(typeId, name);
|
|
21
|
-
}
|
|
22
|
-
}
|
package/src/WithWorld.sol
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.8.24;
|
|
3
|
-
|
|
4
|
-
import { ResourceId } from "@latticexyz/store/src/ResourceId.sol";
|
|
5
|
-
import { ResourceAccess } from "@latticexyz/world/src/codegen/tables/ResourceAccess.sol";
|
|
6
|
-
import { IBaseWorld } from "@latticexyz/world/src/codegen/interfaces/IBaseWorld.sol";
|
|
7
|
-
import { WorldResourceIdLib } from "@latticexyz/world/src/WorldResourceId.sol";
|
|
8
|
-
|
|
9
|
-
import { WithStore } from "./WithStore.sol";
|
|
10
|
-
|
|
11
|
-
abstract contract WithWorld is WithStore {
|
|
12
|
-
bytes14 public immutable namespace;
|
|
13
|
-
|
|
14
|
-
error WithWorld_CallerHasNoNamespaceAccess();
|
|
15
|
-
|
|
16
|
-
modifier onlyNamespace() {
|
|
17
|
-
address sender = _msgSender();
|
|
18
|
-
if (!ResourceAccess.get(getNamespaceId(), sender)) {
|
|
19
|
-
revert WithWorld_CallerHasNoNamespaceAccess();
|
|
20
|
-
}
|
|
21
|
-
_;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
constructor(IBaseWorld world, bytes14 _namespace) WithStore(address(world)) {
|
|
25
|
-
namespace = _namespace;
|
|
26
|
-
|
|
27
|
-
ResourceId namespaceId = getNamespaceId();
|
|
28
|
-
|
|
29
|
-
// This will revert if namespace already exists
|
|
30
|
-
world.registerNamespace(namespaceId);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function getNamespaceId() public view returns (ResourceId) {
|
|
34
|
-
return WorldResourceIdLib.encodeNamespace(namespace);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function _encodeResourceId(bytes2 typeId, bytes16 name) internal view virtual override returns (ResourceId) {
|
|
38
|
-
return WorldResourceIdLib.encode(typeId, namespace, name);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithInternalStoreBehaviorTest.abi.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithInternalStoreTest.abi.json.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/ERC20WithWorldBehaviorTest.abi.json.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/out/{ERC20BaseTest.sol → ERC20BaseTest.t.sol}/MockERC20WithInternalStore.abi.json.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|