From 7a94387e5450381a5a7a93dec034f5ab5fbf349b Mon Sep 17 00:00:00 2001 From: gabin54 <59560717+gabin54@users.noreply.github.com> Date: Mon, 12 Aug 2024 11:12:58 +0200 Subject: [PATCH] chore: rename ipfsHash to cid (#26) --- package.json | 2 +- src/airdrop-programs.ts | 4 ++-- src/index.ts | 2 +- yarn.lock | 20 +++++++++++++------- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 718f472..ea9eca2 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "typescript": "^5.4.5" }, "dependencies": { - "@morpho-org/blue-rewards-core-sdk": "0.0.8", + "@morpho-org/blue-rewards-core-sdk": "0.0.9", "@morpho-org/morpho-ts": "^1.4.5", "viem": "^2.9.31" }, diff --git a/src/airdrop-programs.ts b/src/airdrop-programs.ts index 0f43178..f0f7780 100644 --- a/src/airdrop-programs.ts +++ b/src/airdrop-programs.ts @@ -6,7 +6,7 @@ export type AirdropRewardProgramArgs = { urdAddress: Address; tokenAddress: Address; chainId: ChainId; - ipfsHash: string; + cidV0: string; }; /** @@ -18,7 +18,7 @@ export type AirdropRewardProgramArgs = { * fundsSender: "0xF057afeEc22E220f47AD4220871364e9E828b2e9", * urdAddress: "0x330eefa8a787552dc5cad3c3ca644844b1e61ddb", * tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - * ipfsHash: "QmUSNh34dpKFbX7YMU4fd5JbfkVYzb4e45o3pSqqXvzkKw", + * cidV0: "QmUSNh34dpKFbX7YMU4fd5JbfkVYzb4e45o3pSqqXvzkKw", * chainId: ChainId.MAINNET * } * ] diff --git a/src/index.ts b/src/index.ts index e578548..df145fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -112,6 +112,6 @@ function toAirdropRewardProgram(args: AirdropRewardProgramArgs): AirdropRewardPr asset, distributor, chainId: args.chainId, - ipfsHash: args.ipfsHash, + cidV0: args.cidV0, }); } diff --git a/yarn.lock b/yarn.lock index efc8284..bdf8929 100644 --- a/yarn.lock +++ b/yarn.lock @@ -594,22 +594,28 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@morpho-org/blue-rewards-core-sdk@0.0.8": - version "0.0.8" - resolved "https://registry.yarnpkg.com/@morpho-org/blue-rewards-core-sdk/-/blue-rewards-core-sdk-0.0.8.tgz#5401475dc1e0ef7d481fc1060150150e063b0bff" - integrity sha512-W62jOiMlXqcrDSJeUb3F66NoYC+DAEThQ8FwbEfdmwRJCB9ljUiXgPUGi1CdpowX0XdjQHBeglsILncqDItnKA== +"@morpho-org/blue-rewards-core-sdk@0.0.9": + version "0.0.9" + resolved "https://registry.yarnpkg.com/@morpho-org/blue-rewards-core-sdk/-/blue-rewards-core-sdk-0.0.9.tgz#4613f434715bbec177b35925504d5870a6cdff72" + integrity sha512-jXncQHWipkHo47PCJSgcx3n21HtjcZawNKkqOwWhhBPP/E/2APEguELBWQv9qhHcgPn+/HJ2gtiKdJrUwPxuHw== dependencies: "@morpho-org/blue-sdk" "^1.0.6" + "@morpho-org/morpho-ts" "^1.4.4" bs58 "^5.0.0" viem "^2.9.31" "@morpho-org/blue-sdk@^1.0.6": - version "1.4.5" - resolved "https://registry.yarnpkg.com/@morpho-org/blue-sdk/-/blue-sdk-1.4.5.tgz#e93b05b725cd790d36aa0e62e5153d9e0b53e8e7" - integrity sha512-d6rNEAqPjeoQ1KqjGa2WdrhyghFdR3jL5mx4noEPI8AdcTBZl8Xs04vs8xIH0ZYBU7jp4Uh+YTPXz/yQlZ5zNw== + version "1.5.7" + resolved "https://registry.yarnpkg.com/@morpho-org/blue-sdk/-/blue-sdk-1.5.7.tgz#9931d922a6d01bb2106b0550b9d66dd9221d08c2" + integrity sha512-46fscBApabmMAxHnqG09Npx1fmnd+ikeyN/1u6GZ64ecm2jITrM9wTNRg7pKcPfd3Q7b6qCACrNyYsBlAZhDNg== dependencies: keccak256 "^1.0.6" +"@morpho-org/morpho-ts@^1.4.4": + version "1.5.7" + resolved "https://registry.yarnpkg.com/@morpho-org/morpho-ts/-/morpho-ts-1.5.7.tgz#7a1c595e36e8523b19cb5ebcb2dbe0ecbf43a0e1" + integrity sha512-DmOE/wXyv8oC56LIF/cw7YT7OYpy7Vo/gKu+/pgG8jqvQh1AYb7GelBvoKF31d4jk0ERzlsowpIcKQoCtkQfLQ== + "@morpho-org/morpho-ts@^1.4.5": version "1.4.5" resolved "https://registry.yarnpkg.com/@morpho-org/morpho-ts/-/morpho-ts-1.4.5.tgz#1bb3e266a033a38958746be9b3d380deca0470ec"