@latticexyz/schema-type 2.2.15 → 2.2.16-59389b1e37bc84664972231989ce7fdc739cce42

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.
@@ -647,4 +647,4 @@ declare function getStaticByteLength(schemaType: SchemaType): number;
647
647
  */
648
648
  declare function getAbiTypeDefaultValue<T extends string>(abiType: T): AbiTypeToPrimitiveType<T>;
649
649
 
650
- export { AbiType, AbiTypeToPrimitiveType, AbiTypeToSchemaType, AbiTypes, ArraySchemaType, DynamicSchemaType, SchemaType, SchemaTypeArrayToElement, SchemaTypeToAbiType, SchemaTypeToPrimitiveType, StaticAbiType, StaticAbiTypes, StaticArray, StaticSchemaType, encodeSchema, getAbiTypeDefaultValue, getStaticByteLength };
650
+ export { type AbiType, type AbiTypeToPrimitiveType, AbiTypeToSchemaType, AbiTypes, type ArraySchemaType, type DynamicSchemaType, SchemaType, SchemaTypeArrayToElement, SchemaTypeToAbiType, type SchemaTypeToPrimitiveType, type StaticAbiType, StaticAbiTypes, type StaticArray, type StaticSchemaType, encodeSchema, getAbiTypeDefaultValue, getStaticByteLength };
@@ -1,2 +1,2 @@
1
- var I=(t=>(t[t.UINT8=0]="UINT8",t[t.UINT16=1]="UINT16",t[t.UINT24=2]="UINT24",t[t.UINT32=3]="UINT32",t[t.UINT40=4]="UINT40",t[t.UINT48=5]="UINT48",t[t.UINT56=6]="UINT56",t[t.UINT64=7]="UINT64",t[t.UINT72=8]="UINT72",t[t.UINT80=9]="UINT80",t[t.UINT88=10]="UINT88",t[t.UINT96=11]="UINT96",t[t.UINT104=12]="UINT104",t[t.UINT112=13]="UINT112",t[t.UINT120=14]="UINT120",t[t.UINT128=15]="UINT128",t[t.UINT136=16]="UINT136",t[t.UINT144=17]="UINT144",t[t.UINT152=18]="UINT152",t[t.UINT160=19]="UINT160",t[t.UINT168=20]="UINT168",t[t.UINT176=21]="UINT176",t[t.UINT184=22]="UINT184",t[t.UINT192=23]="UINT192",t[t.UINT200=24]="UINT200",t[t.UINT208=25]="UINT208",t[t.UINT216=26]="UINT216",t[t.UINT224=27]="UINT224",t[t.UINT232=28]="UINT232",t[t.UINT240=29]="UINT240",t[t.UINT248=30]="UINT248",t[t.UINT256=31]="UINT256",t[t.INT8=32]="INT8",t[t.INT16=33]="INT16",t[t.INT24=34]="INT24",t[t.INT32=35]="INT32",t[t.INT40=36]="INT40",t[t.INT48=37]="INT48",t[t.INT56=38]="INT56",t[t.INT64=39]="INT64",t[t.INT72=40]="INT72",t[t.INT80=41]="INT80",t[t.INT88=42]="INT88",t[t.INT96=43]="INT96",t[t.INT104=44]="INT104",t[t.INT112=45]="INT112",t[t.INT120=46]="INT120",t[t.INT128=47]="INT128",t[t.INT136=48]="INT136",t[t.INT144=49]="INT144",t[t.INT152=50]="INT152",t[t.INT160=51]="INT160",t[t.INT168=52]="INT168",t[t.INT176=53]="INT176",t[t.INT184=54]="INT184",t[t.INT192=55]="INT192",t[t.INT200=56]="INT200",t[t.INT208=57]="INT208",t[t.INT216=58]="INT216",t[t.INT224=59]="INT224",t[t.INT232=60]="INT232",t[t.INT240=61]="INT240",t[t.INT248=62]="INT248",t[t.INT256=63]="INT256",t[t.BYTES1=64]="BYTES1",t[t.BYTES2=65]="BYTES2",t[t.BYTES3=66]="BYTES3",t[t.BYTES4=67]="BYTES4",t[t.BYTES5=68]="BYTES5",t[t.BYTES6=69]="BYTES6",t[t.BYTES7=70]="BYTES7",t[t.BYTES8=71]="BYTES8",t[t.BYTES9=72]="BYTES9",t[t.BYTES10=73]="BYTES10",t[t.BYTES11=74]="BYTES11",t[t.BYTES12=75]="BYTES12",t[t.BYTES13=76]="BYTES13",t[t.BYTES14=77]="BYTES14",t[t.BYTES15=78]="BYTES15",t[t.BYTES16=79]="BYTES16",t[t.BYTES17=80]="BYTES17",t[t.BYTES18=81]="BYTES18",t[t.BYTES19=82]="BYTES19",t[t.BYTES20=83]="BYTES20",t[t.BYTES21=84]="BYTES21",t[t.BYTES22=85]="BYTES22",t[t.BYTES23=86]="BYTES23",t[t.BYTES24=87]="BYTES24",t[t.BYTES25=88]="BYTES25",t[t.BYTES26=89]="BYTES26",t[t.BYTES27=90]="BYTES27",t[t.BYTES28=91]="BYTES28",t[t.BYTES29=92]="BYTES29",t[t.BYTES30=93]="BYTES30",t[t.BYTES31=94]="BYTES31",t[t.BYTES32=95]="BYTES32",t[t.BOOL=96]="BOOL",t[t.ADDRESS=97]="ADDRESS",t[t.UINT8_ARRAY=98]="UINT8_ARRAY",t[t.UINT16_ARRAY=99]="UINT16_ARRAY",t[t.UINT24_ARRAY=100]="UINT24_ARRAY",t[t.UINT32_ARRAY=101]="UINT32_ARRAY",t[t.UINT40_ARRAY=102]="UINT40_ARRAY",t[t.UINT48_ARRAY=103]="UINT48_ARRAY",t[t.UINT56_ARRAY=104]="UINT56_ARRAY",t[t.UINT64_ARRAY=105]="UINT64_ARRAY",t[t.UINT72_ARRAY=106]="UINT72_ARRAY",t[t.UINT80_ARRAY=107]="UINT80_ARRAY",t[t.UINT88_ARRAY=108]="UINT88_ARRAY",t[t.UINT96_ARRAY=109]="UINT96_ARRAY",t[t.UINT104_ARRAY=110]="UINT104_ARRAY",t[t.UINT112_ARRAY=111]="UINT112_ARRAY",t[t.UINT120_ARRAY=112]="UINT120_ARRAY",t[t.UINT128_ARRAY=113]="UINT128_ARRAY",t[t.UINT136_ARRAY=114]="UINT136_ARRAY",t[t.UINT144_ARRAY=115]="UINT144_ARRAY",t[t.UINT152_ARRAY=116]="UINT152_ARRAY",t[t.UINT160_ARRAY=117]="UINT160_ARRAY",t[t.UINT168_ARRAY=118]="UINT168_ARRAY",t[t.UINT176_ARRAY=119]="UINT176_ARRAY",t[t.UINT184_ARRAY=120]="UINT184_ARRAY",t[t.UINT192_ARRAY=121]="UINT192_ARRAY",t[t.UINT200_ARRAY=122]="UINT200_ARRAY",t[t.UINT208_ARRAY=123]="UINT208_ARRAY",t[t.UINT216_ARRAY=124]="UINT216_ARRAY",t[t.UINT224_ARRAY=125]="UINT224_ARRAY",t[t.UINT232_ARRAY=126]="UINT232_ARRAY",t[t.UINT240_ARRAY=127]="UINT240_ARRAY",t[t.UINT248_ARRAY=128]="UINT248_ARRAY",t[t.UINT256_ARRAY=129]="UINT256_ARRAY",t[t.INT8_ARRAY=130]="INT8_ARRAY",t[t.INT16_ARRAY=131]="INT16_ARRAY",t[t.INT24_ARRAY=132]="INT24_ARRAY",t[t.INT32_ARRAY=133]="INT32_ARRAY",t[t.INT40_ARRAY=134]="INT40_ARRAY",t[t.INT48_ARRAY=135]="INT48_ARRAY",t[t.INT56_ARRAY=136]="INT56_ARRAY",t[t.INT64_ARRAY=137]="INT64_ARRAY",t[t.INT72_ARRAY=138]="INT72_ARRAY",t[t.INT80_ARRAY=139]="INT80_ARRAY",t[t.INT88_ARRAY=140]="INT88_ARRAY",t[t.INT96_ARRAY=141]="INT96_ARRAY",t[t.INT104_ARRAY=142]="INT104_ARRAY",t[t.INT112_ARRAY=143]="INT112_ARRAY",t[t.INT120_ARRAY=144]="INT120_ARRAY",t[t.INT128_ARRAY=145]="INT128_ARRAY",t[t.INT136_ARRAY=146]="INT136_ARRAY",t[t.INT144_ARRAY=147]="INT144_ARRAY",t[t.INT152_ARRAY=148]="INT152_ARRAY",t[t.INT160_ARRAY=149]="INT160_ARRAY",t[t.INT168_ARRAY=150]="INT168_ARRAY",t[t.INT176_ARRAY=151]="INT176_ARRAY",t[t.INT184_ARRAY=152]="INT184_ARRAY",t[t.INT192_ARRAY=153]="INT192_ARRAY",t[t.INT200_ARRAY=154]="INT200_ARRAY",t[t.INT208_ARRAY=155]="INT208_ARRAY",t[t.INT216_ARRAY=156]="INT216_ARRAY",t[t.INT224_ARRAY=157]="INT224_ARRAY",t[t.INT232_ARRAY=158]="INT232_ARRAY",t[t.INT240_ARRAY=159]="INT240_ARRAY",t[t.INT248_ARRAY=160]="INT248_ARRAY",t[t.INT256_ARRAY=161]="INT256_ARRAY",t[t.BYTES1_ARRAY=162]="BYTES1_ARRAY",t[t.BYTES2_ARRAY=163]="BYTES2_ARRAY",t[t.BYTES3_ARRAY=164]="BYTES3_ARRAY",t[t.BYTES4_ARRAY=165]="BYTES4_ARRAY",t[t.BYTES5_ARRAY=166]="BYTES5_ARRAY",t[t.BYTES6_ARRAY=167]="BYTES6_ARRAY",t[t.BYTES7_ARRAY=168]="BYTES7_ARRAY",t[t.BYTES8_ARRAY=169]="BYTES8_ARRAY",t[t.BYTES9_ARRAY=170]="BYTES9_ARRAY",t[t.BYTES10_ARRAY=171]="BYTES10_ARRAY",t[t.BYTES11_ARRAY=172]="BYTES11_ARRAY",t[t.BYTES12_ARRAY=173]="BYTES12_ARRAY",t[t.BYTES13_ARRAY=174]="BYTES13_ARRAY",t[t.BYTES14_ARRAY=175]="BYTES14_ARRAY",t[t.BYTES15_ARRAY=176]="BYTES15_ARRAY",t[t.BYTES16_ARRAY=177]="BYTES16_ARRAY",t[t.BYTES17_ARRAY=178]="BYTES17_ARRAY",t[t.BYTES18_ARRAY=179]="BYTES18_ARRAY",t[t.BYTES19_ARRAY=180]="BYTES19_ARRAY",t[t.BYTES20_ARRAY=181]="BYTES20_ARRAY",t[t.BYTES21_ARRAY=182]="BYTES21_ARRAY",t[t.BYTES22_ARRAY=183]="BYTES22_ARRAY",t[t.BYTES23_ARRAY=184]="BYTES23_ARRAY",t[t.BYTES24_ARRAY=185]="BYTES24_ARRAY",t[t.BYTES25_ARRAY=186]="BYTES25_ARRAY",t[t.BYTES26_ARRAY=187]="BYTES26_ARRAY",t[t.BYTES27_ARRAY=188]="BYTES27_ARRAY",t[t.BYTES28_ARRAY=189]="BYTES28_ARRAY",t[t.BYTES29_ARRAY=190]="BYTES29_ARRAY",t[t.BYTES30_ARRAY=191]="BYTES30_ARRAY",t[t.BYTES31_ARRAY=192]="BYTES31_ARRAY",t[t.BYTES32_ARRAY=193]="BYTES32_ARRAY",t[t.BOOL_ARRAY=194]="BOOL_ARRAY",t[t.ADDRESS_ARRAY=195]="ADDRESS_ARRAY",t[t.BYTES=196]="BYTES",t[t.STRING=197]="STRING",t))(I||{});var Y={[0]:"uint8",[1]:"uint16",[2]:"uint24",[3]:"uint32",[4]:"uint40",[5]:"uint48",[6]:"uint56",[7]:"uint64",[8]:"uint72",[9]:"uint80",[10]:"uint88",[11]:"uint96",[12]:"uint104",[13]:"uint112",[14]:"uint120",[15]:"uint128",[16]:"uint136",[17]:"uint144",[18]:"uint152",[19]:"uint160",[20]:"uint168",[21]:"uint176",[22]:"uint184",[23]:"uint192",[24]:"uint200",[25]:"uint208",[26]:"uint216",[27]:"uint224",[28]:"uint232",[29]:"uint240",[30]:"uint248",[31]:"uint256",[32]:"int8",[33]:"int16",[34]:"int24",[35]:"int32",[36]:"int40",[37]:"int48",[38]:"int56",[39]:"int64",[40]:"int72",[41]:"int80",[42]:"int88",[43]:"int96",[44]:"int104",[45]:"int112",[46]:"int120",[47]:"int128",[48]:"int136",[49]:"int144",[50]:"int152",[51]:"int160",[52]:"int168",[53]:"int176",[54]:"int184",[55]:"int192",[56]:"int200",[57]:"int208",[58]:"int216",[59]:"int224",[60]:"int232",[61]:"int240",[62]:"int248",[63]:"int256",[64]:"bytes1",[65]:"bytes2",[66]:"bytes3",[67]:"bytes4",[68]:"bytes5",[69]:"bytes6",[70]:"bytes7",[71]:"bytes8",[72]:"bytes9",[73]:"bytes10",[74]:"bytes11",[75]:"bytes12",[76]:"bytes13",[77]:"bytes14",[78]:"bytes15",[79]:"bytes16",[80]:"bytes17",[81]:"bytes18",[82]:"bytes19",[83]:"bytes20",[84]:"bytes21",[85]:"bytes22",[86]:"bytes23",[87]:"bytes24",[88]:"bytes25",[89]:"bytes26",[90]:"bytes27",[91]:"bytes28",[92]:"bytes29",[93]:"bytes30",[94]:"bytes31",[95]:"bytes32",[96]:"bool",[97]:"address",[98]:"uint8[]",[99]:"uint16[]",[100]:"uint24[]",[101]:"uint32[]",[102]:"uint40[]",[103]:"uint48[]",[104]:"uint56[]",[105]:"uint64[]",[106]:"uint72[]",[107]:"uint80[]",[108]:"uint88[]",[109]:"uint96[]",[110]:"uint104[]",[111]:"uint112[]",[112]:"uint120[]",[113]:"uint128[]",[114]:"uint136[]",[115]:"uint144[]",[116]:"uint152[]",[117]:"uint160[]",[118]:"uint168[]",[119]:"uint176[]",[120]:"uint184[]",[121]:"uint192[]",[122]:"uint200[]",[123]:"uint208[]",[124]:"uint216[]",[125]:"uint224[]",[126]:"uint232[]",[127]:"uint240[]",[128]:"uint248[]",[129]:"uint256[]",[130]:"int8[]",[131]:"int16[]",[132]:"int24[]",[133]:"int32[]",[134]:"int40[]",[135]:"int48[]",[136]:"int56[]",[137]:"int64[]",[138]:"int72[]",[139]:"int80[]",[140]:"int88[]",[141]:"int96[]",[142]:"int104[]",[143]:"int112[]",[144]:"int120[]",[145]:"int128[]",[146]:"int136[]",[147]:"int144[]",[148]:"int152[]",[149]:"int160[]",[150]:"int168[]",[151]:"int176[]",[152]:"int184[]",[153]:"int192[]",[154]:"int200[]",[155]:"int208[]",[156]:"int216[]",[157]:"int224[]",[158]:"int232[]",[159]:"int240[]",[160]:"int248[]",[161]:"int256[]",[162]:"bytes1[]",[163]:"bytes2[]",[164]:"bytes3[]",[165]:"bytes4[]",[166]:"bytes5[]",[167]:"bytes6[]",[168]:"bytes7[]",[169]:"bytes8[]",[170]:"bytes9[]",[171]:"bytes10[]",[172]:"bytes11[]",[173]:"bytes12[]",[174]:"bytes13[]",[175]:"bytes14[]",[176]:"bytes15[]",[177]:"bytes16[]",[178]:"bytes17[]",[179]:"bytes18[]",[180]:"bytes19[]",[181]:"bytes20[]",[182]:"bytes21[]",[183]:"bytes22[]",[184]:"bytes23[]",[185]:"bytes24[]",[186]:"bytes25[]",[187]:"bytes26[]",[188]:"bytes27[]",[189]:"bytes28[]",[190]:"bytes29[]",[191]:"bytes30[]",[192]:"bytes31[]",[193]:"bytes32[]",[194]:"bool[]",[195]:"address[]",[196]:"bytes",[197]:"string"};var s=Object.values(Y);var _=Object.fromEntries(Object.entries(Y).map(([R,A])=>[A,parseInt(R)]));function n(R){let A=R.valueOf();return A<32?A+1:A<64?A+1-32:A<96?A+1-64:R==96?1:R==97?20:0}var U=s.filter(R=>n(_[R])>0);var u={[98]:0,[99]:1,[100]:2,[101]:3,[102]:4,[103]:5,[104]:6,[105]:7,[106]:8,[107]:9,[108]:10,[109]:11,[110]:12,[111]:13,[112]:14,[113]:15,[114]:16,[115]:17,[116]:18,[117]:19,[118]:20,[119]:21,[120]:22,[121]:23,[122]:24,[123]:25,[124]:26,[125]:27,[126]:28,[127]:29,[128]:30,[129]:31,[130]:32,[131]:33,[132]:34,[133]:35,[134]:36,[135]:37,[136]:38,[137]:39,[138]:40,[139]:41,[140]:42,[141]:43,[142]:44,[143]:45,[144]:46,[145]:47,[146]:48,[147]:49,[148]:50,[149]:51,[150]:52,[151]:53,[152]:54,[153]:55,[154]:56,[155]:57,[156]:58,[157]:59,[158]:60,[159]:61,[160]:62,[161]:63,[162]:64,[163]:65,[164]:66,[165]:67,[166]:68,[167]:69,[168]:70,[169]:71,[170]:72,[171]:73,[172]:74,[173]:75,[174]:76,[175]:77,[176]:78,[177]:79,[178]:80,[179]:81,[180]:82,[181]:83,[182]:84,[183]:85,[184]:86,[185]:87,[186]:88,[187]:89,[188]:90,[189]:91,[190]:92,[191]:93,[192]:94,[193]:95,[194]:96,[195]:97};function o(R){if(R.length>28)throw new Error("Schema can only have up to 28 fields");let A=new Uint8Array(32),T=0,N=0,b=!1;for(let i=0;i<R.length;i++){let E=n(R[i]);if(E>0){if(b)throw new Error("Static fields must come before dynamic fields in the schema");N++}else b=!0;T+=E,A[i+4]=R[i]}let r=R.length-N;if(r>14)throw new Error("Schema can only have up to 14 dynamic fields");return new DataView(A.buffer).setUint16(0,T),A[2]=N,A[3]=r,A}var B={uint8:0,uint16:0,uint24:0,uint32:0,uint40:0,uint48:0,uint56:0n,uint64:0n,uint72:0n,uint80:0n,uint88:0n,uint96:0n,uint104:0n,uint112:0n,uint120:0n,uint128:0n,uint136:0n,uint144:0n,uint152:0n,uint160:0n,uint168:0n,uint176:0n,uint184:0n,uint192:0n,uint200:0n,uint208:0n,uint216:0n,uint224:0n,uint232:0n,uint240:0n,uint248:0n,uint256:0n,int8:0,int16:0,int24:0,int32:0,int40:0,int48:0,int56:0n,int64:0n,int72:0n,int80:0n,int88:0n,int96:0n,int104:0n,int112:0n,int120:0n,int128:0n,int136:0n,int144:0n,int152:0n,int160:0n,int168:0n,int176:0n,int184:0n,int192:0n,int200:0n,int208:0n,int216:0n,int224:0n,int232:0n,int240:0n,int248:0n,int256:0n,bytes1:"0x00",bytes2:"0x0000",bytes3:"0x000000",bytes4:"0x00000000",bytes5:"0x0000000000",bytes6:"0x000000000000",bytes7:"0x00000000000000",bytes8:"0x0000000000000000",bytes9:"0x000000000000000000",bytes10:"0x00000000000000000000",bytes11:"0x0000000000000000000000",bytes12:"0x000000000000000000000000",bytes13:"0x00000000000000000000000000",bytes14:"0x0000000000000000000000000000",bytes15:"0x000000000000000000000000000000",bytes16:"0x00000000000000000000000000000000",bytes17:"0x0000000000000000000000000000000000",bytes18:"0x000000000000000000000000000000000000",bytes19:"0x00000000000000000000000000000000000000",bytes20:"0x0000000000000000000000000000000000000000",bytes21:"0x000000000000000000000000000000000000000000",bytes22:"0x00000000000000000000000000000000000000000000",bytes23:"0x0000000000000000000000000000000000000000000000",bytes24:"0x000000000000000000000000000000000000000000000000",bytes25:"0x00000000000000000000000000000000000000000000000000",bytes26:"0x0000000000000000000000000000000000000000000000000000",bytes27:"0x000000000000000000000000000000000000000000000000000000",bytes28:"0x00000000000000000000000000000000000000000000000000000000",bytes29:"0x0000000000000000000000000000000000000000000000000000000000",bytes30:"0x000000000000000000000000000000000000000000000000000000000000",bytes31:"0x00000000000000000000000000000000000000000000000000000000000000",bytes32:"0x0000000000000000000000000000000000000000000000000000000000000000",bool:!1,address:"0x0000000000000000000000000000000000000000","uint8[]":[],"uint16[]":[],"uint24[]":[],"uint32[]":[],"uint40[]":[],"uint48[]":[],"uint56[]":[],"uint64[]":[],"uint72[]":[],"uint80[]":[],"uint88[]":[],"uint96[]":[],"uint104[]":[],"uint112[]":[],"uint120[]":[],"uint128[]":[],"uint136[]":[],"uint144[]":[],"uint152[]":[],"uint160[]":[],"uint168[]":[],"uint176[]":[],"uint184[]":[],"uint192[]":[],"uint200[]":[],"uint208[]":[],"uint216[]":[],"uint224[]":[],"uint232[]":[],"uint240[]":[],"uint248[]":[],"uint256[]":[],"int8[]":[],"int16[]":[],"int24[]":[],"int32[]":[],"int40[]":[],"int48[]":[],"int56[]":[],"int64[]":[],"int72[]":[],"int80[]":[],"int88[]":[],"int96[]":[],"int104[]":[],"int112[]":[],"int120[]":[],"int128[]":[],"int136[]":[],"int144[]":[],"int152[]":[],"int160[]":[],"int168[]":[],"int176[]":[],"int184[]":[],"int192[]":[],"int200[]":[],"int208[]":[],"int216[]":[],"int224[]":[],"int232[]":[],"int240[]":[],"int248[]":[],"int256[]":[],"bytes1[]":[],"bytes2[]":[],"bytes3[]":[],"bytes4[]":[],"bytes5[]":[],"bytes6[]":[],"bytes7[]":[],"bytes8[]":[],"bytes9[]":[],"bytes10[]":[],"bytes11[]":[],"bytes12[]":[],"bytes13[]":[],"bytes14[]":[],"bytes15[]":[],"bytes16[]":[],"bytes17[]":[],"bytes18[]":[],"bytes19[]":[],"bytes20[]":[],"bytes21[]":[],"bytes22[]":[],"bytes23[]":[],"bytes24[]":[],"bytes25[]":[],"bytes26[]":[],"bytes27[]":[],"bytes28[]":[],"bytes29[]":[],"bytes30[]":[],"bytes31[]":[],"bytes32[]":[],"bool[]":[],"address[]":[],bytes:"0x",string:""};function g(R){let A=R.replace(/(\w+)\[\d+\]/g,"$1[]");return B[A]}export{_ as AbiTypeToSchemaType,s as AbiTypes,I as SchemaType,u as SchemaTypeArrayToElement,Y as SchemaTypeToAbiType,U as StaticAbiTypes,o as encodeSchema,g as getAbiTypeDefaultValue,n as getStaticByteLength};
1
+ var I=(t=>(t[t.UINT8=0]="UINT8",t[t.UINT16=1]="UINT16",t[t.UINT24=2]="UINT24",t[t.UINT32=3]="UINT32",t[t.UINT40=4]="UINT40",t[t.UINT48=5]="UINT48",t[t.UINT56=6]="UINT56",t[t.UINT64=7]="UINT64",t[t.UINT72=8]="UINT72",t[t.UINT80=9]="UINT80",t[t.UINT88=10]="UINT88",t[t.UINT96=11]="UINT96",t[t.UINT104=12]="UINT104",t[t.UINT112=13]="UINT112",t[t.UINT120=14]="UINT120",t[t.UINT128=15]="UINT128",t[t.UINT136=16]="UINT136",t[t.UINT144=17]="UINT144",t[t.UINT152=18]="UINT152",t[t.UINT160=19]="UINT160",t[t.UINT168=20]="UINT168",t[t.UINT176=21]="UINT176",t[t.UINT184=22]="UINT184",t[t.UINT192=23]="UINT192",t[t.UINT200=24]="UINT200",t[t.UINT208=25]="UINT208",t[t.UINT216=26]="UINT216",t[t.UINT224=27]="UINT224",t[t.UINT232=28]="UINT232",t[t.UINT240=29]="UINT240",t[t.UINT248=30]="UINT248",t[t.UINT256=31]="UINT256",t[t.INT8=32]="INT8",t[t.INT16=33]="INT16",t[t.INT24=34]="INT24",t[t.INT32=35]="INT32",t[t.INT40=36]="INT40",t[t.INT48=37]="INT48",t[t.INT56=38]="INT56",t[t.INT64=39]="INT64",t[t.INT72=40]="INT72",t[t.INT80=41]="INT80",t[t.INT88=42]="INT88",t[t.INT96=43]="INT96",t[t.INT104=44]="INT104",t[t.INT112=45]="INT112",t[t.INT120=46]="INT120",t[t.INT128=47]="INT128",t[t.INT136=48]="INT136",t[t.INT144=49]="INT144",t[t.INT152=50]="INT152",t[t.INT160=51]="INT160",t[t.INT168=52]="INT168",t[t.INT176=53]="INT176",t[t.INT184=54]="INT184",t[t.INT192=55]="INT192",t[t.INT200=56]="INT200",t[t.INT208=57]="INT208",t[t.INT216=58]="INT216",t[t.INT224=59]="INT224",t[t.INT232=60]="INT232",t[t.INT240=61]="INT240",t[t.INT248=62]="INT248",t[t.INT256=63]="INT256",t[t.BYTES1=64]="BYTES1",t[t.BYTES2=65]="BYTES2",t[t.BYTES3=66]="BYTES3",t[t.BYTES4=67]="BYTES4",t[t.BYTES5=68]="BYTES5",t[t.BYTES6=69]="BYTES6",t[t.BYTES7=70]="BYTES7",t[t.BYTES8=71]="BYTES8",t[t.BYTES9=72]="BYTES9",t[t.BYTES10=73]="BYTES10",t[t.BYTES11=74]="BYTES11",t[t.BYTES12=75]="BYTES12",t[t.BYTES13=76]="BYTES13",t[t.BYTES14=77]="BYTES14",t[t.BYTES15=78]="BYTES15",t[t.BYTES16=79]="BYTES16",t[t.BYTES17=80]="BYTES17",t[t.BYTES18=81]="BYTES18",t[t.BYTES19=82]="BYTES19",t[t.BYTES20=83]="BYTES20",t[t.BYTES21=84]="BYTES21",t[t.BYTES22=85]="BYTES22",t[t.BYTES23=86]="BYTES23",t[t.BYTES24=87]="BYTES24",t[t.BYTES25=88]="BYTES25",t[t.BYTES26=89]="BYTES26",t[t.BYTES27=90]="BYTES27",t[t.BYTES28=91]="BYTES28",t[t.BYTES29=92]="BYTES29",t[t.BYTES30=93]="BYTES30",t[t.BYTES31=94]="BYTES31",t[t.BYTES32=95]="BYTES32",t[t.BOOL=96]="BOOL",t[t.ADDRESS=97]="ADDRESS",t[t.UINT8_ARRAY=98]="UINT8_ARRAY",t[t.UINT16_ARRAY=99]="UINT16_ARRAY",t[t.UINT24_ARRAY=100]="UINT24_ARRAY",t[t.UINT32_ARRAY=101]="UINT32_ARRAY",t[t.UINT40_ARRAY=102]="UINT40_ARRAY",t[t.UINT48_ARRAY=103]="UINT48_ARRAY",t[t.UINT56_ARRAY=104]="UINT56_ARRAY",t[t.UINT64_ARRAY=105]="UINT64_ARRAY",t[t.UINT72_ARRAY=106]="UINT72_ARRAY",t[t.UINT80_ARRAY=107]="UINT80_ARRAY",t[t.UINT88_ARRAY=108]="UINT88_ARRAY",t[t.UINT96_ARRAY=109]="UINT96_ARRAY",t[t.UINT104_ARRAY=110]="UINT104_ARRAY",t[t.UINT112_ARRAY=111]="UINT112_ARRAY",t[t.UINT120_ARRAY=112]="UINT120_ARRAY",t[t.UINT128_ARRAY=113]="UINT128_ARRAY",t[t.UINT136_ARRAY=114]="UINT136_ARRAY",t[t.UINT144_ARRAY=115]="UINT144_ARRAY",t[t.UINT152_ARRAY=116]="UINT152_ARRAY",t[t.UINT160_ARRAY=117]="UINT160_ARRAY",t[t.UINT168_ARRAY=118]="UINT168_ARRAY",t[t.UINT176_ARRAY=119]="UINT176_ARRAY",t[t.UINT184_ARRAY=120]="UINT184_ARRAY",t[t.UINT192_ARRAY=121]="UINT192_ARRAY",t[t.UINT200_ARRAY=122]="UINT200_ARRAY",t[t.UINT208_ARRAY=123]="UINT208_ARRAY",t[t.UINT216_ARRAY=124]="UINT216_ARRAY",t[t.UINT224_ARRAY=125]="UINT224_ARRAY",t[t.UINT232_ARRAY=126]="UINT232_ARRAY",t[t.UINT240_ARRAY=127]="UINT240_ARRAY",t[t.UINT248_ARRAY=128]="UINT248_ARRAY",t[t.UINT256_ARRAY=129]="UINT256_ARRAY",t[t.INT8_ARRAY=130]="INT8_ARRAY",t[t.INT16_ARRAY=131]="INT16_ARRAY",t[t.INT24_ARRAY=132]="INT24_ARRAY",t[t.INT32_ARRAY=133]="INT32_ARRAY",t[t.INT40_ARRAY=134]="INT40_ARRAY",t[t.INT48_ARRAY=135]="INT48_ARRAY",t[t.INT56_ARRAY=136]="INT56_ARRAY",t[t.INT64_ARRAY=137]="INT64_ARRAY",t[t.INT72_ARRAY=138]="INT72_ARRAY",t[t.INT80_ARRAY=139]="INT80_ARRAY",t[t.INT88_ARRAY=140]="INT88_ARRAY",t[t.INT96_ARRAY=141]="INT96_ARRAY",t[t.INT104_ARRAY=142]="INT104_ARRAY",t[t.INT112_ARRAY=143]="INT112_ARRAY",t[t.INT120_ARRAY=144]="INT120_ARRAY",t[t.INT128_ARRAY=145]="INT128_ARRAY",t[t.INT136_ARRAY=146]="INT136_ARRAY",t[t.INT144_ARRAY=147]="INT144_ARRAY",t[t.INT152_ARRAY=148]="INT152_ARRAY",t[t.INT160_ARRAY=149]="INT160_ARRAY",t[t.INT168_ARRAY=150]="INT168_ARRAY",t[t.INT176_ARRAY=151]="INT176_ARRAY",t[t.INT184_ARRAY=152]="INT184_ARRAY",t[t.INT192_ARRAY=153]="INT192_ARRAY",t[t.INT200_ARRAY=154]="INT200_ARRAY",t[t.INT208_ARRAY=155]="INT208_ARRAY",t[t.INT216_ARRAY=156]="INT216_ARRAY",t[t.INT224_ARRAY=157]="INT224_ARRAY",t[t.INT232_ARRAY=158]="INT232_ARRAY",t[t.INT240_ARRAY=159]="INT240_ARRAY",t[t.INT248_ARRAY=160]="INT248_ARRAY",t[t.INT256_ARRAY=161]="INT256_ARRAY",t[t.BYTES1_ARRAY=162]="BYTES1_ARRAY",t[t.BYTES2_ARRAY=163]="BYTES2_ARRAY",t[t.BYTES3_ARRAY=164]="BYTES3_ARRAY",t[t.BYTES4_ARRAY=165]="BYTES4_ARRAY",t[t.BYTES5_ARRAY=166]="BYTES5_ARRAY",t[t.BYTES6_ARRAY=167]="BYTES6_ARRAY",t[t.BYTES7_ARRAY=168]="BYTES7_ARRAY",t[t.BYTES8_ARRAY=169]="BYTES8_ARRAY",t[t.BYTES9_ARRAY=170]="BYTES9_ARRAY",t[t.BYTES10_ARRAY=171]="BYTES10_ARRAY",t[t.BYTES11_ARRAY=172]="BYTES11_ARRAY",t[t.BYTES12_ARRAY=173]="BYTES12_ARRAY",t[t.BYTES13_ARRAY=174]="BYTES13_ARRAY",t[t.BYTES14_ARRAY=175]="BYTES14_ARRAY",t[t.BYTES15_ARRAY=176]="BYTES15_ARRAY",t[t.BYTES16_ARRAY=177]="BYTES16_ARRAY",t[t.BYTES17_ARRAY=178]="BYTES17_ARRAY",t[t.BYTES18_ARRAY=179]="BYTES18_ARRAY",t[t.BYTES19_ARRAY=180]="BYTES19_ARRAY",t[t.BYTES20_ARRAY=181]="BYTES20_ARRAY",t[t.BYTES21_ARRAY=182]="BYTES21_ARRAY",t[t.BYTES22_ARRAY=183]="BYTES22_ARRAY",t[t.BYTES23_ARRAY=184]="BYTES23_ARRAY",t[t.BYTES24_ARRAY=185]="BYTES24_ARRAY",t[t.BYTES25_ARRAY=186]="BYTES25_ARRAY",t[t.BYTES26_ARRAY=187]="BYTES26_ARRAY",t[t.BYTES27_ARRAY=188]="BYTES27_ARRAY",t[t.BYTES28_ARRAY=189]="BYTES28_ARRAY",t[t.BYTES29_ARRAY=190]="BYTES29_ARRAY",t[t.BYTES30_ARRAY=191]="BYTES30_ARRAY",t[t.BYTES31_ARRAY=192]="BYTES31_ARRAY",t[t.BYTES32_ARRAY=193]="BYTES32_ARRAY",t[t.BOOL_ARRAY=194]="BOOL_ARRAY",t[t.ADDRESS_ARRAY=195]="ADDRESS_ARRAY",t[t.BYTES=196]="BYTES",t[t.STRING=197]="STRING",t))(I||{});var Y={0:"uint8",1:"uint16",2:"uint24",3:"uint32",4:"uint40",5:"uint48",6:"uint56",7:"uint64",8:"uint72",9:"uint80",10:"uint88",11:"uint96",12:"uint104",13:"uint112",14:"uint120",15:"uint128",16:"uint136",17:"uint144",18:"uint152",19:"uint160",20:"uint168",21:"uint176",22:"uint184",23:"uint192",24:"uint200",25:"uint208",26:"uint216",27:"uint224",28:"uint232",29:"uint240",30:"uint248",31:"uint256",32:"int8",33:"int16",34:"int24",35:"int32",36:"int40",37:"int48",38:"int56",39:"int64",40:"int72",41:"int80",42:"int88",43:"int96",44:"int104",45:"int112",46:"int120",47:"int128",48:"int136",49:"int144",50:"int152",51:"int160",52:"int168",53:"int176",54:"int184",55:"int192",56:"int200",57:"int208",58:"int216",59:"int224",60:"int232",61:"int240",62:"int248",63:"int256",64:"bytes1",65:"bytes2",66:"bytes3",67:"bytes4",68:"bytes5",69:"bytes6",70:"bytes7",71:"bytes8",72:"bytes9",73:"bytes10",74:"bytes11",75:"bytes12",76:"bytes13",77:"bytes14",78:"bytes15",79:"bytes16",80:"bytes17",81:"bytes18",82:"bytes19",83:"bytes20",84:"bytes21",85:"bytes22",86:"bytes23",87:"bytes24",88:"bytes25",89:"bytes26",90:"bytes27",91:"bytes28",92:"bytes29",93:"bytes30",94:"bytes31",95:"bytes32",96:"bool",97:"address",98:"uint8[]",99:"uint16[]",100:"uint24[]",101:"uint32[]",102:"uint40[]",103:"uint48[]",104:"uint56[]",105:"uint64[]",106:"uint72[]",107:"uint80[]",108:"uint88[]",109:"uint96[]",110:"uint104[]",111:"uint112[]",112:"uint120[]",113:"uint128[]",114:"uint136[]",115:"uint144[]",116:"uint152[]",117:"uint160[]",118:"uint168[]",119:"uint176[]",120:"uint184[]",121:"uint192[]",122:"uint200[]",123:"uint208[]",124:"uint216[]",125:"uint224[]",126:"uint232[]",127:"uint240[]",128:"uint248[]",129:"uint256[]",130:"int8[]",131:"int16[]",132:"int24[]",133:"int32[]",134:"int40[]",135:"int48[]",136:"int56[]",137:"int64[]",138:"int72[]",139:"int80[]",140:"int88[]",141:"int96[]",142:"int104[]",143:"int112[]",144:"int120[]",145:"int128[]",146:"int136[]",147:"int144[]",148:"int152[]",149:"int160[]",150:"int168[]",151:"int176[]",152:"int184[]",153:"int192[]",154:"int200[]",155:"int208[]",156:"int216[]",157:"int224[]",158:"int232[]",159:"int240[]",160:"int248[]",161:"int256[]",162:"bytes1[]",163:"bytes2[]",164:"bytes3[]",165:"bytes4[]",166:"bytes5[]",167:"bytes6[]",168:"bytes7[]",169:"bytes8[]",170:"bytes9[]",171:"bytes10[]",172:"bytes11[]",173:"bytes12[]",174:"bytes13[]",175:"bytes14[]",176:"bytes15[]",177:"bytes16[]",178:"bytes17[]",179:"bytes18[]",180:"bytes19[]",181:"bytes20[]",182:"bytes21[]",183:"bytes22[]",184:"bytes23[]",185:"bytes24[]",186:"bytes25[]",187:"bytes26[]",188:"bytes27[]",189:"bytes28[]",190:"bytes29[]",191:"bytes30[]",192:"bytes31[]",193:"bytes32[]",194:"bool[]",195:"address[]",196:"bytes",197:"string"};var s=Object.values(Y);var _=Object.fromEntries(Object.entries(Y).map(([R,A])=>[A,parseInt(R)]));function n(R){let A=R.valueOf();return A<32?A+1:A<64?A+1-32:A<96?A+1-64:R==96?1:R==97?20:0}var U=s.filter(R=>n(_[R])>0);var u={98:0,99:1,100:2,101:3,102:4,103:5,104:6,105:7,106:8,107:9,108:10,109:11,110:12,111:13,112:14,113:15,114:16,115:17,116:18,117:19,118:20,119:21,120:22,121:23,122:24,123:25,124:26,125:27,126:28,127:29,128:30,129:31,130:32,131:33,132:34,133:35,134:36,135:37,136:38,137:39,138:40,139:41,140:42,141:43,142:44,143:45,144:46,145:47,146:48,147:49,148:50,149:51,150:52,151:53,152:54,153:55,154:56,155:57,156:58,157:59,158:60,159:61,160:62,161:63,162:64,163:65,164:66,165:67,166:68,167:69,168:70,169:71,170:72,171:73,172:74,173:75,174:76,175:77,176:78,177:79,178:80,179:81,180:82,181:83,182:84,183:85,184:86,185:87,186:88,187:89,188:90,189:91,190:92,191:93,192:94,193:95,194:96,195:97};function o(R){if(R.length>28)throw new Error("Schema can only have up to 28 fields");let A=new Uint8Array(32),T=0,N=0,b=!1;for(let i=0;i<R.length;i++){let E=n(R[i]);if(E>0){if(b)throw new Error("Static fields must come before dynamic fields in the schema");N++}else b=!0;T+=E,A[i+4]=R[i]}let r=R.length-N;if(r>14)throw new Error("Schema can only have up to 14 dynamic fields");return new DataView(A.buffer).setUint16(0,T),A[2]=N,A[3]=r,A}var B={uint8:0,uint16:0,uint24:0,uint32:0,uint40:0,uint48:0,uint56:0n,uint64:0n,uint72:0n,uint80:0n,uint88:0n,uint96:0n,uint104:0n,uint112:0n,uint120:0n,uint128:0n,uint136:0n,uint144:0n,uint152:0n,uint160:0n,uint168:0n,uint176:0n,uint184:0n,uint192:0n,uint200:0n,uint208:0n,uint216:0n,uint224:0n,uint232:0n,uint240:0n,uint248:0n,uint256:0n,int8:0,int16:0,int24:0,int32:0,int40:0,int48:0,int56:0n,int64:0n,int72:0n,int80:0n,int88:0n,int96:0n,int104:0n,int112:0n,int120:0n,int128:0n,int136:0n,int144:0n,int152:0n,int160:0n,int168:0n,int176:0n,int184:0n,int192:0n,int200:0n,int208:0n,int216:0n,int224:0n,int232:0n,int240:0n,int248:0n,int256:0n,bytes1:"0x00",bytes2:"0x0000",bytes3:"0x000000",bytes4:"0x00000000",bytes5:"0x0000000000",bytes6:"0x000000000000",bytes7:"0x00000000000000",bytes8:"0x0000000000000000",bytes9:"0x000000000000000000",bytes10:"0x00000000000000000000",bytes11:"0x0000000000000000000000",bytes12:"0x000000000000000000000000",bytes13:"0x00000000000000000000000000",bytes14:"0x0000000000000000000000000000",bytes15:"0x000000000000000000000000000000",bytes16:"0x00000000000000000000000000000000",bytes17:"0x0000000000000000000000000000000000",bytes18:"0x000000000000000000000000000000000000",bytes19:"0x00000000000000000000000000000000000000",bytes20:"0x0000000000000000000000000000000000000000",bytes21:"0x000000000000000000000000000000000000000000",bytes22:"0x00000000000000000000000000000000000000000000",bytes23:"0x0000000000000000000000000000000000000000000000",bytes24:"0x000000000000000000000000000000000000000000000000",bytes25:"0x00000000000000000000000000000000000000000000000000",bytes26:"0x0000000000000000000000000000000000000000000000000000",bytes27:"0x000000000000000000000000000000000000000000000000000000",bytes28:"0x00000000000000000000000000000000000000000000000000000000",bytes29:"0x0000000000000000000000000000000000000000000000000000000000",bytes30:"0x000000000000000000000000000000000000000000000000000000000000",bytes31:"0x00000000000000000000000000000000000000000000000000000000000000",bytes32:"0x0000000000000000000000000000000000000000000000000000000000000000",bool:!1,address:"0x0000000000000000000000000000000000000000","uint8[]":[],"uint16[]":[],"uint24[]":[],"uint32[]":[],"uint40[]":[],"uint48[]":[],"uint56[]":[],"uint64[]":[],"uint72[]":[],"uint80[]":[],"uint88[]":[],"uint96[]":[],"uint104[]":[],"uint112[]":[],"uint120[]":[],"uint128[]":[],"uint136[]":[],"uint144[]":[],"uint152[]":[],"uint160[]":[],"uint168[]":[],"uint176[]":[],"uint184[]":[],"uint192[]":[],"uint200[]":[],"uint208[]":[],"uint216[]":[],"uint224[]":[],"uint232[]":[],"uint240[]":[],"uint248[]":[],"uint256[]":[],"int8[]":[],"int16[]":[],"int24[]":[],"int32[]":[],"int40[]":[],"int48[]":[],"int56[]":[],"int64[]":[],"int72[]":[],"int80[]":[],"int88[]":[],"int96[]":[],"int104[]":[],"int112[]":[],"int120[]":[],"int128[]":[],"int136[]":[],"int144[]":[],"int152[]":[],"int160[]":[],"int168[]":[],"int176[]":[],"int184[]":[],"int192[]":[],"int200[]":[],"int208[]":[],"int216[]":[],"int224[]":[],"int232[]":[],"int240[]":[],"int248[]":[],"int256[]":[],"bytes1[]":[],"bytes2[]":[],"bytes3[]":[],"bytes4[]":[],"bytes5[]":[],"bytes6[]":[],"bytes7[]":[],"bytes8[]":[],"bytes9[]":[],"bytes10[]":[],"bytes11[]":[],"bytes12[]":[],"bytes13[]":[],"bytes14[]":[],"bytes15[]":[],"bytes16[]":[],"bytes17[]":[],"bytes18[]":[],"bytes19[]":[],"bytes20[]":[],"bytes21[]":[],"bytes22[]":[],"bytes23[]":[],"bytes24[]":[],"bytes25[]":[],"bytes26[]":[],"bytes27[]":[],"bytes28[]":[],"bytes29[]":[],"bytes30[]":[],"bytes31[]":[],"bytes32[]":[],"bool[]":[],"address[]":[],bytes:"0x",string:""};function g(R){let A=R.replace(/(\w+)\[\d+\]/g,"$1[]");return B[A]}export{_ as AbiTypeToSchemaType,s as AbiTypes,I as SchemaType,u as SchemaTypeArrayToElement,Y as SchemaTypeToAbiType,U as StaticAbiTypes,o as encodeSchema,g as getAbiTypeDefaultValue,n as getStaticByteLength};
2
2
  //# sourceMappingURL=deprecated.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/typescript/deprecated/SchemaType.ts","../src/typescript/deprecated/mappings/SchemaTypeToAbiType.ts","../src/typescript/deprecated/types/AbiTypes.ts","../src/typescript/deprecated/mappings/AbiTypeToSchemaType.ts","../src/typescript/deprecated/utils/getStaticByteLength.ts","../src/typescript/deprecated/types/StaticAbiTypes.ts","../src/typescript/deprecated/mappings/SchemaTypeArrayToElement.ts","../src/typescript/deprecated/utils/encodeSchema.ts","../src/typescript/deprecated/mappings/AbiTypeToDefaultValue.ts","../src/typescript/deprecated/utils/getAbiTypeDefaultValue.ts"],"sourcesContent":["// WARNING: SchemaType enum MUST mirror the solidity version!\n// WARNING: SchemaType methods use hardcoded enum indexes, review them after any changes to the enum\nexport enum SchemaType {\n UINT8,\n UINT16,\n UINT24,\n UINT32,\n UINT40,\n UINT48,\n UINT56,\n UINT64,\n UINT72,\n UINT80,\n UINT88,\n UINT96,\n UINT104,\n UINT112,\n UINT120,\n UINT128,\n UINT136,\n UINT144,\n UINT152,\n UINT160,\n UINT168,\n UINT176,\n UINT184,\n UINT192,\n UINT200,\n UINT208,\n UINT216,\n UINT224,\n UINT232,\n UINT240,\n UINT248,\n UINT256,\n INT8,\n INT16,\n INT24,\n INT32,\n INT40,\n INT48,\n INT56,\n INT64,\n INT72,\n INT80,\n INT88,\n INT96,\n INT104,\n INT112,\n INT120,\n INT128,\n INT136,\n INT144,\n INT152,\n INT160,\n INT168,\n INT176,\n INT184,\n INT192,\n INT200,\n INT208,\n INT216,\n INT224,\n INT232,\n INT240,\n INT248,\n INT256,\n BYTES1,\n BYTES2,\n BYTES3,\n BYTES4,\n BYTES5,\n BYTES6,\n BYTES7,\n BYTES8,\n BYTES9,\n BYTES10,\n BYTES11,\n BYTES12,\n BYTES13,\n BYTES14,\n BYTES15,\n BYTES16,\n BYTES17,\n BYTES18,\n BYTES19,\n BYTES20,\n BYTES21,\n BYTES22,\n BYTES23,\n BYTES24,\n BYTES25,\n BYTES26,\n BYTES27,\n BYTES28,\n BYTES29,\n BYTES30,\n BYTES31,\n BYTES32,\n BOOL,\n ADDRESS,\n UINT8_ARRAY,\n UINT16_ARRAY,\n UINT24_ARRAY,\n UINT32_ARRAY,\n UINT40_ARRAY,\n UINT48_ARRAY,\n UINT56_ARRAY,\n UINT64_ARRAY,\n UINT72_ARRAY,\n UINT80_ARRAY,\n UINT88_ARRAY,\n UINT96_ARRAY,\n UINT104_ARRAY,\n UINT112_ARRAY,\n UINT120_ARRAY,\n UINT128_ARRAY,\n UINT136_ARRAY,\n UINT144_ARRAY,\n UINT152_ARRAY,\n UINT160_ARRAY,\n UINT168_ARRAY,\n UINT176_ARRAY,\n UINT184_ARRAY,\n UINT192_ARRAY,\n UINT200_ARRAY,\n UINT208_ARRAY,\n UINT216_ARRAY,\n UINT224_ARRAY,\n UINT232_ARRAY,\n UINT240_ARRAY,\n UINT248_ARRAY,\n UINT256_ARRAY,\n INT8_ARRAY,\n INT16_ARRAY,\n INT24_ARRAY,\n INT32_ARRAY,\n INT40_ARRAY,\n INT48_ARRAY,\n INT56_ARRAY,\n INT64_ARRAY,\n INT72_ARRAY,\n INT80_ARRAY,\n INT88_ARRAY,\n INT96_ARRAY,\n INT104_ARRAY,\n INT112_ARRAY,\n INT120_ARRAY,\n INT128_ARRAY,\n INT136_ARRAY,\n INT144_ARRAY,\n INT152_ARRAY,\n INT160_ARRAY,\n INT168_ARRAY,\n INT176_ARRAY,\n INT184_ARRAY,\n INT192_ARRAY,\n INT200_ARRAY,\n INT208_ARRAY,\n INT216_ARRAY,\n INT224_ARRAY,\n INT232_ARRAY,\n INT240_ARRAY,\n INT248_ARRAY,\n INT256_ARRAY,\n BYTES1_ARRAY,\n BYTES2_ARRAY,\n BYTES3_ARRAY,\n BYTES4_ARRAY,\n BYTES5_ARRAY,\n BYTES6_ARRAY,\n BYTES7_ARRAY,\n BYTES8_ARRAY,\n BYTES9_ARRAY,\n BYTES10_ARRAY,\n BYTES11_ARRAY,\n BYTES12_ARRAY,\n BYTES13_ARRAY,\n BYTES14_ARRAY,\n BYTES15_ARRAY,\n BYTES16_ARRAY,\n BYTES17_ARRAY,\n BYTES18_ARRAY,\n BYTES19_ARRAY,\n BYTES20_ARRAY,\n BYTES21_ARRAY,\n BYTES22_ARRAY,\n BYTES23_ARRAY,\n BYTES24_ARRAY,\n BYTES25_ARRAY,\n BYTES26_ARRAY,\n BYTES27_ARRAY,\n BYTES28_ARRAY,\n BYTES29_ARRAY,\n BYTES30_ARRAY,\n BYTES31_ARRAY,\n BYTES32_ARRAY,\n BOOL_ARRAY,\n ADDRESS_ARRAY,\n BYTES,\n STRING,\n}\n","import { SchemaType } from \"../SchemaType\";\n\nexport const SchemaTypeToAbiType = {\n [SchemaType.UINT8]: \"uint8\",\n [SchemaType.UINT16]: \"uint16\",\n [SchemaType.UINT24]: \"uint24\",\n [SchemaType.UINT32]: \"uint32\",\n [SchemaType.UINT40]: \"uint40\",\n [SchemaType.UINT48]: \"uint48\",\n [SchemaType.UINT56]: \"uint56\",\n [SchemaType.UINT64]: \"uint64\",\n [SchemaType.UINT72]: \"uint72\",\n [SchemaType.UINT80]: \"uint80\",\n [SchemaType.UINT88]: \"uint88\",\n [SchemaType.UINT96]: \"uint96\",\n [SchemaType.UINT104]: \"uint104\",\n [SchemaType.UINT112]: \"uint112\",\n [SchemaType.UINT120]: \"uint120\",\n [SchemaType.UINT128]: \"uint128\",\n [SchemaType.UINT136]: \"uint136\",\n [SchemaType.UINT144]: \"uint144\",\n [SchemaType.UINT152]: \"uint152\",\n [SchemaType.UINT160]: \"uint160\",\n [SchemaType.UINT168]: \"uint168\",\n [SchemaType.UINT176]: \"uint176\",\n [SchemaType.UINT184]: \"uint184\",\n [SchemaType.UINT192]: \"uint192\",\n [SchemaType.UINT200]: \"uint200\",\n [SchemaType.UINT208]: \"uint208\",\n [SchemaType.UINT216]: \"uint216\",\n [SchemaType.UINT224]: \"uint224\",\n [SchemaType.UINT232]: \"uint232\",\n [SchemaType.UINT240]: \"uint240\",\n [SchemaType.UINT248]: \"uint248\",\n [SchemaType.UINT256]: \"uint256\",\n\n [SchemaType.INT8]: \"int8\",\n [SchemaType.INT16]: \"int16\",\n [SchemaType.INT24]: \"int24\",\n [SchemaType.INT32]: \"int32\",\n [SchemaType.INT40]: \"int40\",\n [SchemaType.INT48]: \"int48\",\n [SchemaType.INT56]: \"int56\",\n [SchemaType.INT64]: \"int64\",\n [SchemaType.INT72]: \"int72\",\n [SchemaType.INT80]: \"int80\",\n [SchemaType.INT88]: \"int88\",\n [SchemaType.INT96]: \"int96\",\n [SchemaType.INT104]: \"int104\",\n [SchemaType.INT112]: \"int112\",\n [SchemaType.INT120]: \"int120\",\n [SchemaType.INT128]: \"int128\",\n [SchemaType.INT136]: \"int136\",\n [SchemaType.INT144]: \"int144\",\n [SchemaType.INT152]: \"int152\",\n [SchemaType.INT160]: \"int160\",\n [SchemaType.INT168]: \"int168\",\n [SchemaType.INT176]: \"int176\",\n [SchemaType.INT184]: \"int184\",\n [SchemaType.INT192]: \"int192\",\n [SchemaType.INT200]: \"int200\",\n [SchemaType.INT208]: \"int208\",\n [SchemaType.INT216]: \"int216\",\n [SchemaType.INT224]: \"int224\",\n [SchemaType.INT232]: \"int232\",\n [SchemaType.INT240]: \"int240\",\n [SchemaType.INT248]: \"int248\",\n [SchemaType.INT256]: \"int256\",\n\n [SchemaType.BYTES1]: \"bytes1\",\n [SchemaType.BYTES2]: \"bytes2\",\n [SchemaType.BYTES3]: \"bytes3\",\n [SchemaType.BYTES4]: \"bytes4\",\n [SchemaType.BYTES5]: \"bytes5\",\n [SchemaType.BYTES6]: \"bytes6\",\n [SchemaType.BYTES7]: \"bytes7\",\n [SchemaType.BYTES8]: \"bytes8\",\n [SchemaType.BYTES9]: \"bytes9\",\n [SchemaType.BYTES10]: \"bytes10\",\n [SchemaType.BYTES11]: \"bytes11\",\n [SchemaType.BYTES12]: \"bytes12\",\n [SchemaType.BYTES13]: \"bytes13\",\n [SchemaType.BYTES14]: \"bytes14\",\n [SchemaType.BYTES15]: \"bytes15\",\n [SchemaType.BYTES16]: \"bytes16\",\n [SchemaType.BYTES17]: \"bytes17\",\n [SchemaType.BYTES18]: \"bytes18\",\n [SchemaType.BYTES19]: \"bytes19\",\n [SchemaType.BYTES20]: \"bytes20\",\n [SchemaType.BYTES21]: \"bytes21\",\n [SchemaType.BYTES22]: \"bytes22\",\n [SchemaType.BYTES23]: \"bytes23\",\n [SchemaType.BYTES24]: \"bytes24\",\n [SchemaType.BYTES25]: \"bytes25\",\n [SchemaType.BYTES26]: \"bytes26\",\n [SchemaType.BYTES27]: \"bytes27\",\n [SchemaType.BYTES28]: \"bytes28\",\n [SchemaType.BYTES29]: \"bytes29\",\n [SchemaType.BYTES30]: \"bytes30\",\n [SchemaType.BYTES31]: \"bytes31\",\n [SchemaType.BYTES32]: \"bytes32\",\n\n [SchemaType.BOOL]: \"bool\",\n [SchemaType.ADDRESS]: \"address\",\n\n [SchemaType.UINT8_ARRAY]: \"uint8[]\",\n [SchemaType.UINT16_ARRAY]: \"uint16[]\",\n [SchemaType.UINT24_ARRAY]: \"uint24[]\",\n [SchemaType.UINT32_ARRAY]: \"uint32[]\",\n [SchemaType.UINT40_ARRAY]: \"uint40[]\",\n [SchemaType.UINT48_ARRAY]: \"uint48[]\",\n [SchemaType.UINT56_ARRAY]: \"uint56[]\",\n [SchemaType.UINT64_ARRAY]: \"uint64[]\",\n [SchemaType.UINT72_ARRAY]: \"uint72[]\",\n [SchemaType.UINT80_ARRAY]: \"uint80[]\",\n [SchemaType.UINT88_ARRAY]: \"uint88[]\",\n [SchemaType.UINT96_ARRAY]: \"uint96[]\",\n [SchemaType.UINT104_ARRAY]: \"uint104[]\",\n [SchemaType.UINT112_ARRAY]: \"uint112[]\",\n [SchemaType.UINT120_ARRAY]: \"uint120[]\",\n [SchemaType.UINT128_ARRAY]: \"uint128[]\",\n [SchemaType.UINT136_ARRAY]: \"uint136[]\",\n [SchemaType.UINT144_ARRAY]: \"uint144[]\",\n [SchemaType.UINT152_ARRAY]: \"uint152[]\",\n [SchemaType.UINT160_ARRAY]: \"uint160[]\",\n [SchemaType.UINT168_ARRAY]: \"uint168[]\",\n [SchemaType.UINT176_ARRAY]: \"uint176[]\",\n [SchemaType.UINT184_ARRAY]: \"uint184[]\",\n [SchemaType.UINT192_ARRAY]: \"uint192[]\",\n [SchemaType.UINT200_ARRAY]: \"uint200[]\",\n [SchemaType.UINT208_ARRAY]: \"uint208[]\",\n [SchemaType.UINT216_ARRAY]: \"uint216[]\",\n [SchemaType.UINT224_ARRAY]: \"uint224[]\",\n [SchemaType.UINT232_ARRAY]: \"uint232[]\",\n [SchemaType.UINT240_ARRAY]: \"uint240[]\",\n [SchemaType.UINT248_ARRAY]: \"uint248[]\",\n [SchemaType.UINT256_ARRAY]: \"uint256[]\",\n\n [SchemaType.INT8_ARRAY]: \"int8[]\",\n [SchemaType.INT16_ARRAY]: \"int16[]\",\n [SchemaType.INT24_ARRAY]: \"int24[]\",\n [SchemaType.INT32_ARRAY]: \"int32[]\",\n [SchemaType.INT40_ARRAY]: \"int40[]\",\n [SchemaType.INT48_ARRAY]: \"int48[]\",\n [SchemaType.INT56_ARRAY]: \"int56[]\",\n [SchemaType.INT64_ARRAY]: \"int64[]\",\n [SchemaType.INT72_ARRAY]: \"int72[]\",\n [SchemaType.INT80_ARRAY]: \"int80[]\",\n [SchemaType.INT88_ARRAY]: \"int88[]\",\n [SchemaType.INT96_ARRAY]: \"int96[]\",\n [SchemaType.INT104_ARRAY]: \"int104[]\",\n [SchemaType.INT112_ARRAY]: \"int112[]\",\n [SchemaType.INT120_ARRAY]: \"int120[]\",\n [SchemaType.INT128_ARRAY]: \"int128[]\",\n [SchemaType.INT136_ARRAY]: \"int136[]\",\n [SchemaType.INT144_ARRAY]: \"int144[]\",\n [SchemaType.INT152_ARRAY]: \"int152[]\",\n [SchemaType.INT160_ARRAY]: \"int160[]\",\n [SchemaType.INT168_ARRAY]: \"int168[]\",\n [SchemaType.INT176_ARRAY]: \"int176[]\",\n [SchemaType.INT184_ARRAY]: \"int184[]\",\n [SchemaType.INT192_ARRAY]: \"int192[]\",\n [SchemaType.INT200_ARRAY]: \"int200[]\",\n [SchemaType.INT208_ARRAY]: \"int208[]\",\n [SchemaType.INT216_ARRAY]: \"int216[]\",\n [SchemaType.INT224_ARRAY]: \"int224[]\",\n [SchemaType.INT232_ARRAY]: \"int232[]\",\n [SchemaType.INT240_ARRAY]: \"int240[]\",\n [SchemaType.INT248_ARRAY]: \"int248[]\",\n [SchemaType.INT256_ARRAY]: \"int256[]\",\n\n [SchemaType.BYTES1_ARRAY]: \"bytes1[]\",\n [SchemaType.BYTES2_ARRAY]: \"bytes2[]\",\n [SchemaType.BYTES3_ARRAY]: \"bytes3[]\",\n [SchemaType.BYTES4_ARRAY]: \"bytes4[]\",\n [SchemaType.BYTES5_ARRAY]: \"bytes5[]\",\n [SchemaType.BYTES6_ARRAY]: \"bytes6[]\",\n [SchemaType.BYTES7_ARRAY]: \"bytes7[]\",\n [SchemaType.BYTES8_ARRAY]: \"bytes8[]\",\n [SchemaType.BYTES9_ARRAY]: \"bytes9[]\",\n [SchemaType.BYTES10_ARRAY]: \"bytes10[]\",\n [SchemaType.BYTES11_ARRAY]: \"bytes11[]\",\n [SchemaType.BYTES12_ARRAY]: \"bytes12[]\",\n [SchemaType.BYTES13_ARRAY]: \"bytes13[]\",\n [SchemaType.BYTES14_ARRAY]: \"bytes14[]\",\n [SchemaType.BYTES15_ARRAY]: \"bytes15[]\",\n [SchemaType.BYTES16_ARRAY]: \"bytes16[]\",\n [SchemaType.BYTES17_ARRAY]: \"bytes17[]\",\n [SchemaType.BYTES18_ARRAY]: \"bytes18[]\",\n [SchemaType.BYTES19_ARRAY]: \"bytes19[]\",\n [SchemaType.BYTES20_ARRAY]: \"bytes20[]\",\n [SchemaType.BYTES21_ARRAY]: \"bytes21[]\",\n [SchemaType.BYTES22_ARRAY]: \"bytes22[]\",\n [SchemaType.BYTES23_ARRAY]: \"bytes23[]\",\n [SchemaType.BYTES24_ARRAY]: \"bytes24[]\",\n [SchemaType.BYTES25_ARRAY]: \"bytes25[]\",\n [SchemaType.BYTES26_ARRAY]: \"bytes26[]\",\n [SchemaType.BYTES27_ARRAY]: \"bytes27[]\",\n [SchemaType.BYTES28_ARRAY]: \"bytes28[]\",\n [SchemaType.BYTES29_ARRAY]: \"bytes29[]\",\n [SchemaType.BYTES30_ARRAY]: \"bytes30[]\",\n [SchemaType.BYTES31_ARRAY]: \"bytes31[]\",\n [SchemaType.BYTES32_ARRAY]: \"bytes32[]\",\n\n [SchemaType.BOOL_ARRAY]: \"bool[]\",\n [SchemaType.ADDRESS_ARRAY]: \"address[]\",\n\n [SchemaType.BYTES]: \"bytes\",\n [SchemaType.STRING]: \"string\",\n} as const satisfies Record<SchemaType, string>;\n","import { SchemaType } from \"../SchemaType\";\nimport { SchemaTypeToAbiType } from \"../mappings/SchemaTypeToAbiType\";\n\nexport type AbiType = (typeof SchemaTypeToAbiType)[SchemaType];\nexport const AbiTypes = Object.values(SchemaTypeToAbiType);\n","import { SchemaTypeToAbiType } from \"./SchemaTypeToAbiType\";\nimport { SchemaType } from \"../SchemaType\";\n\nexport const AbiTypeToSchemaType = Object.fromEntries(\n Object.entries(SchemaTypeToAbiType).map(([schemaType, abiType]) => [abiType, parseInt(schemaType) as SchemaType]),\n) satisfies Record<string, SchemaType>;\n","import { SchemaType } from \"../SchemaType\";\n\nexport function getStaticByteLength(schemaType: SchemaType) {\n const val = schemaType.valueOf();\n if (val < 32) {\n // uint8-256\n return val + 1;\n } else if (val < 64) {\n // int8-256, offset by 32\n return val + 1 - 32;\n } else if (val < 96) {\n // bytes1-32, offset by 64\n return val + 1 - 64;\n }\n\n // Other static types\n if (schemaType == SchemaType.BOOL) {\n return 1;\n } else if (schemaType == SchemaType.ADDRESS) {\n return 20;\n }\n\n // Return 0 for all dynamic types\n return 0;\n}\n","import { AbiTypes } from \"./AbiTypes\";\nimport { AbiTypeToSchemaType } from \"../mappings/AbiTypeToSchemaType\";\nimport { getStaticByteLength } from \"../utils/getStaticByteLength\";\nimport { SchemaTypeToAbiType } from \"../mappings/SchemaTypeToAbiType\";\nimport { StaticSchemaType } from \"./StaticSchemaType\";\n\nexport type StaticAbiType = (typeof SchemaTypeToAbiType)[StaticSchemaType];\nexport const StaticAbiTypes = AbiTypes.filter(\n (abiType) => getStaticByteLength(AbiTypeToSchemaType[abiType]) > 0,\n) as StaticAbiType[];\n","import { StaticSchemaType } from \"../types/StaticSchemaType\";\nimport { ArraySchemaType } from \"../types/ArraySchemaType\";\nimport { SchemaType } from \"../SchemaType\";\n\nexport const SchemaTypeArrayToElement = {\n [SchemaType.UINT8_ARRAY]: SchemaType.UINT8,\n [SchemaType.UINT16_ARRAY]: SchemaType.UINT16,\n [SchemaType.UINT24_ARRAY]: SchemaType.UINT24,\n [SchemaType.UINT32_ARRAY]: SchemaType.UINT32,\n [SchemaType.UINT40_ARRAY]: SchemaType.UINT40,\n [SchemaType.UINT48_ARRAY]: SchemaType.UINT48,\n [SchemaType.UINT56_ARRAY]: SchemaType.UINT56,\n [SchemaType.UINT64_ARRAY]: SchemaType.UINT64,\n [SchemaType.UINT72_ARRAY]: SchemaType.UINT72,\n [SchemaType.UINT80_ARRAY]: SchemaType.UINT80,\n [SchemaType.UINT88_ARRAY]: SchemaType.UINT88,\n [SchemaType.UINT96_ARRAY]: SchemaType.UINT96,\n [SchemaType.UINT104_ARRAY]: SchemaType.UINT104,\n [SchemaType.UINT112_ARRAY]: SchemaType.UINT112,\n [SchemaType.UINT120_ARRAY]: SchemaType.UINT120,\n [SchemaType.UINT128_ARRAY]: SchemaType.UINT128,\n [SchemaType.UINT136_ARRAY]: SchemaType.UINT136,\n [SchemaType.UINT144_ARRAY]: SchemaType.UINT144,\n [SchemaType.UINT152_ARRAY]: SchemaType.UINT152,\n [SchemaType.UINT160_ARRAY]: SchemaType.UINT160,\n [SchemaType.UINT168_ARRAY]: SchemaType.UINT168,\n [SchemaType.UINT176_ARRAY]: SchemaType.UINT176,\n [SchemaType.UINT184_ARRAY]: SchemaType.UINT184,\n [SchemaType.UINT192_ARRAY]: SchemaType.UINT192,\n [SchemaType.UINT200_ARRAY]: SchemaType.UINT200,\n [SchemaType.UINT208_ARRAY]: SchemaType.UINT208,\n [SchemaType.UINT216_ARRAY]: SchemaType.UINT216,\n [SchemaType.UINT224_ARRAY]: SchemaType.UINT224,\n [SchemaType.UINT232_ARRAY]: SchemaType.UINT232,\n [SchemaType.UINT240_ARRAY]: SchemaType.UINT240,\n [SchemaType.UINT248_ARRAY]: SchemaType.UINT248,\n [SchemaType.UINT256_ARRAY]: SchemaType.UINT256,\n\n [SchemaType.INT8_ARRAY]: SchemaType.INT8,\n [SchemaType.INT16_ARRAY]: SchemaType.INT16,\n [SchemaType.INT24_ARRAY]: SchemaType.INT24,\n [SchemaType.INT32_ARRAY]: SchemaType.INT32,\n [SchemaType.INT40_ARRAY]: SchemaType.INT40,\n [SchemaType.INT48_ARRAY]: SchemaType.INT48,\n [SchemaType.INT56_ARRAY]: SchemaType.INT56,\n [SchemaType.INT64_ARRAY]: SchemaType.INT64,\n [SchemaType.INT72_ARRAY]: SchemaType.INT72,\n [SchemaType.INT80_ARRAY]: SchemaType.INT80,\n [SchemaType.INT88_ARRAY]: SchemaType.INT88,\n [SchemaType.INT96_ARRAY]: SchemaType.INT96,\n [SchemaType.INT104_ARRAY]: SchemaType.INT104,\n [SchemaType.INT112_ARRAY]: SchemaType.INT112,\n [SchemaType.INT120_ARRAY]: SchemaType.INT120,\n [SchemaType.INT128_ARRAY]: SchemaType.INT128,\n [SchemaType.INT136_ARRAY]: SchemaType.INT136,\n [SchemaType.INT144_ARRAY]: SchemaType.INT144,\n [SchemaType.INT152_ARRAY]: SchemaType.INT152,\n [SchemaType.INT160_ARRAY]: SchemaType.INT160,\n [SchemaType.INT168_ARRAY]: SchemaType.INT168,\n [SchemaType.INT176_ARRAY]: SchemaType.INT176,\n [SchemaType.INT184_ARRAY]: SchemaType.INT184,\n [SchemaType.INT192_ARRAY]: SchemaType.INT192,\n [SchemaType.INT200_ARRAY]: SchemaType.INT200,\n [SchemaType.INT208_ARRAY]: SchemaType.INT208,\n [SchemaType.INT216_ARRAY]: SchemaType.INT216,\n [SchemaType.INT224_ARRAY]: SchemaType.INT224,\n [SchemaType.INT232_ARRAY]: SchemaType.INT232,\n [SchemaType.INT240_ARRAY]: SchemaType.INT240,\n [SchemaType.INT248_ARRAY]: SchemaType.INT248,\n [SchemaType.INT256_ARRAY]: SchemaType.INT256,\n\n [SchemaType.BYTES1_ARRAY]: SchemaType.BYTES1,\n [SchemaType.BYTES2_ARRAY]: SchemaType.BYTES2,\n [SchemaType.BYTES3_ARRAY]: SchemaType.BYTES3,\n [SchemaType.BYTES4_ARRAY]: SchemaType.BYTES4,\n [SchemaType.BYTES5_ARRAY]: SchemaType.BYTES5,\n [SchemaType.BYTES6_ARRAY]: SchemaType.BYTES6,\n [SchemaType.BYTES7_ARRAY]: SchemaType.BYTES7,\n [SchemaType.BYTES8_ARRAY]: SchemaType.BYTES8,\n [SchemaType.BYTES9_ARRAY]: SchemaType.BYTES9,\n [SchemaType.BYTES10_ARRAY]: SchemaType.BYTES10,\n [SchemaType.BYTES11_ARRAY]: SchemaType.BYTES11,\n [SchemaType.BYTES12_ARRAY]: SchemaType.BYTES12,\n [SchemaType.BYTES13_ARRAY]: SchemaType.BYTES13,\n [SchemaType.BYTES14_ARRAY]: SchemaType.BYTES14,\n [SchemaType.BYTES15_ARRAY]: SchemaType.BYTES15,\n [SchemaType.BYTES16_ARRAY]: SchemaType.BYTES16,\n [SchemaType.BYTES17_ARRAY]: SchemaType.BYTES17,\n [SchemaType.BYTES18_ARRAY]: SchemaType.BYTES18,\n [SchemaType.BYTES19_ARRAY]: SchemaType.BYTES19,\n [SchemaType.BYTES20_ARRAY]: SchemaType.BYTES20,\n [SchemaType.BYTES21_ARRAY]: SchemaType.BYTES21,\n [SchemaType.BYTES22_ARRAY]: SchemaType.BYTES22,\n [SchemaType.BYTES23_ARRAY]: SchemaType.BYTES23,\n [SchemaType.BYTES24_ARRAY]: SchemaType.BYTES24,\n [SchemaType.BYTES25_ARRAY]: SchemaType.BYTES25,\n [SchemaType.BYTES26_ARRAY]: SchemaType.BYTES26,\n [SchemaType.BYTES27_ARRAY]: SchemaType.BYTES27,\n [SchemaType.BYTES28_ARRAY]: SchemaType.BYTES28,\n [SchemaType.BYTES29_ARRAY]: SchemaType.BYTES29,\n [SchemaType.BYTES30_ARRAY]: SchemaType.BYTES30,\n [SchemaType.BYTES31_ARRAY]: SchemaType.BYTES31,\n [SchemaType.BYTES32_ARRAY]: SchemaType.BYTES32,\n\n [SchemaType.BOOL_ARRAY]: SchemaType.BOOL,\n [SchemaType.ADDRESS_ARRAY]: SchemaType.ADDRESS,\n} as {\n [K in SchemaType]: K extends ArraySchemaType ? StaticSchemaType : never;\n};\n","import { getStaticByteLength } from \"./getStaticByteLength\";\nimport { SchemaType } from \"../SchemaType\";\n\n/**\n * Encode a table schema into a bytes32 hex string\n * Port of `Schema.sol` from `@latticexyz/store`\n * @param schema The schema to encode SchemaType[]\n * @returns The encoded schema as a 32 byte hex string\n * @deprecated use `schemaToHex` from `protocol-parser` instead\n */\n\nexport function encodeSchema(schema: SchemaType[]): Uint8Array {\n if (schema.length > 28) throw new Error(\"Schema can only have up to 28 fields\");\n const encodedSchema = new Uint8Array(32);\n let length = 0;\n let staticFields = 0;\n\n // Compute the length of the schema and the number of static fields\n // and store the schema types in the encoded schema\n let hasDynamicFields = false;\n for (let i = 0; i < schema.length; i++) {\n const staticByteLength = getStaticByteLength(schema[i]);\n\n // Increase the static field count if the field is static\n if (staticByteLength > 0) {\n // Revert if we have seen a dynamic field before, but now we see a static field\n if (hasDynamicFields) throw new Error(\"Static fields must come before dynamic fields in the schema\");\n staticFields++;\n } else {\n // Flag that we have seen a dynamic field\n hasDynamicFields = true;\n }\n\n length += staticByteLength;\n encodedSchema[i + 4] = schema[i];\n }\n\n // Require max 14 dynamic fields\n const dynamicFields = schema.length - staticFields;\n if (dynamicFields > 14) throw new Error(\"Schema can only have up to 14 dynamic fields\");\n\n // Store total static length, and number of static and dynamic fields\n new DataView(encodedSchema.buffer).setUint16(0, length); // 2 length bytes\n encodedSchema[2] = staticFields; // number of static fields\n encodedSchema[3] = dynamicFields; // number of dynamic fields\n\n return encodedSchema;\n}\n","export const AbiTypeToDefaultValue = {\n uint8: 0,\n uint16: 0,\n uint24: 0,\n uint32: 0,\n uint40: 0,\n uint48: 0,\n uint56: 0n,\n uint64: 0n,\n uint72: 0n,\n uint80: 0n,\n uint88: 0n,\n uint96: 0n,\n uint104: 0n,\n uint112: 0n,\n uint120: 0n,\n uint128: 0n,\n uint136: 0n,\n uint144: 0n,\n uint152: 0n,\n uint160: 0n,\n uint168: 0n,\n uint176: 0n,\n uint184: 0n,\n uint192: 0n,\n uint200: 0n,\n uint208: 0n,\n uint216: 0n,\n uint224: 0n,\n uint232: 0n,\n uint240: 0n,\n uint248: 0n,\n uint256: 0n,\n\n int8: 0,\n int16: 0,\n int24: 0,\n int32: 0,\n int40: 0,\n int48: 0,\n int56: 0n,\n int64: 0n,\n int72: 0n,\n int80: 0n,\n int88: 0n,\n int96: 0n,\n int104: 0n,\n int112: 0n,\n int120: 0n,\n int128: 0n,\n int136: 0n,\n int144: 0n,\n int152: 0n,\n int160: 0n,\n int168: 0n,\n int176: 0n,\n int184: 0n,\n int192: 0n,\n int200: 0n,\n int208: 0n,\n int216: 0n,\n int224: 0n,\n int232: 0n,\n int240: 0n,\n int248: 0n,\n int256: 0n,\n\n bytes1: \"0x00\",\n bytes2: \"0x0000\",\n bytes3: \"0x000000\",\n bytes4: \"0x00000000\",\n bytes5: \"0x0000000000\",\n bytes6: \"0x000000000000\",\n bytes7: \"0x00000000000000\",\n bytes8: \"0x0000000000000000\",\n bytes9: \"0x000000000000000000\",\n bytes10: \"0x00000000000000000000\",\n bytes11: \"0x0000000000000000000000\",\n bytes12: \"0x000000000000000000000000\",\n bytes13: \"0x00000000000000000000000000\",\n bytes14: \"0x0000000000000000000000000000\",\n bytes15: \"0x000000000000000000000000000000\",\n bytes16: \"0x00000000000000000000000000000000\",\n bytes17: \"0x0000000000000000000000000000000000\",\n bytes18: \"0x000000000000000000000000000000000000\",\n bytes19: \"0x00000000000000000000000000000000000000\",\n bytes20: \"0x0000000000000000000000000000000000000000\",\n bytes21: \"0x000000000000000000000000000000000000000000\",\n bytes22: \"0x00000000000000000000000000000000000000000000\",\n bytes23: \"0x0000000000000000000000000000000000000000000000\",\n bytes24: \"0x000000000000000000000000000000000000000000000000\",\n bytes25: \"0x00000000000000000000000000000000000000000000000000\",\n bytes26: \"0x0000000000000000000000000000000000000000000000000000\",\n bytes27: \"0x000000000000000000000000000000000000000000000000000000\",\n bytes28: \"0x00000000000000000000000000000000000000000000000000000000\",\n bytes29: \"0x0000000000000000000000000000000000000000000000000000000000\",\n bytes30: \"0x000000000000000000000000000000000000000000000000000000000000\",\n bytes31: \"0x00000000000000000000000000000000000000000000000000000000000000\",\n bytes32: \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n\n bool: false,\n address: \"0x0000000000000000000000000000000000000000\",\n\n \"uint8[]\": [] as number[],\n \"uint16[]\": [] as number[],\n \"uint24[]\": [] as number[],\n \"uint32[]\": [] as number[],\n \"uint40[]\": [] as number[],\n \"uint48[]\": [] as number[],\n \"uint56[]\": [] as bigint[],\n \"uint64[]\": [] as bigint[],\n \"uint72[]\": [] as bigint[],\n \"uint80[]\": [] as bigint[],\n \"uint88[]\": [] as bigint[],\n \"uint96[]\": [] as bigint[],\n \"uint104[]\": [] as bigint[],\n \"uint112[]\": [] as bigint[],\n \"uint120[]\": [] as bigint[],\n \"uint128[]\": [] as bigint[],\n \"uint136[]\": [] as bigint[],\n \"uint144[]\": [] as bigint[],\n \"uint152[]\": [] as bigint[],\n \"uint160[]\": [] as bigint[],\n \"uint168[]\": [] as bigint[],\n \"uint176[]\": [] as bigint[],\n \"uint184[]\": [] as bigint[],\n \"uint192[]\": [] as bigint[],\n \"uint200[]\": [] as bigint[],\n \"uint208[]\": [] as bigint[],\n \"uint216[]\": [] as bigint[],\n \"uint224[]\": [] as bigint[],\n \"uint232[]\": [] as bigint[],\n \"uint240[]\": [] as bigint[],\n \"uint248[]\": [] as bigint[],\n \"uint256[]\": [] as bigint[],\n\n \"int8[]\": [] as number[],\n \"int16[]\": [] as number[],\n \"int24[]\": [] as number[],\n \"int32[]\": [] as number[],\n \"int40[]\": [] as number[],\n \"int48[]\": [] as number[],\n \"int56[]\": [] as bigint[],\n \"int64[]\": [] as bigint[],\n \"int72[]\": [] as bigint[],\n \"int80[]\": [] as bigint[],\n \"int88[]\": [] as bigint[],\n \"int96[]\": [] as bigint[],\n \"int104[]\": [] as bigint[],\n \"int112[]\": [] as bigint[],\n \"int120[]\": [] as bigint[],\n \"int128[]\": [] as bigint[],\n \"int136[]\": [] as bigint[],\n \"int144[]\": [] as bigint[],\n \"int152[]\": [] as bigint[],\n \"int160[]\": [] as bigint[],\n \"int168[]\": [] as bigint[],\n \"int176[]\": [] as bigint[],\n \"int184[]\": [] as bigint[],\n \"int192[]\": [] as bigint[],\n \"int200[]\": [] as bigint[],\n \"int208[]\": [] as bigint[],\n \"int216[]\": [] as bigint[],\n \"int224[]\": [] as bigint[],\n \"int232[]\": [] as bigint[],\n \"int240[]\": [] as bigint[],\n \"int248[]\": [] as bigint[],\n \"int256[]\": [] as bigint[],\n\n \"bytes1[]\": [] as `0x${string}`[],\n \"bytes2[]\": [] as `0x${string}`[],\n \"bytes3[]\": [] as `0x${string}`[],\n \"bytes4[]\": [] as `0x${string}`[],\n \"bytes5[]\": [] as `0x${string}`[],\n \"bytes6[]\": [] as `0x${string}`[],\n \"bytes7[]\": [] as `0x${string}`[],\n \"bytes8[]\": [] as `0x${string}`[],\n \"bytes9[]\": [] as `0x${string}`[],\n \"bytes10[]\": [] as `0x${string}`[],\n \"bytes11[]\": [] as `0x${string}`[],\n \"bytes12[]\": [] as `0x${string}`[],\n \"bytes13[]\": [] as `0x${string}`[],\n \"bytes14[]\": [] as `0x${string}`[],\n \"bytes15[]\": [] as `0x${string}`[],\n \"bytes16[]\": [] as `0x${string}`[],\n \"bytes17[]\": [] as `0x${string}`[],\n \"bytes18[]\": [] as `0x${string}`[],\n \"bytes19[]\": [] as `0x${string}`[],\n \"bytes20[]\": [] as `0x${string}`[],\n \"bytes21[]\": [] as `0x${string}`[],\n \"bytes22[]\": [] as `0x${string}`[],\n \"bytes23[]\": [] as `0x${string}`[],\n \"bytes24[]\": [] as `0x${string}`[],\n \"bytes25[]\": [] as `0x${string}`[],\n \"bytes26[]\": [] as `0x${string}`[],\n \"bytes27[]\": [] as `0x${string}`[],\n \"bytes28[]\": [] as `0x${string}`[],\n \"bytes29[]\": [] as `0x${string}`[],\n \"bytes30[]\": [] as `0x${string}`[],\n \"bytes31[]\": [] as `0x${string}`[],\n \"bytes32[]\": [] as `0x${string}`[],\n\n \"bool[]\": [] as boolean[],\n \"address[]\": [] as `0x${string}`[],\n\n bytes: \"0x\",\n string: \"\",\n} as const;\n","import { AbiTypeToPrimitiveType } from \"../mappings\";\nimport { AbiTypeToDefaultValue } from \"../mappings/AbiTypeToDefaultValue\";\n\n/**\n * Return a value corresponding to the Solidity default value for a given abi type\n */\nexport function getAbiTypeDefaultValue<T extends string>(abiType: T) {\n // Remove fixed array lengths (eg map uint256[10] to uint256[])\n const normalizedType = abiType.replace(/(\\w+)\\[\\d+\\]/g, \"$1[]\");\n return AbiTypeToDefaultValue[normalizedType as keyof typeof AbiTypeToDefaultValue] as AbiTypeToPrimitiveType<T>;\n}\n"],"mappings":"AAEO,IAAKA,OACVA,IAAA,iBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,oBACAA,IAAA,oBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA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AAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EAEd,SAAU,CAAC,EACX,YAAa,CAAC,EAEd,MAAO,KACP,OAAQ,EACV,ECzMO,SAASC,EAAyCC,EAAY,CAEnE,IAAMC,EAAiBD,EAAQ,QAAQ,gBAAiB,MAAM,EAC9D,OAAOE,EAAsBD,CAAoD,CACnF","names":["SchemaType","SchemaTypeToAbiType","AbiTypes","SchemaTypeToAbiType","AbiTypeToSchemaType","SchemaTypeToAbiType","schemaType","abiType","getStaticByteLength","schemaType","val","StaticAbiTypes","AbiTypes","abiType","getStaticByteLength","AbiTypeToSchemaType","SchemaTypeArrayToElement","encodeSchema","schema","encodedSchema","length","staticFields","hasDynamicFields","staticByteLength","getStaticByteLength","dynamicFields","AbiTypeToDefaultValue","getAbiTypeDefaultValue","abiType","normalizedType","AbiTypeToDefaultValue"]}
1
+ {"version":3,"sources":["../src/typescript/deprecated/SchemaType.ts","../src/typescript/deprecated/mappings/SchemaTypeToAbiType.ts","../src/typescript/deprecated/types/AbiTypes.ts","../src/typescript/deprecated/mappings/AbiTypeToSchemaType.ts","../src/typescript/deprecated/utils/getStaticByteLength.ts","../src/typescript/deprecated/types/StaticAbiTypes.ts","../src/typescript/deprecated/mappings/SchemaTypeArrayToElement.ts","../src/typescript/deprecated/utils/encodeSchema.ts","../src/typescript/deprecated/mappings/AbiTypeToDefaultValue.ts","../src/typescript/deprecated/utils/getAbiTypeDefaultValue.ts"],"sourcesContent":["// WARNING: SchemaType enum MUST mirror the solidity version!\n// WARNING: SchemaType methods use hardcoded enum indexes, review them after any changes to the enum\nexport enum SchemaType {\n UINT8,\n UINT16,\n UINT24,\n UINT32,\n UINT40,\n UINT48,\n UINT56,\n UINT64,\n UINT72,\n UINT80,\n UINT88,\n UINT96,\n UINT104,\n UINT112,\n UINT120,\n UINT128,\n UINT136,\n UINT144,\n UINT152,\n UINT160,\n UINT168,\n UINT176,\n UINT184,\n UINT192,\n UINT200,\n UINT208,\n UINT216,\n UINT224,\n UINT232,\n UINT240,\n UINT248,\n UINT256,\n INT8,\n INT16,\n INT24,\n INT32,\n INT40,\n INT48,\n INT56,\n INT64,\n INT72,\n INT80,\n INT88,\n INT96,\n INT104,\n INT112,\n INT120,\n INT128,\n INT136,\n INT144,\n INT152,\n INT160,\n INT168,\n INT176,\n INT184,\n INT192,\n INT200,\n INT208,\n INT216,\n INT224,\n INT232,\n INT240,\n INT248,\n INT256,\n BYTES1,\n BYTES2,\n BYTES3,\n BYTES4,\n BYTES5,\n BYTES6,\n BYTES7,\n BYTES8,\n BYTES9,\n BYTES10,\n BYTES11,\n BYTES12,\n BYTES13,\n BYTES14,\n BYTES15,\n BYTES16,\n BYTES17,\n BYTES18,\n BYTES19,\n BYTES20,\n BYTES21,\n BYTES22,\n BYTES23,\n BYTES24,\n BYTES25,\n BYTES26,\n BYTES27,\n BYTES28,\n BYTES29,\n BYTES30,\n BYTES31,\n BYTES32,\n BOOL,\n ADDRESS,\n UINT8_ARRAY,\n UINT16_ARRAY,\n UINT24_ARRAY,\n UINT32_ARRAY,\n UINT40_ARRAY,\n UINT48_ARRAY,\n UINT56_ARRAY,\n UINT64_ARRAY,\n UINT72_ARRAY,\n UINT80_ARRAY,\n UINT88_ARRAY,\n UINT96_ARRAY,\n UINT104_ARRAY,\n UINT112_ARRAY,\n UINT120_ARRAY,\n UINT128_ARRAY,\n UINT136_ARRAY,\n UINT144_ARRAY,\n UINT152_ARRAY,\n UINT160_ARRAY,\n UINT168_ARRAY,\n UINT176_ARRAY,\n UINT184_ARRAY,\n UINT192_ARRAY,\n UINT200_ARRAY,\n UINT208_ARRAY,\n UINT216_ARRAY,\n UINT224_ARRAY,\n UINT232_ARRAY,\n UINT240_ARRAY,\n UINT248_ARRAY,\n UINT256_ARRAY,\n INT8_ARRAY,\n INT16_ARRAY,\n INT24_ARRAY,\n INT32_ARRAY,\n INT40_ARRAY,\n INT48_ARRAY,\n INT56_ARRAY,\n INT64_ARRAY,\n INT72_ARRAY,\n INT80_ARRAY,\n INT88_ARRAY,\n INT96_ARRAY,\n INT104_ARRAY,\n INT112_ARRAY,\n INT120_ARRAY,\n INT128_ARRAY,\n INT136_ARRAY,\n INT144_ARRAY,\n INT152_ARRAY,\n INT160_ARRAY,\n INT168_ARRAY,\n INT176_ARRAY,\n INT184_ARRAY,\n INT192_ARRAY,\n INT200_ARRAY,\n INT208_ARRAY,\n INT216_ARRAY,\n INT224_ARRAY,\n INT232_ARRAY,\n INT240_ARRAY,\n INT248_ARRAY,\n INT256_ARRAY,\n BYTES1_ARRAY,\n BYTES2_ARRAY,\n BYTES3_ARRAY,\n BYTES4_ARRAY,\n BYTES5_ARRAY,\n BYTES6_ARRAY,\n BYTES7_ARRAY,\n BYTES8_ARRAY,\n BYTES9_ARRAY,\n BYTES10_ARRAY,\n BYTES11_ARRAY,\n BYTES12_ARRAY,\n BYTES13_ARRAY,\n BYTES14_ARRAY,\n BYTES15_ARRAY,\n BYTES16_ARRAY,\n BYTES17_ARRAY,\n BYTES18_ARRAY,\n BYTES19_ARRAY,\n BYTES20_ARRAY,\n BYTES21_ARRAY,\n BYTES22_ARRAY,\n BYTES23_ARRAY,\n BYTES24_ARRAY,\n BYTES25_ARRAY,\n BYTES26_ARRAY,\n BYTES27_ARRAY,\n BYTES28_ARRAY,\n BYTES29_ARRAY,\n BYTES30_ARRAY,\n BYTES31_ARRAY,\n BYTES32_ARRAY,\n BOOL_ARRAY,\n ADDRESS_ARRAY,\n BYTES,\n STRING,\n}\n","import { SchemaType } from \"../SchemaType\";\n\nexport const SchemaTypeToAbiType = {\n [SchemaType.UINT8]: \"uint8\",\n [SchemaType.UINT16]: \"uint16\",\n [SchemaType.UINT24]: \"uint24\",\n [SchemaType.UINT32]: \"uint32\",\n [SchemaType.UINT40]: \"uint40\",\n [SchemaType.UINT48]: \"uint48\",\n [SchemaType.UINT56]: \"uint56\",\n [SchemaType.UINT64]: \"uint64\",\n [SchemaType.UINT72]: \"uint72\",\n [SchemaType.UINT80]: \"uint80\",\n [SchemaType.UINT88]: \"uint88\",\n [SchemaType.UINT96]: \"uint96\",\n [SchemaType.UINT104]: \"uint104\",\n [SchemaType.UINT112]: \"uint112\",\n [SchemaType.UINT120]: \"uint120\",\n [SchemaType.UINT128]: \"uint128\",\n [SchemaType.UINT136]: \"uint136\",\n [SchemaType.UINT144]: \"uint144\",\n [SchemaType.UINT152]: \"uint152\",\n [SchemaType.UINT160]: \"uint160\",\n [SchemaType.UINT168]: \"uint168\",\n [SchemaType.UINT176]: \"uint176\",\n [SchemaType.UINT184]: \"uint184\",\n [SchemaType.UINT192]: \"uint192\",\n [SchemaType.UINT200]: \"uint200\",\n [SchemaType.UINT208]: \"uint208\",\n [SchemaType.UINT216]: \"uint216\",\n [SchemaType.UINT224]: \"uint224\",\n [SchemaType.UINT232]: \"uint232\",\n [SchemaType.UINT240]: \"uint240\",\n [SchemaType.UINT248]: \"uint248\",\n [SchemaType.UINT256]: \"uint256\",\n\n [SchemaType.INT8]: \"int8\",\n [SchemaType.INT16]: \"int16\",\n [SchemaType.INT24]: \"int24\",\n [SchemaType.INT32]: \"int32\",\n [SchemaType.INT40]: \"int40\",\n [SchemaType.INT48]: \"int48\",\n [SchemaType.INT56]: \"int56\",\n [SchemaType.INT64]: \"int64\",\n [SchemaType.INT72]: \"int72\",\n [SchemaType.INT80]: \"int80\",\n [SchemaType.INT88]: \"int88\",\n [SchemaType.INT96]: \"int96\",\n [SchemaType.INT104]: \"int104\",\n [SchemaType.INT112]: \"int112\",\n [SchemaType.INT120]: \"int120\",\n [SchemaType.INT128]: \"int128\",\n [SchemaType.INT136]: \"int136\",\n [SchemaType.INT144]: \"int144\",\n [SchemaType.INT152]: \"int152\",\n [SchemaType.INT160]: \"int160\",\n [SchemaType.INT168]: \"int168\",\n [SchemaType.INT176]: \"int176\",\n [SchemaType.INT184]: \"int184\",\n [SchemaType.INT192]: \"int192\",\n [SchemaType.INT200]: \"int200\",\n [SchemaType.INT208]: \"int208\",\n [SchemaType.INT216]: \"int216\",\n [SchemaType.INT224]: \"int224\",\n [SchemaType.INT232]: \"int232\",\n [SchemaType.INT240]: \"int240\",\n [SchemaType.INT248]: \"int248\",\n [SchemaType.INT256]: \"int256\",\n\n [SchemaType.BYTES1]: \"bytes1\",\n [SchemaType.BYTES2]: \"bytes2\",\n [SchemaType.BYTES3]: \"bytes3\",\n [SchemaType.BYTES4]: \"bytes4\",\n [SchemaType.BYTES5]: \"bytes5\",\n [SchemaType.BYTES6]: \"bytes6\",\n [SchemaType.BYTES7]: \"bytes7\",\n [SchemaType.BYTES8]: \"bytes8\",\n [SchemaType.BYTES9]: \"bytes9\",\n [SchemaType.BYTES10]: \"bytes10\",\n [SchemaType.BYTES11]: \"bytes11\",\n [SchemaType.BYTES12]: \"bytes12\",\n [SchemaType.BYTES13]: \"bytes13\",\n [SchemaType.BYTES14]: \"bytes14\",\n [SchemaType.BYTES15]: \"bytes15\",\n [SchemaType.BYTES16]: \"bytes16\",\n [SchemaType.BYTES17]: \"bytes17\",\n [SchemaType.BYTES18]: \"bytes18\",\n [SchemaType.BYTES19]: \"bytes19\",\n [SchemaType.BYTES20]: \"bytes20\",\n [SchemaType.BYTES21]: \"bytes21\",\n [SchemaType.BYTES22]: \"bytes22\",\n [SchemaType.BYTES23]: \"bytes23\",\n [SchemaType.BYTES24]: \"bytes24\",\n [SchemaType.BYTES25]: \"bytes25\",\n [SchemaType.BYTES26]: \"bytes26\",\n [SchemaType.BYTES27]: \"bytes27\",\n [SchemaType.BYTES28]: \"bytes28\",\n [SchemaType.BYTES29]: \"bytes29\",\n [SchemaType.BYTES30]: \"bytes30\",\n [SchemaType.BYTES31]: \"bytes31\",\n [SchemaType.BYTES32]: \"bytes32\",\n\n [SchemaType.BOOL]: \"bool\",\n [SchemaType.ADDRESS]: \"address\",\n\n [SchemaType.UINT8_ARRAY]: \"uint8[]\",\n [SchemaType.UINT16_ARRAY]: \"uint16[]\",\n [SchemaType.UINT24_ARRAY]: \"uint24[]\",\n [SchemaType.UINT32_ARRAY]: \"uint32[]\",\n [SchemaType.UINT40_ARRAY]: \"uint40[]\",\n [SchemaType.UINT48_ARRAY]: \"uint48[]\",\n [SchemaType.UINT56_ARRAY]: \"uint56[]\",\n [SchemaType.UINT64_ARRAY]: \"uint64[]\",\n [SchemaType.UINT72_ARRAY]: \"uint72[]\",\n [SchemaType.UINT80_ARRAY]: \"uint80[]\",\n [SchemaType.UINT88_ARRAY]: \"uint88[]\",\n [SchemaType.UINT96_ARRAY]: \"uint96[]\",\n [SchemaType.UINT104_ARRAY]: \"uint104[]\",\n [SchemaType.UINT112_ARRAY]: \"uint112[]\",\n [SchemaType.UINT120_ARRAY]: \"uint120[]\",\n [SchemaType.UINT128_ARRAY]: \"uint128[]\",\n [SchemaType.UINT136_ARRAY]: \"uint136[]\",\n [SchemaType.UINT144_ARRAY]: \"uint144[]\",\n [SchemaType.UINT152_ARRAY]: \"uint152[]\",\n [SchemaType.UINT160_ARRAY]: \"uint160[]\",\n [SchemaType.UINT168_ARRAY]: \"uint168[]\",\n [SchemaType.UINT176_ARRAY]: \"uint176[]\",\n [SchemaType.UINT184_ARRAY]: \"uint184[]\",\n [SchemaType.UINT192_ARRAY]: \"uint192[]\",\n [SchemaType.UINT200_ARRAY]: \"uint200[]\",\n [SchemaType.UINT208_ARRAY]: \"uint208[]\",\n [SchemaType.UINT216_ARRAY]: \"uint216[]\",\n [SchemaType.UINT224_ARRAY]: \"uint224[]\",\n [SchemaType.UINT232_ARRAY]: \"uint232[]\",\n [SchemaType.UINT240_ARRAY]: \"uint240[]\",\n [SchemaType.UINT248_ARRAY]: \"uint248[]\",\n [SchemaType.UINT256_ARRAY]: \"uint256[]\",\n\n [SchemaType.INT8_ARRAY]: \"int8[]\",\n [SchemaType.INT16_ARRAY]: \"int16[]\",\n [SchemaType.INT24_ARRAY]: \"int24[]\",\n [SchemaType.INT32_ARRAY]: \"int32[]\",\n [SchemaType.INT40_ARRAY]: \"int40[]\",\n [SchemaType.INT48_ARRAY]: \"int48[]\",\n [SchemaType.INT56_ARRAY]: \"int56[]\",\n [SchemaType.INT64_ARRAY]: \"int64[]\",\n [SchemaType.INT72_ARRAY]: \"int72[]\",\n [SchemaType.INT80_ARRAY]: \"int80[]\",\n [SchemaType.INT88_ARRAY]: \"int88[]\",\n [SchemaType.INT96_ARRAY]: \"int96[]\",\n [SchemaType.INT104_ARRAY]: \"int104[]\",\n [SchemaType.INT112_ARRAY]: \"int112[]\",\n [SchemaType.INT120_ARRAY]: \"int120[]\",\n [SchemaType.INT128_ARRAY]: \"int128[]\",\n [SchemaType.INT136_ARRAY]: \"int136[]\",\n [SchemaType.INT144_ARRAY]: \"int144[]\",\n [SchemaType.INT152_ARRAY]: \"int152[]\",\n [SchemaType.INT160_ARRAY]: \"int160[]\",\n [SchemaType.INT168_ARRAY]: \"int168[]\",\n [SchemaType.INT176_ARRAY]: \"int176[]\",\n [SchemaType.INT184_ARRAY]: \"int184[]\",\n [SchemaType.INT192_ARRAY]: \"int192[]\",\n [SchemaType.INT200_ARRAY]: \"int200[]\",\n [SchemaType.INT208_ARRAY]: \"int208[]\",\n [SchemaType.INT216_ARRAY]: \"int216[]\",\n [SchemaType.INT224_ARRAY]: \"int224[]\",\n [SchemaType.INT232_ARRAY]: \"int232[]\",\n [SchemaType.INT240_ARRAY]: \"int240[]\",\n [SchemaType.INT248_ARRAY]: \"int248[]\",\n [SchemaType.INT256_ARRAY]: \"int256[]\",\n\n [SchemaType.BYTES1_ARRAY]: \"bytes1[]\",\n [SchemaType.BYTES2_ARRAY]: \"bytes2[]\",\n [SchemaType.BYTES3_ARRAY]: \"bytes3[]\",\n [SchemaType.BYTES4_ARRAY]: \"bytes4[]\",\n [SchemaType.BYTES5_ARRAY]: \"bytes5[]\",\n [SchemaType.BYTES6_ARRAY]: \"bytes6[]\",\n [SchemaType.BYTES7_ARRAY]: \"bytes7[]\",\n [SchemaType.BYTES8_ARRAY]: \"bytes8[]\",\n [SchemaType.BYTES9_ARRAY]: \"bytes9[]\",\n [SchemaType.BYTES10_ARRAY]: \"bytes10[]\",\n [SchemaType.BYTES11_ARRAY]: \"bytes11[]\",\n [SchemaType.BYTES12_ARRAY]: \"bytes12[]\",\n [SchemaType.BYTES13_ARRAY]: \"bytes13[]\",\n [SchemaType.BYTES14_ARRAY]: \"bytes14[]\",\n [SchemaType.BYTES15_ARRAY]: \"bytes15[]\",\n [SchemaType.BYTES16_ARRAY]: \"bytes16[]\",\n [SchemaType.BYTES17_ARRAY]: \"bytes17[]\",\n [SchemaType.BYTES18_ARRAY]: \"bytes18[]\",\n [SchemaType.BYTES19_ARRAY]: \"bytes19[]\",\n [SchemaType.BYTES20_ARRAY]: \"bytes20[]\",\n [SchemaType.BYTES21_ARRAY]: \"bytes21[]\",\n [SchemaType.BYTES22_ARRAY]: \"bytes22[]\",\n [SchemaType.BYTES23_ARRAY]: \"bytes23[]\",\n [SchemaType.BYTES24_ARRAY]: \"bytes24[]\",\n [SchemaType.BYTES25_ARRAY]: \"bytes25[]\",\n [SchemaType.BYTES26_ARRAY]: \"bytes26[]\",\n [SchemaType.BYTES27_ARRAY]: \"bytes27[]\",\n [SchemaType.BYTES28_ARRAY]: \"bytes28[]\",\n [SchemaType.BYTES29_ARRAY]: \"bytes29[]\",\n [SchemaType.BYTES30_ARRAY]: \"bytes30[]\",\n [SchemaType.BYTES31_ARRAY]: \"bytes31[]\",\n [SchemaType.BYTES32_ARRAY]: \"bytes32[]\",\n\n [SchemaType.BOOL_ARRAY]: \"bool[]\",\n [SchemaType.ADDRESS_ARRAY]: \"address[]\",\n\n [SchemaType.BYTES]: \"bytes\",\n [SchemaType.STRING]: \"string\",\n} as const satisfies Record<SchemaType, string>;\n","import { SchemaType } from \"../SchemaType\";\nimport { SchemaTypeToAbiType } from \"../mappings/SchemaTypeToAbiType\";\n\nexport type AbiType = (typeof SchemaTypeToAbiType)[SchemaType];\nexport const AbiTypes = Object.values(SchemaTypeToAbiType);\n","import { SchemaTypeToAbiType } from \"./SchemaTypeToAbiType\";\nimport { SchemaType } from \"../SchemaType\";\n\nexport const AbiTypeToSchemaType = Object.fromEntries(\n Object.entries(SchemaTypeToAbiType).map(([schemaType, abiType]) => [abiType, parseInt(schemaType) as SchemaType]),\n) satisfies Record<string, SchemaType>;\n","import { SchemaType } from \"../SchemaType\";\n\nexport function getStaticByteLength(schemaType: SchemaType) {\n const val = schemaType.valueOf();\n if (val < 32) {\n // uint8-256\n return val + 1;\n } else if (val < 64) {\n // int8-256, offset by 32\n return val + 1 - 32;\n } else if (val < 96) {\n // bytes1-32, offset by 64\n return val + 1 - 64;\n }\n\n // Other static types\n if (schemaType == SchemaType.BOOL) {\n return 1;\n } else if (schemaType == SchemaType.ADDRESS) {\n return 20;\n }\n\n // Return 0 for all dynamic types\n return 0;\n}\n","import { AbiTypes } from \"./AbiTypes\";\nimport { AbiTypeToSchemaType } from \"../mappings/AbiTypeToSchemaType\";\nimport { getStaticByteLength } from \"../utils/getStaticByteLength\";\nimport { SchemaTypeToAbiType } from \"../mappings/SchemaTypeToAbiType\";\nimport { StaticSchemaType } from \"./StaticSchemaType\";\n\nexport type StaticAbiType = (typeof SchemaTypeToAbiType)[StaticSchemaType];\nexport const StaticAbiTypes = AbiTypes.filter(\n (abiType) => getStaticByteLength(AbiTypeToSchemaType[abiType]) > 0,\n) as StaticAbiType[];\n","import { StaticSchemaType } from \"../types/StaticSchemaType\";\nimport { ArraySchemaType } from \"../types/ArraySchemaType\";\nimport { SchemaType } from \"../SchemaType\";\n\nexport const SchemaTypeArrayToElement = {\n [SchemaType.UINT8_ARRAY]: SchemaType.UINT8,\n [SchemaType.UINT16_ARRAY]: SchemaType.UINT16,\n [SchemaType.UINT24_ARRAY]: SchemaType.UINT24,\n [SchemaType.UINT32_ARRAY]: SchemaType.UINT32,\n [SchemaType.UINT40_ARRAY]: SchemaType.UINT40,\n [SchemaType.UINT48_ARRAY]: SchemaType.UINT48,\n [SchemaType.UINT56_ARRAY]: SchemaType.UINT56,\n [SchemaType.UINT64_ARRAY]: SchemaType.UINT64,\n [SchemaType.UINT72_ARRAY]: SchemaType.UINT72,\n [SchemaType.UINT80_ARRAY]: SchemaType.UINT80,\n [SchemaType.UINT88_ARRAY]: SchemaType.UINT88,\n [SchemaType.UINT96_ARRAY]: SchemaType.UINT96,\n [SchemaType.UINT104_ARRAY]: SchemaType.UINT104,\n [SchemaType.UINT112_ARRAY]: SchemaType.UINT112,\n [SchemaType.UINT120_ARRAY]: SchemaType.UINT120,\n [SchemaType.UINT128_ARRAY]: SchemaType.UINT128,\n [SchemaType.UINT136_ARRAY]: SchemaType.UINT136,\n [SchemaType.UINT144_ARRAY]: SchemaType.UINT144,\n [SchemaType.UINT152_ARRAY]: SchemaType.UINT152,\n [SchemaType.UINT160_ARRAY]: SchemaType.UINT160,\n [SchemaType.UINT168_ARRAY]: SchemaType.UINT168,\n [SchemaType.UINT176_ARRAY]: SchemaType.UINT176,\n [SchemaType.UINT184_ARRAY]: SchemaType.UINT184,\n [SchemaType.UINT192_ARRAY]: SchemaType.UINT192,\n [SchemaType.UINT200_ARRAY]: SchemaType.UINT200,\n [SchemaType.UINT208_ARRAY]: SchemaType.UINT208,\n [SchemaType.UINT216_ARRAY]: SchemaType.UINT216,\n [SchemaType.UINT224_ARRAY]: SchemaType.UINT224,\n [SchemaType.UINT232_ARRAY]: SchemaType.UINT232,\n [SchemaType.UINT240_ARRAY]: SchemaType.UINT240,\n [SchemaType.UINT248_ARRAY]: SchemaType.UINT248,\n [SchemaType.UINT256_ARRAY]: SchemaType.UINT256,\n\n [SchemaType.INT8_ARRAY]: SchemaType.INT8,\n [SchemaType.INT16_ARRAY]: SchemaType.INT16,\n [SchemaType.INT24_ARRAY]: SchemaType.INT24,\n [SchemaType.INT32_ARRAY]: SchemaType.INT32,\n [SchemaType.INT40_ARRAY]: SchemaType.INT40,\n [SchemaType.INT48_ARRAY]: SchemaType.INT48,\n [SchemaType.INT56_ARRAY]: SchemaType.INT56,\n [SchemaType.INT64_ARRAY]: SchemaType.INT64,\n [SchemaType.INT72_ARRAY]: SchemaType.INT72,\n [SchemaType.INT80_ARRAY]: SchemaType.INT80,\n [SchemaType.INT88_ARRAY]: SchemaType.INT88,\n [SchemaType.INT96_ARRAY]: SchemaType.INT96,\n [SchemaType.INT104_ARRAY]: SchemaType.INT104,\n [SchemaType.INT112_ARRAY]: SchemaType.INT112,\n [SchemaType.INT120_ARRAY]: SchemaType.INT120,\n [SchemaType.INT128_ARRAY]: SchemaType.INT128,\n [SchemaType.INT136_ARRAY]: SchemaType.INT136,\n [SchemaType.INT144_ARRAY]: SchemaType.INT144,\n [SchemaType.INT152_ARRAY]: SchemaType.INT152,\n [SchemaType.INT160_ARRAY]: SchemaType.INT160,\n [SchemaType.INT168_ARRAY]: SchemaType.INT168,\n [SchemaType.INT176_ARRAY]: SchemaType.INT176,\n [SchemaType.INT184_ARRAY]: SchemaType.INT184,\n [SchemaType.INT192_ARRAY]: SchemaType.INT192,\n [SchemaType.INT200_ARRAY]: SchemaType.INT200,\n [SchemaType.INT208_ARRAY]: SchemaType.INT208,\n [SchemaType.INT216_ARRAY]: SchemaType.INT216,\n [SchemaType.INT224_ARRAY]: SchemaType.INT224,\n [SchemaType.INT232_ARRAY]: SchemaType.INT232,\n [SchemaType.INT240_ARRAY]: SchemaType.INT240,\n [SchemaType.INT248_ARRAY]: SchemaType.INT248,\n [SchemaType.INT256_ARRAY]: SchemaType.INT256,\n\n [SchemaType.BYTES1_ARRAY]: SchemaType.BYTES1,\n [SchemaType.BYTES2_ARRAY]: SchemaType.BYTES2,\n [SchemaType.BYTES3_ARRAY]: SchemaType.BYTES3,\n [SchemaType.BYTES4_ARRAY]: SchemaType.BYTES4,\n [SchemaType.BYTES5_ARRAY]: SchemaType.BYTES5,\n [SchemaType.BYTES6_ARRAY]: SchemaType.BYTES6,\n [SchemaType.BYTES7_ARRAY]: SchemaType.BYTES7,\n [SchemaType.BYTES8_ARRAY]: SchemaType.BYTES8,\n [SchemaType.BYTES9_ARRAY]: SchemaType.BYTES9,\n [SchemaType.BYTES10_ARRAY]: SchemaType.BYTES10,\n [SchemaType.BYTES11_ARRAY]: SchemaType.BYTES11,\n [SchemaType.BYTES12_ARRAY]: SchemaType.BYTES12,\n [SchemaType.BYTES13_ARRAY]: SchemaType.BYTES13,\n [SchemaType.BYTES14_ARRAY]: SchemaType.BYTES14,\n [SchemaType.BYTES15_ARRAY]: SchemaType.BYTES15,\n [SchemaType.BYTES16_ARRAY]: SchemaType.BYTES16,\n [SchemaType.BYTES17_ARRAY]: SchemaType.BYTES17,\n [SchemaType.BYTES18_ARRAY]: SchemaType.BYTES18,\n [SchemaType.BYTES19_ARRAY]: SchemaType.BYTES19,\n [SchemaType.BYTES20_ARRAY]: SchemaType.BYTES20,\n [SchemaType.BYTES21_ARRAY]: SchemaType.BYTES21,\n [SchemaType.BYTES22_ARRAY]: SchemaType.BYTES22,\n [SchemaType.BYTES23_ARRAY]: SchemaType.BYTES23,\n [SchemaType.BYTES24_ARRAY]: SchemaType.BYTES24,\n [SchemaType.BYTES25_ARRAY]: SchemaType.BYTES25,\n [SchemaType.BYTES26_ARRAY]: SchemaType.BYTES26,\n [SchemaType.BYTES27_ARRAY]: SchemaType.BYTES27,\n [SchemaType.BYTES28_ARRAY]: SchemaType.BYTES28,\n [SchemaType.BYTES29_ARRAY]: SchemaType.BYTES29,\n [SchemaType.BYTES30_ARRAY]: SchemaType.BYTES30,\n [SchemaType.BYTES31_ARRAY]: SchemaType.BYTES31,\n [SchemaType.BYTES32_ARRAY]: SchemaType.BYTES32,\n\n [SchemaType.BOOL_ARRAY]: SchemaType.BOOL,\n [SchemaType.ADDRESS_ARRAY]: SchemaType.ADDRESS,\n} as {\n [K in SchemaType]: K extends ArraySchemaType ? StaticSchemaType : never;\n};\n","import { getStaticByteLength } from \"./getStaticByteLength\";\nimport { SchemaType } from \"../SchemaType\";\n\n/**\n * Encode a table schema into a bytes32 hex string\n * Port of `Schema.sol` from `@latticexyz/store`\n * @param schema The schema to encode SchemaType[]\n * @returns The encoded schema as a 32 byte hex string\n * @deprecated use `schemaToHex` from `protocol-parser` instead\n */\n\nexport function encodeSchema(schema: SchemaType[]): Uint8Array {\n if (schema.length > 28) throw new Error(\"Schema can only have up to 28 fields\");\n const encodedSchema = new Uint8Array(32);\n let length = 0;\n let staticFields = 0;\n\n // Compute the length of the schema and the number of static fields\n // and store the schema types in the encoded schema\n let hasDynamicFields = false;\n for (let i = 0; i < schema.length; i++) {\n const staticByteLength = getStaticByteLength(schema[i]);\n\n // Increase the static field count if the field is static\n if (staticByteLength > 0) {\n // Revert if we have seen a dynamic field before, but now we see a static field\n if (hasDynamicFields) throw new Error(\"Static fields must come before dynamic fields in the schema\");\n staticFields++;\n } else {\n // Flag that we have seen a dynamic field\n hasDynamicFields = true;\n }\n\n length += staticByteLength;\n encodedSchema[i + 4] = schema[i];\n }\n\n // Require max 14 dynamic fields\n const dynamicFields = schema.length - staticFields;\n if (dynamicFields > 14) throw new Error(\"Schema can only have up to 14 dynamic fields\");\n\n // Store total static length, and number of static and dynamic fields\n new DataView(encodedSchema.buffer).setUint16(0, length); // 2 length bytes\n encodedSchema[2] = staticFields; // number of static fields\n encodedSchema[3] = dynamicFields; // number of dynamic fields\n\n return encodedSchema;\n}\n","export const AbiTypeToDefaultValue = {\n uint8: 0,\n uint16: 0,\n uint24: 0,\n uint32: 0,\n uint40: 0,\n uint48: 0,\n uint56: 0n,\n uint64: 0n,\n uint72: 0n,\n uint80: 0n,\n uint88: 0n,\n uint96: 0n,\n uint104: 0n,\n uint112: 0n,\n uint120: 0n,\n uint128: 0n,\n uint136: 0n,\n uint144: 0n,\n uint152: 0n,\n uint160: 0n,\n uint168: 0n,\n uint176: 0n,\n uint184: 0n,\n uint192: 0n,\n uint200: 0n,\n uint208: 0n,\n uint216: 0n,\n uint224: 0n,\n uint232: 0n,\n uint240: 0n,\n uint248: 0n,\n uint256: 0n,\n\n int8: 0,\n int16: 0,\n int24: 0,\n int32: 0,\n int40: 0,\n int48: 0,\n int56: 0n,\n int64: 0n,\n int72: 0n,\n int80: 0n,\n int88: 0n,\n int96: 0n,\n int104: 0n,\n int112: 0n,\n int120: 0n,\n int128: 0n,\n int136: 0n,\n int144: 0n,\n int152: 0n,\n int160: 0n,\n int168: 0n,\n int176: 0n,\n int184: 0n,\n int192: 0n,\n int200: 0n,\n int208: 0n,\n int216: 0n,\n int224: 0n,\n int232: 0n,\n int240: 0n,\n int248: 0n,\n int256: 0n,\n\n bytes1: \"0x00\",\n bytes2: \"0x0000\",\n bytes3: \"0x000000\",\n bytes4: \"0x00000000\",\n bytes5: \"0x0000000000\",\n bytes6: \"0x000000000000\",\n bytes7: \"0x00000000000000\",\n bytes8: \"0x0000000000000000\",\n bytes9: \"0x000000000000000000\",\n bytes10: \"0x00000000000000000000\",\n bytes11: \"0x0000000000000000000000\",\n bytes12: \"0x000000000000000000000000\",\n bytes13: \"0x00000000000000000000000000\",\n bytes14: \"0x0000000000000000000000000000\",\n bytes15: \"0x000000000000000000000000000000\",\n bytes16: \"0x00000000000000000000000000000000\",\n bytes17: \"0x0000000000000000000000000000000000\",\n bytes18: \"0x000000000000000000000000000000000000\",\n bytes19: \"0x00000000000000000000000000000000000000\",\n bytes20: \"0x0000000000000000000000000000000000000000\",\n bytes21: \"0x000000000000000000000000000000000000000000\",\n bytes22: \"0x00000000000000000000000000000000000000000000\",\n bytes23: \"0x0000000000000000000000000000000000000000000000\",\n bytes24: \"0x000000000000000000000000000000000000000000000000\",\n bytes25: \"0x00000000000000000000000000000000000000000000000000\",\n bytes26: \"0x0000000000000000000000000000000000000000000000000000\",\n bytes27: \"0x000000000000000000000000000000000000000000000000000000\",\n bytes28: \"0x00000000000000000000000000000000000000000000000000000000\",\n bytes29: \"0x0000000000000000000000000000000000000000000000000000000000\",\n bytes30: \"0x000000000000000000000000000000000000000000000000000000000000\",\n bytes31: \"0x00000000000000000000000000000000000000000000000000000000000000\",\n bytes32: \"0x0000000000000000000000000000000000000000000000000000000000000000\",\n\n bool: false,\n address: \"0x0000000000000000000000000000000000000000\",\n\n \"uint8[]\": [] as number[],\n \"uint16[]\": [] as number[],\n \"uint24[]\": [] as number[],\n \"uint32[]\": [] as number[],\n \"uint40[]\": [] as number[],\n \"uint48[]\": [] as number[],\n \"uint56[]\": [] as bigint[],\n \"uint64[]\": [] as bigint[],\n \"uint72[]\": [] as bigint[],\n \"uint80[]\": [] as bigint[],\n \"uint88[]\": [] as bigint[],\n \"uint96[]\": [] as bigint[],\n \"uint104[]\": [] as bigint[],\n \"uint112[]\": [] as bigint[],\n \"uint120[]\": [] as bigint[],\n \"uint128[]\": [] as bigint[],\n \"uint136[]\": [] as bigint[],\n \"uint144[]\": [] as bigint[],\n \"uint152[]\": [] as bigint[],\n \"uint160[]\": [] as bigint[],\n \"uint168[]\": [] as bigint[],\n \"uint176[]\": [] as bigint[],\n \"uint184[]\": [] as bigint[],\n \"uint192[]\": [] as bigint[],\n \"uint200[]\": [] as bigint[],\n \"uint208[]\": [] as bigint[],\n \"uint216[]\": [] as bigint[],\n \"uint224[]\": [] as bigint[],\n \"uint232[]\": [] as bigint[],\n \"uint240[]\": [] as bigint[],\n \"uint248[]\": [] as bigint[],\n \"uint256[]\": [] as bigint[],\n\n \"int8[]\": [] as number[],\n \"int16[]\": [] as number[],\n \"int24[]\": [] as number[],\n \"int32[]\": [] as number[],\n \"int40[]\": [] as number[],\n \"int48[]\": [] as number[],\n \"int56[]\": [] as bigint[],\n \"int64[]\": [] as bigint[],\n \"int72[]\": [] as bigint[],\n \"int80[]\": [] as bigint[],\n \"int88[]\": [] as bigint[],\n \"int96[]\": [] as bigint[],\n \"int104[]\": [] as bigint[],\n \"int112[]\": [] as bigint[],\n \"int120[]\": [] as bigint[],\n \"int128[]\": [] as bigint[],\n \"int136[]\": [] as bigint[],\n \"int144[]\": [] as bigint[],\n \"int152[]\": [] as bigint[],\n \"int160[]\": [] as bigint[],\n \"int168[]\": [] as bigint[],\n \"int176[]\": [] as bigint[],\n \"int184[]\": [] as bigint[],\n \"int192[]\": [] as bigint[],\n \"int200[]\": [] as bigint[],\n \"int208[]\": [] as bigint[],\n \"int216[]\": [] as bigint[],\n \"int224[]\": [] as bigint[],\n \"int232[]\": [] as bigint[],\n \"int240[]\": [] as bigint[],\n \"int248[]\": [] as bigint[],\n \"int256[]\": [] as bigint[],\n\n \"bytes1[]\": [] as `0x${string}`[],\n \"bytes2[]\": [] as `0x${string}`[],\n \"bytes3[]\": [] as `0x${string}`[],\n \"bytes4[]\": [] as `0x${string}`[],\n \"bytes5[]\": [] as `0x${string}`[],\n \"bytes6[]\": [] as `0x${string}`[],\n \"bytes7[]\": [] as `0x${string}`[],\n \"bytes8[]\": [] as `0x${string}`[],\n \"bytes9[]\": [] as `0x${string}`[],\n \"bytes10[]\": [] as `0x${string}`[],\n \"bytes11[]\": [] as `0x${string}`[],\n \"bytes12[]\": [] as `0x${string}`[],\n \"bytes13[]\": [] as `0x${string}`[],\n \"bytes14[]\": [] as `0x${string}`[],\n \"bytes15[]\": [] as `0x${string}`[],\n \"bytes16[]\": [] as `0x${string}`[],\n \"bytes17[]\": [] as `0x${string}`[],\n \"bytes18[]\": [] as `0x${string}`[],\n \"bytes19[]\": [] as `0x${string}`[],\n \"bytes20[]\": [] as `0x${string}`[],\n \"bytes21[]\": [] as `0x${string}`[],\n \"bytes22[]\": [] as `0x${string}`[],\n \"bytes23[]\": [] as `0x${string}`[],\n \"bytes24[]\": [] as `0x${string}`[],\n \"bytes25[]\": [] as `0x${string}`[],\n \"bytes26[]\": [] as `0x${string}`[],\n \"bytes27[]\": [] as `0x${string}`[],\n \"bytes28[]\": [] as `0x${string}`[],\n \"bytes29[]\": [] as `0x${string}`[],\n \"bytes30[]\": [] as `0x${string}`[],\n \"bytes31[]\": [] as `0x${string}`[],\n \"bytes32[]\": [] as `0x${string}`[],\n\n \"bool[]\": [] as boolean[],\n \"address[]\": [] as `0x${string}`[],\n\n bytes: \"0x\",\n string: \"\",\n} as const;\n","import { AbiTypeToPrimitiveType } from \"../mappings\";\nimport { AbiTypeToDefaultValue } from \"../mappings/AbiTypeToDefaultValue\";\n\n/**\n * Return a value corresponding to the Solidity default value for a given abi type\n */\nexport function getAbiTypeDefaultValue<T extends string>(abiType: T) {\n // Remove fixed array lengths (eg map uint256[10] to uint256[])\n const normalizedType = abiType.replace(/(\\w+)\\[\\d+\\]/g, \"$1[]\");\n return AbiTypeToDefaultValue[normalizedType as keyof typeof AbiTypeToDefaultValue] as AbiTypeToPrimitiveType<T>;\n}\n"],"mappings":"AAEO,IAAKA,OACVA,IAAA,iBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,mBACAA,IAAA,oBACAA,IAAA,oBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,sBACAA,IAAA,gBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,kBACAA,IAAA,oBACAA,IAAA,oBACAA,IAAA,oBACAA,IAAA,oBACAA,IAAA,oBACAA,IAAA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AwB,CAC1D,IAAMC,EAAMD,EAAW,QAAQ,EAC/B,OAAIC,EAAM,GAEDA,EAAM,EACJA,EAAM,GAERA,EAAM,EAAI,GACRA,EAAM,GAERA,EAAM,EAAI,GAIfD,GAAc,GACT,EACEA,GAAc,GAChB,GAIF,CACT,CCjBO,IAAME,EAAiBC,EAAS,OACpCC,GAAYC,EAAoBC,EAAoBF,CAAO,CAAC,EAAI,CACnE,ECLO,IAAMG,EAA2B,CACrC,KACA,KACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OAEA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OAEA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OAEA,OACA,MACH,EC/FO,SAASC,EAAaC,EAAkC,CAC7D,GAAIA,EAAO,OAAS,GAAI,MAAM,IAAI,MAAM,sCAAsC,EAC9E,IAAMC,EAAgB,IAAI,WAAW,EAAE,EACnCC,EAAS,EACTC,EAAe,EAIfC,EAAmB,GACvB,QAAS,EAAI,EAAG,EAAIJ,EAAO,OAAQ,IAAK,CACtC,IAAMK,EAAmBC,EAAoBN,EAAO,CAAC,CAAC,EAGtD,GAAIK,EAAmB,EAAG,CAExB,GAAID,EAAkB,MAAM,IAAI,MAAM,6DAA6D,EACnGD,GACF,MAEEC,EAAmB,GAGrBF,GAAUG,EACVJ,EAAc,EAAI,CAAC,EAAID,EAAO,CAAC,CACjC,CAGA,IAAMO,EAAgBP,EAAO,OAASG,EAC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,EACb,WAAY,CAAC,EACb,WAAY,CAAC,EACb,WAAY,CAAC,EACb,WAAY,CAAC,EACb,WAAY,CAAC,EACb,WAAY,CAAC,EACb,WAAY,CAAC,EACb,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EACd,YAAa,CAAC,EAEd,SAAU,CAAC,EACX,YAAa,CAAC,EAEd,MAAO,KACP,OAAQ,EACV,ECzMO,SAASC,EAAyCC,EAAY,CAEnE,IAAMC,EAAiBD,EAAQ,QAAQ,gBAAiB,MAAM,EAC9D,OAAOE,EAAsBD,CAAoD,CACnF","names":["SchemaType","SchemaTypeToAbiType","AbiTypes","SchemaTypeToAbiType","AbiTypeToSchemaType","SchemaTypeToAbiType","schemaType","abiType","getStaticByteLength","schemaType","val","StaticAbiTypes","AbiTypes","abiType","getStaticByteLength","AbiTypeToSchemaType","SchemaTypeArrayToElement","encodeSchema","schema","encodedSchema","length","staticFields","hasDynamicFields","staticByteLength","getStaticByteLength","dynamicFields","AbiTypeToDefaultValue","getAbiTypeDefaultValue","abiType","normalizedType","AbiTypeToDefaultValue"]}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { }
@@ -534,4 +534,4 @@ declare function isStaticAbiType(abiType: unknown): abiType is StaticAbiType;
534
534
 
535
535
  type SchemaAbiTypeToPrimitiveType<T extends SchemaAbiType> = LiteralToBroad<(typeof schemaAbiTypeToDefaultValue)[T]>;
536
536
 
537
- export { ArrayAbiType, DynamicAbiType, DynamicAbiTypeToPrimitiveType, DynamicPrimitiveType, FixedArrayAbiType, SchemaAbiType, SchemaAbiTypeToPrimitiveType, StaticAbiType, StaticAbiTypeToPrimitiveType, StaticPrimitiveType, arrayToStaticAbiType, dynamicAbiTypeToDefaultValue, dynamicAbiTypes, fixedArrayToArray, fixedArrayToStaticAbiType, isArrayAbiType, isDynamicAbiType, isFixedArrayAbiType, isSchemaAbiType, isStaticAbiType, schemaAbiTypeToDefaultValue, schemaAbiTypes, staticAbiTypeToByteLength, staticAbiTypeToDefaultValue, staticAbiTypes };
537
+ export { type ArrayAbiType, type DynamicAbiType, type DynamicAbiTypeToPrimitiveType, type DynamicPrimitiveType, type FixedArrayAbiType, type SchemaAbiType, type SchemaAbiTypeToPrimitiveType, type StaticAbiType, type StaticAbiTypeToPrimitiveType, type StaticPrimitiveType, arrayToStaticAbiType, dynamicAbiTypeToDefaultValue, dynamicAbiTypes, fixedArrayToArray, fixedArrayToStaticAbiType, isArrayAbiType, isDynamicAbiType, isFixedArrayAbiType, isSchemaAbiType, isStaticAbiType, schemaAbiTypeToDefaultValue, schemaAbiTypes, staticAbiTypeToByteLength, staticAbiTypeToDefaultValue, staticAbiTypes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latticexyz/schema-type",
3
- "version": "2.2.15",
3
+ "version": "2.2.16-59389b1e37bc84664972231989ce7fdc739cce42",
4
4
  "description": "SchemaType enum for various languages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,10 +38,9 @@
38
38
  "devDependencies": {
39
39
  "ds-test": "https://github.com/dapphub/ds-test.git#e282159d5170298eb2455a6c05280ab5a73a4ef0",
40
40
  "forge-std": "https://github.com/foundry-rs/forge-std.git#74cfb77e308dd188d2f58864aaf44963ae6b88b1",
41
- "tsup": "^6.7.0",
42
41
  "viem": "2.21.19",
43
42
  "vitest": "0.34.6",
44
- "@latticexyz/gas-report": "2.2.15"
43
+ "@latticexyz/gas-report": "2.2.16-59389b1e37bc84664972231989ce7fdc739cce42"
45
44
  },
46
45
  "peerDependencies": {
47
46
  "viem": "2.x"