Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
31 changes: 23 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,41 @@
"@commitlint/config-conventional": "^20.2.0",
"@conventional-changelog/git-client": "^2.0.0",
"@types/node": "^24.10.2",
"@vitest/coverage-v8": "^4.0.15",
"@vitest/ui": "^4.0.15",
"@vitest/coverage-v8": "^4.1.4",
"@vitest/ui": "^4.1.4",
"conventional-changelog-conventionalcommits": "^8.0.0",
"conventional-changelog-writer": "^8.0.1",
"conventional-recommended-bump": "^11.0.0",
"dotenv-cli": "^8.0.0",
"happy-dom": "^20.0.11",
"happy-dom": "^20.8.9",
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"semver": "^7.7.1",
"solc": "0.8.27",
"typescript": "^5.9.3",
"undici": ">=5.29.0",
"undici": "^6.24.1",
"vite": "^8.0.8",
"viem": "^2.41.2",
"vitest": "^4.0.15"
"vitest": "^4.1.4"
},
"pnpm": {
"overrides": {
"axios": ">=1.12.0",
"js-yaml": ">=4.1.1",
"undici": ">=5.29.0"
"@babel/helpers": "7.29.2",
"@graphql-codegen/client-preset": "5.2.4",
"ajv": "8.18.0",
"axios": "1.15.0",
"flatted": "3.4.2",
"handlebars": "4.7.9",
"js-yaml": "4.1.1",
"lodash": "4.18.1",
"micromatch>picomatch": "2.3.2",
"rollup": "4.60.1",
"tinyglobby>picomatch": "4.0.4",
"tmp": "0.2.4",
"undici": "6.24.1",
"vite": "8.0.8",
"vitest>picomatch": "4.0.4",
"yaml": "2.8.3"
}
},
"lint-staged": {
Expand Down
75 changes: 0 additions & 75 deletions packages/blue-sdk-viem/hardhat.config.cjs

This file was deleted.

5 changes: 2 additions & 3 deletions packages/blue-sdk-viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"files": ["lib"],
"scripts": {
"prepublish": "$npm_execpath build",
"compile": "hardhat compile",
"compile": "node ../../scripts/compile-solidity.js blue-sdk-viem",
"build": "tsc --noEmit && $npm_execpath build:cjs && $npm_execpath build:esm",
"build:cjs": "tsc --build tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.build.esm.json && echo '{\"type\":\"module\"}' > lib/esm/package.json"
Expand All @@ -31,10 +31,9 @@
"@morpho-org/morpho-test": "workspace:^",
"@morpho-org/morpho-ts": "workspace:^",
"@morpho-org/test": "workspace:^",
"hardhat": "^2.27.1",
"typescript": "^5.9.3",
"viem": "^2.41.2",
"vitest": "^4.0.15"
"vitest": "^4.1.4"
},
"publishConfig": {
"exports": {
Expand Down
30 changes: 25 additions & 5 deletions packages/blue-sdk-viem/src/queries/GetHolding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ export const abi = [
name: "token",
type: "address",
},
{ internalType: "address", name: "account", type: "address" },
{ internalType: "address", name: "morpho", type: "address" },
{
internalType: "address",
name: "account",
type: "address",
},
{
internalType: "address",
name: "morpho",
type: "address",
},
{
internalType: "contract IPermit2",
name: "permit2",
Expand All @@ -33,7 +41,11 @@ export const abi = [
outputs: [
{
components: [
{ internalType: "uint256", name: "balance", type: "uint256" },
{
internalType: "uint256",
name: "balance",
type: "uint256",
},
{
components: [
{
Expand Down Expand Up @@ -68,13 +80,21 @@ export const abi = [
name: "expiration",
type: "uint48",
},
{ internalType: "uint48", name: "nonce", type: "uint48" },
{
internalType: "uint48",
name: "nonce",
type: "uint48",
},
],
internalType: "struct Permit2Allowance",
name: "permit2BundlerAllowance",
type: "tuple",
},
{ internalType: "bool", name: "isErc2612", type: "bool" },
{
internalType: "bool",
name: "isErc2612",
type: "bool",
},
{
internalType: "uint256",
name: "erc2612Nonce",
Expand Down
30 changes: 25 additions & 5 deletions packages/blue-sdk-viem/src/queries/GetMarket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export const abi = [
name: "morpho",
type: "address",
},
{ internalType: "Id", name: "id", type: "bytes32" },
{
internalType: "Id",
name: "id",
type: "bytes32",
},
{
internalType: "contract IAdaptiveCurveIrm",
name: "adaptiveCurveIrm",
Expand Down Expand Up @@ -34,7 +38,11 @@ export const abi = [
name: "oracle",
type: "address",
},
{ internalType: "address", name: "irm", type: "address" },
{
internalType: "address",
name: "irm",
type: "address",
},
{
internalType: "uint256",
name: "lltv",
Expand Down Expand Up @@ -72,14 +80,26 @@ export const abi = [
name: "lastUpdate",
type: "uint128",
},
{ internalType: "uint128", name: "fee", type: "uint128" },
{
internalType: "uint128",
name: "fee",
type: "uint128",
},
],
internalType: "struct Market",
name: "market",
type: "tuple",
},
{ internalType: "bool", name: "hasPrice", type: "bool" },
{ internalType: "uint256", name: "price", type: "uint256" },
{
internalType: "bool",
name: "hasPrice",
type: "bool",
},
{
internalType: "uint256",
name: "price",
type: "uint256",
},
{
internalType: "uint256",
name: "rateAtTarget",
Expand Down
36 changes: 30 additions & 6 deletions packages/blue-sdk-viem/src/queries/GetToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export const abi = [
name: "token",
type: "address",
},
{ internalType: "bool", name: "isWstEth", type: "bool" },
{
internalType: "bool",
name: "isWstEth",
type: "bool",
},
],
name: "query",
outputs: [
Expand All @@ -17,10 +21,26 @@ export const abi = [
name: "decimals",
type: "uint256",
},
{ internalType: "bool", name: "hasSymbol", type: "bool" },
{ internalType: "string", name: "symbol", type: "string" },
{ internalType: "bool", name: "hasName", type: "bool" },
{ internalType: "string", name: "name", type: "string" },
{
internalType: "bool",
name: "hasSymbol",
type: "bool",
},
{
internalType: "string",
name: "symbol",
type: "string",
},
{
internalType: "bool",
name: "hasName",
type: "bool",
},
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "uint256",
name: "stEthPerWstEth",
Expand All @@ -33,7 +53,11 @@ export const abi = [
name: "fields",
type: "bytes1",
},
{ internalType: "string", name: "name", type: "string" },
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "string",
name: "version",
Expand Down
42 changes: 35 additions & 7 deletions packages/blue-sdk-viem/src/queries/GetVault.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
export const abi = [
{
inputs: [
{ internalType: "address", name: "factory", type: "address" },
{ internalType: "address", name: "vault", type: "address" },
{
internalType: "address",
name: "factory",
type: "address",
},
{
internalType: "address",
name: "vault",
type: "address",
},
],
name: "UnknownOfFactory",
type: "error",
Expand Down Expand Up @@ -41,7 +49,11 @@ export const abi = [
name: "symbol",
type: "string",
},
{ internalType: "string", name: "name", type: "string" },
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "uint256",
name: "decimals",
Expand Down Expand Up @@ -99,8 +111,16 @@ export const abi = [
name: "config",
type: "tuple",
},
{ internalType: "address", name: "owner", type: "address" },
{ internalType: "address", name: "curator", type: "address" },
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "curator",
type: "address",
},
{
internalType: "address",
name: "guardian",
Expand Down Expand Up @@ -150,7 +170,11 @@ export const abi = [
name: "pendingOwner",
type: "address",
},
{ internalType: "uint256", name: "fee", type: "uint256" },
{
internalType: "uint256",
name: "fee",
type: "uint256",
},
{
internalType: "address",
name: "feeRecipient",
Expand Down Expand Up @@ -193,7 +217,11 @@ export const abi = [
name: "admin",
type: "address",
},
{ internalType: "uint256", name: "fee", type: "uint256" },
{
internalType: "uint256",
name: "fee",
type: "uint256",
},
{
internalType: "uint256",
name: "accruedFee",
Expand Down
Loading
Loading