Skip to content

Commit

Permalink
mainnet deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Jun 20, 2024
1 parent 63c1313 commit 9d76bdf
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 33 deletions.
32 changes: 16 additions & 16 deletions contracts/passport/verifiers/PUniversal2048Verifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,43 +50,43 @@ contract PUniversal2048Verifier {
uint256 constant gammay2 =
8495653923123431417604973247489272438418190587263600148770280649306958101930;
uint256 constant deltax1 =
10467109368028471504476653290394367601462234642142343606136228907218517117734;
18901844524502101276722137927368062465773667440980382055714460851517717084848;
uint256 constant deltax2 =
20041664300508700245872301606232395824387277037199887107445803518309441124089;
397835026312632180462094673745953011609804897624852144891167205439820779249;
uint256 constant deltay1 =
6167347551177216450153510332202830738398989218188716274084031705517133923066;
13504842054626981822127662007431695979951813232371127380355585924728866264349;
uint256 constant deltay2 =
1437373304967247978106964125903818107890677142054902950956914268750940892254;
9824536262222533989913932604322020152178948347457338562923785171132595885055;

uint256 constant IC0x =
5224632078549462575487626544462854103812346523127621841309685299377153019197;
1296286979189807937047757721259893646156810170944435403685944000417844748634;
uint256 constant IC0y =
13428598776507005639811359648826589477273995798913754948140105014235523055477;
11728320370974886027575804499307284481379230071852864613789772831703769245389;

uint256 constant IC1x =
6741592340484283143760262511893606637251616061101591526692812887274086918990;
11263798912262313236766607694556538632959153424887712715935541457109897463100;
uint256 constant IC1y =
19768739017094188189704397382561194274810465939818906406293007910932128347791;
1821384001305283827458072280986553330703368492718857681098629335944732008797;

uint256 constant IC2x =
84773788757458392476178182158578767027179042542471369199940146658743267338;
21130875003905335820516342106680245238653387718075669078658517241709648505071;
uint256 constant IC2y =
3789068335979740767968692984887243042740687342463461039853436310251010360223;
4992336984229820959950081332949908291978322362743740383251706399197280022566;

uint256 constant IC3x =
11882691962391424447607629717931533137354635475915510506143749606237747187229;
19901821509171762170097945991408268456784119433741964739047695846989138873947;
uint256 constant IC3y =
4253854045259718736119909710226740335070824809061623713169158247655425907822;
21477800893330180348157668448987246106206589471950992534686359420889935858671;

uint256 constant IC4x =
21528863522925343565814736072916710939996872500403768030142266592703706523189;
6298638153249609590059258405113725241365155340611832834812935582617402168893;
uint256 constant IC4y =
5229699484850350984233735501674810610932473891083157727099643125966558955357;
19943773152365499196684435164596544164001641303914682372264174517156111218055;

uint256 constant IC5x =
16870627704880289882805237875936184174859599524702967048017823935468059323418;
8080583512280445659220706821845704599831879136968934693976896752653328502073;
uint256 constant IC5y =
992187971627802564425435299122628527647754796682401711686723243762650805748;
4882360797783114521260637027693105377596202670675452676256138457602969544572;

// Memory data
uint16 constant pVk = 0;
Expand Down
32 changes: 16 additions & 16 deletions contracts/passport/verifiers/PUniversal4096Verifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,43 +50,43 @@ contract PUniversal4096Verifier {
uint256 constant gammay2 =
8495653923123431417604973247489272438418190587263600148770280649306958101930;
uint256 constant deltax1 =
5439143220593307318424922765878793190685648100719607944259218730741075626064;
4723746830393356920500176438307044898773261398360929821789823023794373557642;
uint256 constant deltax2 =
12136126639330242846959985481026292132349275677373756496495750478168974907971;
10082445122161434506353482526564553841272414742096390813043959928598036477616;
uint256 constant deltay1 =
5632511040854670724091712803146427837336119716760648735964706163064546975058;
9716268464648469272418674742894966262070883638636692689785043212628328101425;
uint256 constant deltay2 =
9011670937521150008170160964362333343602418080750539940013495731994746971711;
6994359751805786738573285166693552307907223457171765626494327024379786557495;

uint256 constant IC0x =
11094533375917366214668387109810194982382091247871437673511869698463697719566;
10263593916358031928179165031826411325515753868667350949730672022532663812220;
uint256 constant IC0y =
17561164148834332037984828900322351842589081161602925702251196518373320524523;
19499637404042011052262741868928872207392987134762315891788485737139745379959;

uint256 constant IC1x =
9123845996053375316684564970740757668938573252181041117772337755071019449951;
18811917250132344492611111968908168425597260463856196006248640920722130975130;
uint256 constant IC1y =
3061555314672759462569747728275530993511747887678977206619785072716316863538;
10044527417880700191288995461507652061073815238569278380665608138167598345375;

uint256 constant IC2x =
16367348920235445808195712367260462111482257142711720026060678226871998638999;
19773480908492054347368764404744558220562462205959928528654512723264662303912;
uint256 constant IC2y =
4151171958854210968876605083991842001023873413179944438659802575179480090371;
14578048649025261998938972568599613669874469113693490667301503459389692983368;

uint256 constant IC3x =
6931960840943362052368080217953259429079889688056119883449131682481019983312;
21158240006009620514426759365917265171196343409214016237952070013205496168528;
uint256 constant IC3y =
11632841900810806539847351468038738290119800278401817302671467769222759955768;
10441580328654065453893691859661612161269373674903875487745528773509325863390;

uint256 constant IC4x =
15671741140493440772202351981577205335152160812838616835753139774084793953013;
1846255734842111675615602221882223211876918409088522172136613962190348577355;
uint256 constant IC4y =
21644596442764198365268528639926536059232916398416182014636594735198003695845;
1570334957567098373293863786697196723646633250135329734775193414853596763425;

uint256 constant IC5x =
21437481931881693675427618952183260307326479958433389098531349799558179376609;
21810338511215650747357160754092233645829513743003731025650422696387689804140;
uint256 constant IC5y =
703454544424169478389610085489527291916408599611382694597459621446356772102;
12120519085828161752748061461038022857657094286360709669593766360438988379294;

// Memory data
uint16 constant pVk = 0;
Expand Down
4 changes: 4 additions & 0 deletions deploy/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ export async function getConfig() {
return await import("./rarimo-testnet");
}

if (hre.network.name == "rarimo-mainnet") {
return await import("./rarimo-mainnet");
}

throw new Error(`Config for network ${hre.network.name} is not specified`);
}
5 changes: 5 additions & 0 deletions deploy/config/rarimo-mainnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const treeSize = 80;
export const chainName = "Rarimo-mainnet";
export const tssSigner = "0xFBCC100421aC00FDf826948e467f0c95fDE72e18";
export const icaoMasterTreeMerkleRoot = "0x0eef24f25513eb3d3e13856805319553013158c347209287d090d3100e33c55b";
export const registrationName = "InitialRegistration";
2 changes: 1 addition & 1 deletion deploy/config/rarimo-testnet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const treeSize = 80;
export const chainName = "Rarimo-testnet";
export const tssSigner = "0x038D006846a3e203738cF80A02418e124203beb2";
export const icaoMasterTreeMerkleRoot = "0xca09a639ceafe2c7b3d37f1ddd78ae0b203332a3e7b180aa35435a0d3a8cd8c7";
export const icaoMasterTreeMerkleRoot = "0x0eef24f25513eb3d3e13856805319553013158c347209287d090d3100e33c55b";
export const registrationName = "InitialRegistration";
15 changes: 15 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ const config: HardhatUserConfig = {
gasPrice: 0,
gasMultiplier: 1.2,
},
"rarimo-mainnet": {
url: "https://rpc.evm.mainnet.rarimo.com",
accounts: privateKey(),
gasPrice: 0,
gasMultiplier: 1.2,
},
"q-testnet": {
url: "https://rpc.qtestnet.org/",
accounts: privateKey(),
Expand Down Expand Up @@ -92,6 +98,7 @@ const config: HardhatUserConfig = {
etherscan: {
apiKey: {
"rarimo-testnet": "abc",
"rarimo-mainnet": "abc",
"q-testnet": "abc",
sepolia: `${process.env.ETHERSCAN_KEY}`,
mainnet: `${process.env.ETHERSCAN_KEY}`,
Expand All @@ -111,6 +118,14 @@ const config: HardhatUserConfig = {
browserURL: "https://newevmscan.mainnet-beta.rarimo.com",
},
},
{
network: "rarimo-mainnet",
chainId: 201411,
urls: {
apiURL: "https://evmscan.mainnet.rarimo.com/api",
browserURL: "https://newevmscan.mainnet.rarimo.com",
},
},
{
network: "q-testnet",
chainId: 35443,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"deploy-localhost": "npx hardhat migrate --network localhost",
"deploy-sepolia": "npx hardhat migrate --network sepolia --verify",
"deploy-rarimo-testnet": "npx hardhat migrate --network rarimo-testnet --verify",
"deploy-rarimo-mainnet": "npx hardhat migrate --network rarimo-mainnet --verify",
"deploy-q-testnet": "npx hardhat migrate --network q-testnet --verify",
"deploy-chapel": "npx hardhat migrate --network chapel --verify",
"deploy-mumbai": "npx hardhat migrate --network mumbai --verify",
Expand Down

0 comments on commit 9d76bdf

Please sign in to comment.