Skip to content

Commit

Permalink
feat: update renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
superical committed Nov 22, 2023
1 parent d5be130 commit 64887cd
Show file tree
Hide file tree
Showing 16 changed files with 3,474 additions and 53,048 deletions.
56,492 changes: 3,459 additions & 53,033 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@govtechsg/ethers-contract-hook": "^2.2.0",
"@govtechsg/oa-encryption": "^1.3.5",
"@tradetrust-tt/tt-verify": "^8.4.0",
"@tradetrust-tt/tradetrust": "^6.9.0",
"@govtechsg/open-attestation": "^6.8.0-alpha.1",
"@govtechsg/open-attestation-utils": "^1.0.9",
"@govtechsg/token-registry": "^4.1.7",
"@govtechsg/tradetrust-ui-components": "^2.21.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/CertificateViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { utils } from "@tradetrust-tt/tradetrust";
import { utils } from "@govtechsg/open-attestation";
import React, { FunctionComponent, useCallback, useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useProviderContext } from "../common/contexts/provider";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useCallback, useRef, FunctionComponent } from "react";
import { FrameConnector, renderDocument, FrameActions } from "@govtechsg/decentralized-renderer-react-components";
import { OpenAttestationDocument, utils } from "@tradetrust-tt/tradetrust";
import { OpenAttestationDocument, utils } from "@govtechsg/open-attestation";
import { Dispatch } from "../../../../types";

interface DocumentPreviewProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { v2 } from "@tradetrust-tt/tradetrust";
import { v2 } from "@govtechsg/open-attestation";
import {
IdentityProofType,
Issuer,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Demo/DemoCreate/DemoCreateReview/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OpenAttestationDocument } from "@tradetrust-tt/tradetrust";
import { OpenAttestationDocument } from "@govtechsg/open-attestation";
import { ProgressBar, ToggleSwitch } from "@govtechsg/tradetrust-ui-components";
import { gaEvent } from "@govtechsg/tradetrust-utils";
import React, { FunctionComponent, useCallback, useContext, useEffect, useMemo, useState } from "react";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentStatus/DocumentStatus.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { DocumentStatus } from "./DocumentStatus";
import { Provider } from "react-redux";
import { configureStore } from "../../store";
import { v2, wrapDocument } from "@tradetrust-tt/tradetrust";
import { v2, wrapDocument } from "@govtechsg/open-attestation";

const document = wrapDocument({
issuers: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentStatus/DocumentStatus.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { CONSTANTS } from "@govtechsg/tradetrust-utils";
import { Provider } from "react-redux";
import { configureStore } from "../../store";
import { v2, wrapDocument } from "@tradetrust-tt/tradetrust";
import { v2, wrapDocument } from "@govtechsg/open-attestation";

const { MESSAGES } = CONSTANTS;

Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentStatus/DocumentStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { VerificationFragment, VerificationFragmentWithData, utils } from "@trad
import React, { FunctionComponent } from "react";
import { StatusChecks } from "./StatusChecks";
import { useSelector } from "react-redux";
import { utils as oaUtils, WrappedDocument, v3, v4 } from "@tradetrust-tt/tradetrust";
import { utils as oaUtils, WrappedDocument, v3, v4 } from "@govtechsg/open-attestation";
import { RootState } from "../../reducers";
import { WrappedOrSignedOpenAttestationDocument } from "../../utils/shared";

Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentUtility/DocumentUtility.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { v2, wrapDocument } from "@tradetrust-tt/tradetrust";
import { v2, wrapDocument } from "@govtechsg/open-attestation";
import { render, screen } from "@testing-library/react";
import React from "react";
import { act } from "react-dom/test-utils";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentUtility/DocumentUtility.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { v2, utils } from "@tradetrust-tt/tradetrust";
import { v2, utils } from "@govtechsg/open-attestation";
import { ButtonIcon } from "@govtechsg/tradetrust-ui-components";
import QRCode, { ImageSettings } from "qrcode.react";
import React, { FunctionComponent, useState } from "react";
Expand Down
2 changes: 1 addition & 1 deletion src/components/MagicDropzone/MagicDropZone.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { Provider } from "react-redux";
import { MemoryRouter as Router } from "react-router-dom";
import { v2, wrapDocument } from "@tradetrust-tt/tradetrust";
import { v2, wrapDocument } from "@govtechsg/open-attestation";
import { MagicDropzone } from "./MagicDropzone";
import { configureStore } from "../../store";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ObfuscatedMessage/ObfuscatedMessage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { utils } from "@tradetrust-tt/tradetrust";
import { utils } from "@govtechsg/open-attestation";
import React, { FunctionComponent } from "react";
import { WrappedOrSignedOpenAttestationDocument } from "../../utils/shared";

Expand Down
2 changes: 1 addition & 1 deletion src/sagas/demo-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "../reducers/demo-create";
import { createTempDns, deployDocumentStore, getWrappedDocument, publishDocument } from "../services/create";
import { Signer } from "ethers";
import { OpenAttestationDocument, v2 } from "@tradetrust-tt/tradetrust";
import { OpenAttestationDocument, v2 } from "@govtechsg/open-attestation";

export function* deployDemoDocStore({ payload }: { payload: Signer; type: string }): any {
try {
Expand Down
2 changes: 1 addition & 1 deletion src/services/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { deployAndWait, connect } from "@govtechsg/document-store";
import { getLogger } from "../../utils/logger";
import { IS_DEVELOPMENT } from "../../config";
import { WrappedDocument } from "@govtechsg/open-attestation/dist/types/2.0/types";
import { wrapDocument, v2 } from "@tradetrust-tt/tradetrust";
import { wrapDocument, v2 } from "@govtechsg/open-attestation";

const { error } = getLogger("services:create");

Expand Down
2 changes: 1 addition & 1 deletion src/utils/shared.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getData, utils, v2, v3, OpenAttestationDocument, WrappedDocument } from "@tradetrust-tt/tradetrust";
import { getData, utils, v2, v3, OpenAttestationDocument, WrappedDocument } from "@govtechsg/open-attestation";
import { getSupportedChainIds } from "../common/utils/chain-utils";
import { AvailableBlockChains, ChainId } from "../constants/chain-info";

Expand Down

0 comments on commit 64887cd

Please sign in to comment.