New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@latticexyz/schema-type

Package Overview
Dependencies
Maintainers
3
Versions
1656
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@latticexyz/schema-type - npm Package Compare versions

Comparing version 2.2.18-90aac1d4acce19ac592d47a090732dd11c1c3e7a to 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2

dist/deprecated.cjs

783

dist/deprecated.js

@@ -1,2 +0,783 @@

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};
// src/typescript/deprecated/SchemaType.ts
var SchemaType = /* @__PURE__ */ ((SchemaType2) => {
SchemaType2[SchemaType2["UINT8"] = 0] = "UINT8";
SchemaType2[SchemaType2["UINT16"] = 1] = "UINT16";
SchemaType2[SchemaType2["UINT24"] = 2] = "UINT24";
SchemaType2[SchemaType2["UINT32"] = 3] = "UINT32";
SchemaType2[SchemaType2["UINT40"] = 4] = "UINT40";
SchemaType2[SchemaType2["UINT48"] = 5] = "UINT48";
SchemaType2[SchemaType2["UINT56"] = 6] = "UINT56";
SchemaType2[SchemaType2["UINT64"] = 7] = "UINT64";
SchemaType2[SchemaType2["UINT72"] = 8] = "UINT72";
SchemaType2[SchemaType2["UINT80"] = 9] = "UINT80";
SchemaType2[SchemaType2["UINT88"] = 10] = "UINT88";
SchemaType2[SchemaType2["UINT96"] = 11] = "UINT96";
SchemaType2[SchemaType2["UINT104"] = 12] = "UINT104";
SchemaType2[SchemaType2["UINT112"] = 13] = "UINT112";
SchemaType2[SchemaType2["UINT120"] = 14] = "UINT120";
SchemaType2[SchemaType2["UINT128"] = 15] = "UINT128";
SchemaType2[SchemaType2["UINT136"] = 16] = "UINT136";
SchemaType2[SchemaType2["UINT144"] = 17] = "UINT144";
SchemaType2[SchemaType2["UINT152"] = 18] = "UINT152";
SchemaType2[SchemaType2["UINT160"] = 19] = "UINT160";
SchemaType2[SchemaType2["UINT168"] = 20] = "UINT168";
SchemaType2[SchemaType2["UINT176"] = 21] = "UINT176";
SchemaType2[SchemaType2["UINT184"] = 22] = "UINT184";
SchemaType2[SchemaType2["UINT192"] = 23] = "UINT192";
SchemaType2[SchemaType2["UINT200"] = 24] = "UINT200";
SchemaType2[SchemaType2["UINT208"] = 25] = "UINT208";
SchemaType2[SchemaType2["UINT216"] = 26] = "UINT216";
SchemaType2[SchemaType2["UINT224"] = 27] = "UINT224";
SchemaType2[SchemaType2["UINT232"] = 28] = "UINT232";
SchemaType2[SchemaType2["UINT240"] = 29] = "UINT240";
SchemaType2[SchemaType2["UINT248"] = 30] = "UINT248";
SchemaType2[SchemaType2["UINT256"] = 31] = "UINT256";
SchemaType2[SchemaType2["INT8"] = 32] = "INT8";
SchemaType2[SchemaType2["INT16"] = 33] = "INT16";
SchemaType2[SchemaType2["INT24"] = 34] = "INT24";
SchemaType2[SchemaType2["INT32"] = 35] = "INT32";
SchemaType2[SchemaType2["INT40"] = 36] = "INT40";
SchemaType2[SchemaType2["INT48"] = 37] = "INT48";
SchemaType2[SchemaType2["INT56"] = 38] = "INT56";
SchemaType2[SchemaType2["INT64"] = 39] = "INT64";
SchemaType2[SchemaType2["INT72"] = 40] = "INT72";
SchemaType2[SchemaType2["INT80"] = 41] = "INT80";
SchemaType2[SchemaType2["INT88"] = 42] = "INT88";
SchemaType2[SchemaType2["INT96"] = 43] = "INT96";
SchemaType2[SchemaType2["INT104"] = 44] = "INT104";
SchemaType2[SchemaType2["INT112"] = 45] = "INT112";
SchemaType2[SchemaType2["INT120"] = 46] = "INT120";
SchemaType2[SchemaType2["INT128"] = 47] = "INT128";
SchemaType2[SchemaType2["INT136"] = 48] = "INT136";
SchemaType2[SchemaType2["INT144"] = 49] = "INT144";
SchemaType2[SchemaType2["INT152"] = 50] = "INT152";
SchemaType2[SchemaType2["INT160"] = 51] = "INT160";
SchemaType2[SchemaType2["INT168"] = 52] = "INT168";
SchemaType2[SchemaType2["INT176"] = 53] = "INT176";
SchemaType2[SchemaType2["INT184"] = 54] = "INT184";
SchemaType2[SchemaType2["INT192"] = 55] = "INT192";
SchemaType2[SchemaType2["INT200"] = 56] = "INT200";
SchemaType2[SchemaType2["INT208"] = 57] = "INT208";
SchemaType2[SchemaType2["INT216"] = 58] = "INT216";
SchemaType2[SchemaType2["INT224"] = 59] = "INT224";
SchemaType2[SchemaType2["INT232"] = 60] = "INT232";
SchemaType2[SchemaType2["INT240"] = 61] = "INT240";
SchemaType2[SchemaType2["INT248"] = 62] = "INT248";
SchemaType2[SchemaType2["INT256"] = 63] = "INT256";
SchemaType2[SchemaType2["BYTES1"] = 64] = "BYTES1";
SchemaType2[SchemaType2["BYTES2"] = 65] = "BYTES2";
SchemaType2[SchemaType2["BYTES3"] = 66] = "BYTES3";
SchemaType2[SchemaType2["BYTES4"] = 67] = "BYTES4";
SchemaType2[SchemaType2["BYTES5"] = 68] = "BYTES5";
SchemaType2[SchemaType2["BYTES6"] = 69] = "BYTES6";
SchemaType2[SchemaType2["BYTES7"] = 70] = "BYTES7";
SchemaType2[SchemaType2["BYTES8"] = 71] = "BYTES8";
SchemaType2[SchemaType2["BYTES9"] = 72] = "BYTES9";
SchemaType2[SchemaType2["BYTES10"] = 73] = "BYTES10";
SchemaType2[SchemaType2["BYTES11"] = 74] = "BYTES11";
SchemaType2[SchemaType2["BYTES12"] = 75] = "BYTES12";
SchemaType2[SchemaType2["BYTES13"] = 76] = "BYTES13";
SchemaType2[SchemaType2["BYTES14"] = 77] = "BYTES14";
SchemaType2[SchemaType2["BYTES15"] = 78] = "BYTES15";
SchemaType2[SchemaType2["BYTES16"] = 79] = "BYTES16";
SchemaType2[SchemaType2["BYTES17"] = 80] = "BYTES17";
SchemaType2[SchemaType2["BYTES18"] = 81] = "BYTES18";
SchemaType2[SchemaType2["BYTES19"] = 82] = "BYTES19";
SchemaType2[SchemaType2["BYTES20"] = 83] = "BYTES20";
SchemaType2[SchemaType2["BYTES21"] = 84] = "BYTES21";
SchemaType2[SchemaType2["BYTES22"] = 85] = "BYTES22";
SchemaType2[SchemaType2["BYTES23"] = 86] = "BYTES23";
SchemaType2[SchemaType2["BYTES24"] = 87] = "BYTES24";
SchemaType2[SchemaType2["BYTES25"] = 88] = "BYTES25";
SchemaType2[SchemaType2["BYTES26"] = 89] = "BYTES26";
SchemaType2[SchemaType2["BYTES27"] = 90] = "BYTES27";
SchemaType2[SchemaType2["BYTES28"] = 91] = "BYTES28";
SchemaType2[SchemaType2["BYTES29"] = 92] = "BYTES29";
SchemaType2[SchemaType2["BYTES30"] = 93] = "BYTES30";
SchemaType2[SchemaType2["BYTES31"] = 94] = "BYTES31";
SchemaType2[SchemaType2["BYTES32"] = 95] = "BYTES32";
SchemaType2[SchemaType2["BOOL"] = 96] = "BOOL";
SchemaType2[SchemaType2["ADDRESS"] = 97] = "ADDRESS";
SchemaType2[SchemaType2["UINT8_ARRAY"] = 98] = "UINT8_ARRAY";
SchemaType2[SchemaType2["UINT16_ARRAY"] = 99] = "UINT16_ARRAY";
SchemaType2[SchemaType2["UINT24_ARRAY"] = 100] = "UINT24_ARRAY";
SchemaType2[SchemaType2["UINT32_ARRAY"] = 101] = "UINT32_ARRAY";
SchemaType2[SchemaType2["UINT40_ARRAY"] = 102] = "UINT40_ARRAY";
SchemaType2[SchemaType2["UINT48_ARRAY"] = 103] = "UINT48_ARRAY";
SchemaType2[SchemaType2["UINT56_ARRAY"] = 104] = "UINT56_ARRAY";
SchemaType2[SchemaType2["UINT64_ARRAY"] = 105] = "UINT64_ARRAY";
SchemaType2[SchemaType2["UINT72_ARRAY"] = 106] = "UINT72_ARRAY";
SchemaType2[SchemaType2["UINT80_ARRAY"] = 107] = "UINT80_ARRAY";
SchemaType2[SchemaType2["UINT88_ARRAY"] = 108] = "UINT88_ARRAY";
SchemaType2[SchemaType2["UINT96_ARRAY"] = 109] = "UINT96_ARRAY";
SchemaType2[SchemaType2["UINT104_ARRAY"] = 110] = "UINT104_ARRAY";
SchemaType2[SchemaType2["UINT112_ARRAY"] = 111] = "UINT112_ARRAY";
SchemaType2[SchemaType2["UINT120_ARRAY"] = 112] = "UINT120_ARRAY";
SchemaType2[SchemaType2["UINT128_ARRAY"] = 113] = "UINT128_ARRAY";
SchemaType2[SchemaType2["UINT136_ARRAY"] = 114] = "UINT136_ARRAY";
SchemaType2[SchemaType2["UINT144_ARRAY"] = 115] = "UINT144_ARRAY";
SchemaType2[SchemaType2["UINT152_ARRAY"] = 116] = "UINT152_ARRAY";
SchemaType2[SchemaType2["UINT160_ARRAY"] = 117] = "UINT160_ARRAY";
SchemaType2[SchemaType2["UINT168_ARRAY"] = 118] = "UINT168_ARRAY";
SchemaType2[SchemaType2["UINT176_ARRAY"] = 119] = "UINT176_ARRAY";
SchemaType2[SchemaType2["UINT184_ARRAY"] = 120] = "UINT184_ARRAY";
SchemaType2[SchemaType2["UINT192_ARRAY"] = 121] = "UINT192_ARRAY";
SchemaType2[SchemaType2["UINT200_ARRAY"] = 122] = "UINT200_ARRAY";
SchemaType2[SchemaType2["UINT208_ARRAY"] = 123] = "UINT208_ARRAY";
SchemaType2[SchemaType2["UINT216_ARRAY"] = 124] = "UINT216_ARRAY";
SchemaType2[SchemaType2["UINT224_ARRAY"] = 125] = "UINT224_ARRAY";
SchemaType2[SchemaType2["UINT232_ARRAY"] = 126] = "UINT232_ARRAY";
SchemaType2[SchemaType2["UINT240_ARRAY"] = 127] = "UINT240_ARRAY";
SchemaType2[SchemaType2["UINT248_ARRAY"] = 128] = "UINT248_ARRAY";
SchemaType2[SchemaType2["UINT256_ARRAY"] = 129] = "UINT256_ARRAY";
SchemaType2[SchemaType2["INT8_ARRAY"] = 130] = "INT8_ARRAY";
SchemaType2[SchemaType2["INT16_ARRAY"] = 131] = "INT16_ARRAY";
SchemaType2[SchemaType2["INT24_ARRAY"] = 132] = "INT24_ARRAY";
SchemaType2[SchemaType2["INT32_ARRAY"] = 133] = "INT32_ARRAY";
SchemaType2[SchemaType2["INT40_ARRAY"] = 134] = "INT40_ARRAY";
SchemaType2[SchemaType2["INT48_ARRAY"] = 135] = "INT48_ARRAY";
SchemaType2[SchemaType2["INT56_ARRAY"] = 136] = "INT56_ARRAY";
SchemaType2[SchemaType2["INT64_ARRAY"] = 137] = "INT64_ARRAY";
SchemaType2[SchemaType2["INT72_ARRAY"] = 138] = "INT72_ARRAY";
SchemaType2[SchemaType2["INT80_ARRAY"] = 139] = "INT80_ARRAY";
SchemaType2[SchemaType2["INT88_ARRAY"] = 140] = "INT88_ARRAY";
SchemaType2[SchemaType2["INT96_ARRAY"] = 141] = "INT96_ARRAY";
SchemaType2[SchemaType2["INT104_ARRAY"] = 142] = "INT104_ARRAY";
SchemaType2[SchemaType2["INT112_ARRAY"] = 143] = "INT112_ARRAY";
SchemaType2[SchemaType2["INT120_ARRAY"] = 144] = "INT120_ARRAY";
SchemaType2[SchemaType2["INT128_ARRAY"] = 145] = "INT128_ARRAY";
SchemaType2[SchemaType2["INT136_ARRAY"] = 146] = "INT136_ARRAY";
SchemaType2[SchemaType2["INT144_ARRAY"] = 147] = "INT144_ARRAY";
SchemaType2[SchemaType2["INT152_ARRAY"] = 148] = "INT152_ARRAY";
SchemaType2[SchemaType2["INT160_ARRAY"] = 149] = "INT160_ARRAY";
SchemaType2[SchemaType2["INT168_ARRAY"] = 150] = "INT168_ARRAY";
SchemaType2[SchemaType2["INT176_ARRAY"] = 151] = "INT176_ARRAY";
SchemaType2[SchemaType2["INT184_ARRAY"] = 152] = "INT184_ARRAY";
SchemaType2[SchemaType2["INT192_ARRAY"] = 153] = "INT192_ARRAY";
SchemaType2[SchemaType2["INT200_ARRAY"] = 154] = "INT200_ARRAY";
SchemaType2[SchemaType2["INT208_ARRAY"] = 155] = "INT208_ARRAY";
SchemaType2[SchemaType2["INT216_ARRAY"] = 156] = "INT216_ARRAY";
SchemaType2[SchemaType2["INT224_ARRAY"] = 157] = "INT224_ARRAY";
SchemaType2[SchemaType2["INT232_ARRAY"] = 158] = "INT232_ARRAY";
SchemaType2[SchemaType2["INT240_ARRAY"] = 159] = "INT240_ARRAY";
SchemaType2[SchemaType2["INT248_ARRAY"] = 160] = "INT248_ARRAY";
SchemaType2[SchemaType2["INT256_ARRAY"] = 161] = "INT256_ARRAY";
SchemaType2[SchemaType2["BYTES1_ARRAY"] = 162] = "BYTES1_ARRAY";
SchemaType2[SchemaType2["BYTES2_ARRAY"] = 163] = "BYTES2_ARRAY";
SchemaType2[SchemaType2["BYTES3_ARRAY"] = 164] = "BYTES3_ARRAY";
SchemaType2[SchemaType2["BYTES4_ARRAY"] = 165] = "BYTES4_ARRAY";
SchemaType2[SchemaType2["BYTES5_ARRAY"] = 166] = "BYTES5_ARRAY";
SchemaType2[SchemaType2["BYTES6_ARRAY"] = 167] = "BYTES6_ARRAY";
SchemaType2[SchemaType2["BYTES7_ARRAY"] = 168] = "BYTES7_ARRAY";
SchemaType2[SchemaType2["BYTES8_ARRAY"] = 169] = "BYTES8_ARRAY";
SchemaType2[SchemaType2["BYTES9_ARRAY"] = 170] = "BYTES9_ARRAY";
SchemaType2[SchemaType2["BYTES10_ARRAY"] = 171] = "BYTES10_ARRAY";
SchemaType2[SchemaType2["BYTES11_ARRAY"] = 172] = "BYTES11_ARRAY";
SchemaType2[SchemaType2["BYTES12_ARRAY"] = 173] = "BYTES12_ARRAY";
SchemaType2[SchemaType2["BYTES13_ARRAY"] = 174] = "BYTES13_ARRAY";
SchemaType2[SchemaType2["BYTES14_ARRAY"] = 175] = "BYTES14_ARRAY";
SchemaType2[SchemaType2["BYTES15_ARRAY"] = 176] = "BYTES15_ARRAY";
SchemaType2[SchemaType2["BYTES16_ARRAY"] = 177] = "BYTES16_ARRAY";
SchemaType2[SchemaType2["BYTES17_ARRAY"] = 178] = "BYTES17_ARRAY";
SchemaType2[SchemaType2["BYTES18_ARRAY"] = 179] = "BYTES18_ARRAY";
SchemaType2[SchemaType2["BYTES19_ARRAY"] = 180] = "BYTES19_ARRAY";
SchemaType2[SchemaType2["BYTES20_ARRAY"] = 181] = "BYTES20_ARRAY";
SchemaType2[SchemaType2["BYTES21_ARRAY"] = 182] = "BYTES21_ARRAY";
SchemaType2[SchemaType2["BYTES22_ARRAY"] = 183] = "BYTES22_ARRAY";
SchemaType2[SchemaType2["BYTES23_ARRAY"] = 184] = "BYTES23_ARRAY";
SchemaType2[SchemaType2["BYTES24_ARRAY"] = 185] = "BYTES24_ARRAY";
SchemaType2[SchemaType2["BYTES25_ARRAY"] = 186] = "BYTES25_ARRAY";
SchemaType2[SchemaType2["BYTES26_ARRAY"] = 187] = "BYTES26_ARRAY";
SchemaType2[SchemaType2["BYTES27_ARRAY"] = 188] = "BYTES27_ARRAY";
SchemaType2[SchemaType2["BYTES28_ARRAY"] = 189] = "BYTES28_ARRAY";
SchemaType2[SchemaType2["BYTES29_ARRAY"] = 190] = "BYTES29_ARRAY";
SchemaType2[SchemaType2["BYTES30_ARRAY"] = 191] = "BYTES30_ARRAY";
SchemaType2[SchemaType2["BYTES31_ARRAY"] = 192] = "BYTES31_ARRAY";
SchemaType2[SchemaType2["BYTES32_ARRAY"] = 193] = "BYTES32_ARRAY";
SchemaType2[SchemaType2["BOOL_ARRAY"] = 194] = "BOOL_ARRAY";
SchemaType2[SchemaType2["ADDRESS_ARRAY"] = 195] = "ADDRESS_ARRAY";
SchemaType2[SchemaType2["BYTES"] = 196] = "BYTES";
SchemaType2[SchemaType2["STRING"] = 197] = "STRING";
return SchemaType2;
})(SchemaType || {});
// src/typescript/deprecated/mappings/SchemaTypeToAbiType.ts
var SchemaTypeToAbiType = {
[0 /* UINT8 */]: "uint8",
[1 /* UINT16 */]: "uint16",
[2 /* UINT24 */]: "uint24",
[3 /* UINT32 */]: "uint32",
[4 /* UINT40 */]: "uint40",
[5 /* UINT48 */]: "uint48",
[6 /* UINT56 */]: "uint56",
[7 /* UINT64 */]: "uint64",
[8 /* UINT72 */]: "uint72",
[9 /* UINT80 */]: "uint80",
[10 /* UINT88 */]: "uint88",
[11 /* UINT96 */]: "uint96",
[12 /* UINT104 */]: "uint104",
[13 /* UINT112 */]: "uint112",
[14 /* UINT120 */]: "uint120",
[15 /* UINT128 */]: "uint128",
[16 /* UINT136 */]: "uint136",
[17 /* UINT144 */]: "uint144",
[18 /* UINT152 */]: "uint152",
[19 /* UINT160 */]: "uint160",
[20 /* UINT168 */]: "uint168",
[21 /* UINT176 */]: "uint176",
[22 /* UINT184 */]: "uint184",
[23 /* UINT192 */]: "uint192",
[24 /* UINT200 */]: "uint200",
[25 /* UINT208 */]: "uint208",
[26 /* UINT216 */]: "uint216",
[27 /* UINT224 */]: "uint224",
[28 /* UINT232 */]: "uint232",
[29 /* UINT240 */]: "uint240",
[30 /* UINT248 */]: "uint248",
[31 /* UINT256 */]: "uint256",
[32 /* INT8 */]: "int8",
[33 /* INT16 */]: "int16",
[34 /* INT24 */]: "int24",
[35 /* INT32 */]: "int32",
[36 /* INT40 */]: "int40",
[37 /* INT48 */]: "int48",
[38 /* INT56 */]: "int56",
[39 /* INT64 */]: "int64",
[40 /* INT72 */]: "int72",
[41 /* INT80 */]: "int80",
[42 /* INT88 */]: "int88",
[43 /* INT96 */]: "int96",
[44 /* INT104 */]: "int104",
[45 /* INT112 */]: "int112",
[46 /* INT120 */]: "int120",
[47 /* INT128 */]: "int128",
[48 /* INT136 */]: "int136",
[49 /* INT144 */]: "int144",
[50 /* INT152 */]: "int152",
[51 /* INT160 */]: "int160",
[52 /* INT168 */]: "int168",
[53 /* INT176 */]: "int176",
[54 /* INT184 */]: "int184",
[55 /* INT192 */]: "int192",
[56 /* INT200 */]: "int200",
[57 /* INT208 */]: "int208",
[58 /* INT216 */]: "int216",
[59 /* INT224 */]: "int224",
[60 /* INT232 */]: "int232",
[61 /* INT240 */]: "int240",
[62 /* INT248 */]: "int248",
[63 /* INT256 */]: "int256",
[64 /* BYTES1 */]: "bytes1",
[65 /* BYTES2 */]: "bytes2",
[66 /* BYTES3 */]: "bytes3",
[67 /* BYTES4 */]: "bytes4",
[68 /* BYTES5 */]: "bytes5",
[69 /* BYTES6 */]: "bytes6",
[70 /* BYTES7 */]: "bytes7",
[71 /* BYTES8 */]: "bytes8",
[72 /* BYTES9 */]: "bytes9",
[73 /* BYTES10 */]: "bytes10",
[74 /* BYTES11 */]: "bytes11",
[75 /* BYTES12 */]: "bytes12",
[76 /* BYTES13 */]: "bytes13",
[77 /* BYTES14 */]: "bytes14",
[78 /* BYTES15 */]: "bytes15",
[79 /* BYTES16 */]: "bytes16",
[80 /* BYTES17 */]: "bytes17",
[81 /* BYTES18 */]: "bytes18",
[82 /* BYTES19 */]: "bytes19",
[83 /* BYTES20 */]: "bytes20",
[84 /* BYTES21 */]: "bytes21",
[85 /* BYTES22 */]: "bytes22",
[86 /* BYTES23 */]: "bytes23",
[87 /* BYTES24 */]: "bytes24",
[88 /* BYTES25 */]: "bytes25",
[89 /* BYTES26 */]: "bytes26",
[90 /* BYTES27 */]: "bytes27",
[91 /* BYTES28 */]: "bytes28",
[92 /* BYTES29 */]: "bytes29",
[93 /* BYTES30 */]: "bytes30",
[94 /* BYTES31 */]: "bytes31",
[95 /* BYTES32 */]: "bytes32",
[96 /* BOOL */]: "bool",
[97 /* ADDRESS */]: "address",
[98 /* UINT8_ARRAY */]: "uint8[]",
[99 /* UINT16_ARRAY */]: "uint16[]",
[100 /* UINT24_ARRAY */]: "uint24[]",
[101 /* UINT32_ARRAY */]: "uint32[]",
[102 /* UINT40_ARRAY */]: "uint40[]",
[103 /* UINT48_ARRAY */]: "uint48[]",
[104 /* UINT56_ARRAY */]: "uint56[]",
[105 /* UINT64_ARRAY */]: "uint64[]",
[106 /* UINT72_ARRAY */]: "uint72[]",
[107 /* UINT80_ARRAY */]: "uint80[]",
[108 /* UINT88_ARRAY */]: "uint88[]",
[109 /* UINT96_ARRAY */]: "uint96[]",
[110 /* UINT104_ARRAY */]: "uint104[]",
[111 /* UINT112_ARRAY */]: "uint112[]",
[112 /* UINT120_ARRAY */]: "uint120[]",
[113 /* UINT128_ARRAY */]: "uint128[]",
[114 /* UINT136_ARRAY */]: "uint136[]",
[115 /* UINT144_ARRAY */]: "uint144[]",
[116 /* UINT152_ARRAY */]: "uint152[]",
[117 /* UINT160_ARRAY */]: "uint160[]",
[118 /* UINT168_ARRAY */]: "uint168[]",
[119 /* UINT176_ARRAY */]: "uint176[]",
[120 /* UINT184_ARRAY */]: "uint184[]",
[121 /* UINT192_ARRAY */]: "uint192[]",
[122 /* UINT200_ARRAY */]: "uint200[]",
[123 /* UINT208_ARRAY */]: "uint208[]",
[124 /* UINT216_ARRAY */]: "uint216[]",
[125 /* UINT224_ARRAY */]: "uint224[]",
[126 /* UINT232_ARRAY */]: "uint232[]",
[127 /* UINT240_ARRAY */]: "uint240[]",
[128 /* UINT248_ARRAY */]: "uint248[]",
[129 /* UINT256_ARRAY */]: "uint256[]",
[130 /* INT8_ARRAY */]: "int8[]",
[131 /* INT16_ARRAY */]: "int16[]",
[132 /* INT24_ARRAY */]: "int24[]",
[133 /* INT32_ARRAY */]: "int32[]",
[134 /* INT40_ARRAY */]: "int40[]",
[135 /* INT48_ARRAY */]: "int48[]",
[136 /* INT56_ARRAY */]: "int56[]",
[137 /* INT64_ARRAY */]: "int64[]",
[138 /* INT72_ARRAY */]: "int72[]",
[139 /* INT80_ARRAY */]: "int80[]",
[140 /* INT88_ARRAY */]: "int88[]",
[141 /* INT96_ARRAY */]: "int96[]",
[142 /* INT104_ARRAY */]: "int104[]",
[143 /* INT112_ARRAY */]: "int112[]",
[144 /* INT120_ARRAY */]: "int120[]",
[145 /* INT128_ARRAY */]: "int128[]",
[146 /* INT136_ARRAY */]: "int136[]",
[147 /* INT144_ARRAY */]: "int144[]",
[148 /* INT152_ARRAY */]: "int152[]",
[149 /* INT160_ARRAY */]: "int160[]",
[150 /* INT168_ARRAY */]: "int168[]",
[151 /* INT176_ARRAY */]: "int176[]",
[152 /* INT184_ARRAY */]: "int184[]",
[153 /* INT192_ARRAY */]: "int192[]",
[154 /* INT200_ARRAY */]: "int200[]",
[155 /* INT208_ARRAY */]: "int208[]",
[156 /* INT216_ARRAY */]: "int216[]",
[157 /* INT224_ARRAY */]: "int224[]",
[158 /* INT232_ARRAY */]: "int232[]",
[159 /* INT240_ARRAY */]: "int240[]",
[160 /* INT248_ARRAY */]: "int248[]",
[161 /* INT256_ARRAY */]: "int256[]",
[162 /* BYTES1_ARRAY */]: "bytes1[]",
[163 /* BYTES2_ARRAY */]: "bytes2[]",
[164 /* BYTES3_ARRAY */]: "bytes3[]",
[165 /* BYTES4_ARRAY */]: "bytes4[]",
[166 /* BYTES5_ARRAY */]: "bytes5[]",
[167 /* BYTES6_ARRAY */]: "bytes6[]",
[168 /* BYTES7_ARRAY */]: "bytes7[]",
[169 /* BYTES8_ARRAY */]: "bytes8[]",
[170 /* BYTES9_ARRAY */]: "bytes9[]",
[171 /* BYTES10_ARRAY */]: "bytes10[]",
[172 /* BYTES11_ARRAY */]: "bytes11[]",
[173 /* BYTES12_ARRAY */]: "bytes12[]",
[174 /* BYTES13_ARRAY */]: "bytes13[]",
[175 /* BYTES14_ARRAY */]: "bytes14[]",
[176 /* BYTES15_ARRAY */]: "bytes15[]",
[177 /* BYTES16_ARRAY */]: "bytes16[]",
[178 /* BYTES17_ARRAY */]: "bytes17[]",
[179 /* BYTES18_ARRAY */]: "bytes18[]",
[180 /* BYTES19_ARRAY */]: "bytes19[]",
[181 /* BYTES20_ARRAY */]: "bytes20[]",
[182 /* BYTES21_ARRAY */]: "bytes21[]",
[183 /* BYTES22_ARRAY */]: "bytes22[]",
[184 /* BYTES23_ARRAY */]: "bytes23[]",
[185 /* BYTES24_ARRAY */]: "bytes24[]",
[186 /* BYTES25_ARRAY */]: "bytes25[]",
[187 /* BYTES26_ARRAY */]: "bytes26[]",
[188 /* BYTES27_ARRAY */]: "bytes27[]",
[189 /* BYTES28_ARRAY */]: "bytes28[]",
[190 /* BYTES29_ARRAY */]: "bytes29[]",
[191 /* BYTES30_ARRAY */]: "bytes30[]",
[192 /* BYTES31_ARRAY */]: "bytes31[]",
[193 /* BYTES32_ARRAY */]: "bytes32[]",
[194 /* BOOL_ARRAY */]: "bool[]",
[195 /* ADDRESS_ARRAY */]: "address[]",
[196 /* BYTES */]: "bytes",
[197 /* STRING */]: "string"
};
// src/typescript/deprecated/types/AbiTypes.ts
var AbiTypes = Object.values(SchemaTypeToAbiType);
// src/typescript/deprecated/mappings/AbiTypeToSchemaType.ts
var AbiTypeToSchemaType = Object.fromEntries(
Object.entries(SchemaTypeToAbiType).map(([schemaType, abiType]) => [abiType, parseInt(schemaType)])
);
// src/typescript/deprecated/utils/getStaticByteLength.ts
function getStaticByteLength(schemaType) {
const val = schemaType.valueOf();
if (val < 32) {
return val + 1;
} else if (val < 64) {
return val + 1 - 32;
} else if (val < 96) {
return val + 1 - 64;
}
if (schemaType == 96 /* BOOL */) {
return 1;
} else if (schemaType == 97 /* ADDRESS */) {
return 20;
}
return 0;
}
// src/typescript/deprecated/types/StaticAbiTypes.ts
var StaticAbiTypes = AbiTypes.filter(
(abiType) => getStaticByteLength(AbiTypeToSchemaType[abiType]) > 0
);
// src/typescript/deprecated/mappings/SchemaTypeArrayToElement.ts
var SchemaTypeArrayToElement = {
[98 /* UINT8_ARRAY */]: 0 /* UINT8 */,
[99 /* UINT16_ARRAY */]: 1 /* UINT16 */,
[100 /* UINT24_ARRAY */]: 2 /* UINT24 */,
[101 /* UINT32_ARRAY */]: 3 /* UINT32 */,
[102 /* UINT40_ARRAY */]: 4 /* UINT40 */,
[103 /* UINT48_ARRAY */]: 5 /* UINT48 */,
[104 /* UINT56_ARRAY */]: 6 /* UINT56 */,
[105 /* UINT64_ARRAY */]: 7 /* UINT64 */,
[106 /* UINT72_ARRAY */]: 8 /* UINT72 */,
[107 /* UINT80_ARRAY */]: 9 /* UINT80 */,
[108 /* UINT88_ARRAY */]: 10 /* UINT88 */,
[109 /* UINT96_ARRAY */]: 11 /* UINT96 */,
[110 /* UINT104_ARRAY */]: 12 /* UINT104 */,
[111 /* UINT112_ARRAY */]: 13 /* UINT112 */,
[112 /* UINT120_ARRAY */]: 14 /* UINT120 */,
[113 /* UINT128_ARRAY */]: 15 /* UINT128 */,
[114 /* UINT136_ARRAY */]: 16 /* UINT136 */,
[115 /* UINT144_ARRAY */]: 17 /* UINT144 */,
[116 /* UINT152_ARRAY */]: 18 /* UINT152 */,
[117 /* UINT160_ARRAY */]: 19 /* UINT160 */,
[118 /* UINT168_ARRAY */]: 20 /* UINT168 */,
[119 /* UINT176_ARRAY */]: 21 /* UINT176 */,
[120 /* UINT184_ARRAY */]: 22 /* UINT184 */,
[121 /* UINT192_ARRAY */]: 23 /* UINT192 */,
[122 /* UINT200_ARRAY */]: 24 /* UINT200 */,
[123 /* UINT208_ARRAY */]: 25 /* UINT208 */,
[124 /* UINT216_ARRAY */]: 26 /* UINT216 */,
[125 /* UINT224_ARRAY */]: 27 /* UINT224 */,
[126 /* UINT232_ARRAY */]: 28 /* UINT232 */,
[127 /* UINT240_ARRAY */]: 29 /* UINT240 */,
[128 /* UINT248_ARRAY */]: 30 /* UINT248 */,
[129 /* UINT256_ARRAY */]: 31 /* UINT256 */,
[130 /* INT8_ARRAY */]: 32 /* INT8 */,
[131 /* INT16_ARRAY */]: 33 /* INT16 */,
[132 /* INT24_ARRAY */]: 34 /* INT24 */,
[133 /* INT32_ARRAY */]: 35 /* INT32 */,
[134 /* INT40_ARRAY */]: 36 /* INT40 */,
[135 /* INT48_ARRAY */]: 37 /* INT48 */,
[136 /* INT56_ARRAY */]: 38 /* INT56 */,
[137 /* INT64_ARRAY */]: 39 /* INT64 */,
[138 /* INT72_ARRAY */]: 40 /* INT72 */,
[139 /* INT80_ARRAY */]: 41 /* INT80 */,
[140 /* INT88_ARRAY */]: 42 /* INT88 */,
[141 /* INT96_ARRAY */]: 43 /* INT96 */,
[142 /* INT104_ARRAY */]: 44 /* INT104 */,
[143 /* INT112_ARRAY */]: 45 /* INT112 */,
[144 /* INT120_ARRAY */]: 46 /* INT120 */,
[145 /* INT128_ARRAY */]: 47 /* INT128 */,
[146 /* INT136_ARRAY */]: 48 /* INT136 */,
[147 /* INT144_ARRAY */]: 49 /* INT144 */,
[148 /* INT152_ARRAY */]: 50 /* INT152 */,
[149 /* INT160_ARRAY */]: 51 /* INT160 */,
[150 /* INT168_ARRAY */]: 52 /* INT168 */,
[151 /* INT176_ARRAY */]: 53 /* INT176 */,
[152 /* INT184_ARRAY */]: 54 /* INT184 */,
[153 /* INT192_ARRAY */]: 55 /* INT192 */,
[154 /* INT200_ARRAY */]: 56 /* INT200 */,
[155 /* INT208_ARRAY */]: 57 /* INT208 */,
[156 /* INT216_ARRAY */]: 58 /* INT216 */,
[157 /* INT224_ARRAY */]: 59 /* INT224 */,
[158 /* INT232_ARRAY */]: 60 /* INT232 */,
[159 /* INT240_ARRAY */]: 61 /* INT240 */,
[160 /* INT248_ARRAY */]: 62 /* INT248 */,
[161 /* INT256_ARRAY */]: 63 /* INT256 */,
[162 /* BYTES1_ARRAY */]: 64 /* BYTES1 */,
[163 /* BYTES2_ARRAY */]: 65 /* BYTES2 */,
[164 /* BYTES3_ARRAY */]: 66 /* BYTES3 */,
[165 /* BYTES4_ARRAY */]: 67 /* BYTES4 */,
[166 /* BYTES5_ARRAY */]: 68 /* BYTES5 */,
[167 /* BYTES6_ARRAY */]: 69 /* BYTES6 */,
[168 /* BYTES7_ARRAY */]: 70 /* BYTES7 */,
[169 /* BYTES8_ARRAY */]: 71 /* BYTES8 */,
[170 /* BYTES9_ARRAY */]: 72 /* BYTES9 */,
[171 /* BYTES10_ARRAY */]: 73 /* BYTES10 */,
[172 /* BYTES11_ARRAY */]: 74 /* BYTES11 */,
[173 /* BYTES12_ARRAY */]: 75 /* BYTES12 */,
[174 /* BYTES13_ARRAY */]: 76 /* BYTES13 */,
[175 /* BYTES14_ARRAY */]: 77 /* BYTES14 */,
[176 /* BYTES15_ARRAY */]: 78 /* BYTES15 */,
[177 /* BYTES16_ARRAY */]: 79 /* BYTES16 */,
[178 /* BYTES17_ARRAY */]: 80 /* BYTES17 */,
[179 /* BYTES18_ARRAY */]: 81 /* BYTES18 */,
[180 /* BYTES19_ARRAY */]: 82 /* BYTES19 */,
[181 /* BYTES20_ARRAY */]: 83 /* BYTES20 */,
[182 /* BYTES21_ARRAY */]: 84 /* BYTES21 */,
[183 /* BYTES22_ARRAY */]: 85 /* BYTES22 */,
[184 /* BYTES23_ARRAY */]: 86 /* BYTES23 */,
[185 /* BYTES24_ARRAY */]: 87 /* BYTES24 */,
[186 /* BYTES25_ARRAY */]: 88 /* BYTES25 */,
[187 /* BYTES26_ARRAY */]: 89 /* BYTES26 */,
[188 /* BYTES27_ARRAY */]: 90 /* BYTES27 */,
[189 /* BYTES28_ARRAY */]: 91 /* BYTES28 */,
[190 /* BYTES29_ARRAY */]: 92 /* BYTES29 */,
[191 /* BYTES30_ARRAY */]: 93 /* BYTES30 */,
[192 /* BYTES31_ARRAY */]: 94 /* BYTES31 */,
[193 /* BYTES32_ARRAY */]: 95 /* BYTES32 */,
[194 /* BOOL_ARRAY */]: 96 /* BOOL */,
[195 /* ADDRESS_ARRAY */]: 97 /* ADDRESS */
};
// src/typescript/deprecated/utils/encodeSchema.ts
function encodeSchema(schema) {
if (schema.length > 28) throw new Error("Schema can only have up to 28 fields");
const encodedSchema = new Uint8Array(32);
let length = 0;
let staticFields = 0;
let hasDynamicFields = false;
for (let i = 0; i < schema.length; i++) {
const staticByteLength = getStaticByteLength(schema[i]);
if (staticByteLength > 0) {
if (hasDynamicFields) throw new Error("Static fields must come before dynamic fields in the schema");
staticFields++;
} else {
hasDynamicFields = true;
}
length += staticByteLength;
encodedSchema[i + 4] = schema[i];
}
const dynamicFields = schema.length - staticFields;
if (dynamicFields > 14) throw new Error("Schema can only have up to 14 dynamic fields");
new DataView(encodedSchema.buffer).setUint16(0, length);
encodedSchema[2] = staticFields;
encodedSchema[3] = dynamicFields;
return encodedSchema;
}
// src/typescript/deprecated/mappings/AbiTypeToDefaultValue.ts
var AbiTypeToDefaultValue = {
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: false,
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: ""
};
// src/typescript/deprecated/utils/getAbiTypeDefaultValue.ts
function getAbiTypeDefaultValue(abiType) {
const normalizedType = abiType.replace(/(\w+)\[\d+\]/g, "$1[]");
return AbiTypeToDefaultValue[normalizedType];
}
export {
AbiTypeToSchemaType,
AbiTypes,
SchemaType,
SchemaTypeArrayToElement,
SchemaTypeToAbiType,
StaticAbiTypes,
encodeSchema,
getAbiTypeDefaultValue,
getStaticByteLength
};
//# sourceMappingURL=deprecated.js.map

@@ -1,2 +0,561 @@

var n=["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","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","string"],a=n.slice(0,98),s=n.slice(98);function o(t){return n.includes(t)}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"},T={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:1,int16:2,int24:3,int32:4,int40:5,int48:6,int56:7,int64:8,int72:9,int80:10,int88:11,int96:12,int104:13,int112:14,int120:15,int128:16,int136:17,int144:18,int152:19,int160:20,int168:21,int176:22,int184:23,int192:24,int200:25,int208:26,int216:27,int224:28,int232:29,int240:30,int248:31,int256:32,bytes1:1,bytes2:2,bytes3:3,bytes4:4,bytes5:5,bytes6:6,bytes7:7,bytes8:8,bytes9:9,bytes10:10,bytes11:11,bytes12:12,bytes13:13,bytes14:14,bytes15:15,bytes16:16,bytes17:17,bytes18:18,bytes19:19,bytes20:20,bytes21:21,bytes22:22,bytes23:23,bytes24:24,bytes25:25,bytes26:26,bytes27:27,bytes28:28,bytes29:29,bytes30:30,bytes31:31,bytes32:32,bool:1,address:20};function e(t){return a.includes(t)}var y=/\[\]$/,i=/\[\d+\]$/;function c(t){return typeof t=="string"&&y.test(t)&&e(t.replace(y,""))}function A(t){return typeof t=="string"&&i.test(t)&&e(t.replace(i,""))}function m(t){return t.replace(y,"")}function g(t){return t.replace(i,"")}function f(t){return t.replace(i,"[]")}var r={"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 v(t){return s.includes(t)}var k={...b,...r};export{m as arrayToStaticAbiType,r as dynamicAbiTypeToDefaultValue,s as dynamicAbiTypes,f as fixedArrayToArray,g as fixedArrayToStaticAbiType,c as isArrayAbiType,v as isDynamicAbiType,A as isFixedArrayAbiType,o as isSchemaAbiType,e as isStaticAbiType,k as schemaAbiTypeToDefaultValue,n as schemaAbiTypes,T as staticAbiTypeToByteLength,b as staticAbiTypeToDefaultValue,a as staticAbiTypes};
// src/typescript/schemaAbiTypes.ts
var schemaAbiTypes = [
"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",
"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",
"string"
];
var staticAbiTypes = schemaAbiTypes.slice(0, 98);
var dynamicAbiTypes = schemaAbiTypes.slice(98);
function isSchemaAbiType(abiType) {
return schemaAbiTypes.includes(abiType);
}
// src/typescript/staticAbiTypes.ts
var staticAbiTypeToDefaultValue = {
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: false,
address: "0x0000000000000000000000000000000000000000"
};
var staticAbiTypeToByteLength = {
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: 1,
int16: 2,
int24: 3,
int32: 4,
int40: 5,
int48: 6,
int56: 7,
int64: 8,
int72: 9,
int80: 10,
int88: 11,
int96: 12,
int104: 13,
int112: 14,
int120: 15,
int128: 16,
int136: 17,
int144: 18,
int152: 19,
int160: 20,
int168: 21,
int176: 22,
int184: 23,
int192: 24,
int200: 25,
int208: 26,
int216: 27,
int224: 28,
int232: 29,
int240: 30,
int248: 31,
int256: 32,
bytes1: 1,
bytes2: 2,
bytes3: 3,
bytes4: 4,
bytes5: 5,
bytes6: 6,
bytes7: 7,
bytes8: 8,
bytes9: 9,
bytes10: 10,
bytes11: 11,
bytes12: 12,
bytes13: 13,
bytes14: 14,
bytes15: 15,
bytes16: 16,
bytes17: 17,
bytes18: 18,
bytes19: 19,
bytes20: 20,
bytes21: 21,
bytes22: 22,
bytes23: 23,
bytes24: 24,
bytes25: 25,
bytes26: 26,
bytes27: 27,
bytes28: 28,
bytes29: 29,
bytes30: 30,
bytes31: 31,
bytes32: 32,
bool: 1,
address: 20
};
function isStaticAbiType(abiType) {
return staticAbiTypes.includes(abiType);
}
// src/typescript/arrayAbiTypes.ts
var arrayPattern = /\[\]$/;
var fixedArrayPattern = /\[\d+\]$/;
function isArrayAbiType(abiType) {
return typeof abiType === "string" && arrayPattern.test(abiType) && isStaticAbiType(abiType.replace(arrayPattern, ""));
}
function isFixedArrayAbiType(abiType) {
return typeof abiType === "string" && fixedArrayPattern.test(abiType) && isStaticAbiType(abiType.replace(fixedArrayPattern, ""));
}
function arrayToStaticAbiType(abiType) {
return abiType.replace(arrayPattern, "");
}
function fixedArrayToStaticAbiType(abiType) {
return abiType.replace(fixedArrayPattern, "");
}
function fixedArrayToArray(abiType) {
return abiType.replace(fixedArrayPattern, "[]");
}
// src/typescript/dynamicAbiTypes.ts
var dynamicAbiTypeToDefaultValue = {
"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 isDynamicAbiType(abiType) {
return dynamicAbiTypes.includes(abiType);
}
// src/typescript/schemaAbiTypeToDefaultValue.ts
var schemaAbiTypeToDefaultValue = {
...staticAbiTypeToDefaultValue,
...dynamicAbiTypeToDefaultValue
};
export {
arrayToStaticAbiType,
dynamicAbiTypeToDefaultValue,
dynamicAbiTypes,
fixedArrayToArray,
fixedArrayToStaticAbiType,
isArrayAbiType,
isDynamicAbiType,
isFixedArrayAbiType,
isSchemaAbiType,
isStaticAbiType,
schemaAbiTypeToDefaultValue,
schemaAbiTypes,
staticAbiTypeToByteLength,
staticAbiTypeToDefaultValue,
staticAbiTypes
};
//# sourceMappingURL=internal.js.map
{
"name": "@latticexyz/schema-type",
"version": "2.2.18-90aac1d4acce19ac592d47a090732dd11c1c3e7a",
"version": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2",
"description": "SchemaType enum for various languages",

@@ -13,5 +13,32 @@ "repository": {

"exports": {
".": "./dist/index.js",
"./internal": "./dist/internal.js",
"./deprecated": "./dist/deprecated.js"
".": {
"import": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"require": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.cts"
}
},
"./internal": {
"import": {
"import": "./dist/internal.js",
"types": "./dist/internal.d.ts"
},
"require": {
"require": "./dist/internal.cjs",
"types": "./dist/internal.d.cts"
}
},
"./deprecated": {
"import": {
"import": "./dist/deprecated.js",
"types": "./dist/deprecated.d.ts"
},
"require": {
"require": "./dist/deprecated.cjs",
"types": "./dist/deprecated.d.cts"
}
}
},

@@ -43,4 +70,3 @@ "typesVersions": {

"viem": "2.21.19",
"vitest": "0.34.6",
"@latticexyz/gas-report": "2.2.18-90aac1d4acce19ac592d47a090732dd11c1c3e7a"
"@latticexyz/gas-report": "2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2"
},

@@ -57,5 +83,5 @@ "peerDependencies": {

"gas-report": "gas-report --save gas-report.json",
"test": "vitest typecheck --run && vitest --run && forge test",
"test": "vitest --run && forge test",
"test:ci": "pnpm run test"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc