Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
82 changes: 41 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
18 changes: 9 additions & 9 deletions src/explorer/utils/blobDecoder.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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}`;
Expand Down
2 changes: 1 addition & 1 deletion src/model/blackjack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BorshSchema, borshDeserialize } from "borsher";
import { StructuredBlobData, structuredBlobDataSchema } from "hyle";
import { StructuredBlobData, structuredBlobDataSchema } from "hyli";

export const blackjackContractName = "blackjack";

Expand Down
2 changes: 1 addition & 1 deletion src/model/faucet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/model/hydentity.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { borshSerialize, BorshSchema, borshDeserialize } from "borsher";
import { Blob } from "hyle";
import { Blob } from "hyli";

export const hydentityContractName = "hydentity";

Expand Down
6 changes: 3 additions & 3 deletions src/model/hyle.ts
Original file line number Diff line number Diff line change
@@ -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 };

Expand All @@ -15,7 +15,7 @@ export interface DeleteContractAction {
contract_name: string;
}

export const deserializeHyleAction = (
export const deserializeHyliAction = (
data: number[],
): StructuredBlobData<RegisterContractAction> | StructuredBlobData<DeleteContractAction> => {
try {
Expand All @@ -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");
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/model/orange_trail.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BorshSchema, borshDeserialize } from "borsher";
import { Identity, structuredBlobDataSchema } from "hyle";
import { Identity, structuredBlobDataSchema } from "hyli";

// --- Types ---

Expand Down
2 changes: 1 addition & 1 deletion src/model/seckp2256k1.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { borshSerialize, BorshSchema, borshDeserialize } from "borsher";
import { Blob, Identity } from "hyle";
import { Blob, Identity } from "hyli";

export const secp256k1ContractName = "secp256k1";

Expand Down
2 changes: 1 addition & 1 deletion src/model/smt_token.ts
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
4 changes: 2 additions & 2 deletions src/state/transactions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getNetworkIndexerApiUrl } from "@/state/network";

export type HyleOutput = {
export type HyliOutput = {
blobs: number[];
identity: string;
index: number;
Expand All @@ -17,7 +17,7 @@ export type HyleOutput = {
export type BlobInfo = {
contract_name: string;
data: string;
proof_outputs: HyleOutput[];
proof_outputs: HyliOutput[];
};

export type EventInfo = {
Expand Down