Ver Fonte

chore: apply new prettier formatting

Connor Prussin há 8 meses atrás
pai
commit
e9cb367176

+ 1 - 1
apps/staking/src/components/Dashboard/index.tsx

@@ -273,7 +273,7 @@ const Journey = ({
     )}
     {...props}
   >
-    <div className="grid size-full flex-none basis-0 place-content-center border border-neutral-600/50 bg-pythpurple-800 p-2 text-center font-semibold transition group-data-[empty]:py-8 group-hover/tab:bg-pythpurple-600/30 group-selected/tab:border-pythpurple-400/60 group-selected/tab:bg-pythpurple-600/60 group-hover/tab:group-selected/tab:bg-pythpurple-600/60 sm:py-4 sm:text-lg group-data-[empty]:sm:py-2">
+    <div className="group-selected/tab:border-pythpurple-400/60 group-selected/tab:bg-pythpurple-600/60 group-hover/tab:group-selected/tab:bg-pythpurple-600/60 grid size-full flex-none basis-0 place-content-center border border-neutral-600/50 bg-pythpurple-800 p-2 text-center font-semibold transition group-hover/tab:bg-pythpurple-600/30 group-data-[empty]:py-8 sm:py-4 sm:text-lg group-data-[empty]:sm:py-2">
       <span className="hidden group-data-[empty]:inline sm:inline">
         {longText}
       </span>

+ 2 - 2
apps/staking/src/components/Guide/index.tsx

@@ -63,12 +63,12 @@ export const Guide = ({ title, description, steps, ...props }: Props) => {
               id={index.toString()}
               className="group flex cursor-pointer flex-row items-center gap-4 border border-neutral-600/50 px-6 py-4 transition focus:outline-none focus-visible:ring-1 focus-visible:ring-pythpurple-400 selected:cursor-default selected:border-pythpurple-600 selected:bg-pythpurple-600/20 md:flex-1 md:px-4 md:py-2 lg:border-b lg:border-x-transparent lg:border-t-transparent lg:bg-black/40 lg:px-4 lg:py-6 lg:selected:border-neutral-600/50 lg:selected:border-b-transparent lg:selected:bg-black/40 xl:px-10 2xl:px-20"
             >
-              <Icon className="size-10 flex-none opacity-50 transition group-selected:opacity-100" />
+              <Icon className="group-selected:opacity-100 size-10 flex-none opacity-50 transition" />
               <div className="flex flex-col justify-between">
                 <div className="text-sm tracking-[0.5rem] opacity-50 md:tracking-wide">
                   STEP {index + 1}
                 </div>
-                <div className="opacity-50 transition group-selected:opacity-100 xl:text-xl">
+                <div className="group-selected:opacity-100 opacity-50 transition xl:text-xl">
                   {title}
                 </div>
               </div>

+ 2 - 2
apps/staking/src/components/NoWalletHome/index.tsx

@@ -209,14 +209,14 @@ const ProgramTab = ({
     )}
     {...props}
   >
-    <div className="relative hidden w-4/5 opacity-30 transition group-hover:opacity-60 group-selected:opacity-100 md:block">
+    <div className="group-selected:opacity-100 relative hidden w-4/5 opacity-30 transition group-hover:opacity-60 md:block">
       <div className="absolute inset-0 bg-[#E6DAFE] mix-blend-color" />
       <Image src={image} alt="" className="size-full" />
       <div className="absolute inset-0 top-16 text-center text-2xl text-pythpurple-800 lg:text-3xl">
         {description}
       </div>
     </div>
-    <div className="size-full border border-transparent text-center font-semibold leading-none transition group-selected:border-pythpurple-400 group-selected:bg-pythpurple-600 md:border-neutral-600/50 md:bg-pythpurple-800 md:text-lg md:group-selected:border-pythpurple-400">
+    <div className="group-selected:border-pythpurple-400 group-selected:bg-pythpurple-600 md:group-selected:border-pythpurple-400 size-full border border-transparent text-center font-semibold leading-none transition md:border-neutral-600/50 md:bg-pythpurple-800 md:text-lg">
       <div className="grid size-full place-content-center p-2 group-hover:bg-pythpurple-600/60 md:p-4">
         {children}
       </div>

+ 186 - 112
packages/component-library/src/theme.scss

@@ -405,169 +405,229 @@ $color: (
   "transparent": transparent,
   "background": (
     "primary": light-dark(pallette-color("white"), pallette-color("steel", 950)),
-    "nav-blur":
-      light-dark(
+    "nav-blur": light-dark(
         rgb(from pallette-color("white") r g b / 70%),
         rgb(from pallette-color("steel", 950) r g b / 70%)
       ),
     "modal": light-dark(pallette-color("white"), pallette-color("steel", 950)),
-    "secondary":
-      light-dark(pallette-color("beige", 100), pallette-color("steel", 900)),
-    "card-highlight":
-      light-dark(pallette-color("violet", 100), pallette-color("violet", 950)),
-    "card-secondary":
-      light-dark(pallette-color("white"), pallette-color("steel", 950)),
-  ),
-  "foreground":
-    light-dark(pallette-color("steel", 900), pallette-color("steel", 50)),
-  "heading":
-    light-dark(pallette-color("steel", 800), pallette-color("steel", 200)),
-  "paragraph":
-    light-dark(pallette-color("steel", 700), pallette-color("steel", 300)),
+    "secondary": light-dark(
+        pallette-color("beige", 100),
+        pallette-color("steel", 900)
+      ),
+    "card-highlight": light-dark(
+        pallette-color("violet", 100),
+        pallette-color("violet", 950)
+      ),
+    "card-secondary": light-dark(
+        pallette-color("white"),
+        pallette-color("steel", 950)
+      ),
+  ),
+  "foreground": light-dark(
+      pallette-color("steel", 900),
+      pallette-color("steel", 50)
+    ),
+  "heading": light-dark(
+      pallette-color("steel", 800),
+      pallette-color("steel", 200)
+    ),
+  "paragraph": light-dark(
+      pallette-color("steel", 700),
+      pallette-color("steel", 300)
+    ),
   "link": (
-    "primary":
-      light-dark(pallette-color("violet", 700), pallette-color("purple", 300)),
-    "normal":
-      light-dark(pallette-color("steel", 800), pallette-color("steel", 50)),
-  ),
-  "highlight":
-    light-dark(pallette-color("violet", 600), pallette-color("violet", 500)),
-  "muted":
-    light-dark(pallette-color("stone", 700), pallette-color("steel", 300)),
-  "border":
-    light-dark(pallette-color("stone", 300), pallette-color("steel", 600)),
+    "primary": light-dark(
+        pallette-color("violet", 700),
+        pallette-color("purple", 300)
+      ),
+    "normal": light-dark(
+        pallette-color("steel", 800),
+        pallette-color("steel", 50)
+      ),
+  ),
+  "highlight": light-dark(
+      pallette-color("violet", 600),
+      pallette-color("violet", 500)
+    ),
+  "muted": light-dark(
+      pallette-color("stone", 700),
+      pallette-color("steel", 300)
+    ),
+  "border": light-dark(
+      pallette-color("stone", 300),
+      pallette-color("steel", 600)
+    ),
   "selection": (
-    "background":
-      light-dark(pallette-color("violet", 600), pallette-color("violet", 400)),
-    "foreground":
-      light-dark(pallette-color("steel", 50), pallette-color("steel", 950)),
+    "background": light-dark(
+        pallette-color("violet", 600),
+        pallette-color("violet", 400)
+      ),
+    "foreground": light-dark(
+        pallette-color("steel", 50),
+        pallette-color("steel", 950)
+      ),
   ),
   "states": (
     "success": (
-      "base":
-        light-dark(
+      "base": light-dark(
           pallette-color("emerald", 600),
           pallette-color("emerald", 500)
         ),
-      "background":
-        light-dark(
+      "background": light-dark(
           pallette-color("emerald", 100),
           pallette-color("emerald", 950)
         ),
-      "normal":
-        light-dark(
+      "normal": light-dark(
           pallette-color("emerald", 600),
           pallette-color("emerald", 500)
         ),
       "hover": pallette-color("emerald", 700),
       "active": pallette-color("emerald", 800),
-      "border":
-        light-dark(
+      "border": light-dark(
           pallette-color("emerald", 400),
           pallette-color("emerald", 800)
         ),
     ),
     "error": (
       "base": light-dark(pallette-color("red", 600), pallette-color("red", 400)),
-      "color":
-        light-dark(pallette-color("red", 500), pallette-color("red", 400)),
-      "background":
-        light-dark(pallette-color("red", 100), pallette-color("red", 950)),
+      "color": light-dark(
+          pallette-color("red", 500),
+          pallette-color("red", 400)
+        ),
+      "background": light-dark(
+          pallette-color("red", 100),
+          pallette-color("red", 950)
+        ),
       "normal": pallette-color("red", 500),
       "hover": pallette-color("red", 600),
       "active": pallette-color("red", 700),
-      "border":
-        light-dark(pallette-color("red", 400), pallette-color("red", 900)),
+      "border": light-dark(
+          pallette-color("red", 400),
+          pallette-color("red", 900)
+        ),
     ),
     "neutral": (
-      "normal":
-        light-dark(pallette-color("steel", 900), pallette-color("steel", 50)),
-      "border":
-        light-dark(pallette-color("stone", 300), pallette-color("steel", 600)),
-      "background":
-        light-dark(pallette-color("white"), pallette-color("steel", 900)),
+      "normal": light-dark(
+          pallette-color("steel", 900),
+          pallette-color("steel", 50)
+        ),
+      "border": light-dark(
+          pallette-color("stone", 300),
+          pallette-color("steel", 600)
+        ),
+      "background": light-dark(
+          pallette-color("white"),
+          pallette-color("steel", 900)
+        ),
     ),
     "info": (
-      "background":
-        light-dark(pallette-color("indigo", 100), pallette-color("indigo", 950)),
-      "background-opaque":
-        light-dark(
+      "background": light-dark(
+          pallette-color("indigo", 100),
+          pallette-color("indigo", 950)
+        ),
+      "background-opaque": light-dark(
           rgb(from pallette-color("indigo", 200) r g b / 80%),
           rgb(from pallette-color("indigo", 950) r g b / 80%)
         ),
-      "icon":
-        light-dark(pallette-color("indigo", 600), pallette-color("indigo", 500)),
-      "normal":
-        light-dark(pallette-color("indigo", 600), pallette-color("indigo", 400)),
-      "border":
-        light-dark(pallette-color("indigo", 400), pallette-color("indigo", 800)),
+      "icon": light-dark(
+          pallette-color("indigo", 600),
+          pallette-color("indigo", 500)
+        ),
+      "normal": light-dark(
+          pallette-color("indigo", 600),
+          pallette-color("indigo", 400)
+        ),
+      "border": light-dark(
+          pallette-color("indigo", 400),
+          pallette-color("indigo", 800)
+        ),
     ),
     "warning": (
-      "normal":
-        light-dark(pallette-color("orange", 600), pallette-color("orange", 400)),
-      "background":
-        light-dark(pallette-color("orange", 100), pallette-color("orange", 950)),
-      "border":
-        light-dark(pallette-color("orange", 400), pallette-color("orange", 700)),
+      "normal": light-dark(
+          pallette-color("orange", 600),
+          pallette-color("orange", 400)
+        ),
+      "background": light-dark(
+          pallette-color("orange", 100),
+          pallette-color("orange", 950)
+        ),
+      "border": light-dark(
+          pallette-color("orange", 400),
+          pallette-color("orange", 700)
+        ),
     ),
     "yellow": (
       "normal": pallette-color("yellow", 500),
-      "background":
-        light-dark(pallette-color("yellow", 100), pallette-color("yellow", 900)),
+      "background": light-dark(
+          pallette-color("yellow", 100),
+          pallette-color("yellow", 900)
+        ),
     ),
     "lime": (
       "normal": pallette-color("lime", 500),
-      "background":
-        light-dark(pallette-color("lime", 100), pallette-color("lime", 900)),
+      "background": light-dark(
+          pallette-color("lime", 100),
+          pallette-color("lime", 900)
+        ),
     ),
     "data": (
-      "normal":
-        light-dark(pallette-color("violet", 600), pallette-color("violet", 400)),
-      "background":
-        light-dark(pallette-color("violet", 100), pallette-color("violet", 950)),
-      "border":
-        light-dark(pallette-color("violet", 200), pallette-color("violet", 800)),
+      "normal": light-dark(
+          pallette-color("violet", 600),
+          pallette-color("violet", 400)
+        ),
+      "background": light-dark(
+          pallette-color("violet", 100),
+          pallette-color("violet", 950)
+        ),
+      "border": light-dark(
+          pallette-color("violet", 200),
+          pallette-color("violet", 800)
+        ),
     ),
   ),
-  "focus":
-    light-dark(pallette-color("violet", 700), pallette-color("violet", 500)),
-  "focus-dim":
-    light-dark(
+  "focus": light-dark(
+      pallette-color("violet", 700),
+      pallette-color("violet", 500)
+    ),
+  "focus-dim": light-dark(
       rgb(from pallette-color("violet", 700) r g b / 30%),
       rgb(from pallette-color("violet", 500) r g b / 30%)
     ),
   "forms": (
     "input": (
       "hover": (
-        "border":
-          light-dark(pallette-color("stone", 400), pallette-color("steel", 500)),
+        "border": light-dark(
+            pallette-color("stone", 400),
+            pallette-color("steel", 500)
+          ),
       ),
     ),
   ),
   "chart": (
     "series": (
-      "primary":
-        light-dark(pallette-color("violet", 500), pallette-color("violet", 400)),
-      "neutral":
-        light-dark(pallette-color("stone", 500), pallette-color("steel", 300)),
+      "primary": light-dark(
+          pallette-color("violet", 500),
+          pallette-color("violet", 400)
+        ),
+      "neutral": light-dark(
+          pallette-color("stone", 500),
+          pallette-color("steel", 300)
+        ),
     ),
   ),
   "button": (
     "primary": (
       "foreground": pallette-color("white"),
       "background": (
-        "normal":
-          light-dark(
+        "normal": light-dark(
             pallette-color("violet", 700),
             pallette-color("violet", 600)
           ),
-        "hover":
-          light-dark(
+        "hover": light-dark(
             pallette-color("violet", 800),
             pallette-color("violet", 700)
           ),
-        "active":
-          light-dark(
+        "active": light-dark(
             pallette-color("violet", 900),
             pallette-color("violet", 800)
           ),
@@ -582,40 +642,54 @@ $color: (
       ),
     ),
     "solid": (
-      "foreground":
-        light-dark(pallette-color("steel", 50), pallette-color("steel", 900)),
+      "foreground": light-dark(
+          pallette-color("steel", 50),
+          pallette-color("steel", 900)
+        ),
       "background": (
-        "normal":
-          light-dark(pallette-color("steel", 900), pallette-color("steel", 50)),
-        "hover":
-          light-dark(pallette-color("steel", 600), pallette-color("steel", 200)),
-        "active":
-          light-dark(pallette-color("steel", 900), pallette-color("steel", 50)),
+        "normal": light-dark(
+            pallette-color("steel", 900),
+            pallette-color("steel", 50)
+          ),
+        "hover": light-dark(
+            pallette-color("steel", 600),
+            pallette-color("steel", 200)
+          ),
+        "active": light-dark(
+            pallette-color("steel", 900),
+            pallette-color("steel", 50)
+          ),
       ),
     ),
     "outline": (
-      "border":
-        light-dark(pallette-color("stone", 300), pallette-color("steel", 600)),
-      "foreground":
-        light-dark(pallette-color("stone", 900), pallette-color("steel", 50)),
+      "border": light-dark(
+          pallette-color("stone", 300),
+          pallette-color("steel", 600)
+        ),
+      "foreground": light-dark(
+          pallette-color("stone", 900),
+          pallette-color("steel", 50)
+        ),
       "background": (
-        "hover":
-          light-dark(
+        "hover": light-dark(
             rgb(from pallette-color("beige", 950) r g b / 5%),
             rgb(from pallette-color("steel", 50) r g b / 5%)
           ),
-        "active":
-          light-dark(
+        "active": light-dark(
             rgb(from pallette-color("beige", 950) r g b / 10%),
             rgb(from pallette-color("steel", 50) r g b / 10%)
           ),
       ),
     ),
     "disabled": (
-      "foreground":
-        light-dark(pallette-color("stone", 400), pallette-color("steel", 400)),
-      "background":
-        light-dark(pallette-color("stone", 200), pallette-color("steel", 600)),
+      "foreground": light-dark(
+          pallette-color("stone", 400),
+          pallette-color("steel", 400)
+        ),
+      "background": light-dark(
+          pallette-color("stone", 200),
+          pallette-color("steel", 600)
+        ),
     ),
   ),
 );

+ 24 - 24
target_chains/sui/cli-iota/src/cli.ts

@@ -66,7 +66,7 @@ yargs(hideBin(process.argv))
           endpoint: OPTIONS.endpoint,
         })
         .usage(
-          "$0 create --contract <contract-id> --feed-id <feed-id> --private-key <private-key>"
+          "$0 create --contract <contract-id> --feed-id <feed-id> --private-key <private-key>",
         );
     },
     async (argv) => {
@@ -76,10 +76,10 @@ yargs(hideBin(process.argv))
       const vaas = await priceService.getLatestVaas(feedIds);
       const digest = await contract.executeCreatePriceFeed(
         argv["private-key"],
-        vaas.map((vaa) => Buffer.from(vaa, "base64"))
+        vaas.map((vaa) => Buffer.from(vaa, "base64")),
       );
       console.log("Transaction successful. Digest:", digest);
-    }
+    },
   )
   .command(
     "create-all",
@@ -92,7 +92,7 @@ yargs(hideBin(process.argv))
           endpoint: OPTIONS.endpoint,
         })
         .usage(
-          "$0 create-all --contract <contract-id> --private-key <private-key>"
+          "$0 create-all --contract <contract-id> --private-key <private-key>",
         );
     },
     async (argv) => {
@@ -105,12 +105,12 @@ yargs(hideBin(process.argv))
         const vaas = await priceService.getLatestVaas(batch);
         const digest = await contract.executeCreatePriceFeed(
           argv["private-key"],
-          vaas.map((vaa) => Buffer.from(vaa, "base64"))
+          vaas.map((vaa) => Buffer.from(vaa, "base64")),
         );
         console.log("Transaction successful. Digest:", digest);
         console.log(`Progress: ${i + BATCH_SIZE}/${feedIds.length}`);
       }
-    }
+    },
   )
   .command(
     "generate-digest",
@@ -132,12 +132,12 @@ yargs(hideBin(process.argv))
           `iota move build --dump-bytecode-as-base64 --path ${__dirname}/${argv.path} 2> /dev/null`,
           {
             encoding: "utf-8",
-          }
-        )
+          },
+        ),
       );
       console.log("Contract digest:");
       console.log(Buffer.from(buildOutput.digest).toString("hex"));
-    }
+    },
   )
   .command(
     "deploy",
@@ -154,19 +154,19 @@ yargs(hideBin(process.argv))
           path: OPTIONS.path,
         })
         .usage(
-          "$0 deploy --private-key <private-key> --chain [iota_mainnet|iota_testnet] --path <path-to-contracts>"
+          "$0 deploy --private-key <private-key> --chain [iota_mainnet|iota_testnet] --path <path-to-contracts>",
         );
     },
     async (argv) => {
       const walletPrivateKey = argv["private-key"];
       const chain = DefaultStore.chains[argv.chain] as IotaChain;
       const keypair = Ed25519Keypair.fromSecretKey(
-        new Uint8Array(Buffer.from(walletPrivateKey, "hex"))
+        new Uint8Array(Buffer.from(walletPrivateKey, "hex")),
       );
       const result = await publishPackage(
         keypair,
         chain.getProvider(),
-        argv.path
+        argv.path,
       );
       const deploymentType = "stable";
       const config = getDefaultDeploymentConfig(deploymentType);
@@ -176,9 +176,9 @@ yargs(hideBin(process.argv))
         result.packageId,
         result.deployerCapId,
         result.upgradeCapId,
-        config
+        config,
       );
-    }
+    },
   )
   .command(
     "update-feeds",
@@ -192,7 +192,7 @@ yargs(hideBin(process.argv))
           endpoint: OPTIONS.endpoint,
         })
         .usage(
-          "$0 update-feeds --contract <contract-id> --feed-id <feed-id> --private-key <private-key>"
+          "$0 update-feeds --contract <contract-id> --feed-id <feed-id> --private-key <private-key>",
         );
     },
     async (argv) => {
@@ -203,10 +203,10 @@ yargs(hideBin(process.argv))
       const digest = await contract.executeUpdatePriceFeedWithFeeds(
         argv["private-key"],
         vaas.map((vaa) => Buffer.from(vaa, "base64")),
-        feedIds
+        feedIds,
       );
       console.log("Transaction successful. Digest:", digest);
-    }
+    },
   )
   .command(
     "upgrade",
@@ -224,13 +224,13 @@ yargs(hideBin(process.argv))
           path: OPTIONS.path,
         })
         .usage(
-          "$0 upgrade --private-key <private-key> --contract <contract-id> --vaa <upgrade-vaa>"
+          "$0 upgrade --private-key <private-key> --contract <contract-id> --vaa <upgrade-vaa>",
         );
     },
     async (argv) => {
       const contract = getContract(argv.contract);
       const keypair = Ed25519Keypair.fromSecretKey(
-        new Uint8Array(Buffer.from(argv["private-key"], "hex"))
+        new Uint8Array(Buffer.from(argv["private-key"], "hex")),
       );
 
       const pythContractsPath = resolve(`${__dirname}/${argv.path}`);
@@ -249,7 +249,7 @@ yargs(hideBin(process.argv))
         modules,
         dependencies,
         signedVaa,
-        contract
+        contract,
       );
       console.log("Tx digest", upgradeResults.digest);
       if (
@@ -260,7 +260,7 @@ yargs(hideBin(process.argv))
       }
 
       console.log(
-        "Upgrade successful, Executing the migrate function in a separate transaction..."
+        "Upgrade successful, Executing the migrate function in a separate transaction...",
       );
 
       // We can not do the migration in the same transaction since the newly published package is not found
@@ -271,7 +271,7 @@ yargs(hideBin(process.argv))
         contract.chain.getProvider(),
         signedVaa,
         contract,
-        pythPackageOld
+        pythPackageOld,
       );
       console.log("Tx digest", migrateResults.digest);
       if (
@@ -279,10 +279,10 @@ yargs(hideBin(process.argv))
         migrateResults.effects.status.status !== "success"
       ) {
         throw new Error(
-          `Migrate failed. Old package id is ${pythPackageOld}. Please do the migration manually`
+          `Migrate failed. Old package id is ${pythPackageOld}. Please do the migration manually`,
         );
       }
       console.log("Migrate successful");
-    }
+    },
   )
   .demandCommand().argv;

+ 13 - 13
target_chains/sui/cli-iota/src/pyth_deploy.ts

@@ -15,7 +15,7 @@ import { bcs } from "@iota/iota-sdk/bcs";
 export async function publishPackage(
   keypair: Ed25519Keypair,
   provider: IotaClient,
-  packagePath: string
+  packagePath: string,
 ): Promise<{ packageId: string; upgradeCapId: string; deployerCapId: string }> {
   // Build contracts
   const buildOutput: {
@@ -26,8 +26,8 @@ export async function publishPackage(
       `iota move build --dump-bytecode-as-base64 --path ${__dirname}/${packagePath} 2> /dev/null`,
       {
         encoding: "utf-8",
-      }
-    )
+      },
+    ),
   );
 
   console.log("buildOutput: ", buildOutput);
@@ -40,7 +40,7 @@ export async function publishPackage(
   const [upgradeCap] = txb.publish({
     modules: buildOutput.modules.map((m: string) => Array.from(fromB64(m))),
     dependencies: buildOutput.dependencies.map((d: string) =>
-      normalizeIotaObjectId(d)
+      normalizeIotaObjectId(d),
     ),
   });
 
@@ -58,7 +58,7 @@ export async function publishPackage(
   });
 
   const publishedChanges = result.objectChanges?.filter(
-    (change) => change.type === "published"
+    (change) => change.type === "published",
   );
 
   if (
@@ -67,7 +67,7 @@ export async function publishPackage(
   ) {
     throw new Error(
       "No publish event found in transaction:" +
-        JSON.stringify(result.objectChanges, null, 2)
+        JSON.stringify(result.objectChanges, null, 2),
     );
   }
 
@@ -108,7 +108,7 @@ export async function initPyth(
   config: {
     dataSources: DataSource[];
     governanceDataSource: DataSource;
-  }
+  },
 ) {
   const tx = new Transaction();
 
@@ -119,25 +119,25 @@ export async function initPyth(
       .serialize(
         config.dataSources.map((dataSource) => [
           ...Buffer.from(dataSource.emitterAddress, "hex"),
-        ])
-      )
+        ]),
+      ),
   );
   const dataSourceEmitterChainIds = tx.pure(
     bcs
       .vector(bcs.u64())
       .serialize(
-        config.dataSources.map((dataSource) => dataSource.emitterChain)
-      )
+        config.dataSources.map((dataSource) => dataSource.emitterChain),
+      ),
   );
   const governanceEmitterAddress = tx.pure(
     bcs
       .vector(bcs.u8())
       .serialize([
         ...Buffer.from(config.governanceDataSource.emitterAddress, "hex"),
-      ])
+      ]),
   );
   const governanceEmitterChainId = tx.pure(
-    bcs.u64().serialize(config.governanceDataSource.emitterChain)
+    bcs.u64().serialize(config.governanceDataSource.emitterChain),
   );
   const stalePriceThreshold = tx.pure.u64(60);
   tx.moveCall({

+ 7 - 7
target_chains/sui/cli-iota/src/upgrade_pyth.ts

@@ -18,13 +18,13 @@ export function buildForBytecodeAndDigest(packagePath: string) {
   } = JSON.parse(
     execSync(
       `iota move build --dump-bytecode-as-base64 -p ${packagePath} 2> /dev/null`,
-      { encoding: "utf-8" }
-    )
+      { encoding: "utf-8" },
+    ),
   );
   return {
     modules: buildOutput.modules.map((m: string) => Array.from(fromB64(m))),
     dependencies: buildOutput.dependencies.map((d: string) =>
-      normalizeIotaObjectId(d)
+      normalizeIotaObjectId(d),
     ),
     digest: Buffer.from(buildOutput.digest),
   };
@@ -36,7 +36,7 @@ export async function upgradePyth(
   modules: number[][],
   dependencies: string[],
   signedVaa: Buffer,
-  contract: IotaPriceFeedContract
+  contract: IotaPriceFeedContract,
 ) {
   const pythPackage = await contract.getPackageId(contract.stateId);
 
@@ -45,7 +45,7 @@ export async function upgradePyth(
   const verificationReceipt = await contract.getVaaVerificationReceipt(
     tx as any,
     pythPackage,
-    signedVaa
+    signedVaa,
   );
 
   // Authorize upgrade.
@@ -85,7 +85,7 @@ export async function migratePyth(
   provider: IotaClient,
   signedUpgradeVaa: Buffer,
   contract: IotaPriceFeedContract,
-  pythPackageOld: string
+  pythPackageOld: string,
 ) {
   const pythPackage = await contract.getPackageId(contract.stateId);
   const tx = new Transaction();
@@ -95,7 +95,7 @@ export async function migratePyth(
   const verificationReceipt = await contract.getVaaVerificationReceipt(
     tx,
     pythPackageOld,
-    signedUpgradeVaa
+    signedUpgradeVaa,
   );
   tx.moveCall({
     target: `${pythPackage}::migrate::migrate`,