Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

chore: update Platform SDK dependencies #2788

Merged
merged 5 commits into from Sep 3, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 19 additions & 19 deletions package.json
Expand Up @@ -117,25 +117,25 @@
"testRunner": "jest-circus/runner"
},
"dependencies": {
"@arkecosystem/platform-sdk": "^0.9.333",
"@arkecosystem/platform-sdk-ada": "^0.9.333",
"@arkecosystem/platform-sdk-ark": "^0.9.333",
"@arkecosystem/platform-sdk-atom": "^0.9.333",
"@arkecosystem/platform-sdk-btc": "^0.9.333",
"@arkecosystem/platform-sdk-crypto": "^0.9.333",
"@arkecosystem/platform-sdk-eos": "^0.9.333",
"@arkecosystem/platform-sdk-eth": "^0.9.333",
"@arkecosystem/platform-sdk-intl": "^0.9.333",
"@arkecosystem/platform-sdk-lsk": "^0.9.333",
"@arkecosystem/platform-sdk-markets": "^0.9.333",
"@arkecosystem/platform-sdk-neo": "^0.9.333",
"@arkecosystem/platform-sdk-news": "^0.9.333",
"@arkecosystem/platform-sdk-profiles": "^0.9.333",
"@arkecosystem/platform-sdk-support": "^0.9.333",
"@arkecosystem/platform-sdk-trx": "^0.9.333",
"@arkecosystem/platform-sdk-xlm": "^0.9.333",
"@arkecosystem/platform-sdk-xmr": "^0.9.333",
"@arkecosystem/platform-sdk-xrp": "^0.9.333",
"@arkecosystem/platform-sdk": "^0.9.341",
"@arkecosystem/platform-sdk-ada": "^0.9.341",
"@arkecosystem/platform-sdk-ark": "^0.9.341",
"@arkecosystem/platform-sdk-atom": "^0.9.341",
"@arkecosystem/platform-sdk-btc": "^0.9.341",
"@arkecosystem/platform-sdk-crypto": "^0.9.341",
"@arkecosystem/platform-sdk-eos": "^0.9.341",
"@arkecosystem/platform-sdk-eth": "^0.9.341",
"@arkecosystem/platform-sdk-intl": "^0.9.341",
"@arkecosystem/platform-sdk-lsk": "^0.9.341",
"@arkecosystem/platform-sdk-markets": "^0.9.341",
"@arkecosystem/platform-sdk-neo": "^0.9.341",
"@arkecosystem/platform-sdk-news": "^0.9.341",
"@arkecosystem/platform-sdk-profiles": "^0.9.341",
"@arkecosystem/platform-sdk-support": "^0.9.341",
"@arkecosystem/platform-sdk-trx": "^0.9.341",
"@arkecosystem/platform-sdk-xlm": "^0.9.341",
"@arkecosystem/platform-sdk-xmr": "^0.9.341",
"@arkecosystem/platform-sdk-xrp": "^0.9.341",
"@arkecosystem/utils": "^1.2.0",
"@tippyjs/react": "^4.0.5",
"@types/react-linkify": "^1.0.0",
Expand Down
8 changes: 5 additions & 3 deletions src/domains/profile/pages/MyRegistrations/MyRegistrations.tsx
@@ -1,4 +1,4 @@
import { ExtendedTransactionData, ReadWriteWallet } from "@arkecosystem/platform-sdk-profiles";
import { Enums, ExtendedTransactionData, ReadWriteWallet } from "@arkecosystem/platform-sdk-profiles";
import { images } from "app/assets/images";
import { Button } from "app/components/Button";
import { Header } from "app/components/Header";
Expand Down Expand Up @@ -77,9 +77,11 @@ export const MyRegistrations = ({ blockchainRegistrations }: Props) => {
const fetchRegistrations = async () => {
setIsLoading(true);

activeProfile.entityRegistrationAggregate().flush();
activeProfile.entityAggregate().flush();

const businessRegistrations = await activeProfile.entityRegistrationAggregate().businesses();
const businessRegistrations = await activeProfile
.entityAggregate()
.registrations(Enums.EntityType.Business);
setBusinesses(businessRegistrations.items());

const delegateRegistrations = activeProfile.registrationAggregate().delegates();
Expand Down
@@ -1,4 +1,4 @@
import { ExtendedTransactionData, Profile } from "@arkecosystem/platform-sdk-profiles";
import { Enums, ExtendedTransactionData, Profile } from "@arkecosystem/platform-sdk-profiles";
import nock from "nock";
import React from "react";
import { act, env, fireEvent, getDefaultProfileId, render, waitFor, within } from "testing-library";
Expand All @@ -19,7 +19,7 @@ describe("BusinessRegistrationsTable", () => {

profile = env.profiles().findById(getDefaultProfileId());

const businesses = await profile.entityRegistrationAggregate().businesses();
const businesses = await profile.entityAggregate().registrations(Enums.EntityType.Business);
businessRegistrations = businesses.items();
});

Expand Down