Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update cardano js sdk packages #1069

Merged
merged 2 commits into from
Apr 19, 2024
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
12 changes: 6 additions & 6 deletions apps/browser-extension-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@cardano-sdk/cardano-services-client": "0.18.0",
"@cardano-sdk/cardano-services-client": "0.19.0",
"@cardano-sdk/core": "0.30.0",
"@cardano-sdk/dapp-connector": "0.12.14",
"@cardano-sdk/input-selection": "0.12.26",
"@cardano-sdk/tx-construction": "0.18.2",
"@cardano-sdk/input-selection": "0.12.27",
"@cardano-sdk/tx-construction": "0.18.3",
"@cardano-sdk/util": "0.15.0",
"@cardano-sdk/wallet": "0.36.0",
"@cardano-sdk/web-extension": "0.26.2",
"@cardano-sdk/wallet": "0.37.0",
"@cardano-sdk/web-extension": "0.27.0",
"@emurgo/cip14-js": "~3.0.1",
"@koralabs/handles-public-api-interfaces": "^1.6.6",
"@lace/cardano": "0.1.0",
Expand All @@ -59,7 +59,7 @@
"@vespaiach/axios-fetch-adapter": "^0.3.0",
"antd": "^4.24.10",
"are-you-es5": "^2.1.2",
"axios": "0.21.4",
"axios": "0.28.0",
"bignumber.js": "9.0.1",
"bip39": "^3.0.4",
"blake2b-no-wasm": "2.1.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ const hash = Crypto.Hash28ByteBase16(Buffer.from('dRepCredentialHashdRepCreden')
const getPubDRepKey = async () => await hash;

const inMemoryWallet = {
getPubDRepKey,
governance: {
getPubDRepKey
},
assetInfo$,
balance: {
utxo: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ describe('Testing hooks', () => {
mockUseWalletStore.mockReset();
mockUseWalletStore.mockReturnValue({
inMemoryWallet: {
getPubDRepKey: jest.fn(async () => await ed25519PublicKeyHexMock)
governance: {
getPubDRepKey: jest.fn(async () => await ed25519PublicKeyHexMock)
}
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const useGetOwnPubDRepKeyHash = (): UseGetOwnPubDRepKeyHash => {
useEffect(() => {
if (!inMemoryWallet) return;
const get = async () => {
const ownPubDRepKey = await inMemoryWallet.getPubDRepKey();
const ownPubDRepKey = await inMemoryWallet.governance.getPubDRepKey();
const ownDRepKeyHash = await pubDRepKeyToHash(ownPubDRepKey);

setOwnPubDRepKeyHash(ownDRepKeyHash);
Expand Down
5 changes: 5 additions & 0 deletions apps/browser-extension-wallet/src/hooks/useWalletState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const combineObservable = ({ wallet }: Wallet.CardanoWallet): Observable<Observa
wallet.delegation.rewardsHistory$,
wallet.eraSummaries$,
wallet.genesisParameters$,
wallet.governance.isRegisteredAsDRep$,
wallet.handles$,
wallet.protocolParameters$,
wallet.publicStakeKeys$,
Expand Down Expand Up @@ -82,6 +83,7 @@ const combineObservable = ({ wallet }: Wallet.CardanoWallet): Observable<Observa
delegationRewardsHistory,
eraSummaries,
genesisParameters,
isRegisteredAsDRep,
handles,
protocolParameters,
publicStakeKeys,
Expand Down Expand Up @@ -117,6 +119,9 @@ const combineObservable = ({ wallet }: Wallet.CardanoWallet): Observable<Observa
},
eraSummaries,
genesisParameters,
governance: {
isRegisteredAsDRep
},
handles,
protocolParameters,
publicStakeKeys,
Expand Down
10 changes: 5 additions & 5 deletions packages/cardano/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
"watch": "yarn build --watch"
},
"dependencies": {
"@cardano-sdk/cardano-services-client": "0.18.0",
"@cardano-sdk/cardano-services-client": "0.19.0",
"@cardano-sdk/core": "0.30.0",
"@cardano-sdk/crypto": "0.1.22",
"@cardano-sdk/hardware-ledger": "0.9.0",
"@cardano-sdk/hardware-trezor": "0.4.19",
"@cardano-sdk/hardware-ledger": "0.9.1",
"@cardano-sdk/hardware-trezor": "0.4.20",
"@cardano-sdk/key-management": "0.20.1",
"@cardano-sdk/util": "0.15.0",
"@cardano-sdk/wallet": "0.36.0",
"@cardano-sdk/web-extension": "0.26.2",
"@cardano-sdk/wallet": "0.37.0",
"@cardano-sdk/web-extension": "0.27.0",
"@lace/common": "0.1.0",
"@ledgerhq/devices": "^8.2.1",
"@stablelib/chacha20poly1305": "1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@lace/icons": "0.1.0",
"@lace/ui": "^0.1.0",
"antd": "^4.24.10",
"axios": "0.21.4",
"axios": "0.28.0",
"axios-cache-adapter": "2.7.3",
"classnames": "^2.3.1",
"debounce-promise": "^3.1.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/staking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
"devDependencies": {
"@babel/core": "^7.21.0",
"@cardano-sdk/core": "0.30.0",
"@cardano-sdk/input-selection": "0.12.26",
"@cardano-sdk/tx-construction": "0.18.2",
"@cardano-sdk/input-selection": "0.12.27",
"@cardano-sdk/tx-construction": "0.18.3",
"@cardano-sdk/util": "0.15.0",
"@cardano-sdk/wallet": "0.36.0",
"@cardano-sdk/web-extension": "0.26.2",
"@cardano-sdk/wallet": "0.37.0",
"@cardano-sdk/web-extension": "0.27.0",
"@storybook/addon-actions": "^7.6.7",
"@storybook/addon-essentials": "^7.6.7",
"@storybook/addon-interactions": "^7.6.7",
Expand Down
Loading