diff --git a/bun.lockb b/bun.lockb index 0144c90..a476b65 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b362d56..41e3751 100644 --- a/package.json +++ b/package.json @@ -1,43 +1,43 @@ { - "name": "hyleou", - "private": true, - "version": "0.0.1", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview" - }, - "dependencies": { - "@cosmjs/proto-signing": "^0.32.4", - "@cosmjs/stargate": "^0.32.4", - "@noir-lang/backend_barretenberg": "^0.30.0", - "@noir-lang/noir_js": "^0.30.0", - "@types/three": "^0.177.0", - "@vueuse/core": "^13.3.0", - "asn1.js": "^5.4.1", - "chart.js": "^4.4.8", - "dotenv": "^16.4.7", - "face-api.js": "^0.22.2", - "hyle": "^0.2.4", - "pkijs": "^3.2.5", - "protobufjs": "^7.4.0", - "rollup-plugin-copy": "^3.5.0", - "three": "^0.177.0", - "vue": "^3.5.13", - "vue-chartjs": "^5.3.2", - "vue-router": "^4.5.0" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^5.2.3", - "autoprefixer": "^10.4.21", - "postcss": "^8.5.3", - "prettier": "3.3.1", - "rollup-plugin-analyzer": "^4.0.0", - "rollup-plugin-visualizer": "^5.14.0", - "tailwindcss": "^3.4.17", - "typescript": "^5.8.2", - "vite": "^5.4.16", - "vue-tsc": "^2.2.8" - } + "name": "hyliou", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "@cosmjs/proto-signing": "^0.32.4", + "@cosmjs/stargate": "^0.32.4", + "@noir-lang/backend_barretenberg": "^0.30.0", + "@noir-lang/noir_js": "^0.30.0", + "@types/three": "^0.177.0", + "@vueuse/core": "^13.8.0", + "asn1.js": "^5.4.1", + "chart.js": "^4.5.0", + "dotenv": "^16.6.1", + "face-api.js": "^0.22.2", + "hyli": "^0.4.0", + "pkijs": "^3.2.5", + "protobufjs": "^7.5.4", + "rollup-plugin-copy": "^3.5.0", + "three": "^0.177.0", + "vue": "^3.5.20", + "vue-chartjs": "^5.3.2", + "vue-router": "^4.5.1" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^5.2.4", + "autoprefixer": "^10.4.21", + "postcss": "^8.5.6", + "prettier": "3.3.1", + "rollup-plugin-analyzer": "^4.0.0", + "rollup-plugin-visualizer": "^5.14.0", + "tailwindcss": "^3.4.17", + "typescript": "^5.9.2", + "vite": "^5.4.19", + "vue-tsc": "^2.2.12" + } } diff --git a/src/explorer/utils/blobDecoder.ts b/src/explorer/utils/blobDecoder.ts index df175a6..02f0465 100644 --- a/src/explorer/utils/blobDecoder.ts +++ b/src/explorer/utils/blobDecoder.ts @@ -1,9 +1,9 @@ -import * as hyle from "hyle/model"; +import * as hyli from "hyli/model"; import { deserializeHydentityAction } from "@/model/hydentity"; import { deserializeBlackJackAction } from "@/model/blackjack"; import { deserializeSecp256k1Blob } from "@/model/seckp2256k1"; import { deserializeWalletAction } from "@/model/wallet"; -import { deserializeHyleAction } from "@/model/hyle"; +import { deserializeHyliAction } from "@/model/hyli"; import { deserializeSmtTokenAction } from "@/model/smt_token"; import { deserializeFaucetAction } from "@/model/faucet"; import { deserializeOrderbookAction } from "@/model/orderbook"; @@ -58,17 +58,17 @@ export const decodeBlobData = (hex: string, contractName: string): string => { if (data === null) return "Invalid hex data"; switch (contractName) { - case "hyle": - const hyleAction = deserializeHyleAction(data); - return formatObject(hyleAction); + case "hyli": + const hyliAction = deserializeHyleAction(data); + return formatObject(hyliAction); case "hyllar": - const erc20Action = hyle.token.deserializeERC20Action(data); + const erc20Action = hyli.token.deserializeERC20Action(data); return formatObject(erc20Action); case "amm": - const ammAction = hyle.amm.deserializeAmmAction(data); + const ammAction = hyli.amm.deserializeAmmAction(data); return formatObject(ammAction); case "mmid": - const identityAction = hyle.mmid.deserializeIdentityAction(data); + const identityAction = hyli.mmid.deserializeIdentityAction(data); return formatObject(identityAction); case "hydentity": const hydentityAction = deserializeHydentityAction(data); @@ -96,7 +96,7 @@ export const decodeBlobData = (hex: string, contractName: string): string => { const faucetBlob = deserializeFaucetAction(data); return formatObject(faucetBlob); case "staking": - const stakingAction = hyle.staking.deserializeStakingAction(data); + const stakingAction = hyli.staking.deserializeStakingAction(data); return formatObject(stakingAction); case "check_secret": return `Check secret for hash ${hex}`; diff --git a/src/model/blackjack.ts b/src/model/blackjack.ts index 6ad6800..275fe2f 100644 --- a/src/model/blackjack.ts +++ b/src/model/blackjack.ts @@ -1,5 +1,5 @@ import { BorshSchema, borshDeserialize } from "borsher"; -import { StructuredBlobData, structuredBlobDataSchema } from "hyle"; +import { StructuredBlobData, structuredBlobDataSchema } from "hyli"; export const blackjackContractName = "blackjack"; diff --git a/src/model/faucet.ts b/src/model/faucet.ts index 31e4de5..f63ac8b 100644 --- a/src/model/faucet.ts +++ b/src/model/faucet.ts @@ -13,7 +13,7 @@ export interface faucet { } import { borshSerialize, BorshSchema, borshDeserialize } from "borsher"; -import { Blob, StructuredBlobData, structuredBlobDataSchema } from "hyle"; +import { Blob, StructuredBlobData, structuredBlobDataSchema } from "hyli"; export let faucetContractName = "faucet"; // Default value that will be updated diff --git a/src/model/hydentity.ts b/src/model/hydentity.ts index 893ec1f..514c6a3 100644 --- a/src/model/hydentity.ts +++ b/src/model/hydentity.ts @@ -1,5 +1,5 @@ import { borshSerialize, BorshSchema, borshDeserialize } from "borsher"; -import { Blob } from "hyle"; +import { Blob } from "hyli"; export const hydentityContractName = "hydentity"; diff --git a/src/model/hyle.ts b/src/model/hyle.ts index 1fc1208..b5eca16 100644 --- a/src/model/hyle.ts +++ b/src/model/hyle.ts @@ -1,5 +1,5 @@ import { BorshSchema, borshDeserialize } from "borsher"; -import { StructuredBlobData, structuredBlobDataSchema } from "hyle"; +import { StructuredBlobData, structuredBlobDataSchema } from "hyli"; export type TimeoutWindow = { NoTimeout: {} } | { Timeout: number }; @@ -15,7 +15,7 @@ export interface DeleteContractAction { contract_name: string; } -export const deserializeHyleAction = ( +export const deserializeHyliAction = ( data: number[], ): StructuredBlobData | StructuredBlobData => { try { @@ -25,7 +25,7 @@ export const deserializeHyleAction = ( try { return deserializeDeleteContractAction(data); } catch (e) { - throw new Error("Failed to deserialize Hyle action"); + throw new Error("Failed to deserialize Hyli action"); } } }; diff --git a/src/model/orange_trail.ts b/src/model/orange_trail.ts index 61a86a4..b0b6a8f 100644 --- a/src/model/orange_trail.ts +++ b/src/model/orange_trail.ts @@ -1,5 +1,5 @@ import { BorshSchema, borshDeserialize } from "borsher"; -import { Identity, structuredBlobDataSchema } from "hyle"; +import { Identity, structuredBlobDataSchema } from "hyli"; // --- Types --- diff --git a/src/model/seckp2256k1.ts b/src/model/seckp2256k1.ts index 08bafbd..66e5067 100644 --- a/src/model/seckp2256k1.ts +++ b/src/model/seckp2256k1.ts @@ -1,5 +1,5 @@ import { borshSerialize, BorshSchema, borshDeserialize } from "borsher"; -import { Blob, Identity } from "hyle"; +import { Blob, Identity } from "hyli"; export const secp256k1ContractName = "secp256k1"; diff --git a/src/model/smt_token.ts b/src/model/smt_token.ts index f3ae06d..b7a6526 100644 --- a/src/model/smt_token.ts +++ b/src/model/smt_token.ts @@ -1,5 +1,5 @@ import { BorshSchema, borshDeserialize, borshSerialize } from "borsher"; -import { Blob, StructuredBlobData, structuredBlobDataSchema } from "hyle"; +import { Blob, StructuredBlobData, structuredBlobDataSchema } from "hyli"; /** * TypeScript : équivalent de l’enum Rust `SmtTokenAction` diff --git a/src/state/transactions.ts b/src/state/transactions.ts index a7d96b4..3ac4d94 100644 --- a/src/state/transactions.ts +++ b/src/state/transactions.ts @@ -1,6 +1,6 @@ import { getNetworkIndexerApiUrl } from "@/state/network"; -export type HyleOutput = { +export type HyliOutput = { blobs: number[]; identity: string; index: number; @@ -17,7 +17,7 @@ export type HyleOutput = { export type BlobInfo = { contract_name: string; data: string; - proof_outputs: HyleOutput[]; + proof_outputs: HyliOutput[]; }; export type EventInfo = {