@latticexyz/cli 2.0.0-alpha.1.11 → 2.0.0-alpha.1.111

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 (92) hide show
  1. package/dist/chunk-5UQ7AMWT.js +21 -0
  2. package/dist/chunk-5UQ7AMWT.js.map +1 -0
  3. package/dist/index.js +2 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/mud.js +21 -8341
  6. package/dist/mud.js.map +1 -0
  7. package/package.json +26 -26
  8. package/src/commands/{deploy-v2.ts → deploy.ts} +37 -16
  9. package/src/commands/devnode.ts +7 -2
  10. package/src/commands/faucet.ts +1 -1
  11. package/src/commands/index.ts +12 -12
  12. package/src/commands/set-version.ts +2 -2
  13. package/src/commands/tablegen.ts +4 -4
  14. package/src/commands/{test-v2.ts → test.ts} +4 -6
  15. package/src/commands/tsgen.ts +4 -3
  16. package/src/commands/worldgen.ts +7 -10
  17. package/src/index.ts +1 -1
  18. package/src/modules.d.ts +11 -0
  19. package/src/mud.ts +3 -4
  20. package/src/render-ts/recsV1TableOptions.ts +3 -4
  21. package/src/render-ts/renderRecsV1Tables.ts +1 -1
  22. package/src/render-ts/schemaTypesToRecsTypeStrings.ts +32 -32
  23. package/src/render-ts/tsgen.ts +4 -4
  24. package/src/utils/{deploy-v2.ts → deploy.ts} +190 -109
  25. package/src/utils/errors.ts +1 -1
  26. package/src/utils/index.ts +2 -5
  27. package/dist/chunk-6V563IAZ.js +0 -283
  28. package/dist/chunk-7WIRVCOR.js +0 -21314
  29. package/dist/chunk-FPG73MVN.js +0 -71
  30. package/dist/chunk-GBM5XFBB.js +0 -769
  31. package/dist/chunk-L4YLJHLJ.js +0 -30
  32. package/dist/chunk-SKNB74MT.js +0 -726
  33. package/dist/chunk-VQTZJIFF.js +0 -353
  34. package/dist/chunk-YVT2UAFN.js +0 -3873
  35. package/dist/index.d.ts +0 -2
  36. package/dist/mud.d.ts +0 -1
  37. package/dist/mud2.d.ts +0 -1
  38. package/dist/mud2.js +0 -25
  39. package/dist/render-solidity/index.d.ts +0 -180
  40. package/dist/render-solidity/index.js +0 -51
  41. package/dist/render-ts/index.d.ts +0 -26
  42. package/dist/render-ts/index.js +0 -14
  43. package/dist/utils/deprecated/index.d.ts +0 -76
  44. package/dist/utils/deprecated/index.js +0 -36
  45. package/dist/utils/index.d.ts +0 -88
  46. package/dist/utils/index.js +0 -39
  47. package/src/commands/deprecated/bulkupload.ts +0 -50
  48. package/src/commands/deprecated/call-system.ts +0 -70
  49. package/src/commands/deprecated/codegen-libdeploy.ts +0 -29
  50. package/src/commands/deprecated/deploy-contracts.ts +0 -120
  51. package/src/commands/deprecated/index.ts +0 -22
  52. package/src/commands/deprecated/system-types.ts +0 -29
  53. package/src/commands/deprecated/test.ts +0 -53
  54. package/src/commands/deprecated/trace.ts +0 -81
  55. package/src/commands/deprecated/types.ts +0 -33
  56. package/src/contracts/BulkUpload.sol +0 -174
  57. package/src/contracts/Deploy.sol +0 -23
  58. package/src/contracts/LibDeploy.ejs +0 -121
  59. package/src/contracts/LibDeploy.sol +0 -23
  60. package/src/contracts/LibDeployStub.sol +0 -23
  61. package/src/mud2.ts +0 -29
  62. package/src/render-solidity/common.ts +0 -150
  63. package/src/render-solidity/field.ts +0 -160
  64. package/src/render-solidity/index.ts +0 -10
  65. package/src/render-solidity/record.ts +0 -158
  66. package/src/render-solidity/renderSystemInterface.ts +0 -31
  67. package/src/render-solidity/renderTable.ts +0 -164
  68. package/src/render-solidity/renderTableIndex.ts +0 -15
  69. package/src/render-solidity/renderTypeHelpers.ts +0 -99
  70. package/src/render-solidity/renderTypes.ts +0 -19
  71. package/src/render-solidity/renderTypesFromConfig.ts +0 -13
  72. package/src/render-solidity/renderWorld.ts +0 -36
  73. package/src/render-solidity/tableOptions.ts +0 -107
  74. package/src/render-solidity/tablegen.ts +0 -35
  75. package/src/render-solidity/types.ts +0 -116
  76. package/src/render-solidity/userType.ts +0 -131
  77. package/src/render-solidity/worldgen.ts +0 -59
  78. package/src/utils/contractToInterface.ts +0 -132
  79. package/src/utils/deprecated/build.ts +0 -55
  80. package/src/utils/deprecated/codegen.ts +0 -42
  81. package/src/utils/deprecated/constants.ts +0 -2
  82. package/src/utils/deprecated/deploy.ts +0 -111
  83. package/src/utils/deprecated/exec.ts +0 -18
  84. package/src/utils/deprecated/findLog.ts +0 -8
  85. package/src/utils/deprecated/hsr.ts +0 -71
  86. package/src/utils/deprecated/ids.ts +0 -14
  87. package/src/utils/deprecated/index.ts +0 -8
  88. package/src/utils/deprecated/typegen.ts +0 -133
  89. package/src/utils/execLog.ts +0 -22
  90. package/src/utils/format.ts +0 -39
  91. package/src/utils/formatAndWrite.ts +0 -21
  92. package/src/utils/foundry.ts +0 -103
@@ -0,0 +1,21 @@
1
+ import{SchemaType as e}from"@latticexyz/schema-type";var s={[e.UINT8]:"RecsType.Number",[e.UINT16]:"RecsType.Number",[e.UINT24]:"RecsType.Number",[e.UINT32]:"RecsType.Number",[e.UINT40]:"RecsType.Number",[e.UINT48]:"RecsType.Number",[e.UINT56]:"RecsType.BigInt",[e.UINT64]:"RecsType.BigInt",[e.UINT72]:"RecsType.BigInt",[e.UINT80]:"RecsType.BigInt",[e.UINT88]:"RecsType.BigInt",[e.UINT96]:"RecsType.BigInt",[e.UINT104]:"RecsType.BigInt",[e.UINT112]:"RecsType.BigInt",[e.UINT120]:"RecsType.BigInt",[e.UINT128]:"RecsType.BigInt",[e.UINT136]:"RecsType.BigInt",[e.UINT144]:"RecsType.BigInt",[e.UINT152]:"RecsType.BigInt",[e.UINT160]:"RecsType.BigInt",[e.UINT168]:"RecsType.BigInt",[e.UINT176]:"RecsType.BigInt",[e.UINT184]:"RecsType.BigInt",[e.UINT192]:"RecsType.BigInt",[e.UINT200]:"RecsType.BigInt",[e.UINT208]:"RecsType.BigInt",[e.UINT216]:"RecsType.BigInt",[e.UINT224]:"RecsType.BigInt",[e.UINT232]:"RecsType.BigInt",[e.UINT240]:"RecsType.BigInt",[e.UINT248]:"RecsType.BigInt",[e.UINT256]:"RecsType.BigInt",[e.INT8]:"RecsType.Number",[e.INT16]:"RecsType.Number",[e.INT24]:"RecsType.Number",[e.INT32]:"RecsType.Number",[e.INT40]:"RecsType.Number",[e.INT48]:"RecsType.Number",[e.INT56]:"RecsType.BigInt",[e.INT64]:"RecsType.BigInt",[e.INT72]:"RecsType.BigInt",[e.INT80]:"RecsType.BigInt",[e.INT88]:"RecsType.BigInt",[e.INT96]:"RecsType.BigInt",[e.INT104]:"RecsType.BigInt",[e.INT112]:"RecsType.BigInt",[e.INT120]:"RecsType.BigInt",[e.INT128]:"RecsType.BigInt",[e.INT136]:"RecsType.BigInt",[e.INT144]:"RecsType.BigInt",[e.INT152]:"RecsType.BigInt",[e.INT160]:"RecsType.BigInt",[e.INT168]:"RecsType.BigInt",[e.INT176]:"RecsType.BigInt",[e.INT184]:"RecsType.BigInt",[e.INT192]:"RecsType.BigInt",[e.INT200]:"RecsType.BigInt",[e.INT208]:"RecsType.BigInt",[e.INT216]:"RecsType.BigInt",[e.INT224]:"RecsType.BigInt",[e.INT232]:"RecsType.BigInt",[e.INT240]:"RecsType.BigInt",[e.INT248]:"RecsType.BigInt",[e.INT256]:"RecsType.BigInt",[e.BYTES1]:"RecsType.String",[e.BYTES2]:"RecsType.String",[e.BYTES3]:"RecsType.String",[e.BYTES4]:"RecsType.String",[e.BYTES5]:"RecsType.String",[e.BYTES6]:"RecsType.String",[e.BYTES7]:"RecsType.String",[e.BYTES8]:"RecsType.String",[e.BYTES9]:"RecsType.String",[e.BYTES10]:"RecsType.String",[e.BYTES11]:"RecsType.String",[e.BYTES12]:"RecsType.String",[e.BYTES13]:"RecsType.String",[e.BYTES14]:"RecsType.String",[e.BYTES15]:"RecsType.String",[e.BYTES16]:"RecsType.String",[e.BYTES17]:"RecsType.String",[e.BYTES18]:"RecsType.String",[e.BYTES19]:"RecsType.String",[e.BYTES20]:"RecsType.String",[e.BYTES21]:"RecsType.String",[e.BYTES22]:"RecsType.String",[e.BYTES23]:"RecsType.String",[e.BYTES24]:"RecsType.String",[e.BYTES25]:"RecsType.String",[e.BYTES26]:"RecsType.String",[e.BYTES27]:"RecsType.String",[e.BYTES28]:"RecsType.String",[e.BYTES29]:"RecsType.String",[e.BYTES30]:"RecsType.String",[e.BYTES31]:"RecsType.String",[e.BYTES32]:"RecsType.String",[e.BOOL]:"RecsType.Boolean",[e.ADDRESS]:"RecsType.String",[e.UINT8_ARRAY]:"RecsType.NumberArray",[e.UINT16_ARRAY]:"RecsType.NumberArray",[e.UINT24_ARRAY]:"RecsType.NumberArray",[e.UINT32_ARRAY]:"RecsType.NumberArray",[e.UINT40_ARRAY]:"RecsType.NumberArray",[e.UINT48_ARRAY]:"RecsType.NumberArray",[e.UINT56_ARRAY]:"RecsType.BigIntArray",[e.UINT64_ARRAY]:"RecsType.BigIntArray",[e.UINT72_ARRAY]:"RecsType.BigIntArray",[e.UINT80_ARRAY]:"RecsType.BigIntArray",[e.UINT88_ARRAY]:"RecsType.BigIntArray",[e.UINT96_ARRAY]:"RecsType.BigIntArray",[e.UINT104_ARRAY]:"RecsType.BigIntArray",[e.UINT112_ARRAY]:"RecsType.BigIntArray",[e.UINT120_ARRAY]:"RecsType.BigIntArray",[e.UINT128_ARRAY]:"RecsType.BigIntArray",[e.UINT136_ARRAY]:"RecsType.BigIntArray",[e.UINT144_ARRAY]:"RecsType.BigIntArray",[e.UINT152_ARRAY]:"RecsType.BigIntArray",[e.UINT160_ARRAY]:"RecsType.BigIntArray",[e.UINT168_ARRAY]:"RecsType.BigIntArray",[e.UINT176_ARRAY]:"RecsType.BigIntArray",[e.UINT184_ARRAY]:"RecsType.BigIntArray",[e.UINT192_ARRAY]:"RecsType.BigIntArray",[e.UINT200_ARRAY]:"RecsType.BigIntArray",[e.UINT208_ARRAY]:"RecsType.BigIntArray",[e.UINT216_ARRAY]:"RecsType.BigIntArray",[e.UINT224_ARRAY]:"RecsType.BigIntArray",[e.UINT232_ARRAY]:"RecsType.BigIntArray",[e.UINT240_ARRAY]:"RecsType.BigIntArray",[e.UINT248_ARRAY]:"RecsType.BigIntArray",[e.UINT256_ARRAY]:"RecsType.BigIntArray",[e.INT8_ARRAY]:"RecsType.NumberArray",[e.INT16_ARRAY]:"RecsType.NumberArray",[e.INT24_ARRAY]:"RecsType.NumberArray",[e.INT32_ARRAY]:"RecsType.NumberArray",[e.INT40_ARRAY]:"RecsType.NumberArray",[e.INT48_ARRAY]:"RecsType.NumberArray",[e.INT56_ARRAY]:"RecsType.BigIntArray",[e.INT64_ARRAY]:"RecsType.BigIntArray",[e.INT72_ARRAY]:"RecsType.BigIntArray",[e.INT80_ARRAY]:"RecsType.BigIntArray",[e.INT88_ARRAY]:"RecsType.BigIntArray",[e.INT96_ARRAY]:"RecsType.BigIntArray",[e.INT104_ARRAY]:"RecsType.BigIntArray",[e.INT112_ARRAY]:"RecsType.BigIntArray",[e.INT120_ARRAY]:"RecsType.BigIntArray",[e.INT128_ARRAY]:"RecsType.BigIntArray",[e.INT136_ARRAY]:"RecsType.BigIntArray",[e.INT144_ARRAY]:"RecsType.BigIntArray",[e.INT152_ARRAY]:"RecsType.BigIntArray",[e.INT160_ARRAY]:"RecsType.BigIntArray",[e.INT168_ARRAY]:"RecsType.BigIntArray",[e.INT176_ARRAY]:"RecsType.BigIntArray",[e.INT184_ARRAY]:"RecsType.BigIntArray",[e.INT192_ARRAY]:"RecsType.BigIntArray",[e.INT200_ARRAY]:"RecsType.BigIntArray",[e.INT208_ARRAY]:"RecsType.BigIntArray",[e.INT216_ARRAY]:"RecsType.BigIntArray",[e.INT224_ARRAY]:"RecsType.BigIntArray",[e.INT232_ARRAY]:"RecsType.BigIntArray",[e.INT240_ARRAY]:"RecsType.BigIntArray",[e.INT248_ARRAY]:"RecsType.BigIntArray",[e.INT256_ARRAY]:"RecsType.BigIntArray",[e.BYTES1_ARRAY]:"RecsType.StringArray",[e.BYTES2_ARRAY]:"RecsType.StringArray",[e.BYTES3_ARRAY]:"RecsType.StringArray",[e.BYTES4_ARRAY]:"RecsType.StringArray",[e.BYTES5_ARRAY]:"RecsType.StringArray",[e.BYTES6_ARRAY]:"RecsType.StringArray",[e.BYTES7_ARRAY]:"RecsType.StringArray",[e.BYTES8_ARRAY]:"RecsType.StringArray",[e.BYTES9_ARRAY]:"RecsType.StringArray",[e.BYTES10_ARRAY]:"RecsType.StringArray",[e.BYTES11_ARRAY]:"RecsType.StringArray",[e.BYTES12_ARRAY]:"RecsType.StringArray",[e.BYTES13_ARRAY]:"RecsType.StringArray",[e.BYTES14_ARRAY]:"RecsType.StringArray",[e.BYTES15_ARRAY]:"RecsType.StringArray",[e.BYTES16_ARRAY]:"RecsType.StringArray",[e.BYTES17_ARRAY]:"RecsType.StringArray",[e.BYTES18_ARRAY]:"RecsType.StringArray",[e.BYTES19_ARRAY]:"RecsType.StringArray",[e.BYTES20_ARRAY]:"RecsType.StringArray",[e.BYTES21_ARRAY]:"RecsType.StringArray",[e.BYTES22_ARRAY]:"RecsType.StringArray",[e.BYTES23_ARRAY]:"RecsType.StringArray",[e.BYTES24_ARRAY]:"RecsType.StringArray",[e.BYTES25_ARRAY]:"RecsType.StringArray",[e.BYTES26_ARRAY]:"RecsType.StringArray",[e.BYTES27_ARRAY]:"RecsType.StringArray",[e.BYTES28_ARRAY]:"RecsType.StringArray",[e.BYTES29_ARRAY]:"RecsType.StringArray",[e.BYTES30_ARRAY]:"RecsType.StringArray",[e.BYTES31_ARRAY]:"RecsType.StringArray",[e.BYTES32_ARRAY]:"RecsType.StringArray",[e.BOOL_ARRAY]:"RecsType.T",[e.ADDRESS_ARRAY]:"RecsType.StringArray",[e.BYTES]:"RecsType.String",[e.STRING]:"RecsType.String"};import{resolveAbiOrUserType as g}from"@latticexyz/store";function n(T){let r=[];for(let R of Object.keys(T.tables)){let y=T.tables[R],t=Object.keys(y.schema).map(A=>{let I=y.schema[A],{schemaType:i}=g(I,T);return{recsTypeString:s[i],name:A}});if(y.tableIdArgument)continue;let p={namespace:T.namespace,name:y.name};r.push({tableName:R,fields:t,staticResourceData:p})}return{tables:r}}function c(T){let{tables:r}=T;return`/* Autogenerated file. Do not edit manually. */
2
+
3
+ import { TableId } from "@latticexyz/utils";
4
+ import { defineComponent, Type as RecsType, World } from "@latticexyz/recs";
5
+
6
+ export function defineContractComponents(world: World) {
7
+ return {
8
+ ${r.map(R=>`${R.tableName}: ${B(R)},`).join("")}
9
+ }
10
+ }
11
+ `}function B(T){let{namespace:r,name:R}=T.staticResourceData;return`
12
+ (() => {
13
+ const tableId = new TableId("${r}", "${R}");
14
+ return defineComponent(world, {
15
+ ${T.fields.map(({name:y,recsTypeString:t})=>`${y}: ${t},`).join("")}
16
+ }, {
17
+ metadata: { contractId: tableId.toHexString(), tableId: tableId.toString() },
18
+ });
19
+ })()
20
+ `}import a from"path";import{formatAndWriteTypescript as Y}from"@latticexyz/common/codegen";async function O(T,r){let R=a.join(r,"contractComponents.ts"),y=n(T),t=c(y);Y(t,R,"Generated ts definition files")}export{s as a,n as b,c,O as d};
21
+ //# sourceMappingURL=chunk-5UQ7AMWT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/render-ts/schemaTypesToRecsTypeStrings.ts","../src/render-ts/recsV1TableOptions.ts","../src/render-ts/renderRecsV1Tables.ts","../src/render-ts/tsgen.ts"],"sourcesContent":["import { SchemaType } from \"@latticexyz/schema-type\";\n\nexport const schemaTypesToRecsTypeStrings: Record<SchemaType, string> = {\n [SchemaType.UINT8]: \"RecsType.Number\",\n [SchemaType.UINT16]: \"RecsType.Number\",\n [SchemaType.UINT24]: \"RecsType.Number\",\n [SchemaType.UINT32]: \"RecsType.Number\",\n [SchemaType.UINT40]: \"RecsType.Number\",\n [SchemaType.UINT48]: \"RecsType.Number\",\n [SchemaType.UINT56]: \"RecsType.BigInt\",\n [SchemaType.UINT64]: \"RecsType.BigInt\",\n [SchemaType.UINT72]: \"RecsType.BigInt\",\n [SchemaType.UINT80]: \"RecsType.BigInt\",\n [SchemaType.UINT88]: \"RecsType.BigInt\",\n [SchemaType.UINT96]: \"RecsType.BigInt\",\n [SchemaType.UINT104]: \"RecsType.BigInt\",\n [SchemaType.UINT112]: \"RecsType.BigInt\",\n [SchemaType.UINT120]: \"RecsType.BigInt\",\n [SchemaType.UINT128]: \"RecsType.BigInt\",\n [SchemaType.UINT136]: \"RecsType.BigInt\",\n [SchemaType.UINT144]: \"RecsType.BigInt\",\n [SchemaType.UINT152]: \"RecsType.BigInt\",\n [SchemaType.UINT160]: \"RecsType.BigInt\",\n [SchemaType.UINT168]: \"RecsType.BigInt\",\n [SchemaType.UINT176]: \"RecsType.BigInt\",\n [SchemaType.UINT184]: \"RecsType.BigInt\",\n [SchemaType.UINT192]: \"RecsType.BigInt\",\n [SchemaType.UINT200]: \"RecsType.BigInt\",\n [SchemaType.UINT208]: \"RecsType.BigInt\",\n [SchemaType.UINT216]: \"RecsType.BigInt\",\n [SchemaType.UINT224]: \"RecsType.BigInt\",\n [SchemaType.UINT232]: \"RecsType.BigInt\",\n [SchemaType.UINT240]: \"RecsType.BigInt\",\n [SchemaType.UINT248]: \"RecsType.BigInt\",\n [SchemaType.UINT256]: \"RecsType.BigInt\",\n [SchemaType.INT8]: \"RecsType.Number\",\n [SchemaType.INT16]: \"RecsType.Number\",\n [SchemaType.INT24]: \"RecsType.Number\",\n [SchemaType.INT32]: \"RecsType.Number\",\n [SchemaType.INT40]: \"RecsType.Number\",\n [SchemaType.INT48]: \"RecsType.Number\",\n [SchemaType.INT56]: \"RecsType.BigInt\",\n [SchemaType.INT64]: \"RecsType.BigInt\",\n [SchemaType.INT72]: \"RecsType.BigInt\",\n [SchemaType.INT80]: \"RecsType.BigInt\",\n [SchemaType.INT88]: \"RecsType.BigInt\",\n [SchemaType.INT96]: \"RecsType.BigInt\",\n [SchemaType.INT104]: \"RecsType.BigInt\",\n [SchemaType.INT112]: \"RecsType.BigInt\",\n [SchemaType.INT120]: \"RecsType.BigInt\",\n [SchemaType.INT128]: \"RecsType.BigInt\",\n [SchemaType.INT136]: \"RecsType.BigInt\",\n [SchemaType.INT144]: \"RecsType.BigInt\",\n [SchemaType.INT152]: \"RecsType.BigInt\",\n [SchemaType.INT160]: \"RecsType.BigInt\",\n [SchemaType.INT168]: \"RecsType.BigInt\",\n [SchemaType.INT176]: \"RecsType.BigInt\",\n [SchemaType.INT184]: \"RecsType.BigInt\",\n [SchemaType.INT192]: \"RecsType.BigInt\",\n [SchemaType.INT200]: \"RecsType.BigInt\",\n [SchemaType.INT208]: \"RecsType.BigInt\",\n [SchemaType.INT216]: \"RecsType.BigInt\",\n [SchemaType.INT224]: \"RecsType.BigInt\",\n [SchemaType.INT232]: \"RecsType.BigInt\",\n [SchemaType.INT240]: \"RecsType.BigInt\",\n [SchemaType.INT248]: \"RecsType.BigInt\",\n [SchemaType.INT256]: \"RecsType.BigInt\",\n [SchemaType.BYTES1]: \"RecsType.String\",\n [SchemaType.BYTES2]: \"RecsType.String\",\n [SchemaType.BYTES3]: \"RecsType.String\",\n [SchemaType.BYTES4]: \"RecsType.String\",\n [SchemaType.BYTES5]: \"RecsType.String\",\n [SchemaType.BYTES6]: \"RecsType.String\",\n [SchemaType.BYTES7]: \"RecsType.String\",\n [SchemaType.BYTES8]: \"RecsType.String\",\n [SchemaType.BYTES9]: \"RecsType.String\",\n [SchemaType.BYTES10]: \"RecsType.String\",\n [SchemaType.BYTES11]: \"RecsType.String\",\n [SchemaType.BYTES12]: \"RecsType.String\",\n [SchemaType.BYTES13]: \"RecsType.String\",\n [SchemaType.BYTES14]: \"RecsType.String\",\n [SchemaType.BYTES15]: \"RecsType.String\",\n [SchemaType.BYTES16]: \"RecsType.String\",\n [SchemaType.BYTES17]: \"RecsType.String\",\n [SchemaType.BYTES18]: \"RecsType.String\",\n [SchemaType.BYTES19]: \"RecsType.String\",\n [SchemaType.BYTES20]: \"RecsType.String\",\n [SchemaType.BYTES21]: \"RecsType.String\",\n [SchemaType.BYTES22]: \"RecsType.String\",\n [SchemaType.BYTES23]: \"RecsType.String\",\n [SchemaType.BYTES24]: \"RecsType.String\",\n [SchemaType.BYTES25]: \"RecsType.String\",\n [SchemaType.BYTES26]: \"RecsType.String\",\n [SchemaType.BYTES27]: \"RecsType.String\",\n [SchemaType.BYTES28]: \"RecsType.String\",\n [SchemaType.BYTES29]: \"RecsType.String\",\n [SchemaType.BYTES30]: \"RecsType.String\",\n [SchemaType.BYTES31]: \"RecsType.String\",\n [SchemaType.BYTES32]: \"RecsType.String\",\n [SchemaType.BOOL]: \"RecsType.Boolean\",\n [SchemaType.ADDRESS]: \"RecsType.String\",\n [SchemaType.UINT8_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.UINT16_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.UINT24_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.UINT32_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.UINT40_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.UINT48_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.UINT56_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT64_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT72_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT80_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT88_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT96_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT104_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT112_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT120_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT128_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT136_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT144_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT152_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT160_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT168_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT176_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT184_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT192_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT200_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT208_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT216_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT224_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT232_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT240_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT248_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.UINT256_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT8_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.INT16_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.INT24_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.INT32_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.INT40_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.INT48_ARRAY]: \"RecsType.NumberArray\",\n [SchemaType.INT56_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT64_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT72_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT80_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT88_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT96_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT104_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT112_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT120_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT128_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT136_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT144_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT152_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT160_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT168_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT176_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT184_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT192_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT200_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT208_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT216_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT224_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT232_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT240_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT248_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.INT256_ARRAY]: \"RecsType.BigIntArray\",\n [SchemaType.BYTES1_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES2_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES3_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES4_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES5_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES6_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES7_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES8_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES9_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES10_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES11_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES12_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES13_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES14_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES15_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES16_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES17_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES18_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES19_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES20_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES21_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES22_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES23_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES24_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES25_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES26_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES27_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES28_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES29_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES30_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES31_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES32_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BOOL_ARRAY]: \"RecsType.T\", // no boolean array\n [SchemaType.ADDRESS_ARRAY]: \"RecsType.StringArray\",\n [SchemaType.BYTES]: \"RecsType.String\",\n [SchemaType.STRING]: \"RecsType.String\",\n};\n","import { StoreConfig, resolveAbiOrUserType } from \"@latticexyz/store\";\nimport { schemaTypesToRecsTypeStrings } from \"./schemaTypesToRecsTypeStrings\";\nimport { RecsV1TableOptions } from \"./types\";\n\nexport function getRecsV1TableOptions(config: StoreConfig): RecsV1TableOptions {\n const tableOptions = [];\n for (const tableName of Object.keys(config.tables)) {\n const tableData = config.tables[tableName];\n\n const fields = Object.keys(tableData.schema).map((name) => {\n const abiOrUserType = tableData.schema[name];\n const { schemaType } = resolveAbiOrUserType(abiOrUserType, config);\n\n const recsTypeString = schemaTypesToRecsTypeStrings[schemaType];\n\n return {\n recsTypeString,\n name,\n };\n });\n\n // WARNING: skip tables without a static tableId\n if (tableData.tableIdArgument) continue;\n const staticResourceData = {\n namespace: config.namespace,\n name: tableData.name,\n };\n\n tableOptions.push({\n tableName,\n fields,\n staticResourceData,\n });\n }\n return {\n tables: tableOptions,\n };\n}\n","import { RecsV1TableOptions } from \"./types\";\n\nexport function renderRecsV1Tables(options: RecsV1TableOptions) {\n const { tables } = options;\n\n return `/* Autogenerated file. Do not edit manually. */\n\nimport { TableId } from \"@latticexyz/utils\";\nimport { defineComponent, Type as RecsType, World } from \"@latticexyz/recs\";\n\nexport function defineContractComponents(world: World) {\n return {\n ${tables.map((table) => `${table.tableName}: ${renderDefineComponent(table)},`).join(\"\")}\n }\n}\n`;\n}\n\nfunction renderDefineComponent(table: RecsV1TableOptions[\"tables\"][number]) {\n const { namespace, name } = table.staticResourceData;\n return `\n (() => {\n const tableId = new TableId(\"${namespace}\", \"${name}\");\n return defineComponent(world, {\n ${table.fields.map(({ name, recsTypeString }) => `${name}: ${recsTypeString},`).join(\"\")}\n }, {\n metadata: { contractId: tableId.toHexString(), tableId: tableId.toString() },\n });\n })()\n `;\n}\n","import path from \"path\";\nimport { StoreConfig } from \"@latticexyz/store\";\nimport { formatAndWriteTypescript } from \"@latticexyz/common/codegen\";\nimport { getRecsV1TableOptions } from \"../render-ts/recsV1TableOptions\";\nimport { renderRecsV1Tables } from \"../render-ts/renderRecsV1Tables\";\n\nexport async function tsgen(config: StoreConfig, outDirectory: string) {\n const fullOutputPath = path.join(outDirectory, `contractComponents.ts`);\n const options = getRecsV1TableOptions(config);\n const output = renderRecsV1Tables(options);\n formatAndWriteTypescript(output, fullOutputPath, \"Generated ts definition files\");\n}\n"],"mappings":"AAAA,OAAS,cAAAA,MAAkB,0BAEpB,IAAMC,EAA2D,CACtE,CAACD,EAAW,KAAK,EAAG,kBACpB,CAACA,EAAW,MAAM,EAAG,kBACrB,CAACA,EAAW,MAAM,EAAG,kBACr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C,eAAsBC,EAAMC,EAAqBC,EAAsB,CACrE,IAAMC,EAAiBC,EAAK,KAAKF,EAAc,uBAAuB,EAChEG,EAAUC,EAAsBL,CAAM,EACtCM,EAASC,EAAmBH,CAAO,EACzCI,EAAyBF,EAAQJ,EAAgB,+BAA+B,CAClF","names":["SchemaType","schemaTypesToRecsTypeStrings","resolveAbiOrUserType","getRecsV1TableOptions","config","tableOptions","tableName","tableData","fields","name","abiOrUserType","schemaType","resolveAbiOrUserType","schemaTypesToRecsTypeStrings","staticResourceData","renderRecsV1Tables","options","tables","table","renderDefineComponent","namespace","name","recsTypeString","path","formatAndWriteTypescript","tsgen","config","outDirectory","fullOutputPath","path","options","getRecsV1TableOptions","output","renderRecsV1Tables","formatAndWriteTypescript"]}
package/dist/index.js CHANGED
@@ -0,0 +1,2 @@
1
+ import{a as o,b as r,c as e,d as f}from"./chunk-5UQ7AMWT.js";export{r as getRecsV1TableOptions,e as renderRecsV1Tables,o as schemaTypesToRecsTypeStrings,f as tsgen};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}