@railgun-community/shared-models 7.6.0 → 7.6.2

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.
@@ -1,4 +1,4 @@
1
- /// <reference types="../types/global" />
1
+ import type { Optional } from '../types/global';
2
2
  export type Artifact = {
3
3
  zkey: ArrayLike<number>;
4
4
  wasm: Optional<ArrayLike<number>>;
@@ -1 +1 @@
1
- {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../src/models/artifact.ts"],"names":[],"mappings":";;;AAOA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,2BAAW,CAAA;AACb,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB","sourcesContent":["export type Artifact = {\n zkey: ArrayLike<number>;\n wasm: Optional<ArrayLike<number>>;\n dat: Optional<ArrayLike<number>>;\n vkey: object;\n};\n\nexport enum ArtifactName {\n ZKEY = 'zkey',\n WASM = 'wasm',\n VKEY = 'vkey',\n DAT = 'dat',\n}\n\nexport type ArtifactMapping = {\n [name in ArtifactName]: string;\n};\n\nexport type ArtifactDownloadedGroup = {\n [name in ArtifactName]: boolean;\n};\n"]}
1
+ {"version":3,"file":"artifact.js","sourceRoot":"","sources":["../../src/models/artifact.ts"],"names":[],"mappings":";;;AASA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,2BAAW,CAAA;AACb,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB","sourcesContent":["import type { Optional } from '../types/global';\n\nexport type Artifact = {\n zkey: ArrayLike<number>;\n wasm: Optional<ArrayLike<number>>;\n dat: Optional<ArrayLike<number>>;\n vkey: object;\n};\n\nexport enum ArtifactName {\n ZKEY = 'zkey',\n WASM = 'wasm',\n VKEY = 'vkey',\n DAT = 'dat',\n}\n\nexport type ArtifactMapping = {\n [name in ArtifactName]: string;\n};\n\nexport type ArtifactDownloadedGroup = {\n [name in ArtifactName]: boolean;\n};\n"]}
@@ -171,6 +171,7 @@ exports.OFAC_SANCTIONS_LIST_ADDRESSES = [
171
171
  '0x0931cA4D13BB4ba75D9B7132AB690265D749a5E7',
172
172
  '0x1999EF52700c34De7EC2b68a28aAFB37db0C5ade',
173
173
  '0x3051Ca7cB7f6C599fA2f27385AD75010cf0f2bbF',
174
- '0x002471b8A185f9980708d0eAEC5B289714F56f8d'
174
+ '0x002471b8A185f9980708d0eAEC5B289714F56f8d',
175
+ '0xd5ED34b52AC4ab84d8FA8A231a3218bbF01Ed510'
175
176
  ].map(address => address.toLowerCase());
176
177
  //# sourceMappingURL=blocked-address.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"blocked-address.js","sourceRoot":"","sources":["../../src/models/blocked-address.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GAAG;IAC3C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4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AA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;CAC7C,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC","sourcesContent":["export const OFAC_SANCTIONS_LIST_ADDRESSES = [\n '0x01e2919679362dFBC9ee1644Ba9C6da6D6245BB1',\n '0x03893a7c7463AE47D46bc7f091665f1893656003',\n '0x04DBA1194ee10112fE6C3207C0687DEf0e78baCf',\n '0x05E0b5B40B7b66098C2161A5EE11C5740A3A7C45',\n '0x07687e702b410Fa43f4cB4Af7FA097918ffD2730',\n '0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f',\n '0x08723392Ed15743cc38513C4925f5e6be5c17243',\n '0x08b2eFdcdB8822EfE5ad0Eae55517cf5DC544251',\n '0x09193888b3f38C82dEdfda55259A82C0E7De875E',\n '0x098B716B8Aaf21512996dC57EB0615e2383E2f96',\n '0x0E3A09dDA6B20aFbB34aC7cD4A6881493f3E7bf7',\n '0x0Ee5067b06776A89CcC7dC8Ee369984AD7Db5e06',\n '0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc',\n '0x1356c899D8C9467C7f71C195612F8A395aBf2f0a',\n '0x169AD27A470D064DEDE56a2D3ff727986b15D52B',\n '0x178169B423a011fff22B9e3F3abeA13414dDD0F1',\n '0x179f48C78f57A3A78f0608cC9197B8972921d1D2',\n '0x1967D8Af5Bd86A497fb3DD7899A020e47560dAAF',\n '0x19Aa5Fe80D33a56D56c78e82eA5E50E5d80b4Dff',\n '0x1da5821544e25c636c1417Ba96Ade4Cf6D2f9B5A',\n '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',\n '0x22aaA7720ddd5388A3c0A3333430953C68f1849b',\n '0x23173fE8b96A4Ad8d2E17fB83EA5dcccdCa1Ae52',\n '0x23773E65ed146A459791799d01336DB287f25334',\n '0x242654336ca2205714071898f67E254EB49ACdCe',\n '0x2573BAc39EBe2901B4389CD468F2872cF7767FAF',\n '0x26903a5a198D571422b2b4EA08b56a37cbD68c89',\n '0x2717c5e28cf931547B621a5dddb772Ab6A35B701',\n '0x2f389cE8bD8ff92De3402FFCe4691d17fC4f6535',\n '0x2F50508a8a3D323B91336FA3eA6ae50E55f32185',\n '0x2FC93484614a34f26F7970CBB94615bA109BB4bf',\n '0x308eD4B7b49797e1A98D3818bFF6fe5385410370',\n '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',\n '0x35fB6f6DB4fb05e6A4cE86f2C93691425626d4b1',\n '0x38735f03b30FbC022DdD06ABED01F0Ca823C6a94',\n '0x39D908dac893CBCB53Cc86e0ECc369aA4DeF1A29',\n '0x3aac1cC67c2ec5Db4eA850957b967Ba153aD6279',\n '0x3AD9dB589d201A710Ed237c829c7860Ba86510Fc',\n '0x3CBdeD43EFdAf0FC77b9C55F6fC9988fCC9b757d',\n '0x3Cffd56B47B7b41c56258D9C7731ABaDc360E073',\n '0x3e37627dEAA754090fBFbb8bd226c1CE66D255e9',\n '0x3eFA30704D2b8BBAc821307230376556cF8CC39e',\n '0x407CcEeaA7c95d2FE2250Bf9F2c105aA7AAFB512',\n '0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D',\n '0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936',\n '0x48549A34AE37b12F6a30566245176994e17C6b4A',\n '0x4F47Bc496083C727c5fbe3CE9CDf2B0f6496270c',\n '0x502371699497d08D5339c870851898D6D72521Dd',\n '0x527653eA119F3E6a1F5BD18fbF4714081D7B31ce',\n '0x538Ab61E8A9fc1b2f93b3dd9011d662d89bE6FE6',\n '0x53b6936513e738f44FB50d2b9476730C0Ab3Bfc1',\n '0x5512d943eD1f7c8a43F3435C85F7aB68b30121b0',\n '0x57b2B8c82F065de8Ef5573f9730fC1449B403C9f',\n '0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2',\n '0x5A14E72060c11313E38738009254a90968F58f51',\n '0x5cab7692D4E94096462119ab7bF57319726Eed2A',\n '0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce',\n '0x5f6c97C6AD7bdd0AE7E0Dd4ca33A4ED3fDabD4D7',\n '0x610B717796ad172B316836AC95a2ffad065CeaB4',\n '0x653477c392c16b0765603074f157314Cc4f40c32',\n '0x67d40EE1A85bf4a4Bb7Ffae16De985e8427B6b45',\n '0x6aCDFBA02D390b97Ac2b2d42A63E85293BCc160e',\n '0x6Bf694a291DF3FeC1f7e69701E3ab6c592435Ae7',\n '0x6F1cA141A28907F78Ebaa64fb83A9088b02A8352',\n '0x722122dF12D4e14e13Ac3b6895a86e84145b6967',\n '0x723B78e67497E85279CB204544566F4dC5d2acA0',\n '0x72a5843cc08275C8171E582972Aa4fDa8C397B2A',\n '0x743494b60097A2230018079c02fe21a7B687EAA5',\n '0x746Aebc06D2aE31B71ac51429A19D54E797878E9',\n '0x756C4628E57F7e7f8a459EC2752968360Cf4D1AA',\n '0x76D85B4C0Fc497EeCc38902397aC608000A06607',\n '0x776198CCF446DFa168347089d7338879273172cF',\n '0x77777FeDdddFfC19Ff86DB637967013e6C6A116C',\n '0x7Db418b5D567A4e0E8c59Ad71BE1FcE48f3E6107',\n '0x7F19720A857F834887FC9A7bC0a0fBe7Fc7f8102',\n '0x7F367cC41522cE07553e823bf3be79A889DEbe1B',\n '0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9',\n '0x8281Aa6795aDE17C8973e1aedcA380258Bc124F9',\n '0x833481186f16Cece3f1Eeea1a694c42034c3a0dB',\n '0x83E5bC4Ffa856BB84Bb88581f5Dd62A433A25e0D',\n '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',\n '0x8576aCC5C05D6Ce88f4e49bf65BdF0C62F91353C',\n '0x8589427373D6D84E98730D7795D8f6f8731FDA16',\n '0x88fd245fEdeC4A936e700f9173454D1931B4C307',\n '0x901bb9583b24D97e995513C6778dc6888AB6870e',\n '0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF',\n '0x94A1B5CdB22c43faab4AbEb5c74999895464Ddaf',\n '0x94Be88213a387E992Dd87DE56950a9aef34b9448',\n '0x94C92F096437ab9958fC0A37F09348f30389Ae79',\n '0x97B1043ABD9E6FC31681635166d430a458D14F9C',\n '0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E',\n '0x9F4cda013E354b8fC285BF4b9A60460cEe7f7Ea9',\n '0xa0e1c89Ef1a489c9C7dE96311eD5Ce5D32c20E4B',\n '0xA160cdAB225685dA1d56aa342Ad8841c3b53f291',\n '0xa5C2254e4253490C54cef0a4347fddb8f75A4998',\n '0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D',\n '0xA7e5d5A720f06526557c513402f2e6B5fA20b008',\n '0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6',\n '0xaf4c0B70B2Ea9FB7487C7CbB37aDa259579fe040',\n '0xaf8d1839c3c67cf571aa74B5c12398d4901147B3',\n '0xb04E030140b30C27bcdfaafFFA98C57d80eDa7B4',\n '0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00',\n '0xB20c66C4DE72433F3cE747b58B86830c459CA911',\n '0xb541fc07bC7619fD4062A54d96268525cBC6FfEF',\n '0xb6f5ec1A0a9cd1526536D3F0426c429529471F40',\n '0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659',\n '0xbB93e510BbCD0B7beb5A853875f9eC60275CF498',\n '0xc2a3829F459B3Edd87791c74cD45402BA0a20Be3',\n '0xC455f7fd3e0e12afd51fba5c106909934D8A0e4a',\n '0xCa0840578f57fE71599D29375e16783424023357',\n '0xCC84179FFD19A1627E79F8648d09e095252Bc418',\n '0xCEe71753C9820f063b38FDbE4cFDAf1d3D928A80',\n '0xD0975B32cEa532eaDDdFC9c60481976e39dB3472',\n '0xD21be7248e0197Ee08E0c20D4a96DEBdaC3D20Af',\n '0xd47438C816c9E7f2E2888E060936a499Af9582b3',\n '0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3',\n '0xD5d6f8D9e784d0e26222ad3834500801a68D027D',\n '0xD691F27f38B395864Ea86CfC7253969B409c362d',\n '0xD692Fd2D0b2Fbd2e52CFa5B5b9424bC981C30696',\n '0xD82ed8786D7c69DC7e052F7A542AB047971E73d2',\n '0xd882cFc20F52f2599D84b8e8D58C7FB62cfE344b',\n '0xd8D7DE3349ccaA0Fde6298fe6D7b7d0d34586193',\n '0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b',\n '0xd96f2B1c14Db8458374d9Aca76E26c3D18364307',\n '0xDD4c48C0B24039969fC16D1cdF626eaB821d3384',\n '0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178',\n '0xDF3A408c53E5078af6e8fb2A85088D46Ee09A61b',\n '0xe7aa314c77F4233C18C6CC84384A9247c0cf367B',\n '0xeDC5d01286f99A066559F60a585406f3878a033e',\n '0xEFE301d259F525cA1ba74A7977b80D5b060B3ccA',\n '0xf4B067dD14e95Bab89Be928c07Cb22E3c94E0DAA',\n '0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A',\n '0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a',\n '0xF7B31119c2682c88d88D455dBb9d5932c65Cf1bE',\n '0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144',\n '0xfEC8A60023265364D066a1212fDE3930F6Ae8da7',\n '0xffbaC21a641Dcfe4552920138D90F3638B3c9fba',\n '0x905b63Fff465B9fFBF41DeA908CEb12478ec7601',\n '0x433830Bf9f152C4bfD444aFC684450Fd9F33494f',\n '0x96Ad914cBA965130B19610f9cF0AC405c2b6661C',\n '0xDc450aa52D6B3918d3f6f89a13F3F2f28871479E',\n '0xc5873E3ed3bA425acD18dcc6b4Af99A02897363E',\n '0x6baD91120e2171950A7d9a70c15e816cf48cE0de',\n '0x5d4163fAF150D2Ba76F5D15B18cE841169AcDaC1',\n '0x818FaAbD112FE24cC5d8B56A2B8dd0E1f370f330',\n '0xa108dfde99962808a7eD5C92439ec330717170ac',\n '0x1482CDf06702CA71eb8908ae699f0B36A2b16f2f',\n '0xdcbEfFBECcE100cCE9E4b153C4e15cB885643193',\n '0x5f48C2A71B2CC96e3F0CCae4E39318Ff0dc375b2',\n '0x5A7a51bFb49F190e5A6060a5bc6052Ac14a3b59f',\n '0xeD6e0A7e4Ac94D976eeBfB82ccf777A3c6baD921',\n '0x797d7Ae72EbddCDea2a346c1834E04d1F8dF102b',\n '0x931546D9e66836AbF687d2bc64B30407bAc8C568',\n '0x43fa21d92141BA9db43052492E0DeEE5aa5f0A93',\n '0x6Be0aE71e6c41f2f9D0D1A3B8d0f75E6f6A0b46e',\n '0x9C2Bc757B66F24D60F016B6237F8CdD414a879Fa',\n '0x961C5Be54a2ffC17CF4Cb021d863c42daCd47Fc1',\n '0x530A64c0Ce595026a4A556b703644228179E2d57',\n '0xFAC583C0cF07Ea434052c49115a4682172aB6b4F',\n '0x983a81ca6FB1e441266D2FbcB7D8E530AC2E05A2',\n '0xf3701F445b6BDaFeDbcA97D1e477357839e4120D',\n '0xE950DC316b836e4EeFb8308bf32Bf7C72a1358FF',\n '0x21B8d56BDA776bbE68655A16895afd96F5534feD',\n '0x175d44451403Edf28469dF03A9280c1197ADb92c',\n '0x19F8f2B0915Daa12a3f5C9CF01dF9E24D53794F7',\n '0xE1D865c3D669dCc8c57c8D023140CB204e672ee4',\n '0x0931cA4D13BB4ba75D9B7132AB690265D749a5E7',\n '0x1999EF52700c34De7EC2b68a28aAFB37db0C5ade',\n '0x3051Ca7cB7f6C599fA2f27385AD75010cf0f2bbF',\n '0x002471b8A185f9980708d0eAEC5B289714F56f8d'\n].map(address => address.toLowerCase());"]}
1
+ {"version":3,"file":"blocked-address.js","sourceRoot":"","sources":["../../src/models/blocked-address.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GAAG;IAC3C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CA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4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;IAC5C,4CAA4C;CAC7C,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC","sourcesContent":["export const OFAC_SANCTIONS_LIST_ADDRESSES = [\n '0x01e2919679362dFBC9ee1644Ba9C6da6D6245BB1',\n '0x03893a7c7463AE47D46bc7f091665f1893656003',\n '0x04DBA1194ee10112fE6C3207C0687DEf0e78baCf',\n '0x05E0b5B40B7b66098C2161A5EE11C5740A3A7C45',\n '0x07687e702b410Fa43f4cB4Af7FA097918ffD2730',\n '0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f',\n '0x08723392Ed15743cc38513C4925f5e6be5c17243',\n '0x08b2eFdcdB8822EfE5ad0Eae55517cf5DC544251',\n '0x09193888b3f38C82dEdfda55259A82C0E7De875E',\n '0x098B716B8Aaf21512996dC57EB0615e2383E2f96',\n '0x0E3A09dDA6B20aFbB34aC7cD4A6881493f3E7bf7',\n '0x0Ee5067b06776A89CcC7dC8Ee369984AD7Db5e06',\n '0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc',\n '0x1356c899D8C9467C7f71C195612F8A395aBf2f0a',\n '0x169AD27A470D064DEDE56a2D3ff727986b15D52B',\n '0x178169B423a011fff22B9e3F3abeA13414dDD0F1',\n '0x179f48C78f57A3A78f0608cC9197B8972921d1D2',\n '0x1967D8Af5Bd86A497fb3DD7899A020e47560dAAF',\n '0x19Aa5Fe80D33a56D56c78e82eA5E50E5d80b4Dff',\n '0x1da5821544e25c636c1417Ba96Ade4Cf6D2f9B5A',\n '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',\n '0x22aaA7720ddd5388A3c0A3333430953C68f1849b',\n '0x23173fE8b96A4Ad8d2E17fB83EA5dcccdCa1Ae52',\n '0x23773E65ed146A459791799d01336DB287f25334',\n '0x242654336ca2205714071898f67E254EB49ACdCe',\n '0x2573BAc39EBe2901B4389CD468F2872cF7767FAF',\n '0x26903a5a198D571422b2b4EA08b56a37cbD68c89',\n '0x2717c5e28cf931547B621a5dddb772Ab6A35B701',\n '0x2f389cE8bD8ff92De3402FFCe4691d17fC4f6535',\n '0x2F50508a8a3D323B91336FA3eA6ae50E55f32185',\n '0x2FC93484614a34f26F7970CBB94615bA109BB4bf',\n '0x308eD4B7b49797e1A98D3818bFF6fe5385410370',\n '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',\n '0x35fB6f6DB4fb05e6A4cE86f2C93691425626d4b1',\n '0x38735f03b30FbC022DdD06ABED01F0Ca823C6a94',\n '0x39D908dac893CBCB53Cc86e0ECc369aA4DeF1A29',\n '0x3aac1cC67c2ec5Db4eA850957b967Ba153aD6279',\n '0x3AD9dB589d201A710Ed237c829c7860Ba86510Fc',\n '0x3CBdeD43EFdAf0FC77b9C55F6fC9988fCC9b757d',\n '0x3Cffd56B47B7b41c56258D9C7731ABaDc360E073',\n '0x3e37627dEAA754090fBFbb8bd226c1CE66D255e9',\n '0x3eFA30704D2b8BBAc821307230376556cF8CC39e',\n '0x407CcEeaA7c95d2FE2250Bf9F2c105aA7AAFB512',\n '0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D',\n '0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936',\n '0x48549A34AE37b12F6a30566245176994e17C6b4A',\n '0x4F47Bc496083C727c5fbe3CE9CDf2B0f6496270c',\n '0x502371699497d08D5339c870851898D6D72521Dd',\n '0x527653eA119F3E6a1F5BD18fbF4714081D7B31ce',\n '0x538Ab61E8A9fc1b2f93b3dd9011d662d89bE6FE6',\n '0x53b6936513e738f44FB50d2b9476730C0Ab3Bfc1',\n '0x5512d943eD1f7c8a43F3435C85F7aB68b30121b0',\n '0x57b2B8c82F065de8Ef5573f9730fC1449B403C9f',\n '0x58E8dCC13BE9780fC42E8723D8EaD4CF46943dF2',\n '0x5A14E72060c11313E38738009254a90968F58f51',\n '0x5cab7692D4E94096462119ab7bF57319726Eed2A',\n '0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce',\n '0x5f6c97C6AD7bdd0AE7E0Dd4ca33A4ED3fDabD4D7',\n '0x610B717796ad172B316836AC95a2ffad065CeaB4',\n '0x653477c392c16b0765603074f157314Cc4f40c32',\n '0x67d40EE1A85bf4a4Bb7Ffae16De985e8427B6b45',\n '0x6aCDFBA02D390b97Ac2b2d42A63E85293BCc160e',\n '0x6Bf694a291DF3FeC1f7e69701E3ab6c592435Ae7',\n '0x6F1cA141A28907F78Ebaa64fb83A9088b02A8352',\n '0x722122dF12D4e14e13Ac3b6895a86e84145b6967',\n '0x723B78e67497E85279CB204544566F4dC5d2acA0',\n '0x72a5843cc08275C8171E582972Aa4fDa8C397B2A',\n '0x743494b60097A2230018079c02fe21a7B687EAA5',\n '0x746Aebc06D2aE31B71ac51429A19D54E797878E9',\n '0x756C4628E57F7e7f8a459EC2752968360Cf4D1AA',\n '0x76D85B4C0Fc497EeCc38902397aC608000A06607',\n '0x776198CCF446DFa168347089d7338879273172cF',\n '0x77777FeDdddFfC19Ff86DB637967013e6C6A116C',\n '0x7Db418b5D567A4e0E8c59Ad71BE1FcE48f3E6107',\n '0x7F19720A857F834887FC9A7bC0a0fBe7Fc7f8102',\n '0x7F367cC41522cE07553e823bf3be79A889DEbe1B',\n '0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9',\n '0x8281Aa6795aDE17C8973e1aedcA380258Bc124F9',\n '0x833481186f16Cece3f1Eeea1a694c42034c3a0dB',\n '0x83E5bC4Ffa856BB84Bb88581f5Dd62A433A25e0D',\n '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',\n '0x8576aCC5C05D6Ce88f4e49bf65BdF0C62F91353C',\n '0x8589427373D6D84E98730D7795D8f6f8731FDA16',\n '0x88fd245fEdeC4A936e700f9173454D1931B4C307',\n '0x901bb9583b24D97e995513C6778dc6888AB6870e',\n '0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF',\n '0x94A1B5CdB22c43faab4AbEb5c74999895464Ddaf',\n '0x94Be88213a387E992Dd87DE56950a9aef34b9448',\n '0x94C92F096437ab9958fC0A37F09348f30389Ae79',\n '0x97B1043ABD9E6FC31681635166d430a458D14F9C',\n '0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E',\n '0x9F4cda013E354b8fC285BF4b9A60460cEe7f7Ea9',\n '0xa0e1c89Ef1a489c9C7dE96311eD5Ce5D32c20E4B',\n '0xA160cdAB225685dA1d56aa342Ad8841c3b53f291',\n '0xa5C2254e4253490C54cef0a4347fddb8f75A4998',\n '0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D',\n '0xA7e5d5A720f06526557c513402f2e6B5fA20b008',\n '0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6',\n '0xaf4c0B70B2Ea9FB7487C7CbB37aDa259579fe040',\n '0xaf8d1839c3c67cf571aa74B5c12398d4901147B3',\n '0xb04E030140b30C27bcdfaafFFA98C57d80eDa7B4',\n '0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00',\n '0xB20c66C4DE72433F3cE747b58B86830c459CA911',\n '0xb541fc07bC7619fD4062A54d96268525cBC6FfEF',\n '0xb6f5ec1A0a9cd1526536D3F0426c429529471F40',\n '0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659',\n '0xbB93e510BbCD0B7beb5A853875f9eC60275CF498',\n '0xc2a3829F459B3Edd87791c74cD45402BA0a20Be3',\n '0xC455f7fd3e0e12afd51fba5c106909934D8A0e4a',\n '0xCa0840578f57fE71599D29375e16783424023357',\n '0xCC84179FFD19A1627E79F8648d09e095252Bc418',\n '0xCEe71753C9820f063b38FDbE4cFDAf1d3D928A80',\n '0xD0975B32cEa532eaDDdFC9c60481976e39dB3472',\n '0xD21be7248e0197Ee08E0c20D4a96DEBdaC3D20Af',\n '0xd47438C816c9E7f2E2888E060936a499Af9582b3',\n '0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3',\n '0xD5d6f8D9e784d0e26222ad3834500801a68D027D',\n '0xD691F27f38B395864Ea86CfC7253969B409c362d',\n '0xD692Fd2D0b2Fbd2e52CFa5B5b9424bC981C30696',\n '0xD82ed8786D7c69DC7e052F7A542AB047971E73d2',\n '0xd882cFc20F52f2599D84b8e8D58C7FB62cfE344b',\n '0xd8D7DE3349ccaA0Fde6298fe6D7b7d0d34586193',\n '0xd90e2f925DA726b50C4Ed8D0Fb90Ad053324F31b',\n '0xd96f2B1c14Db8458374d9Aca76E26c3D18364307',\n '0xDD4c48C0B24039969fC16D1cdF626eaB821d3384',\n '0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178',\n '0xDF3A408c53E5078af6e8fb2A85088D46Ee09A61b',\n '0xe7aa314c77F4233C18C6CC84384A9247c0cf367B',\n '0xeDC5d01286f99A066559F60a585406f3878a033e',\n '0xEFE301d259F525cA1ba74A7977b80D5b060B3ccA',\n '0xf4B067dD14e95Bab89Be928c07Cb22E3c94E0DAA',\n '0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A',\n '0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a',\n '0xF7B31119c2682c88d88D455dBb9d5932c65Cf1bE',\n '0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144',\n '0xfEC8A60023265364D066a1212fDE3930F6Ae8da7',\n '0xffbaC21a641Dcfe4552920138D90F3638B3c9fba',\n '0x905b63Fff465B9fFBF41DeA908CEb12478ec7601',\n '0x433830Bf9f152C4bfD444aFC684450Fd9F33494f',\n '0x96Ad914cBA965130B19610f9cF0AC405c2b6661C',\n '0xDc450aa52D6B3918d3f6f89a13F3F2f28871479E',\n '0xc5873E3ed3bA425acD18dcc6b4Af99A02897363E',\n '0x6baD91120e2171950A7d9a70c15e816cf48cE0de',\n '0x5d4163fAF150D2Ba76F5D15B18cE841169AcDaC1',\n '0x818FaAbD112FE24cC5d8B56A2B8dd0E1f370f330',\n '0xa108dfde99962808a7eD5C92439ec330717170ac',\n '0x1482CDf06702CA71eb8908ae699f0B36A2b16f2f',\n '0xdcbEfFBECcE100cCE9E4b153C4e15cB885643193',\n '0x5f48C2A71B2CC96e3F0CCae4E39318Ff0dc375b2',\n '0x5A7a51bFb49F190e5A6060a5bc6052Ac14a3b59f',\n '0xeD6e0A7e4Ac94D976eeBfB82ccf777A3c6baD921',\n '0x797d7Ae72EbddCDea2a346c1834E04d1F8dF102b',\n '0x931546D9e66836AbF687d2bc64B30407bAc8C568',\n '0x43fa21d92141BA9db43052492E0DeEE5aa5f0A93',\n '0x6Be0aE71e6c41f2f9D0D1A3B8d0f75E6f6A0b46e',\n '0x9C2Bc757B66F24D60F016B6237F8CdD414a879Fa',\n '0x961C5Be54a2ffC17CF4Cb021d863c42daCd47Fc1',\n '0x530A64c0Ce595026a4A556b703644228179E2d57',\n '0xFAC583C0cF07Ea434052c49115a4682172aB6b4F',\n '0x983a81ca6FB1e441266D2FbcB7D8E530AC2E05A2',\n '0xf3701F445b6BDaFeDbcA97D1e477357839e4120D',\n '0xE950DC316b836e4EeFb8308bf32Bf7C72a1358FF',\n '0x21B8d56BDA776bbE68655A16895afd96F5534feD',\n '0x175d44451403Edf28469dF03A9280c1197ADb92c',\n '0x19F8f2B0915Daa12a3f5C9CF01dF9E24D53794F7',\n '0xE1D865c3D669dCc8c57c8D023140CB204e672ee4',\n '0x0931cA4D13BB4ba75D9B7132AB690265D749a5E7',\n '0x1999EF52700c34De7EC2b68a28aAFB37db0C5ade',\n '0x3051Ca7cB7f6C599fA2f27385AD75010cf0f2bbF',\n '0x002471b8A185f9980708d0eAEC5B289714F56f8d',\n '0xd5ED34b52AC4ab84d8FA8A231a3218bbF01Ed510'\n].map(address => address.toLowerCase());"]}
@@ -1,6 +1,6 @@
1
- /// <reference types="../types/global" />
2
1
  import { TXIDVersion } from './engine';
3
2
  import { ChainType, CommitmentCiphertextV2, CommitmentCiphertextV3, PreTransactionPOIsPerTxidLeafPerList } from './response-types';
3
+ import type { MapType, Optional } from '../types/global';
4
4
  export declare const MIN_BROADCASTER_RELIABILITY_SCORE = 0.75;
5
5
  export type BroadcasterFeeMessageData = {
6
6
  fees: MapType<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"broadcaster.js","sourceRoot":"","sources":["../../src/models/broadcaster.ts"],"names":[],"mappings":";;;AAQa,QAAA,iCAAiC,GAAG,IAAI,CAAC;AA6EtD,IAAY,2BAMX;AAND,WAAY,2BAA2B;IACrC,8CAAe,CAAA;IACf,sDAAuB,CAAA;IACvB,sDAAuB,CAAA;IACvB,4DAA6B,CAAA;IAC7B,gEAAiC,CAAA;AACnC,CAAC,EANW,2BAA2B,2CAA3B,2BAA2B,QAMtC","sourcesContent":["import { TXIDVersion } from './engine';\nimport {\n ChainType,\n CommitmentCiphertextV2,\n CommitmentCiphertextV3,\n PreTransactionPOIsPerTxidLeafPerList,\n} from './response-types';\n\nexport const MIN_BROADCASTER_RELIABILITY_SCORE = 0.75;\n\nexport type BroadcasterFeeMessageData = {\n fees: MapType<string>;\n feeExpiration: number;\n feesID: string;\n railgunAddress: string;\n identifier: Optional<string>;\n availableWallets: number;\n version: string;\n relayAdapt: string;\n requiredPOIListKeys: string[];\n reliability: number;\n};\n\nexport type BroadcasterFeeMessage = {\n data: string; // hex-encoded FeeMessageData\n signature: string; // hex-encoded signature\n};\n\ntype EncryptedData = [string, string];\n\nexport type BroadcasterEncryptedMethodParams = {\n pubkey: string;\n encryptedData: EncryptedData;\n};\n\ntype BroadcasterRawParamsShared = {\n txidVersion: TXIDVersion;\n chainID: number;\n chainType: ChainType;\n feesID: string;\n broadcasterViewingKey: string;\n devLog: boolean;\n minVersion: string;\n maxVersion: string;\n};\n\nexport type BroadcasterRawParamsTransact = BroadcasterRawParamsShared & {\n to: string;\n data: string;\n minGasPrice: string;\n useRelayAdapt: boolean;\n preTransactionPOIsPerTxidLeafPerList: PreTransactionPOIsPerTxidLeafPerList;\n};\n\nexport type BroadcasterRawParamsPreAuthorize = BroadcasterRawParamsShared & {\n gasLimit: string;\n commitmentCiphertext: CommitmentCiphertextV2 | CommitmentCiphertextV3;\n commitmentHash: string;\n};\n\nexport type BroadcasterPreAuthorization = {\n gasLimit: string;\n commitmentHash: string;\n expiration: number;\n};\n\nexport type BroadcasterSignedPreAuthorization = BroadcasterPreAuthorization & {\n signature: string;\n};\n\nexport type CachedTokenFee = {\n feePerUnitGas: string;\n expiration: number;\n feesID: string;\n availableWallets: number;\n relayAdapt: string;\n reliability: number;\n};\n\nexport type SelectedBroadcaster = {\n railgunAddress: string;\n tokenAddress: string;\n tokenFee: CachedTokenFee;\n};\n\nexport enum BroadcasterConnectionStatus {\n Error = 'Error',\n Searching = 'Searching',\n Connected = 'Connected',\n Disconnected = 'Disconnected',\n AllUnavailable = 'AllUnavailable',\n}\n"]}
1
+ {"version":3,"file":"broadcaster.js","sourceRoot":"","sources":["../../src/models/broadcaster.ts"],"names":[],"mappings":";;;AASa,QAAA,iCAAiC,GAAG,IAAI,CAAC;AA6EtD,IAAY,2BAMX;AAND,WAAY,2BAA2B;IACrC,8CAAe,CAAA;IACf,sDAAuB,CAAA;IACvB,sDAAuB,CAAA;IACvB,4DAA6B,CAAA;IAC7B,gEAAiC,CAAA;AACnC,CAAC,EANW,2BAA2B,2CAA3B,2BAA2B,QAMtC","sourcesContent":["import { TXIDVersion } from './engine';\nimport {\n ChainType,\n CommitmentCiphertextV2,\n CommitmentCiphertextV3,\n PreTransactionPOIsPerTxidLeafPerList,\n} from './response-types';\nimport type { MapType, Optional } from '../types/global';\n\nexport const MIN_BROADCASTER_RELIABILITY_SCORE = 0.75;\n\nexport type BroadcasterFeeMessageData = {\n fees: MapType<string>;\n feeExpiration: number;\n feesID: string;\n railgunAddress: string;\n identifier: Optional<string>;\n availableWallets: number;\n version: string;\n relayAdapt: string;\n requiredPOIListKeys: string[];\n reliability: number;\n};\n\nexport type BroadcasterFeeMessage = {\n data: string; // hex-encoded FeeMessageData\n signature: string; // hex-encoded signature\n};\n\ntype EncryptedData = [string, string];\n\nexport type BroadcasterEncryptedMethodParams = {\n pubkey: string;\n encryptedData: EncryptedData;\n};\n\ntype BroadcasterRawParamsShared = {\n txidVersion: TXIDVersion;\n chainID: number;\n chainType: ChainType;\n feesID: string;\n broadcasterViewingKey: string;\n devLog: boolean;\n minVersion: string;\n maxVersion: string;\n};\n\nexport type BroadcasterRawParamsTransact = BroadcasterRawParamsShared & {\n to: string;\n data: string;\n minGasPrice: string;\n useRelayAdapt: boolean;\n preTransactionPOIsPerTxidLeafPerList: PreTransactionPOIsPerTxidLeafPerList;\n};\n\nexport type BroadcasterRawParamsPreAuthorize = BroadcasterRawParamsShared & {\n gasLimit: string;\n commitmentCiphertext: CommitmentCiphertextV2 | CommitmentCiphertextV3;\n commitmentHash: string;\n};\n\nexport type BroadcasterPreAuthorization = {\n gasLimit: string;\n commitmentHash: string;\n expiration: number;\n};\n\nexport type BroadcasterSignedPreAuthorization = BroadcasterPreAuthorization & {\n signature: string;\n};\n\nexport type CachedTokenFee = {\n feePerUnitGas: string;\n expiration: number;\n feesID: string;\n availableWallets: number;\n relayAdapt: string;\n reliability: number;\n};\n\nexport type SelectedBroadcaster = {\n railgunAddress: string;\n tokenAddress: string;\n tokenFee: CachedTokenFee;\n};\n\nexport enum BroadcasterConnectionStatus {\n Error = 'Error',\n Searching = 'Searching',\n Connected = 'Connected',\n Disconnected = 'Disconnected',\n AllUnavailable = 'AllUnavailable',\n}\n"]}
@@ -1,3 +1,3 @@
1
- /// <reference types="../types/global" />
2
1
  import { Chain } from './response-types';
2
+ import type { Optional } from '../types/global';
3
3
  export type RailgunBalanceRefreshTrigger = (chain: Chain, railgunWalletIdFilter: Optional<string[]>) => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"function-types.js","sourceRoot":"","sources":["../../src/models/function-types.ts"],"names":[],"mappings":"","sourcesContent":["import { Chain } from './response-types';\n\nexport type RailgunBalanceRefreshTrigger = (\n chain: Chain,\n railgunWalletIdFilter: Optional<string[]>,\n) => Promise<void>;\n"]}
1
+ {"version":3,"file":"function-types.js","sourceRoot":"","sources":["../../src/models/function-types.ts"],"names":[],"mappings":"","sourcesContent":["import { Chain } from './response-types';\nimport type { Optional } from '../types/global';\n\nexport type RailgunBalanceRefreshTrigger = (\n chain: Chain,\n railgunWalletIdFilter: Optional<string[]>,\n) => Promise<void>;\n"]}
@@ -1,5 +1,5 @@
1
- /// <reference types="../types/global" />
2
1
  import { Chain, EVMGasType } from './response-types';
2
+ import type { Optional } from '../types/global';
3
3
  /**
4
4
  * DO NOT CHANGE THESE ENUM STRINGS.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"network-config.js","sourceRoot":"","sources":["../../src/models/network-config.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAEhE;;GAEG;AACH,IAAY,WAmBX;AAnBD,WAAY,WAAW;IACrB,WAAW;IACX,oCAAqB,CAAA;IACrB,qCAAsB,CAAA;IACtB,kCAAmB,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AC7B,eAAe,EAAE,SAAS;QAC1B,WAAW,EAAE,EAAE;QACf,SAAS,EAAE;YACT,MAAM,EAAE,KAAK;YACb,aAAa,EAAE,MAAM;YACrB,cAAc,EAAE,+BAAuB,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5D,QAAQ,EAAE,EAAE;SACb;QACD,aAAa,EAAE,4BAAoB,CAAC,WAAW,CAAC,OAAO,CAAC;QACxD,kBAAkB,EAAE,0BAAkB,CAAC,WAAW,CAAC,OAAO,CAAC;QAC3D,iBAAiB,EAAE,CAAC,EAAE,CAAC;QACvB,eAAe,EAAE,mCAA2B,CAAC,WAAW,CAAC,OAAO,CAAC;QACjE,gBAAgB,EAAE,IAAI;QACtB,SAAS,EAAE,IAAI;QACf,iBAAiB,EAAE,2BAAU,CAAC,KAAK;QACnC,mCAAmC,EACjC,kDAA0C,CAAC,WAAW,CAAC,OAAO,CAAC;QACjE,gCAAgC,EAC9B,+CAAuC,CAAC,WAAW,CAAC,OAAO,CAAC;QAC9D,oBAAoB,EAAE,mCAA2B,CAAC,WAAW,CAAC,OAAO,CAAC;QACtE,0CAA0C,EACxC,yDAAiD,CAAC,WAAW,CAAC,OAAO,CAAC;QACxE,UAAU,EAAE,IAAI;KACjB;CACF,CAAC","sourcesContent":["import { Chain, ChainType, EVMGasType } from './response-types';\n\n/**\n * DO NOT CHANGE THESE ENUM STRINGS.\n */\nexport enum NetworkName {\n // Mainnets\n Ethereum = 'Ethereum',\n BNBChain = 'BNB_Chain',\n Polygon = 'Polygon',\n Arbitrum = 'Arbitrum',\n\n // Testnets\n EthereumSepolia = 'Ethereum_Sepolia',\n PolygonAmoy = 'Polygon_Amoy',\n\n // Dev only\n Hardhat = 'Hardhat',\n\n // Deprecated\n EthereumRopsten_DEPRECATED = 'Ethereum_Ropsten',\n EthereumGoerli_DEPRECATED = 'Ethereum_Goerli',\n ArbitrumGoerli_DEPRECATED = 'Arbitrum_Goerli',\n PolygonMumbai_DEPRECATED = 'Polygon_Mumbai',\n}\n\nexport type FeesSerialized = {\n shieldFeeV2: string;\n unshieldFeeV2: string;\n shieldFeeV3: Optional<string>;\n unshieldFeeV3: Optional<string>;\n};\n\ntype BaseToken = {\n symbol: string;\n wrappedSymbol: string;\n wrappedAddress: string;\n decimals: number;\n};\n\ntype POISettings = {\n launchBlock: number;\n launchTimestamp: number;\n};\n\nexport type Network = {\n chain: Chain;\n name: NetworkName;\n publicName: string;\n shortPublicName: string;\n coingeckoId: string;\n baseToken: BaseToken;\n proxyContract: string;\n relayAdaptContract: string;\n relayAdaptHistory: string[];\n deploymentBlock: number;\n poseidonMerkleAccumulatorV3Contract: string;\n poseidonMerkleVerifierV3Contract: string;\n tokenVaultV3Contract: string;\n deploymentBlockPoseidonMerkleAccumulatorV3: number;\n isDevOnlyNetwork?: boolean;\n isTestnet?: boolean;\n defaultEVMGasType: EVMGasType;\n supportsV3: boolean;\n deprecated?: boolean;\n poi?: POISettings;\n};\n\nexport const RailgunProxyContract: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '0xfa7093cdd9ee6932b4eb2c9e1cde7ce00b1fa4b9',\n [NetworkName.BNBChain]: '0x590162bf4b50f6576a459b75309ee21d92178a10',\n [NetworkName.Polygon]: '0x19b620929f97b7b990801496c3b361ca5def8c71',\n [NetworkName.Arbitrum]: '0xFA7093CDD9EE6932B4eb2c9e1cde7CE00B1FA4b9',\n\n // Test nets\n [NetworkName.EthereumSepolia]: '0xeCFCf3b4eC647c4Ca6D49108b311b7a7C9543fea',\n [NetworkName.PolygonAmoy]: '0xD1aC80208735C7f963Da560C42d6BD82A8b175B5',\n\n // Dev only\n [NetworkName.Hardhat]: '0x610178dA211FEF7D417bC0e6FeD39F05609AD788',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RelayAdaptContract: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '0x4025ee6512DBbda97049Bcf5AA5D38C54aF6bE8a',\n [NetworkName.BNBChain]: '0x741936fb83DDf324636D3048b3E6bC800B8D9e12',\n [NetworkName.Polygon]: '0xc7FfA542736321A3dd69246d73987566a5486968',\n [NetworkName.Arbitrum]: '0x5aD95C537b002770a39dea342c4bb2b68B1497aA',\n\n // Test nets\n [NetworkName.EthereumSepolia]: '0x7e3d929EbD5bDC84d02Bd3205c777578f33A214D',\n [NetworkName.PolygonAmoy]: '0xc340f7E17A42154674d6B50190386C9a2982D12E',\n\n // Dev only\n [NetworkName.Hardhat]: '0x0355B7B8cb128fA5692729Ab3AAa199C1753f726',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunProxyDeploymentBlock: Record<NetworkName, number> = {\n // Main nets\n [NetworkName.Ethereum]: 14737691,\n [NetworkName.BNBChain]: 17633701,\n [NetworkName.Polygon]: 28083766,\n [NetworkName.Arbitrum]: 56109834,\n\n // Test nets\n [NetworkName.EthereumSepolia]: 5784866,\n [NetworkName.PolygonAmoy]: 6666136,\n\n // Dev only\n [NetworkName.Hardhat]: 0,\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: 12226000,\n [NetworkName.EthereumGoerli_DEPRECATED]: 7795991,\n [NetworkName.ArbitrumGoerli_DEPRECATED]: 2611949,\n [NetworkName.PolygonMumbai_DEPRECATED]: 28697343,\n};\n\nexport const BaseTokenWrappedAddress: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', // WETH\n [NetworkName.BNBChain]: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', // WBNB\n [NetworkName.Polygon]: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', // WMATIC\n [NetworkName.Arbitrum]: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', // (Arbitrum) WETH\n\n // Test nets\n [NetworkName.EthereumSepolia]: '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14', // (Sepolia) WETH\n [NetworkName.PolygonAmoy]: '0x21d4Ec3C9a2408C5535ecc26a09d94dC7B7f5c10', // (Amoy) WMATIC\n\n // Dev only\n [NetworkName.Hardhat]: '0x8198f5d8F8CfFE8f9C413d98a0A55aEB8ab9FbB7', // (Hardhat) WETH\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]:\n '0xc778417e063141139fce010982780140aa0cd5ab', // (Ropsten) WETH\n [NetworkName.EthereumGoerli_DEPRECATED]:\n '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6', // (Goerli) WETH\n [NetworkName.ArbitrumGoerli_DEPRECATED]:\n '0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3', // (Arbitrum Goerli) WETH\n [NetworkName.PolygonMumbai_DEPRECATED]:\n '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', // (Mumbai) WMATIC\n};\n\nexport const RailgunPoseidonMerkleAccumulatorV3Contract: Record<\n NetworkName,\n string\n> = {\n // Main nets\n [NetworkName.Ethereum]: '', // TODO\n [NetworkName.BNBChain]: '', // TODO\n [NetworkName.Polygon]: '', // TODO\n [NetworkName.Arbitrum]: '', // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: '', // TODO\n [NetworkName.PolygonAmoy]: '', // TODO\n\n // Dev only\n [NetworkName.Hardhat]: '0x2B0d36FACD61B71CC05ab8F3D2355ec3631C0dd5',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunPoseidonMerkleVerifierV3Contract: Record<\n NetworkName,\n string\n> = {\n // Main nets\n [NetworkName.Ethereum]: '', // TODO\n [NetworkName.BNBChain]: '', // TODO\n [NetworkName.Polygon]: '', // TODO\n [NetworkName.Arbitrum]: '', // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: '', // TODO\n [NetworkName.PolygonAmoy]: '', // TODO\n\n // Dev only\n [NetworkName.Hardhat]: '0xfbC22278A96299D91d41C453234d97b4F5Eb9B2d',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunTokenVaultV3Contract: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '', // TODO\n [NetworkName.BNBChain]: '', // TODO\n [NetworkName.Polygon]: '', // TODO\n [NetworkName.Arbitrum]: '', // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: '', // TODO\n [NetworkName.PolygonAmoy]: '', // TODO\n\n // Dev only\n [NetworkName.Hardhat]: '0xD84379CEae14AA33C123Af12424A37803F885889',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunPoseidonMerkleAccumulatorV3DeploymentBlock: Record<\n NetworkName,\n number\n> = {\n // Main nets\n [NetworkName.Ethereum]: 0, // TODO\n [NetworkName.BNBChain]: 0, // TODO\n [NetworkName.Polygon]: 0, // TODO\n [NetworkName.Arbitrum]: 0, // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: 0, // TODO\n [NetworkName.PolygonAmoy]: 0, // TODO\n\n // Dev only\n [NetworkName.Hardhat]: 0,\n\n // Deprecated\n [NetworkName.EthereumGoerli_DEPRECATED]: 0,\n [NetworkName.ArbitrumGoerli_DEPRECATED]: 0,\n [NetworkName.EthereumRopsten_DEPRECATED]: 0,\n [NetworkName.PolygonMumbai_DEPRECATED]: 0,\n};\n\nexport const NETWORK_CONFIG: Record<NetworkName, Network> = {\n [NetworkName.Ethereum]: {\n chain: {\n type: ChainType.EVM,\n id: 1,\n },\n name: NetworkName.Ethereum,\n publicName: 'Ethereum',\n shortPublicName: 'Ethereum',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Ethereum],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Ethereum],\n relayAdaptContract: RelayAdaptContract[NetworkName.Ethereum],\n relayAdaptHistory: [\n '0x22af4EDBeA3De885dDa8f0a0653E6209e44e5B84', // Initial deployment\n '0xc3f2C8F9d5F0705De706b1302B7a039e1e11aC88', // V3.0 Update - Nov 2022\n '0x4025ee6512DBbda97049Bcf5AA5D38C54aF6bE8a', // V3.1 Update - Jan 2023\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Ethereum],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Ethereum],\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Ethereum],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Ethereum],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Ethereum],\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 18514200, // Nov 06, 2023 - ~12:00pm ET\n launchTimestamp: 1383760800, // Unix timestamp in seconds — Nov 06, 2023, 12:00pm ET\n },\n supportsV3: false,\n },\n [NetworkName.BNBChain]: {\n chain: {\n type: ChainType.EVM,\n id: 56,\n },\n name: NetworkName.BNBChain,\n publicName: 'BNB Smart Chain',\n shortPublicName: 'BSC',\n coingeckoId: 'binance-smart-chain',\n baseToken: {\n symbol: 'BNB',\n wrappedSymbol: 'WBNB',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.BNBChain],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.BNBChain],\n relayAdaptContract: RelayAdaptContract[NetworkName.BNBChain],\n relayAdaptHistory: [\n '0x20d868C7F1Eb706C46641ADD2f849c5DBf4dB158', // Initial deployment\n '0x25f795A8eC8aF7904aa403fF2Cc7205ce683BF52', // V3.0 Update - Nov 2022\n '0x741936fb83DDf324636D3048b3E6bC800B8D9e12', // V3.1 Update - Jan 2023\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.BNBChain],\n defaultEVMGasType: EVMGasType.Type0,\n poi: {\n launchBlock: 39782450, // Jun-20-2024 04:50:22 PM +UTC\n launchTimestamp: 1718902222, // Unix timestamp in seconds — Jun-20-2024 04:50:22 PM +UTC\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.BNBChain],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.BNBChain],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.BNBChain],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.BNBChain],\n supportsV3: false,\n },\n [NetworkName.Polygon]: {\n chain: {\n type: ChainType.EVM,\n id: 137,\n },\n name: NetworkName.Polygon,\n publicName: 'Polygon',\n shortPublicName: 'Polygon',\n coingeckoId: 'polygon-pos',\n baseToken: {\n symbol: 'MATIC',\n wrappedSymbol: 'WMATIC',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Polygon],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Polygon],\n relayAdaptContract: RelayAdaptContract[NetworkName.Polygon],\n relayAdaptHistory: [\n '0x30D8AD0339e2CF160620589f2DBa1765126A5fDC', // Initial deployment\n '0x969eE9AC1E0B5F5Dd781f63A168C52b73062ff86', // V3.0 Update - Nov 2022\n '0xc7FfA542736321A3dd69246d73987566a5486968', // V3.1 Update - Jan 2023\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Polygon],\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 60907366, // Aug 12 2024 5:13 AM UTC + 420,000 Blocks\n launchTimestamp: 0, // Unpredictable\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Polygon],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Polygon],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Polygon],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Polygon],\n supportsV3: false,\n },\n [NetworkName.Arbitrum]: {\n chain: {\n type: ChainType.EVM,\n id: 42161,\n },\n name: NetworkName.Arbitrum,\n publicName: 'Arbitrum',\n shortPublicName: 'Arbitrum',\n coingeckoId: 'arbitrum-one',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Arbitrum],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Arbitrum],\n relayAdaptContract: RelayAdaptContract[NetworkName.Arbitrum],\n relayAdaptHistory: [\n '0x5aD95C537b002770a39dea342c4bb2b68B1497aA', // Initial deployment - Feb 2023 post v3.1\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Arbitrum],\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 223895116, // Jun-20-2024 04:29:41 PM +UTC\n launchTimestamp: 1718900981, // Unix timestamp in seconds — Jun-20-2024 04:29:41 PM +UTC\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Arbitrum],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Arbitrum],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Arbitrum],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Arbitrum],\n supportsV3: false,\n },\n\n // TEST NETS\n [NetworkName.EthereumRopsten_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 3,\n },\n name: NetworkName.EthereumRopsten_DEPRECATED,\n publicName: 'Ropsten Testnet',\n shortPublicName: 'Ropsten',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.EthereumRopsten_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.EthereumRopsten_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.EthereumRopsten_DEPRECATED],\n relayAdaptHistory: [''],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.EthereumRopsten_DEPRECATED],\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.EthereumRopsten_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.EthereumRopsten_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.EthereumRopsten_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.EthereumRopsten_DEPRECATED\n ],\n supportsV3: false,\n },\n [NetworkName.EthereumGoerli_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 5,\n },\n name: NetworkName.EthereumGoerli_DEPRECATED,\n publicName: 'Görli Testnet',\n shortPublicName: 'Görli',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.EthereumGoerli_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.EthereumGoerli_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.EthereumGoerli_DEPRECATED],\n relayAdaptHistory: [\n '0xD147B7Dfa636a1c50A52bF6A6FE910680274eE24', // Initial deployment\n '0x57F5925FeB79B1fd7Cc491F858D7fBc65502D3FE', // V3.0 Update - Nov 2022\n '0x6E9C59F042acB1577A297eDE607c21Ff284846F3', // V3.1 partial update - Jan 2023\n '0x14a57CA7C5c1AD54fB6c642f428d973fcD696ED4', // V3.1 Update - Jan 2023\n ],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.EthereumGoerli_DEPRECATED],\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 9802000, // Oct 3, 2023\n launchTimestamp: 1380794400, // Unix timestamp in seconds — Oct 3, 2023, 12:00pm ET\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.EthereumGoerli_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.EthereumGoerli_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.EthereumGoerli_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.EthereumGoerli_DEPRECATED\n ],\n supportsV3: false,\n },\n [NetworkName.EthereumSepolia]: {\n chain: {\n type: ChainType.EVM,\n id: 11155111,\n },\n name: NetworkName.EthereumSepolia,\n publicName: 'Sepolia Testnet',\n shortPublicName: 'Sepolia',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.EthereumSepolia],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.EthereumSepolia],\n relayAdaptContract: RelayAdaptContract[NetworkName.EthereumSepolia],\n relayAdaptHistory: [\n '0x7e3d929EbD5bDC84d02Bd3205c777578f33A214D', // Deployment - Apr 2024\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.EthereumSepolia],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 5944700, // May-21-2024 12:38:00 AM +UTC\n launchTimestamp: 1716309480, // Unix timestamp in seconds — May-21-2024 12:38:00 AM +UTC\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.EthereumSepolia],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.EthereumSepolia],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.EthereumSepolia],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.EthereumSepolia\n ],\n supportsV3: false,\n },\n [NetworkName.PolygonAmoy]: {\n deprecated: false,\n chain: {\n type: ChainType.EVM,\n id: 80002,\n },\n name: NetworkName.PolygonAmoy,\n publicName: 'Amoy Testnet',\n shortPublicName: 'Amoy',\n coingeckoId: 'polygon-pos',\n baseToken: {\n symbol: 'MATIC',\n wrappedSymbol: 'WMATIC',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.PolygonAmoy],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.PolygonAmoy],\n relayAdaptContract: RelayAdaptContract[NetworkName.PolygonAmoy],\n relayAdaptHistory: [\n '0xc340f7E17A42154674d6B50190386C9a2982D12E', // Initial deployment\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.PolygonAmoy],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.PolygonAmoy],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.PolygonAmoy],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.PolygonAmoy],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.PolygonAmoy\n ],\n supportsV3: true,\n },\n [NetworkName.PolygonMumbai_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 80001,\n },\n name: NetworkName.PolygonMumbai_DEPRECATED,\n publicName: 'Mumbai Testnet',\n shortPublicName: 'Mumbai',\n coingeckoId: 'polygon-pos',\n baseToken: {\n symbol: 'MATIC',\n wrappedSymbol: 'WMATIC',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.PolygonMumbai_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.PolygonMumbai_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.PolygonMumbai_DEPRECATED],\n relayAdaptHistory: [\n '0x8B936B018CeA1c1cc14961CAdabD36E7fe9192cD', // Initial deployment\n '0x80efF1a8939C9B6E8C61Ed5Be683Eda21088B7E6', // V3.0 Update - Nov 2022\n '0x17D36875D723Cf0dA250d404Ef4cA0aABE105837', // V3.1 Update - Jan 2023\n ],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.PolygonMumbai_DEPRECATED],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.PolygonMumbai_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.PolygonMumbai_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.PolygonMumbai_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.PolygonMumbai_DEPRECATED\n ],\n supportsV3: true,\n },\n [NetworkName.ArbitrumGoerli_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 421613,\n },\n name: NetworkName.ArbitrumGoerli_DEPRECATED,\n publicName: 'Arbitrum Görli Testnet',\n shortPublicName: 'Arbitrum Görli',\n coingeckoId: 'arbitrum-one',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.ArbitrumGoerli_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.ArbitrumGoerli_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.ArbitrumGoerli_DEPRECATED],\n relayAdaptHistory: [\n '0x7E77d890179Aa683ac2B9A608bd8121255CAa917', // Initial deployment (post v3.0)\n '0x3eAf99B5EDc79D833AA8B6d18F0a8dd041e13eF6', // V3.1 Update - Jan 2023\n ],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.ArbitrumGoerli_DEPRECATED],\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.ArbitrumGoerli_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.ArbitrumGoerli_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.ArbitrumGoerli_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.ArbitrumGoerli_DEPRECATED\n ],\n supportsV3: false,\n },\n [NetworkName.Hardhat]: {\n chain: {\n type: ChainType.EVM,\n id: 31337,\n },\n name: NetworkName.Hardhat,\n publicName: 'Hardhat Testnet',\n shortPublicName: 'Hardhat',\n coingeckoId: '',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Hardhat],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Hardhat],\n relayAdaptContract: RelayAdaptContract[NetworkName.Hardhat],\n relayAdaptHistory: [''],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Hardhat],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Hardhat],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Hardhat],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Hardhat],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Hardhat],\n supportsV3: true,\n },\n};\n"]}
1
+ {"version":3,"file":"network-config.js","sourceRoot":"","sources":["../../src/models/network-config.ts"],"names":[],"mappings":";;;AAAA,qDAAgE;AAGhE;;GAEG;AACH,IAAY,WAmBX;AAnBD,WAAY,WAAW;IACrB,WAAW;IACX,oCAAqB,CAAA;IACrB,qCAAsB,CAAA;IACtB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IAErB,WAAW;IACX,mDAAoC,CAAA;IACpC,2CAA4B,CAAA;IAE5B,WAAW;IACX,kCAAmB,CAAA;IAEnB,aAAa;IACb,8DAA+C,CAAA;IAC/C,4DAA6C,CAAA;IAC7C,4DAA6C,CAAA;IAC7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AE;SACb;QACD,aAAa,EAAE,4BAAoB,CAAC,WAAW,CAAC,OAAO,CAAC;QACxD,kBAAkB,EAAE,0BAAkB,CAAC,WAAW,CAAC,OAAO,CAAC;QAC3D,iBAAiB,EAAE,CAAC,EAAE,CAAC;QACvB,eAAe,EAAE,mCAA2B,CAAC,WAAW,CAAC,OAAO,CAAC;QACjE,gBAAgB,EAAE,IAAI;QACtB,SAAS,EAAE,IAAI;QACf,iBAAiB,EAAE,2BAAU,CAAC,KAAK;QACnC,mCAAmC,EACjC,kDAA0C,CAAC,WAAW,CAAC,OAAO,CAAC;QACjE,gCAAgC,EAC9B,+CAAuC,CAAC,WAAW,CAAC,OAAO,CAAC;QAC9D,oBAAoB,EAAE,mCAA2B,CAAC,WAAW,CAAC,OAAO,CAAC;QACtE,0CAA0C,EACxC,yDAAiD,CAAC,WAAW,CAAC,OAAO,CAAC;QACxE,UAAU,EAAE,IAAI;KACjB;CACF,CAAC","sourcesContent":["import { Chain, ChainType, EVMGasType } from './response-types';\nimport type { Optional } from '../types/global';\n\n/**\n * DO NOT CHANGE THESE ENUM STRINGS.\n */\nexport enum NetworkName {\n // Mainnets\n Ethereum = 'Ethereum',\n BNBChain = 'BNB_Chain',\n Polygon = 'Polygon',\n Arbitrum = 'Arbitrum',\n\n // Testnets\n EthereumSepolia = 'Ethereum_Sepolia',\n PolygonAmoy = 'Polygon_Amoy',\n\n // Dev only\n Hardhat = 'Hardhat',\n\n // Deprecated\n EthereumRopsten_DEPRECATED = 'Ethereum_Ropsten',\n EthereumGoerli_DEPRECATED = 'Ethereum_Goerli',\n ArbitrumGoerli_DEPRECATED = 'Arbitrum_Goerli',\n PolygonMumbai_DEPRECATED = 'Polygon_Mumbai',\n}\n\nexport type FeesSerialized = {\n shieldFeeV2: string;\n unshieldFeeV2: string;\n shieldFeeV3: Optional<string>;\n unshieldFeeV3: Optional<string>;\n};\n\ntype BaseToken = {\n symbol: string;\n wrappedSymbol: string;\n wrappedAddress: string;\n decimals: number;\n};\n\ntype POISettings = {\n launchBlock: number;\n launchTimestamp: number;\n};\n\nexport type Network = {\n chain: Chain;\n name: NetworkName;\n publicName: string;\n shortPublicName: string;\n coingeckoId: string;\n baseToken: BaseToken;\n proxyContract: string;\n relayAdaptContract: string;\n relayAdaptHistory: string[];\n deploymentBlock: number;\n poseidonMerkleAccumulatorV3Contract: string;\n poseidonMerkleVerifierV3Contract: string;\n tokenVaultV3Contract: string;\n deploymentBlockPoseidonMerkleAccumulatorV3: number;\n isDevOnlyNetwork?: boolean;\n isTestnet?: boolean;\n defaultEVMGasType: EVMGasType;\n supportsV3: boolean;\n deprecated?: boolean;\n poi?: POISettings;\n};\n\nexport const RailgunProxyContract: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '0xfa7093cdd9ee6932b4eb2c9e1cde7ce00b1fa4b9',\n [NetworkName.BNBChain]: '0x590162bf4b50f6576a459b75309ee21d92178a10',\n [NetworkName.Polygon]: '0x19b620929f97b7b990801496c3b361ca5def8c71',\n [NetworkName.Arbitrum]: '0xFA7093CDD9EE6932B4eb2c9e1cde7CE00B1FA4b9',\n\n // Test nets\n [NetworkName.EthereumSepolia]: '0xeCFCf3b4eC647c4Ca6D49108b311b7a7C9543fea',\n [NetworkName.PolygonAmoy]: '0xD1aC80208735C7f963Da560C42d6BD82A8b175B5',\n\n // Dev only\n [NetworkName.Hardhat]: '0x610178dA211FEF7D417bC0e6FeD39F05609AD788',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RelayAdaptContract: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '0x4025ee6512DBbda97049Bcf5AA5D38C54aF6bE8a',\n [NetworkName.BNBChain]: '0x741936fb83DDf324636D3048b3E6bC800B8D9e12',\n [NetworkName.Polygon]: '0xc7FfA542736321A3dd69246d73987566a5486968',\n [NetworkName.Arbitrum]: '0x5aD95C537b002770a39dea342c4bb2b68B1497aA',\n\n // Test nets\n [NetworkName.EthereumSepolia]: '0x7e3d929EbD5bDC84d02Bd3205c777578f33A214D',\n [NetworkName.PolygonAmoy]: '0xc340f7E17A42154674d6B50190386C9a2982D12E',\n\n // Dev only\n [NetworkName.Hardhat]: '0x0355B7B8cb128fA5692729Ab3AAa199C1753f726',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunProxyDeploymentBlock: Record<NetworkName, number> = {\n // Main nets\n [NetworkName.Ethereum]: 14737691,\n [NetworkName.BNBChain]: 17633701,\n [NetworkName.Polygon]: 28083766,\n [NetworkName.Arbitrum]: 56109834,\n\n // Test nets\n [NetworkName.EthereumSepolia]: 5784866,\n [NetworkName.PolygonAmoy]: 6666136,\n\n // Dev only\n [NetworkName.Hardhat]: 0,\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: 12226000,\n [NetworkName.EthereumGoerli_DEPRECATED]: 7795991,\n [NetworkName.ArbitrumGoerli_DEPRECATED]: 2611949,\n [NetworkName.PolygonMumbai_DEPRECATED]: 28697343,\n};\n\nexport const BaseTokenWrappedAddress: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', // WETH\n [NetworkName.BNBChain]: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', // WBNB\n [NetworkName.Polygon]: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', // WMATIC\n [NetworkName.Arbitrum]: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', // (Arbitrum) WETH\n\n // Test nets\n [NetworkName.EthereumSepolia]: '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14', // (Sepolia) WETH\n [NetworkName.PolygonAmoy]: '0x21d4Ec3C9a2408C5535ecc26a09d94dC7B7f5c10', // (Amoy) WMATIC\n\n // Dev only\n [NetworkName.Hardhat]: '0x8198f5d8F8CfFE8f9C413d98a0A55aEB8ab9FbB7', // (Hardhat) WETH\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]:\n '0xc778417e063141139fce010982780140aa0cd5ab', // (Ropsten) WETH\n [NetworkName.EthereumGoerli_DEPRECATED]:\n '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6', // (Goerli) WETH\n [NetworkName.ArbitrumGoerli_DEPRECATED]:\n '0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3', // (Arbitrum Goerli) WETH\n [NetworkName.PolygonMumbai_DEPRECATED]:\n '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', // (Mumbai) WMATIC\n};\n\nexport const RailgunPoseidonMerkleAccumulatorV3Contract: Record<\n NetworkName,\n string\n> = {\n // Main nets\n [NetworkName.Ethereum]: '', // TODO\n [NetworkName.BNBChain]: '', // TODO\n [NetworkName.Polygon]: '', // TODO\n [NetworkName.Arbitrum]: '', // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: '', // TODO\n [NetworkName.PolygonAmoy]: '', // TODO\n\n // Dev only\n [NetworkName.Hardhat]: '0x2B0d36FACD61B71CC05ab8F3D2355ec3631C0dd5',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunPoseidonMerkleVerifierV3Contract: Record<\n NetworkName,\n string\n> = {\n // Main nets\n [NetworkName.Ethereum]: '', // TODO\n [NetworkName.BNBChain]: '', // TODO\n [NetworkName.Polygon]: '', // TODO\n [NetworkName.Arbitrum]: '', // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: '', // TODO\n [NetworkName.PolygonAmoy]: '', // TODO\n\n // Dev only\n [NetworkName.Hardhat]: '0xfbC22278A96299D91d41C453234d97b4F5Eb9B2d',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunTokenVaultV3Contract: Record<NetworkName, string> = {\n // Main nets\n [NetworkName.Ethereum]: '', // TODO\n [NetworkName.BNBChain]: '', // TODO\n [NetworkName.Polygon]: '', // TODO\n [NetworkName.Arbitrum]: '', // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: '', // TODO\n [NetworkName.PolygonAmoy]: '', // TODO\n\n // Dev only\n [NetworkName.Hardhat]: '0xD84379CEae14AA33C123Af12424A37803F885889',\n\n // Deprecated\n [NetworkName.EthereumRopsten_DEPRECATED]: '',\n [NetworkName.EthereumGoerli_DEPRECATED]: '',\n [NetworkName.ArbitrumGoerli_DEPRECATED]: '',\n [NetworkName.PolygonMumbai_DEPRECATED]: '',\n};\n\nexport const RailgunPoseidonMerkleAccumulatorV3DeploymentBlock: Record<\n NetworkName,\n number\n> = {\n // Main nets\n [NetworkName.Ethereum]: 0, // TODO\n [NetworkName.BNBChain]: 0, // TODO\n [NetworkName.Polygon]: 0, // TODO\n [NetworkName.Arbitrum]: 0, // TODO\n\n // Test nets\n [NetworkName.EthereumSepolia]: 0, // TODO\n [NetworkName.PolygonAmoy]: 0, // TODO\n\n // Dev only\n [NetworkName.Hardhat]: 0,\n\n // Deprecated\n [NetworkName.EthereumGoerli_DEPRECATED]: 0,\n [NetworkName.ArbitrumGoerli_DEPRECATED]: 0,\n [NetworkName.EthereumRopsten_DEPRECATED]: 0,\n [NetworkName.PolygonMumbai_DEPRECATED]: 0,\n};\n\nexport const NETWORK_CONFIG: Record<NetworkName, Network> = {\n [NetworkName.Ethereum]: {\n chain: {\n type: ChainType.EVM,\n id: 1,\n },\n name: NetworkName.Ethereum,\n publicName: 'Ethereum',\n shortPublicName: 'Ethereum',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Ethereum],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Ethereum],\n relayAdaptContract: RelayAdaptContract[NetworkName.Ethereum],\n relayAdaptHistory: [\n '0x22af4EDBeA3De885dDa8f0a0653E6209e44e5B84', // Initial deployment\n '0xc3f2C8F9d5F0705De706b1302B7a039e1e11aC88', // V3.0 Update - Nov 2022\n '0x4025ee6512DBbda97049Bcf5AA5D38C54aF6bE8a', // V3.1 Update - Jan 2023\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Ethereum],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Ethereum],\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Ethereum],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Ethereum],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Ethereum],\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 18514200, // Nov 06, 2023 - ~12:00pm ET\n launchTimestamp: 1383760800, // Unix timestamp in seconds — Nov 06, 2023, 12:00pm ET\n },\n supportsV3: false,\n },\n [NetworkName.BNBChain]: {\n chain: {\n type: ChainType.EVM,\n id: 56,\n },\n name: NetworkName.BNBChain,\n publicName: 'BNB Smart Chain',\n shortPublicName: 'BSC',\n coingeckoId: 'binance-smart-chain',\n baseToken: {\n symbol: 'BNB',\n wrappedSymbol: 'WBNB',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.BNBChain],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.BNBChain],\n relayAdaptContract: RelayAdaptContract[NetworkName.BNBChain],\n relayAdaptHistory: [\n '0x20d868C7F1Eb706C46641ADD2f849c5DBf4dB158', // Initial deployment\n '0x25f795A8eC8aF7904aa403fF2Cc7205ce683BF52', // V3.0 Update - Nov 2022\n '0x741936fb83DDf324636D3048b3E6bC800B8D9e12', // V3.1 Update - Jan 2023\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.BNBChain],\n defaultEVMGasType: EVMGasType.Type0,\n poi: {\n launchBlock: 39782450, // Jun-20-2024 04:50:22 PM +UTC\n launchTimestamp: 1718902222, // Unix timestamp in seconds — Jun-20-2024 04:50:22 PM +UTC\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.BNBChain],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.BNBChain],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.BNBChain],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.BNBChain],\n supportsV3: false,\n },\n [NetworkName.Polygon]: {\n chain: {\n type: ChainType.EVM,\n id: 137,\n },\n name: NetworkName.Polygon,\n publicName: 'Polygon',\n shortPublicName: 'Polygon',\n coingeckoId: 'polygon-pos',\n baseToken: {\n symbol: 'MATIC',\n wrappedSymbol: 'WMATIC',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Polygon],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Polygon],\n relayAdaptContract: RelayAdaptContract[NetworkName.Polygon],\n relayAdaptHistory: [\n '0x30D8AD0339e2CF160620589f2DBa1765126A5fDC', // Initial deployment\n '0x969eE9AC1E0B5F5Dd781f63A168C52b73062ff86', // V3.0 Update - Nov 2022\n '0xc7FfA542736321A3dd69246d73987566a5486968', // V3.1 Update - Jan 2023\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Polygon],\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 60907366, // Aug 12 2024 5:13 AM UTC + 420,000 Blocks\n launchTimestamp: 0, // Unpredictable\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Polygon],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Polygon],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Polygon],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Polygon],\n supportsV3: false,\n },\n [NetworkName.Arbitrum]: {\n chain: {\n type: ChainType.EVM,\n id: 42161,\n },\n name: NetworkName.Arbitrum,\n publicName: 'Arbitrum',\n shortPublicName: 'Arbitrum',\n coingeckoId: 'arbitrum-one',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Arbitrum],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Arbitrum],\n relayAdaptContract: RelayAdaptContract[NetworkName.Arbitrum],\n relayAdaptHistory: [\n '0x5aD95C537b002770a39dea342c4bb2b68B1497aA', // Initial deployment - Feb 2023 post v3.1\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Arbitrum],\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 223895116, // Jun-20-2024 04:29:41 PM +UTC\n launchTimestamp: 1718900981, // Unix timestamp in seconds — Jun-20-2024 04:29:41 PM +UTC\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Arbitrum],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Arbitrum],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Arbitrum],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Arbitrum],\n supportsV3: false,\n },\n\n // TEST NETS\n [NetworkName.EthereumRopsten_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 3,\n },\n name: NetworkName.EthereumRopsten_DEPRECATED,\n publicName: 'Ropsten Testnet',\n shortPublicName: 'Ropsten',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.EthereumRopsten_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.EthereumRopsten_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.EthereumRopsten_DEPRECATED],\n relayAdaptHistory: [''],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.EthereumRopsten_DEPRECATED],\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.EthereumRopsten_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.EthereumRopsten_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.EthereumRopsten_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.EthereumRopsten_DEPRECATED\n ],\n supportsV3: false,\n },\n [NetworkName.EthereumGoerli_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 5,\n },\n name: NetworkName.EthereumGoerli_DEPRECATED,\n publicName: 'Görli Testnet',\n shortPublicName: 'Görli',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.EthereumGoerli_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.EthereumGoerli_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.EthereumGoerli_DEPRECATED],\n relayAdaptHistory: [\n '0xD147B7Dfa636a1c50A52bF6A6FE910680274eE24', // Initial deployment\n '0x57F5925FeB79B1fd7Cc491F858D7fBc65502D3FE', // V3.0 Update - Nov 2022\n '0x6E9C59F042acB1577A297eDE607c21Ff284846F3', // V3.1 partial update - Jan 2023\n '0x14a57CA7C5c1AD54fB6c642f428d973fcD696ED4', // V3.1 Update - Jan 2023\n ],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.EthereumGoerli_DEPRECATED],\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 9802000, // Oct 3, 2023\n launchTimestamp: 1380794400, // Unix timestamp in seconds — Oct 3, 2023, 12:00pm ET\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.EthereumGoerli_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.EthereumGoerli_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.EthereumGoerli_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.EthereumGoerli_DEPRECATED\n ],\n supportsV3: false,\n },\n [NetworkName.EthereumSepolia]: {\n chain: {\n type: ChainType.EVM,\n id: 11155111,\n },\n name: NetworkName.EthereumSepolia,\n publicName: 'Sepolia Testnet',\n shortPublicName: 'Sepolia',\n coingeckoId: 'ethereum',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.EthereumSepolia],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.EthereumSepolia],\n relayAdaptContract: RelayAdaptContract[NetworkName.EthereumSepolia],\n relayAdaptHistory: [\n '0x7e3d929EbD5bDC84d02Bd3205c777578f33A214D', // Deployment - Apr 2024\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.EthereumSepolia],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poi: {\n launchBlock: 5944700, // May-21-2024 12:38:00 AM +UTC\n launchTimestamp: 1716309480, // Unix timestamp in seconds — May-21-2024 12:38:00 AM +UTC\n },\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.EthereumSepolia],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.EthereumSepolia],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.EthereumSepolia],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.EthereumSepolia\n ],\n supportsV3: false,\n },\n [NetworkName.PolygonAmoy]: {\n deprecated: false,\n chain: {\n type: ChainType.EVM,\n id: 80002,\n },\n name: NetworkName.PolygonAmoy,\n publicName: 'Amoy Testnet',\n shortPublicName: 'Amoy',\n coingeckoId: 'polygon-pos',\n baseToken: {\n symbol: 'MATIC',\n wrappedSymbol: 'WMATIC',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.PolygonAmoy],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.PolygonAmoy],\n relayAdaptContract: RelayAdaptContract[NetworkName.PolygonAmoy],\n relayAdaptHistory: [\n '0xc340f7E17A42154674d6B50190386C9a2982D12E', // Initial deployment\n ],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.PolygonAmoy],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.PolygonAmoy],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.PolygonAmoy],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.PolygonAmoy],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.PolygonAmoy\n ],\n supportsV3: true,\n },\n [NetworkName.PolygonMumbai_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 80001,\n },\n name: NetworkName.PolygonMumbai_DEPRECATED,\n publicName: 'Mumbai Testnet',\n shortPublicName: 'Mumbai',\n coingeckoId: 'polygon-pos',\n baseToken: {\n symbol: 'MATIC',\n wrappedSymbol: 'WMATIC',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.PolygonMumbai_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.PolygonMumbai_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.PolygonMumbai_DEPRECATED],\n relayAdaptHistory: [\n '0x8B936B018CeA1c1cc14961CAdabD36E7fe9192cD', // Initial deployment\n '0x80efF1a8939C9B6E8C61Ed5Be683Eda21088B7E6', // V3.0 Update - Nov 2022\n '0x17D36875D723Cf0dA250d404Ef4cA0aABE105837', // V3.1 Update - Jan 2023\n ],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.PolygonMumbai_DEPRECATED],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.PolygonMumbai_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.PolygonMumbai_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.PolygonMumbai_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.PolygonMumbai_DEPRECATED\n ],\n supportsV3: true,\n },\n [NetworkName.ArbitrumGoerli_DEPRECATED]: {\n deprecated: true,\n chain: {\n type: ChainType.EVM,\n id: 421613,\n },\n name: NetworkName.ArbitrumGoerli_DEPRECATED,\n publicName: 'Arbitrum Görli Testnet',\n shortPublicName: 'Arbitrum Görli',\n coingeckoId: 'arbitrum-one',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress:\n BaseTokenWrappedAddress[NetworkName.ArbitrumGoerli_DEPRECATED],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.ArbitrumGoerli_DEPRECATED],\n relayAdaptContract:\n RelayAdaptContract[NetworkName.ArbitrumGoerli_DEPRECATED],\n relayAdaptHistory: [\n '0x7E77d890179Aa683ac2B9A608bd8121255CAa917', // Initial deployment (post v3.0)\n '0x3eAf99B5EDc79D833AA8B6d18F0a8dd041e13eF6', // V3.1 Update - Jan 2023\n ],\n deploymentBlock:\n RailgunProxyDeploymentBlock[NetworkName.ArbitrumGoerli_DEPRECATED],\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[\n NetworkName.ArbitrumGoerli_DEPRECATED\n ],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[\n NetworkName.ArbitrumGoerli_DEPRECATED\n ],\n tokenVaultV3Contract:\n RailgunTokenVaultV3Contract[NetworkName.ArbitrumGoerli_DEPRECATED],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[\n NetworkName.ArbitrumGoerli_DEPRECATED\n ],\n supportsV3: false,\n },\n [NetworkName.Hardhat]: {\n chain: {\n type: ChainType.EVM,\n id: 31337,\n },\n name: NetworkName.Hardhat,\n publicName: 'Hardhat Testnet',\n shortPublicName: 'Hardhat',\n coingeckoId: '',\n baseToken: {\n symbol: 'ETH',\n wrappedSymbol: 'WETH',\n wrappedAddress: BaseTokenWrappedAddress[NetworkName.Hardhat],\n decimals: 18,\n },\n proxyContract: RailgunProxyContract[NetworkName.Hardhat],\n relayAdaptContract: RelayAdaptContract[NetworkName.Hardhat],\n relayAdaptHistory: [''],\n deploymentBlock: RailgunProxyDeploymentBlock[NetworkName.Hardhat],\n isDevOnlyNetwork: true,\n isTestnet: true,\n defaultEVMGasType: EVMGasType.Type2,\n poseidonMerkleAccumulatorV3Contract:\n RailgunPoseidonMerkleAccumulatorV3Contract[NetworkName.Hardhat],\n poseidonMerkleVerifierV3Contract:\n RailgunPoseidonMerkleVerifierV3Contract[NetworkName.Hardhat],\n tokenVaultV3Contract: RailgunTokenVaultV3Contract[NetworkName.Hardhat],\n deploymentBlockPoseidonMerkleAccumulatorV3:\n RailgunPoseidonMerkleAccumulatorV3DeploymentBlock[NetworkName.Hardhat],\n supportsV3: true,\n },\n};\n"]}
@@ -1,7 +1,7 @@
1
- /// <reference types="../types/global" />
2
1
  import { TXIDVersion } from './engine';
3
2
  import { NetworkName } from './network-config';
4
3
  import { PreTransactionPOIsPerTxidLeafPerList } from './response-types';
4
+ import type { Optional } from '../types/global';
5
5
  export type ChainParams = {
6
6
  chainType: string;
7
7
  chainID: string;
@@ -1 +1 @@
1
- {"version":3,"file":"proof-of-innocence.js","sourceRoot":"","sources":["../../src/models/proof-of-innocence.ts"],"names":[],"mappings":";;;AA0CA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,iDAAiC,CAAA;AACnC,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAuDD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;A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,gBAAgB,gCAAhB,gBAAgB,QAqB3B","sourcesContent":["import { TXIDVersion } from './engine';\nimport { NetworkName } from './network-config';\nimport { PreTransactionPOIsPerTxidLeafPerList } from './response-types';\n\n// TODO: Migrate to using Chain object directly when PPOI API update is permissioned\nexport type ChainParams = {\n chainType: string;\n chainID: string;\n txidVersion: TXIDVersion;\n};\n\nexport type TransactProofData = {\n snarkProof: SnarkProof;\n poiMerkleroots: string[];\n txidMerkleroot: string;\n txidMerklerootIndex: number;\n blindedCommitmentsOut: string[];\n railgunTxidIfHasUnshield: string;\n};\n\nexport type SnarkProof = {\n pi_a: [string, string];\n pi_b: [[string, string], [string, string]];\n pi_c: [string, string];\n};\n\nexport type MerkleProof = {\n leaf: string; // hash of commitment\n elements: string[];\n indices: string;\n root: string;\n};\n\nexport type ShieldQueueStatus = {\n unknown: number;\n pending: number;\n allowed: number;\n blocked: number;\n addedPOI: number;\n latestShield: Optional<string>;\n};\n\nexport enum POIEventType {\n Shield = 'Shield',\n Transact = 'Transact',\n Unshield = 'Unshield',\n LegacyTransact = 'LegacyTransact',\n}\n\nexport type POIEventLengths = Record<POIEventType, number>;\n\nexport type POIListStatus = {\n poiEventLengths: POIEventLengths;\n listProviderPOIEventQueueLength: Optional<number>;\n pendingTransactProofs: number;\n blockedShields: number;\n historicalMerklerootsLength: number;\n latestHistoricalMerkleroot: string;\n};\n\nexport type GetTransactProofsParams = ChainParams & {\n listKey: string;\n};\n\nexport type GetBlockedShieldsParams = ChainParams & {\n listKey: string;\n startIndex?: number; // Optional, defaults to 0\n endIndex?: number; // Optional, defaults to startIndex + default limit\n};\n\nexport type LegacyTransactProofData = {\n txidIndex: string;\n npk: string;\n value: string;\n tokenHash: string;\n blindedCommitment: string;\n};\n\nexport type SingleCommitmentProofsData = {\n commitment: string;\n npk: string;\n utxoTreeIn: number;\n utxoTreeOut: number;\n utxoPositionOut: number;\n railgunTxid: string;\n pois: PreTransactionPOIsPerTxidLeafPerList;\n};\n\nexport type SubmitTransactProofParams = ChainParams & {\n listKey: string;\n transactProofData: TransactProofData;\n};\n\nexport type SubmitLegacyTransactProofParams = ChainParams & {\n listKeys: string[];\n legacyTransactProofDatas: LegacyTransactProofData[];\n};\n\nexport type SubmitSingleCommitmentProofsParams = ChainParams & {\n singleCommitmentProofsData: SingleCommitmentProofsData;\n};\n\nexport enum BlindedCommitmentType {\n Shield = 'Shield',\n Transact = 'Transact',\n Unshield = 'Unshield',\n}\n\nexport type ValidatePOIMerklerootsParams = ChainParams & {\n listKey: string;\n poiMerkleroots: string[];\n};\n\nexport type BlindedCommitmentData = {\n blindedCommitment: string;\n type: BlindedCommitmentType;\n};\n\nexport type GetPOIsPerListParams = ChainParams & {\n listKeys: string[];\n blindedCommitmentDatas: BlindedCommitmentData[];\n};\n\nexport type GetMerkleProofsParams = ChainParams & {\n listKey: string;\n blindedCommitments: string[];\n};\n\nexport type ValidateTxidMerklerootParams = ChainParams & {\n tree: number;\n index: number;\n merkleroot: string;\n};\n\nexport type GetLatestValidatedRailgunTxidParams = ChainParams;\n\nexport enum POIStatus {\n // POI valdated in event list\n Valid = 'Valid',\n // Shield blocked\n ShieldBlocked = 'ShieldBlocked',\n // Transact/Unshield proof submitted, but not validated yet\n ProofSubmitted = 'ProofSubmitted',\n // Missing internal/external transact/unshield proof, or ShieldPending\n Missing = 'Missing',\n}\n\nexport type POIsPerList = {\n [listKey: string]: POIStatus;\n};\n\nexport type POIsPerListMap = {\n [blindedCommitment: string]: POIsPerList;\n};\n\nexport type TxidMerkletreeSyncStatus = {\n currentTxidIndex: number;\n currentMerkleroot: string;\n validatedTxidIndex: number;\n validatedMerkleroot: string;\n};\n\nexport type RailgunTxidStatus = {\n currentTxidIndex: Optional<number>;\n currentMerkleroot: Optional<string>;\n validatedTxidIndex: Optional<number>;\n validatedMerkleroot: Optional<string>;\n};\n\nexport type ValidatedRailgunTxidStatus = {\n validatedTxidIndex: Optional<number>;\n validatedMerkleroot: Optional<string>;\n};\n\nexport type NodeStatusAllNetworks = {\n listKeys: string[];\n forNetwork: Partial<Record<NetworkName, NodeStatusForNetwork>>;\n};\n\nexport type NodeStatusForNetwork = {\n txidStatus: RailgunTxidStatus;\n shieldQueueStatus: ShieldQueueStatus;\n listStatuses: Record<string, POIListStatus>;\n legacyTransactProofs: number;\n};\n\nexport const POI_SHIELD_PENDING_SEC = 60 * 60; // 1 hour\nexport const POI_SHIELD_PENDING_SEC_TEXT = 'One hour';\nexport const POI_SHIELD_PENDING_SEC_TEST_NET = 1 * 60; // 1 minute\nexport const POI_SHIELD_PENDING_SEC_TEST_NET_TEXT = 'One minute';\n\nexport enum POIListType {\n Active = 'Active',\n Gather = 'Gather',\n}\n\nexport type POIList = {\n key: string;\n type: POIListType;\n name: string;\n description: string;\n};\n\nexport const POI_REQUIRED_LISTS: POIList[] = [\n {\n key: 'efc6ddb59c098a13fb2b618fdae94c1c3a807abc8fb1837c93620c9143ee9e88',\n type: POIListType.Active,\n name: 'Chainalysis OFAC Sanctions API',\n description:\n 'API which is used to restrict bad actors designated by the US Department of the Treasury. See: https://www.chainalysis.com/free-cryptocurrency-sanctions-screening-tools.',\n },\n];\n\nexport enum POIJSONRPCMethod {\n Health = 'ppoi_health',\n NodeStatus = 'ppoi_node_status',\n NodeStatusForwardedList = 'ppoi_node_status_forwardedList',\n POIEvents = 'ppoi_poi_events',\n POIMerkletreeLeaves = 'ppoi_poi_merkletree_leaves',\n TransactProofs = 'ppoi_transact_proofs',\n LegacyTransactProofs = 'ppoi_legacy_transact_proofs',\n BlockedShields = 'ppoi_blocked_shields',\n SubmitPOIEvents = 'ppoi_submit_poi_events',\n SubmitValidatedTXID = 'ppoi_submit_validated_txid',\n RemoveTransactProof = 'ppoi_remove_transact_proof',\n SubmitTransactProof = 'ppoi_submit_transact_proof',\n SubmitLegacyTransactProofs = 'ppoi_submit_legacy_transact_proofs',\n SubmitSingleCommitmentProofs = 'ppoi_submit_single_commitment_proofs',\n POIsPerList = 'ppoi_pois_per_list',\n POIsPerBlindedCommitment = 'ppoi_pois_per_blinded_commitment',\n MerkleProofs = 'ppoi_merkle_proofs',\n ValidatedTXID = 'ppoi_validated_txid',\n ValidateTXIDMerkleroot = 'ppoi_validate_txid_merkleroot',\n ValidatePOIMerkleroots = 'ppoi_validate_poi_merkleroots',\n}\n"]}
1
+ {"version":3,"file":"proof-of-innocence.js","sourceRoot":"","sources":["../../src/models/proof-of-innocence.ts"],"names":[],"mappings":";;;AA2CA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,iDAAiC,CAAA;AACnC,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAuDD,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AA8BD,IAAY,SASX;AATD,WAAY,SAAS;IACnB,6BAA6B;IAC7B,4BAAe,CAAA;IACf,iBAAiB;IACjB,4CAA+B,CAAA;IAC/B,2DAA2D;IAC3D,8CAAiC,CAAA;IACjC,sEAAsE;IACtE,gCAAmB,CAAA;AACrB,CAAC,EATW,SAAS,yBAAT,SAAS,QASpB;AAyCY,QAAA,sBAAsB,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS;AAC3C,QAAA,2BAA2B,GAAG,UAAU,CAAC;AACzC,QAAA,+BAA+B,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,WAAW;AACrD,QAAA,oCAAoC,GAAG,YAAY,CAAC;AAEjE,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AASY,QAAA,kBAAkB,GAAc;IAC3C;QACE,GAAG,EAAE,kEAAkE;QACvE,IAAI,EAAE,WAAW,CAAC,MAAM;QACxB,IAAI,EAAE,gCAAgC;QACtC,WAAW,EACT,2KAA2K;KAC9K;CACF,CAAC;AAEF,IAAY,gBAqBX;AArBD,WAAY,gBAAgB;IAC1B,0CAAsB,CAAA;IACtB,mDAA+B,CAAA;IAC/B,8EAA0D,CAAA;IAC1D,iDAA6B,CAAA;IAC7B,sEAAkD,CAAA;IAClD,2DAAuC,CAAA;IACvC,wEAAoD,CAAA;IACpD,2DAAuC,CAAA;IACvC,8DAA0C,CAAA;IAC1C,sEAAkD,CAAA;IAClD,sEAAkD,CAAA;IAClD,sEAAkD,CAAA;IAClD,qFAAiE,CAAA;IACjE,yFAAqE,CAAA;IACrE,sDAAkC,CAAA;IAClC,iFAA6D,CAAA;IAC7D,uDAAmC,CAAA;IACnC,yDAAqC,CAAA;IACrC,4EAAwD,CAAA;IACxD,4EAAwD,CAAA;AAC1D,CAAC,EArBW,gBAAgB,gCAAhB,gBAAgB,QAqB3B","sourcesContent":["import { TXIDVersion } from './engine';\nimport { NetworkName } from './network-config';\nimport { PreTransactionPOIsPerTxidLeafPerList } from './response-types';\nimport type { Optional } from '../types/global';\n\n// TODO: Migrate to using Chain object directly when PPOI API update is permissioned\nexport type ChainParams = {\n chainType: string;\n chainID: string;\n txidVersion: TXIDVersion;\n};\n\nexport type TransactProofData = {\n snarkProof: SnarkProof;\n poiMerkleroots: string[];\n txidMerkleroot: string;\n txidMerklerootIndex: number;\n blindedCommitmentsOut: string[];\n railgunTxidIfHasUnshield: string;\n};\n\nexport type SnarkProof = {\n pi_a: [string, string];\n pi_b: [[string, string], [string, string]];\n pi_c: [string, string];\n};\n\nexport type MerkleProof = {\n leaf: string; // hash of commitment\n elements: string[];\n indices: string;\n root: string;\n};\n\nexport type ShieldQueueStatus = {\n unknown: number;\n pending: number;\n allowed: number;\n blocked: number;\n addedPOI: number;\n latestShield: Optional<string>;\n};\n\nexport enum POIEventType {\n Shield = 'Shield',\n Transact = 'Transact',\n Unshield = 'Unshield',\n LegacyTransact = 'LegacyTransact',\n}\n\nexport type POIEventLengths = Record<POIEventType, number>;\n\nexport type POIListStatus = {\n poiEventLengths: POIEventLengths;\n listProviderPOIEventQueueLength: Optional<number>;\n pendingTransactProofs: number;\n blockedShields: number;\n historicalMerklerootsLength: number;\n latestHistoricalMerkleroot: string;\n};\n\nexport type GetTransactProofsParams = ChainParams & {\n listKey: string;\n};\n\nexport type GetBlockedShieldsParams = ChainParams & {\n listKey: string;\n startIndex?: number; // Optional, defaults to 0\n endIndex?: number; // Optional, defaults to startIndex + default limit\n};\n\nexport type LegacyTransactProofData = {\n txidIndex: string;\n npk: string;\n value: string;\n tokenHash: string;\n blindedCommitment: string;\n};\n\nexport type SingleCommitmentProofsData = {\n commitment: string;\n npk: string;\n utxoTreeIn: number;\n utxoTreeOut: number;\n utxoPositionOut: number;\n railgunTxid: string;\n pois: PreTransactionPOIsPerTxidLeafPerList;\n};\n\nexport type SubmitTransactProofParams = ChainParams & {\n listKey: string;\n transactProofData: TransactProofData;\n};\n\nexport type SubmitLegacyTransactProofParams = ChainParams & {\n listKeys: string[];\n legacyTransactProofDatas: LegacyTransactProofData[];\n};\n\nexport type SubmitSingleCommitmentProofsParams = ChainParams & {\n singleCommitmentProofsData: SingleCommitmentProofsData;\n};\n\nexport enum BlindedCommitmentType {\n Shield = 'Shield',\n Transact = 'Transact',\n Unshield = 'Unshield',\n}\n\nexport type ValidatePOIMerklerootsParams = ChainParams & {\n listKey: string;\n poiMerkleroots: string[];\n};\n\nexport type BlindedCommitmentData = {\n blindedCommitment: string;\n type: BlindedCommitmentType;\n};\n\nexport type GetPOIsPerListParams = ChainParams & {\n listKeys: string[];\n blindedCommitmentDatas: BlindedCommitmentData[];\n};\n\nexport type GetMerkleProofsParams = ChainParams & {\n listKey: string;\n blindedCommitments: string[];\n};\n\nexport type ValidateTxidMerklerootParams = ChainParams & {\n tree: number;\n index: number;\n merkleroot: string;\n};\n\nexport type GetLatestValidatedRailgunTxidParams = ChainParams;\n\nexport enum POIStatus {\n // POI valdated in event list\n Valid = 'Valid',\n // Shield blocked\n ShieldBlocked = 'ShieldBlocked',\n // Transact/Unshield proof submitted, but not validated yet\n ProofSubmitted = 'ProofSubmitted',\n // Missing internal/external transact/unshield proof, or ShieldPending\n Missing = 'Missing',\n}\n\nexport type POIsPerList = {\n [listKey: string]: POIStatus;\n};\n\nexport type POIsPerListMap = {\n [blindedCommitment: string]: POIsPerList;\n};\n\nexport type TxidMerkletreeSyncStatus = {\n currentTxidIndex: number;\n currentMerkleroot: string;\n validatedTxidIndex: number;\n validatedMerkleroot: string;\n};\n\nexport type RailgunTxidStatus = {\n currentTxidIndex: Optional<number>;\n currentMerkleroot: Optional<string>;\n validatedTxidIndex: Optional<number>;\n validatedMerkleroot: Optional<string>;\n};\n\nexport type ValidatedRailgunTxidStatus = {\n validatedTxidIndex: Optional<number>;\n validatedMerkleroot: Optional<string>;\n};\n\nexport type NodeStatusAllNetworks = {\n listKeys: string[];\n forNetwork: Partial<Record<NetworkName, NodeStatusForNetwork>>;\n};\n\nexport type NodeStatusForNetwork = {\n txidStatus: RailgunTxidStatus;\n shieldQueueStatus: ShieldQueueStatus;\n listStatuses: Record<string, POIListStatus>;\n legacyTransactProofs: number;\n};\n\nexport const POI_SHIELD_PENDING_SEC = 60 * 60; // 1 hour\nexport const POI_SHIELD_PENDING_SEC_TEXT = 'One hour';\nexport const POI_SHIELD_PENDING_SEC_TEST_NET = 1 * 60; // 1 minute\nexport const POI_SHIELD_PENDING_SEC_TEST_NET_TEXT = 'One minute';\n\nexport enum POIListType {\n Active = 'Active',\n Gather = 'Gather',\n}\n\nexport type POIList = {\n key: string;\n type: POIListType;\n name: string;\n description: string;\n};\n\nexport const POI_REQUIRED_LISTS: POIList[] = [\n {\n key: 'efc6ddb59c098a13fb2b618fdae94c1c3a807abc8fb1837c93620c9143ee9e88',\n type: POIListType.Active,\n name: 'Chainalysis OFAC Sanctions API',\n description:\n 'API which is used to restrict bad actors designated by the US Department of the Treasury. See: https://www.chainalysis.com/free-cryptocurrency-sanctions-screening-tools.',\n },\n];\n\nexport enum POIJSONRPCMethod {\n Health = 'ppoi_health',\n NodeStatus = 'ppoi_node_status',\n NodeStatusForwardedList = 'ppoi_node_status_forwardedList',\n POIEvents = 'ppoi_poi_events',\n POIMerkletreeLeaves = 'ppoi_poi_merkletree_leaves',\n TransactProofs = 'ppoi_transact_proofs',\n LegacyTransactProofs = 'ppoi_legacy_transact_proofs',\n BlockedShields = 'ppoi_blocked_shields',\n SubmitPOIEvents = 'ppoi_submit_poi_events',\n SubmitValidatedTXID = 'ppoi_submit_validated_txid',\n RemoveTransactProof = 'ppoi_remove_transact_proof',\n SubmitTransactProof = 'ppoi_submit_transact_proof',\n SubmitLegacyTransactProofs = 'ppoi_submit_legacy_transact_proofs',\n SubmitSingleCommitmentProofs = 'ppoi_submit_single_commitment_proofs',\n POIsPerList = 'ppoi_pois_per_list',\n POIsPerBlindedCommitment = 'ppoi_pois_per_blinded_commitment',\n MerkleProofs = 'ppoi_merkle_proofs',\n ValidatedTXID = 'ppoi_validated_txid',\n ValidateTXIDMerkleroot = 'ppoi_validate_txid_merkleroot',\n ValidatePOIMerkleroots = 'ppoi_validate_poi_merkleroots',\n}\n"]}
@@ -1,9 +1,9 @@
1
- /// <reference types="../types/global" />
2
1
  import { ContractTransaction } from 'ethers';
3
2
  import { MerkletreeScanStatus } from './merkletree-scan';
4
3
  import { FeesSerialized } from './network-config';
5
4
  import { TXIDVersion } from './engine';
6
5
  import { RailgunWalletBalanceBucket } from './balance';
6
+ import type { Optional } from '../types/global';
7
7
  export type RailgunAPICiphertext = {
8
8
  iv: string;
9
9
  data: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"response-types.js","sourceRoot":"","sources":["../../src/models/response-types.ts"],"names":[],"mappings":";;;AAYA;;;GAGG;AACH,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6CAAS,CAAA;IACT,6CAAS,CAAA;IACT,6CAAS,CAAA;AACX,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AA+BD,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,uCAAO,CAAA;AACT,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAgBD,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,4DAAqC,CAAA;IACrC,gDAAyB,CAAA;IACzB,sCAAe,CAAA;IACf,gEAAyC,CAAA;AAC3C,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AA4FD;;GAEG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,qDAAW,CAAA;AACb,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAqFD,IAAY,8BAMX;AAND,WAAY,8BAA8B;IACxC,+DAA6B,CAAA;IAC7B,mEAAiC,CAAA;IACjC,2EAAyC,CAAA;IACzC,iFAA+C,CAAA;IAC/C,qDAAmB,CAAA;AACrB,CAAC,EANW,8BAA8B,8CAA9B,8BAA8B,QAMzC;AAyBD,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,iEAAmC,CAAA;AACrC,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC","sourcesContent":["/// <reference types=\"../types/global\" />\nimport { ContractTransaction } from 'ethers';\nimport { MerkletreeScanStatus } from './merkletree-scan';\nimport { FeesSerialized } from './network-config';\nimport { TXIDVersion } from './engine';\nimport { RailgunWalletBalanceBucket } from './balance';\n\nexport type RailgunAPICiphertext = {\n iv: string;\n data: string[];\n};\n\n/**\n * Type0 / Type1 = non-EIP-1559 (gasPrice).\n * Type2 = EIP-1559 (maxFeePerGas and maxPriorityFeePerGas).\n */\nexport enum EVMGasType {\n Type0 = 0,\n Type1 = 1,\n Type2 = 2,\n}\n\nexport type TransactionGasDetails =\n | TransactionGasDetailsType0\n | TransactionGasDetailsType1\n | TransactionGasDetailsType2;\n\nexport type TransactionGasDetailsType0 = {\n evmGasType: EVMGasType.Type0;\n gasEstimate: bigint;\n gasPrice: bigint;\n};\n\nexport type TransactionGasDetailsType1 = {\n evmGasType: EVMGasType.Type1;\n gasEstimate: bigint;\n gasPrice: bigint;\n};\n\nexport type TransactionGasDetailsType2 = {\n evmGasType: EVMGasType.Type2;\n gasEstimate: bigint;\n maxFeePerGas: bigint;\n maxPriorityFeePerGas: bigint;\n};\n\nexport type FeeTokenDetails = {\n tokenAddress: string;\n feePerUnitGas: bigint;\n};\n\nexport enum ChainType {\n EVM = 0,\n}\n\nexport type Chain = {\n type: ChainType;\n id: number;\n};\n\nexport type RailgunBalancesEvent = {\n txidVersion: TXIDVersion;\n chain: Chain;\n railgunWalletID: string;\n balanceBucket: RailgunWalletBalanceBucket;\n erc20Amounts: RailgunERC20Amount[];\n nftAmounts: RailgunNFTAmount[];\n};\n\nexport enum POIProofEventStatus {\n LoadingNextBatch = 'LoadingNextBatch',\n InProgress = 'InProgress',\n Error = 'Error',\n AllProofsCompleted = 'AllProofsCompleted',\n}\n\nexport type POIProofProgressEvent = {\n status: POIProofEventStatus;\n txidVersion: TXIDVersion;\n chain: Chain;\n railgunWalletID: string;\n progress: number;\n listKey: string;\n txid: string;\n railgunTxid: string;\n index: number;\n totalCount: number;\n errMessage: Optional<string>;\n};\n\nexport type ProofProgressEvent = {\n progress: number;\n status: string;\n};\n\nexport type MerkletreeScanUpdateEvent = {\n chain: Chain;\n scanStatus: MerkletreeScanStatus;\n progress: number;\n};\n\nexport type LoadProviderResponse = {\n feesSerialized: FeesSerialized;\n};\n\nexport type RailgunWalletInfo = {\n id: string;\n railgunAddress: string;\n};\n\nexport type RailgunWalletAddressData = {\n masterPublicKey: bigint;\n viewingPublicKey: bigint;\n};\n\nexport type RailgunTxidFromNullifiersResponse = {\n txid?: string;\n};\n\nexport type Proof = {\n pi_a: [string, string];\n pi_b: [[string, string], [string, string]];\n pi_c: [string, string];\n};\n\nexport type PreTransactionPOI = {\n snarkProof: Proof;\n txidMerkleroot: string;\n poiMerkleroots: string[];\n blindedCommitmentsOut: string[];\n railgunTxidIfHasUnshield: string;\n};\n\nexport type PreTransactionPOIsPerTxidLeafPerList = Record<\n string, // listKey\n Record<\n string, // txidLeafHash\n PreTransactionPOI\n >\n>;\n\nexport type RailgunPopulateTransactionResponse = {\n transaction: ContractTransaction;\n nullifiers?: string[];\n preTransactionPOIsPerTxidLeafPerList: PreTransactionPOIsPerTxidLeafPerList;\n};\n\nexport type RailgunTransactionGasEstimateResponse = {\n gasEstimate: bigint;\n broadcasterFeeCommitment?: CommitmentSummary;\n};\n\nexport type RailgunERC20Recipient = {\n tokenAddress: string;\n recipientAddress: string;\n};\n\nexport type RailgunERC20Amount = {\n tokenAddress: string;\n amount: bigint;\n};\n\nexport type RailgunERC20AmountRecipient = RailgunERC20Amount & {\n recipientAddress: string;\n};\n\n/**\n * Synced NFT types from TokenType (@railgun-community/engine).\n */\nexport enum NFTTokenType {\n ERC721 = 1,\n ERC1155 = 2,\n}\n\nexport type NFTAmount = {\n nftAddress: string;\n nftTokenType: NFTTokenType;\n tokenSubID: string;\n amountString: string;\n};\n\nexport type NFTAmountRecipient = NFTAmount & {\n recipientAddress: string;\n};\n\nexport type RailgunNFTAmount = {\n nftAddress: string;\n nftTokenType: NFTTokenType;\n tokenSubID: string;\n amount: bigint;\n};\n\nexport type RailgunNFTAmountRecipient = RailgunNFTAmount & {\n recipientAddress: string;\n};\n\nexport type EncryptDataWithSharedKeyResponse = {\n encryptedData: [string, string];\n randomPubKey: string;\n sharedKey: Uint8Array;\n};\n\nexport type EncryptDataWithSharedKeySerialized = {\n encryptedData: [string, string];\n randomPubKey: string;\n sharedKey: string;\n};\n\nexport type Pbkdf2Response = string;\n\ntype SendAdditionalData = {\n recipientAddress: Optional<string>;\n walletSource: Optional<string>;\n memoText: Optional<string>;\n hasValidPOIForActiveLists: boolean;\n};\n\ntype HistoryAdditionalData = {\n hasValidPOIForActiveLists: boolean;\n};\n\nexport type RailgunHistoryERC20Amount = RailgunERC20Amount &\n HistoryAdditionalData;\n\nexport type RailgunHistoryNFTAmount = RailgunNFTAmount & HistoryAdditionalData;\n\nexport type RailgunHistorySendERC20Amount = RailgunHistoryERC20Amount &\n SendAdditionalData;\n\nexport type RailgunHistorySendNFTAmount = RailgunHistoryNFTAmount &\n SendAdditionalData;\n\ntype UnshieldAdditonalData = {\n unshieldFee: Optional<string>;\n hasValidPOIForActiveLists: boolean;\n};\n\nexport type RailgunHistoryUnshieldERC20Amount = RailgunHistorySendERC20Amount &\n UnshieldAdditonalData;\n\nexport type RailgunHistoryUnshieldNFTAmount = RailgunHistorySendNFTAmount &\n UnshieldAdditonalData;\n\ntype ReceiveAdditionalData = {\n senderAddress: Optional<string>;\n memoText: Optional<string>;\n shieldFee: Optional<string>;\n hasValidPOIForActiveLists: boolean;\n balanceBucket: RailgunWalletBalanceBucket;\n};\n\nexport type RailgunHistoryReceiveERC20Amount = RailgunHistoryERC20Amount &\n ReceiveAdditionalData;\n\nexport type RailgunHistoryReceiveNFTAmount = RailgunHistoryNFTAmount &\n ReceiveAdditionalData;\n\nexport enum TransactionHistoryItemCategory {\n ShieldERC20s = 'ShieldERC20s',\n UnshieldERC20s = 'UnshieldERC20s',\n TransferSendERC20s = 'TransferSendERC20s',\n TransferReceiveERC20s = 'TransferReceiveERC20s',\n Unknown = 'Unknown',\n}\n\nexport type TransactionHistoryItem = {\n txidVersion: TXIDVersion;\n txid: string;\n version: number;\n timestamp: Optional<number>;\n blockNumber: Optional<number>;\n receiveERC20Amounts: RailgunHistoryReceiveERC20Amount[];\n transferERC20Amounts: RailgunHistorySendERC20Amount[];\n changeERC20Amounts: RailgunHistoryERC20Amount[];\n broadcasterFeeERC20Amount?: RailgunHistoryERC20Amount;\n unshieldERC20Amounts: RailgunHistoryUnshieldERC20Amount[];\n receiveNFTAmounts: RailgunHistoryReceiveNFTAmount[];\n transferNFTAmounts: RailgunHistorySendNFTAmount[];\n unshieldNFTAmounts: RailgunHistoryUnshieldNFTAmount[];\n category: TransactionHistoryItemCategory;\n};\n\ntype Ciphertext = {\n iv: string;\n tag: string;\n data: string[];\n};\n\nexport enum XChaChaEncryptionAlgorithm {\n XChaCha = 'XChaCha',\n XChaChaPoly1305 = 'XChaChaPoly1305',\n}\n\nexport type CiphertextXChaCha = {\n algorithm: XChaChaEncryptionAlgorithm;\n nonce: string;\n bundle: string;\n};\n\nexport type CommitmentCiphertextV2 = {\n ciphertext: Ciphertext;\n blindedSenderViewingKey: string;\n blindedReceiverViewingKey: string;\n annotationData: string;\n memo: string;\n};\n\nexport type CommitmentCiphertextV3 = {\n ciphertext: CiphertextXChaCha;\n blindedSenderViewingKey: string;\n blindedReceiverViewingKey: string;\n};\n\nexport type CommitmentSummary = {\n commitmentCiphertext: CommitmentCiphertextV2 | CommitmentCiphertextV3;\n commitmentHash: string;\n};\n"]}
1
+ {"version":3,"file":"response-types.js","sourceRoot":"","sources":["../../src/models/response-types.ts"],"names":[],"mappings":";;;AAYA;;;GAGG;AACH,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,6CAAS,CAAA;IACT,6CAAS,CAAA;IACT,6CAAS,CAAA;AACX,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AA+BD,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,uCAAO,CAAA;AACT,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAgBD,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,4DAAqC,CAAA;IACrC,gDAAyB,CAAA;IACzB,sCAAe,CAAA;IACf,gEAAyC,CAAA;AAC3C,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AA4FD;;GAEG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mDAAU,CAAA;IACV,qDAAW,CAAA;AACb,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAqFD,IAAY,8BAMX;AAND,WAAY,8BAA8B;IACxC,+DAA6B,CAAA;IAC7B,mEAAiC,CAAA;IACjC,2EAAyC,CAAA;IACzC,iFAA+C,CAAA;IAC/C,qDAAmB,CAAA;AACrB,CAAC,EANW,8BAA8B,8CAA9B,8BAA8B,QAMzC;AAyBD,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,iEAAmC,CAAA;AACrC,CAAC,EAHW,0BAA0B,0CAA1B,0BAA0B,QAGrC","sourcesContent":["import { ContractTransaction } from 'ethers';\nimport { MerkletreeScanStatus } from './merkletree-scan';\nimport { FeesSerialized } from './network-config';\nimport { TXIDVersion } from './engine';\nimport { RailgunWalletBalanceBucket } from './balance';\nimport type { Optional } from '../types/global';\n\nexport type RailgunAPICiphertext = {\n iv: string;\n data: string[];\n};\n\n/**\n * Type0 / Type1 = non-EIP-1559 (gasPrice).\n * Type2 = EIP-1559 (maxFeePerGas and maxPriorityFeePerGas).\n */\nexport enum EVMGasType {\n Type0 = 0,\n Type1 = 1,\n Type2 = 2,\n}\n\nexport type TransactionGasDetails =\n | TransactionGasDetailsType0\n | TransactionGasDetailsType1\n | TransactionGasDetailsType2;\n\nexport type TransactionGasDetailsType0 = {\n evmGasType: EVMGasType.Type0;\n gasEstimate: bigint;\n gasPrice: bigint;\n};\n\nexport type TransactionGasDetailsType1 = {\n evmGasType: EVMGasType.Type1;\n gasEstimate: bigint;\n gasPrice: bigint;\n};\n\nexport type TransactionGasDetailsType2 = {\n evmGasType: EVMGasType.Type2;\n gasEstimate: bigint;\n maxFeePerGas: bigint;\n maxPriorityFeePerGas: bigint;\n};\n\nexport type FeeTokenDetails = {\n tokenAddress: string;\n feePerUnitGas: bigint;\n};\n\nexport enum ChainType {\n EVM = 0,\n}\n\nexport type Chain = {\n type: ChainType;\n id: number;\n};\n\nexport type RailgunBalancesEvent = {\n txidVersion: TXIDVersion;\n chain: Chain;\n railgunWalletID: string;\n balanceBucket: RailgunWalletBalanceBucket;\n erc20Amounts: RailgunERC20Amount[];\n nftAmounts: RailgunNFTAmount[];\n};\n\nexport enum POIProofEventStatus {\n LoadingNextBatch = 'LoadingNextBatch',\n InProgress = 'InProgress',\n Error = 'Error',\n AllProofsCompleted = 'AllProofsCompleted',\n}\n\nexport type POIProofProgressEvent = {\n status: POIProofEventStatus;\n txidVersion: TXIDVersion;\n chain: Chain;\n railgunWalletID: string;\n progress: number;\n listKey: string;\n txid: string;\n railgunTxid: string;\n index: number;\n totalCount: number;\n errMessage: Optional<string>;\n};\n\nexport type ProofProgressEvent = {\n progress: number;\n status: string;\n};\n\nexport type MerkletreeScanUpdateEvent = {\n chain: Chain;\n scanStatus: MerkletreeScanStatus;\n progress: number;\n};\n\nexport type LoadProviderResponse = {\n feesSerialized: FeesSerialized;\n};\n\nexport type RailgunWalletInfo = {\n id: string;\n railgunAddress: string;\n};\n\nexport type RailgunWalletAddressData = {\n masterPublicKey: bigint;\n viewingPublicKey: bigint;\n};\n\nexport type RailgunTxidFromNullifiersResponse = {\n txid?: string;\n};\n\nexport type Proof = {\n pi_a: [string, string];\n pi_b: [[string, string], [string, string]];\n pi_c: [string, string];\n};\n\nexport type PreTransactionPOI = {\n snarkProof: Proof;\n txidMerkleroot: string;\n poiMerkleroots: string[];\n blindedCommitmentsOut: string[];\n railgunTxidIfHasUnshield: string;\n};\n\nexport type PreTransactionPOIsPerTxidLeafPerList = Record<\n string, // listKey\n Record<\n string, // txidLeafHash\n PreTransactionPOI\n >\n>;\n\nexport type RailgunPopulateTransactionResponse = {\n transaction: ContractTransaction;\n nullifiers?: string[];\n preTransactionPOIsPerTxidLeafPerList: PreTransactionPOIsPerTxidLeafPerList;\n};\n\nexport type RailgunTransactionGasEstimateResponse = {\n gasEstimate: bigint;\n broadcasterFeeCommitment?: CommitmentSummary;\n};\n\nexport type RailgunERC20Recipient = {\n tokenAddress: string;\n recipientAddress: string;\n};\n\nexport type RailgunERC20Amount = {\n tokenAddress: string;\n amount: bigint;\n};\n\nexport type RailgunERC20AmountRecipient = RailgunERC20Amount & {\n recipientAddress: string;\n};\n\n/**\n * Synced NFT types from TokenType (@railgun-community/engine).\n */\nexport enum NFTTokenType {\n ERC721 = 1,\n ERC1155 = 2,\n}\n\nexport type NFTAmount = {\n nftAddress: string;\n nftTokenType: NFTTokenType;\n tokenSubID: string;\n amountString: string;\n};\n\nexport type NFTAmountRecipient = NFTAmount & {\n recipientAddress: string;\n};\n\nexport type RailgunNFTAmount = {\n nftAddress: string;\n nftTokenType: NFTTokenType;\n tokenSubID: string;\n amount: bigint;\n};\n\nexport type RailgunNFTAmountRecipient = RailgunNFTAmount & {\n recipientAddress: string;\n};\n\nexport type EncryptDataWithSharedKeyResponse = {\n encryptedData: [string, string];\n randomPubKey: string;\n sharedKey: Uint8Array;\n};\n\nexport type EncryptDataWithSharedKeySerialized = {\n encryptedData: [string, string];\n randomPubKey: string;\n sharedKey: string;\n};\n\nexport type Pbkdf2Response = string;\n\ntype SendAdditionalData = {\n recipientAddress: Optional<string>;\n walletSource: Optional<string>;\n memoText: Optional<string>;\n hasValidPOIForActiveLists: boolean;\n};\n\ntype HistoryAdditionalData = {\n hasValidPOIForActiveLists: boolean;\n};\n\nexport type RailgunHistoryERC20Amount = RailgunERC20Amount &\n HistoryAdditionalData;\n\nexport type RailgunHistoryNFTAmount = RailgunNFTAmount & HistoryAdditionalData;\n\nexport type RailgunHistorySendERC20Amount = RailgunHistoryERC20Amount &\n SendAdditionalData;\n\nexport type RailgunHistorySendNFTAmount = RailgunHistoryNFTAmount &\n SendAdditionalData;\n\ntype UnshieldAdditonalData = {\n unshieldFee: Optional<string>;\n hasValidPOIForActiveLists: boolean;\n};\n\nexport type RailgunHistoryUnshieldERC20Amount = RailgunHistorySendERC20Amount &\n UnshieldAdditonalData;\n\nexport type RailgunHistoryUnshieldNFTAmount = RailgunHistorySendNFTAmount &\n UnshieldAdditonalData;\n\ntype ReceiveAdditionalData = {\n senderAddress: Optional<string>;\n memoText: Optional<string>;\n shieldFee: Optional<string>;\n hasValidPOIForActiveLists: boolean;\n balanceBucket: RailgunWalletBalanceBucket;\n};\n\nexport type RailgunHistoryReceiveERC20Amount = RailgunHistoryERC20Amount &\n ReceiveAdditionalData;\n\nexport type RailgunHistoryReceiveNFTAmount = RailgunHistoryNFTAmount &\n ReceiveAdditionalData;\n\nexport enum TransactionHistoryItemCategory {\n ShieldERC20s = 'ShieldERC20s',\n UnshieldERC20s = 'UnshieldERC20s',\n TransferSendERC20s = 'TransferSendERC20s',\n TransferReceiveERC20s = 'TransferReceiveERC20s',\n Unknown = 'Unknown',\n}\n\nexport type TransactionHistoryItem = {\n txidVersion: TXIDVersion;\n txid: string;\n version: number;\n timestamp: Optional<number>;\n blockNumber: Optional<number>;\n receiveERC20Amounts: RailgunHistoryReceiveERC20Amount[];\n transferERC20Amounts: RailgunHistorySendERC20Amount[];\n changeERC20Amounts: RailgunHistoryERC20Amount[];\n broadcasterFeeERC20Amount?: RailgunHistoryERC20Amount;\n unshieldERC20Amounts: RailgunHistoryUnshieldERC20Amount[];\n receiveNFTAmounts: RailgunHistoryReceiveNFTAmount[];\n transferNFTAmounts: RailgunHistorySendNFTAmount[];\n unshieldNFTAmounts: RailgunHistoryUnshieldNFTAmount[];\n category: TransactionHistoryItemCategory;\n};\n\ntype Ciphertext = {\n iv: string;\n tag: string;\n data: string[];\n};\n\nexport enum XChaChaEncryptionAlgorithm {\n XChaCha = 'XChaCha',\n XChaChaPoly1305 = 'XChaChaPoly1305',\n}\n\nexport type CiphertextXChaCha = {\n algorithm: XChaChaEncryptionAlgorithm;\n nonce: string;\n bundle: string;\n};\n\nexport type CommitmentCiphertextV2 = {\n ciphertext: Ciphertext;\n blindedSenderViewingKey: string;\n blindedReceiverViewingKey: string;\n annotationData: string;\n memo: string;\n};\n\nexport type CommitmentCiphertextV3 = {\n ciphertext: CiphertextXChaCha;\n blindedSenderViewingKey: string;\n blindedReceiverViewingKey: string;\n};\n\nexport type CommitmentSummary = {\n commitmentCiphertext: CommitmentCiphertextV2 | CommitmentCiphertextV3;\n commitmentHash: string;\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export type Optional<T> = T | undefined;
2
+ export type MapType<T> = Partial<Record<string, T>>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"","sourcesContent":["export type Optional<T> = T | undefined;\nexport type MapType<T> = Partial<Record<string, T>>;\n"]}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAvailableProviderJSONs = void 0;
4
- /// <reference types="../types/global" />
5
4
  const ethers_1 = require("ethers");
6
5
  const median_1 = require("./median");
7
6
  const promises_1 = require("./promises");
@@ -1 +1 @@
1
- {"version":3,"file":"available-rpc.js","sourceRoot":"","sources":["../../src/utils/available-rpc.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,mCAAoF;AAEpF,qCAA+C;AAC/C,yCAA4C;AAI5C,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC;;;GAGG;AACI,MAAM,yBAAyB,GAAG,KAAK,EAC5C,OAAe,EACf,aAA6B,EAC7B,QAAkB,EACO,EAAE;IAC3B,MAAM,YAAY,GAAuB,MAAM,OAAO,CAAC,GAAG,CACxD,aAAa,CAAC,GAAG,CACf,KAAK,EAAC,YAAY,EAAC,EAAE,CACnB,MAAM,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACjE,CACF,CAAC;IAEF,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAC7C,WAAW,CAAC,EAAE,CAAC,WAAW,IAAI,IAAI,IAAI,WAAW,GAAG,CAAC,CAC1C,CAAC;IACd,MAAM,iBAAiB,GAAG,IAAA,4BAAmB,EAAC,mBAAmB,CAAC,CAAC;IACnE,MAAM,eAAe,GAAG,iBAAiB,GAAG,GAAG,CAAC;IAChD,MAAM,eAAe,GAAG,iBAAiB,GAAG,GAAG,CAAC;IAEhD,OAAO,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KAAK,IAAI,IAAI,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;SAClC;QACD,OAAO,KAAK,CAAC,MAAM,CAAC;KACrB;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,sCAAsC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;SACpE;QACD,WAAW,CAAC,OAAO,EAAE,CAAC;QACtB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxB,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC","sourcesContent":["/// <reference types=\"../types/global\" />\nimport { JsonRpcProvider, Network, type Provider, WebSocketProvider } from 'ethers';\nimport { ProviderJson } from './fallback-provider';\nimport { getUpperBoundMedian } from './median';\nimport { promiseTimeout } from './promises';\n\ntype LogError = (err: string) => void;\n\nconst BLOCK_NUMBER_TIMEOUT_MS = 5000;\n\n/**\n * Health checks ProviderJson inputs, and returns an array of available RPC providers.\n * Available means that they respond to getBlockNumber(), and they are +/- 100 blocks from the median.\n */\nexport const getAvailableProviderJSONs = async (\n chainId: number,\n providerJsons: ProviderJson[],\n logError: LogError,\n): Promise<ProviderJson[]> => {\n const blockNumbers: Optional<number>[] = await Promise.all(\n providerJsons.map(\n async providerJson =>\n await getBlockNumber(chainId, providerJson.provider, logError),\n ),\n );\n\n const nonZeroBlockNumbers = blockNumbers.filter(\n blockNumber => blockNumber != null && blockNumber > 0,\n ) as number[];\n const medianBlockNumber = getUpperBoundMedian(nonZeroBlockNumbers);\n const lowerBoundRange = medianBlockNumber - 100;\n const upperBoundRange = medianBlockNumber + 100;\n\n return providerJsons.filter((providerJson, index) => {\n const blockNumber = blockNumbers[index];\n if (blockNumber == null) {\n logError(\n `RPC Health Check failed for ${providerJson.provider}: No Block Number`,\n );\n return false;\n }\n if (blockNumber < lowerBoundRange) {\n logError(\n `RPC Health Check failed for ${providerJson.provider}: Block Number -${\n medianBlockNumber - blockNumber\n } from median`,\n );\n return false;\n }\n if (blockNumber > upperBoundRange) {\n logError(\n `RPC Health Check failed for ${providerJson.provider}: Block Number +${\n blockNumber - medianBlockNumber\n } from median`,\n );\n return false;\n }\n return true;\n });\n};\n\nconst getBlockNumber = async (\n chainId: number,\n provider: string,\n logError: LogError,\n): Promise<Optional<number>> => {\n const network = Network.from(chainId);\n\n // Conditionally handle what type of provider is being passed\n let rpcProvider: Provider;\n\n // If URL starts with wss, use WebSocketProvider\n if(provider.startsWith('wss')) {\n rpcProvider = new WebSocketProvider(provider, network);\n } else {\n rpcProvider = new JsonRpcProvider(provider, network, {\n staticNetwork: network,\n });\n }\n\n try {\n const block = await promiseTimeout(\n rpcProvider.getBlock('latest'),\n BLOCK_NUMBER_TIMEOUT_MS,\n );\n if (block == null) {\n throw new Error('Block is null');\n }\n return block.number;\n } catch (cause) {\n if (!(cause instanceof Error)) {\n throw new Error('Non-error thrown from getBlockNumber', { cause });\n }\n rpcProvider.destroy();\n logError(cause.message);\n return undefined;\n }\n};\n"]}
1
+ {"version":3,"file":"available-rpc.js","sourceRoot":"","sources":["../../src/utils/available-rpc.ts"],"names":[],"mappings":";;;AAAA,mCAKgB;AAEhB,qCAA+C;AAC/C,yCAA4C;AAK5C,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC;;;GAGG;AACI,MAAM,yBAAyB,GAAG,KAAK,EAC5C,OAAe,EACf,aAA6B,EAC7B,QAAkB,EACO,EAAE;IAC3B,MAAM,YAAY,GAAuB,MAAM,OAAO,CAAC,GAAG,CACxD,aAAa,CAAC,GAAG,CACf,KAAK,EAAC,YAAY,EAAC,EAAE,CACnB,MAAM,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACjE,CACF,CAAC;IAEF,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAC7C,WAAW,CAAC,EAAE,CAAC,WAAW,IAAI,IAAI,IA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CAAC,QAAQ,EAAE,OAAO,EAAE;YACnD,aAAa,EAAE,OAAO;SACvB,CAAC,CAAC;KACJ;IAED,IAAI;QACF,MAAM,KAAK,GAAG,MAAM,IAAA,yBAAc,EAChC,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAC9B,uBAAuB,CACxB,CAAC;QACF,IAAI,KAAK,IAAI,IAAI,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;SAClC;QACD,OAAO,KAAK,CAAC,MAAM,CAAC;KACrB;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,sCAAsC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;SACpE;QACD,WAAW,CAAC,OAAO,EAAE,CAAC;QACtB,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxB,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC","sourcesContent":["import {\n JsonRpcProvider,\n Network,\n type Provider,\n WebSocketProvider,\n} from 'ethers';\nimport { ProviderJson } from './fallback-provider';\nimport { getUpperBoundMedian } from './median';\nimport { promiseTimeout } from './promises';\nimport type { Optional } from '../types/global';\n\ntype LogError = (err: string) => void;\n\nconst BLOCK_NUMBER_TIMEOUT_MS = 5000;\n\n/**\n * Health checks ProviderJson inputs, and returns an array of available RPC providers.\n * Available means that they respond to getBlockNumber(), and they are +/- 100 blocks from the median.\n */\nexport const getAvailableProviderJSONs = async (\n chainId: number,\n providerJsons: ProviderJson[],\n logError: LogError,\n): Promise<ProviderJson[]> => {\n const blockNumbers: Optional<number>[] = await Promise.all(\n providerJsons.map(\n async providerJson =>\n await getBlockNumber(chainId, providerJson.provider, logError),\n ),\n );\n\n const nonZeroBlockNumbers = blockNumbers.filter(\n blockNumber => blockNumber != null && blockNumber > 0,\n ) as number[];\n const medianBlockNumber = getUpperBoundMedian(nonZeroBlockNumbers);\n const lowerBoundRange = medianBlockNumber - 100;\n const upperBoundRange = medianBlockNumber + 100;\n\n return providerJsons.filter((providerJson, index) => {\n const blockNumber = blockNumbers[index];\n if (blockNumber == null) {\n logError(\n `RPC Health Check failed for ${providerJson.provider}: No Block Number`,\n );\n return false;\n }\n if (blockNumber < lowerBoundRange) {\n logError(\n `RPC Health Check failed for ${providerJson.provider}: Block Number -${\n medianBlockNumber - blockNumber\n } from median`,\n );\n return false;\n }\n if (blockNumber > upperBoundRange) {\n logError(\n `RPC Health Check failed for ${providerJson.provider}: Block Number +${\n blockNumber - medianBlockNumber\n } from median`,\n );\n return false;\n }\n return true;\n });\n};\n\nconst getBlockNumber = async (\n chainId: number,\n provider: string,\n logError: LogError,\n): Promise<Optional<number>> => {\n const network = Network.from(chainId);\n\n // Conditionally handle what type of provider is being passed\n let rpcProvider: Provider;\n\n // If URL starts with wss, use WebSocketProvider\n if (provider.startsWith('wss')) {\n rpcProvider = new WebSocketProvider(provider, network);\n } else {\n rpcProvider = new JsonRpcProvider(provider, network, {\n staticNetwork: network,\n });\n }\n\n try {\n const block = await promiseTimeout(\n rpcProvider.getBlock('latest'),\n BLOCK_NUMBER_TIMEOUT_MS,\n );\n if (block == null) {\n throw new Error('Block is null');\n }\n return block.number;\n } catch (cause) {\n if (!(cause instanceof Error)) {\n throw new Error('Non-error thrown from getBlockNumber', { cause });\n }\n rpcProvider.destroy();\n logError(cause.message);\n return undefined;\n }\n};\n"]}
@@ -1,5 +1,5 @@
1
- /// <reference types="../types/global" />
2
1
  import { Network, NetworkName } from '../models/network-config';
3
2
  import { Chain } from '../models/response-types';
3
+ import type { Optional } from '../types/global';
4
4
  export declare const networkForChain: (chain: Chain) => Optional<Network>;
5
5
  export declare const isHistoricalRelayAdaptContractAddress: (networkName: NetworkName, address: string) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/utils/network.ts"],"names":[],"mappings":";;;AAAA,6DAAgF;AAGzE,MAAM,eAAe,GAAG,CAAC,KAAY,EAAqB,EAAE;IACjE,OAAO,MAAM,CAAC,MAAM,CAAC,+BAAc,CAAC,CAAC,IAAI,CACvC,OAAO,CAAC,EAAE,CACR,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CACrE,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B;AAEK,MAAM,qCAAqC,GAAG,CACnD,WAAwB,EACxB,OAAe,EACf,EAAE;IACF,MAAM,OAAO,GAAG,+BAAc,CAAC,WAAW,CAAC,CAAC;IAC5C,OAAO,CACL,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;QACjD,OAAO,iBAAiB,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC;IACnE,CAAC,CAAC,IAAI,IAAI,CACX,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,qCAAqC,yCAUhD","sourcesContent":["import { Network, NETWORK_CONFIG, NetworkName } from '../models/network-config';\nimport { Chain } from '../models/response-types';\n\nexport const networkForChain = (chain: Chain): Optional<Network> => {\n return Object.values(NETWORK_CONFIG).find(\n network =>\n network.chain.type === chain.type && network.chain.id === chain.id,\n );\n};\n\nexport const isHistoricalRelayAdaptContractAddress = (\n networkName: NetworkName,\n address: string,\n) => {\n const network = NETWORK_CONFIG[networkName];\n return (\n network.relayAdaptHistory.find(historicalAddress => {\n return historicalAddress.toLowerCase() === address.toLowerCase();\n }) != null\n );\n};\n"]}
1
+ {"version":3,"file":"network.js","sourceRoot":"","sources":["../../src/utils/network.ts"],"names":[],"mappings":";;;AAAA,6DAAgF;AAIzE,MAAM,eAAe,GAAG,CAAC,KAAY,EAAqB,EAAE;IACjE,OAAO,MAAM,CAAC,MAAM,CAAC,+BAAc,CAAC,CAAC,IAAI,CACvC,OAAO,CAAC,EAAE,CACR,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CACrE,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,eAAe,mBAK1B;AAEK,MAAM,qCAAqC,GAAG,CACnD,WAAwB,EACxB,OAAe,EACf,EAAE;IACF,MAAM,OAAO,GAAG,+BAAc,CAAC,WAAW,CAAC,CAAC;IAC5C,OAAO,CACL,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;QACjD,OAAO,iBAAiB,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC;IACnE,CAAC,CAAC,IAAI,IAAI,CACX,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,qCAAqC,yCAUhD","sourcesContent":["import { Network, NETWORK_CONFIG, NetworkName } from '../models/network-config';\nimport { Chain } from '../models/response-types';\nimport type { Optional } from '../types/global';\n\nexport const networkForChain = (chain: Chain): Optional<Network> => {\n return Object.values(NETWORK_CONFIG).find(\n network =>\n network.chain.type === chain.type && network.chain.id === chain.id,\n );\n};\n\nexport const isHistoricalRelayAdaptContractAddress = (\n networkName: NetworkName,\n address: string,\n) => {\n const network = NETWORK_CONFIG[networkName];\n return (\n network.relayAdaptHistory.find(historicalAddress => {\n return historicalAddress.toLowerCase() === address.toLowerCase();\n }) != null\n );\n};\n"]}
@@ -1,4 +1,4 @@
1
- /// <reference types="../types/global" />
1
+ import type { Optional } from '../types/global';
2
2
  export declare const delay: (delayInMS: number) => Promise<void>;
3
3
  export declare function promiseTimeout<T>(promise: Promise<T>, ms: number, customTimeoutError?: Error): Promise<T>;
4
4
  export declare function poll<T>(fn: () => Promise<T>, passCondition: (result: T) => boolean, delayInMS: number, allowedAttempts?: number): Promise<Optional<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"promises.js","sourceRoot":"","sources":["../../src/utils/promises.ts"],"names":[],"mappings":";;;AAAO,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,aAAa,CAAC,MAAM,CAAC,EAAE;YACzB,OAAO,MAAM,CAAC;SACf;QACD,MAAM,IAAA,aAAK,EAAC,SAAS,CAAC,CAAC;QACvB,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC;QACpB,QAAQ,EAAE,CAAC;KACZ;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAjBD,oBAiBC","sourcesContent":["export const delay = (delayInMS: number): Promise<void> => {\n return new Promise(resolve => setTimeout(resolve, delayInMS));\n};\n\nexport function promiseTimeout<T>(\n promise: Promise<T>,\n ms: number,\n customTimeoutError?: Error,\n): Promise<T> {\n // Create a promise that rejects in <ms> milliseconds\n const timeout = new Promise((_resolve, reject) => {\n const id = setTimeout(() => {\n clearTimeout(id);\n reject(new Error(`Timed out in ${ms} ms.`));\n }, ms);\n });\n\n // Returns a race between our timeout and the passed in promise\n return Promise.race([promise, timeout])\n .then(result => result as T)\n .catch(err => {\n if (!(err instanceof Error)) {\n throw err;\n }\n if (err.message.startsWith('Timed out')) {\n throw customTimeoutError ?? err;\n }\n throw err;\n });\n}\n\nexport async function poll<T>(\n fn: () => Promise<T>,\n passCondition: (result: T) => boolean,\n delayInMS: number,\n allowedAttempts = 1,\n): Promise<Optional<T>> {\n let result = await fn();\n let attempts = 1;\n while (attempts <= allowedAttempts) {\n if (passCondition(result)) {\n return result;\n }\n await delay(delayInMS);\n result = await fn();\n attempts++;\n }\n return undefined;\n}\n"]}
1
+ {"version":3,"file":"promises.js","sourceRoot":"","sources":["../../src/utils/promises.ts"],"names":[],"mappings":";;;AAEO,MAAM,KAAK,GAAG,CAAC,SAAiB,EAAiB,EAAE;IACxD,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,KAAK,SAEhB;AAEF,SAAgB,cAAc,CAC5B,OAAmB,EACnB,EAAU,EACV,kBAA0B;IAE1B,qDAAqD;I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delay = (delayInMS: number): Promise<void> => {\n return new Promise(resolve => setTimeout(resolve, delayInMS));\n};\n\nexport function promiseTimeout<T>(\n promise: Promise<T>,\n ms: number,\n customTimeoutError?: Error,\n): Promise<T> {\n // Create a promise that rejects in <ms> milliseconds\n const timeout = new Promise((_resolve, reject) => {\n const id = setTimeout(() => {\n clearTimeout(id);\n reject(new Error(`Timed out in ${ms} ms.`));\n }, ms);\n });\n\n // Returns a race between our timeout and the passed in promise\n return Promise.race([promise, timeout])\n .then(result => result as T)\n .catch(err => {\n if (!(err instanceof Error)) {\n throw err;\n }\n if (err.message.startsWith('Timed out')) {\n throw customTimeoutError ?? err;\n }\n throw err;\n });\n}\n\nexport async function poll<T>(\n fn: () => Promise<T>,\n passCondition: (result: T) => boolean,\n delayInMS: number,\n allowedAttempts = 1,\n): Promise<Optional<T>> {\n let result = await fn();\n let attempts = 1;\n while (attempts <= allowedAttempts) {\n if (passCondition(result)) {\n return result;\n }\n await delay(delayInMS);\n result = await fn();\n attempts++;\n }\n return undefined;\n}\n"]}
@@ -1,3 +1,3 @@
1
- /// <reference types="../types/global" />
1
+ import type { Optional } from '../types/global';
2
2
  export declare const isDefined: <T>(a: T | null | undefined) => a is T;
3
3
  export declare const removeUndefineds: <T>(a: Optional<T>[]) => T[];
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":";;;AAAO,MAAM,SAAS,GAAG,CAAI,CAAuB,EAAU,EAAE;IAC9D,OAAO,OAAO,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,IAAI,CAAC;AAChD,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEK,MAAM,gBAAgB,GAAG,CAAI,CAAgB,EAAO,EAAE;IAC3D,MAAM,QAAQ,GAAQ,EAAE,CAAC;IACzB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACf,IAAI,IAAA,iBAAS,EAAC,IAAI,CAAC,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B","sourcesContent":["export const isDefined = <T>(a: T | undefined | null): a is T => {\n return typeof a !== 'undefined' && a !== null;\n};\n\nexport const removeUndefineds = <T>(a: Optional<T>[]): T[] => {\n const newArray: T[] = [];\n a.forEach(item => {\n if (isDefined(item)) {\n newArray.push(item);\n }\n });\n return newArray;\n};\n"]}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":";;;AAEO,MAAM,SAAS,GAAG,CAAI,CAAuB,EAAU,EAAE;IAC9D,OAAO,OAAO,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,IAAI,CAAC;AAChD,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB;AAEK,MAAM,gBAAgB,GAAG,CAAI,CAAgB,EAAO,EAAE;IAC3D,MAAM,QAAQ,GAAQ,EAAE,CAAC;IACzB,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACf,IAAI,IAAA,iBAAS,EAAC,IAAI,CAAC,EAAE;YACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B","sourcesContent":["import type { Optional } from '../types/global';\n\nexport const isDefined = <T>(a: T | undefined | null): a is T => {\n return typeof a !== 'undefined' && a !== null;\n};\n\nexport const removeUndefineds = <T>(a: Optional<T>[]): T[] => {\n const newArray: T[] = [];\n a.forEach(item => {\n if (isDefined(item)) {\n newArray.push(item);\n }\n });\n return newArray;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railgun-community/shared-models",
3
- "version": "7.6.0",
3
+ "version": "7.6.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [