diff --git a/package.json b/package.json index 0e7c927..4bde66a 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "doc": "ts-node ./src/doc.ts" }, "dependencies": { - "@masa-finance/masa-sdk": "^0.4.6", + "@masa-finance/masa-sdk": "^0.5.0", "@types/clear": "^0.1.2", "@types/figlet": "^1.5.5", "chalk": "~4.1.2", diff --git a/src/commands/2fa/info.ts b/src/commands/2fa/info.ts index e959564..29ad647 100644 --- a/src/commands/2fa/info.ts +++ b/src/commands/2fa/info.ts @@ -1,13 +1,13 @@ import { masa } from "../../helpers"; export const info = async () => { - const identityContracts = await masa.contracts.loadIdentityContracts(); - console.log("Soulbound 2FA"); - console.log(`Contract Address: '${identityContracts.Soulbound2FA.address}'`); + console.log( + `Contract Address: '${masa.contracts.identity.Soulbound2FA.address}'` + ); console.log( `Total 2FAs: ${( - await identityContracts.Soulbound2FA.totalSupply() + await masa.contracts.identity.Soulbound2FA.totalSupply() ).toNumber()}` ); }; diff --git a/src/commands/credit-score/info.ts b/src/commands/credit-score/info.ts index 83661d5..2760e92 100644 --- a/src/commands/credit-score/info.ts +++ b/src/commands/credit-score/info.ts @@ -1,15 +1,13 @@ import { masa } from "../../helpers"; export const info = async () => { - const identityContracts = await masa.contracts.loadIdentityContracts(); - console.log("Soulbound Credit Report"); console.log( - `Contract Address: '${identityContracts.SoulboundCreditReportContract.address}'` + `Contract Address: '${masa.contracts.identity.SoulboundCreditReportContract.address}'` ); console.log( `Total Credit Reports: ${( - await identityContracts.SoulboundCreditReportContract.totalSupply() + await masa.contracts.identity.SoulboundCreditReportContract.totalSupply() ).toNumber()}` ); }; diff --git a/src/commands/identity/info.ts b/src/commands/identity/info.ts index e8c4734..2ade965 100644 --- a/src/commands/identity/info.ts +++ b/src/commands/identity/info.ts @@ -1,15 +1,13 @@ import { masa } from "../../helpers"; export const info = async () => { - const identityContracts = await masa.contracts.loadIdentityContracts(); - console.log("Soulbound Identity"); console.log( - `Contract Address: '${identityContracts.SoulboundIdentityContract.address}'` + `Contract Address: '${masa.contracts.identity.SoulboundIdentityContract.address}'` ); console.log( `Total Identities: ${( - await identityContracts.SoulboundIdentityContract.totalSupply() + await masa.contracts.identity.SoulboundIdentityContract.totalSupply() ).toNumber()}` ); }; diff --git a/src/commands/soul-name/info.ts b/src/commands/soul-name/info.ts index 900cfce..86f98c4 100644 --- a/src/commands/soul-name/info.ts +++ b/src/commands/soul-name/info.ts @@ -1,15 +1,13 @@ import { masa } from "../../helpers"; export const info = async () => { - const identityContracts = await masa.contracts.loadIdentityContracts(); - console.log("Soul Name"); console.log( - `Contract Address: '${identityContracts.SoulNameContract.address}'` + `Contract Address: '${masa.contracts.identity.SoulNameContract.address}'` ); console.log( `Total Soul Names: ${( - await identityContracts.SoulNameContract.totalSupply() + await masa.contracts.identity.SoulNameContract.totalSupply() ).toNumber()}` ); }; diff --git a/yarn.lock b/yarn.lock index 1e94ee9..efd5446 100644 --- a/yarn.lock +++ b/yarn.lock @@ -385,10 +385,10 @@ dependencies: ethers "^5.6.9" -"@masa-finance/masa-sdk@^0.4.6": - version "0.4.6" - resolved "https://registry.yarnpkg.com/@masa-finance/masa-sdk/-/masa-sdk-0.4.6.tgz#995e0a3315bc99bf924560696f911b17f119819d" - integrity sha512-6XveGjvDNHeo+ZJiBupyUkkfZZnTLGJOuxs2vNlHd90keF9m4d+HDZcF152Vq40VZS/rS3dCm48znYBlTtnmvQ== +"@masa-finance/masa-sdk@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@masa-finance/masa-sdk/-/masa-sdk-0.5.0.tgz#2992ede73072fd7c54fa9302db9c9378c6e0b203" + integrity sha512-P76UloRrsBT4hNWjm2gEEZ9cztRa6aUwb3i1gLp9YPrPx2aUxcHuM3oCmLw8alQqjxVyNy6JWhCvqzxDlSOcCg== dependencies: "@masa-finance/masa-contracts-identity" "^0.4.2" arweave "^1.11.6"