Skip to content

Commit

Permalink
feat: update renaming (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
superical authored Nov 23, 2023
1 parent a7e3def commit e1959a5
Show file tree
Hide file tree
Showing 14 changed files with 1,701 additions and 56,785 deletions.
58,460 changes: 1,688 additions & 56,772 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 @@ -51,7 +51,7 @@
"@govtechsg/document-store": "^2.6.1",
"@govtechsg/ethers-contract-hook": "^2.2.0",
"@govtechsg/oa-encryption": "^1.3.5",
"@govtechsg/oa-verify": "^8.3.0-alpha.1",
"@tradetrust-tt/tt-verify": "^8.4.0",
"@govtechsg/open-attestation": "^6.8.0-alpha.1",
"@govtechsg/open-attestation-utils": "^1.0.9",
"@govtechsg/token-registry": "^4.1.7",
Expand Down
2 changes: 1 addition & 1 deletion src/common/contexts/provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethers, providers } from "ethers";
import React, { createContext, FunctionComponent, useCallback, useContext, useEffect, useRef, useState } from "react";
import { INFURA_API_KEY } from "../../config";
import { ProviderDetails, utils } from "@govtechsg/oa-verify";
import { ProviderDetails, utils } from "@tradetrust-tt/tt-verify";
import { magic } from "./helpers";
import { ChainId, ChainInfo, ChainInfoObject } from "../../constants/chain-info";
import { UnsupportedNetworkError } from "../errors";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { act, fireEvent, render } from "@testing-library/react";
import React from "react";
import { whenDocumentValidAndIssuedByDns } from "../../../../../test/fixture/verifier-responses";
import { ActionSelectionForm } from "./ActionSelectionForm";
import { VerificationFragment } from "@govtechsg/oa-verify";
import { VerificationFragment } from "@tradetrust-tt/tt-verify";
import { WrappedOrSignedOpenAttestationDocument } from "../../../../../utils/shared";

const defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CertificateDropZone/CertificateDropZone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "../../reducers/certificate";
import { getDropzoneBoxUi } from "../../common/utils/getDropzoneBoxUi";
import { View, ViewVerificationError, ViewActionError, ViewVerificationPending } from "../DocumentDropzone/Views";
import { isValid } from "@govtechsg/oa-verify";
import { isValid } from "@tradetrust-tt/tt-verify";
import { useProviderContext } from "../../common/contexts/provider";
import { getChainId } from "../../utils/shared";
import { CONSTANTS } from "@govtechsg/tradetrust-utils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import { render, screen } from "@testing-library/react";
import { DetailedErrors } from "./DetailedErrors";
import { CONSTANTS } from "@govtechsg/tradetrust-utils";
import { VerificationFragment } from "@govtechsg/oa-verify";
import { VerificationFragment } from "@tradetrust-tt/tt-verify";
import {
whenDocumentHashInvalidAndNotIssued,
whenDocumentHashInvalid,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FunctionComponent } from "react";
import { VerificationFragment } from "@govtechsg/oa-verify";
import { VerificationFragment } from "@tradetrust-tt/tt-verify";
import { CONSTANTS, errorMessageHandling } from "@govtechsg/tradetrust-utils";

export const DetailedError: FunctionComponent<{ title: string; message: string }> = ({ title, message }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentStatus/DocumentStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { VerificationFragment, VerificationFragmentWithData, utils } from "@govtechsg/oa-verify";
import { VerificationFragment, VerificationFragmentWithData, utils } from "@tradetrust-tt/tt-verify";
import React, { FunctionComponent } from "react";
import { StatusChecks } from "./StatusChecks";
import { useSelector } from "react-redux";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocumentStatus/StatusChecks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FunctionComponent } from "react";
import { VerificationFragment } from "@govtechsg/oa-verify";
import { VerificationFragment } from "@tradetrust-tt/tt-verify";
import { CONSTANTS, interpretFragments } from "@govtechsg/tradetrust-utils";
import { StatusCheck } from "./StatusCheck";

Expand Down
2 changes: 1 addition & 1 deletion src/components/MagicDropzone/MagicDropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FunctionComponent, useCallback, useMemo } from "react";
import { useDispatch } from "react-redux";
import { Link } from "react-router-dom";
import { useDropzone } from "react-dropzone";
import { isValid } from "@govtechsg/oa-verify";
import { isValid } from "@tradetrust-tt/tt-verify";
import { Button, ButtonSize, LoaderSpinner } from "@govtechsg/tradetrust-ui-components";
import { gaEvent } from "@govtechsg/tradetrust-utils";
import { useSelector } from "react-redux";
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/demo-verify.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSlice } from "@reduxjs/toolkit";
import { VerificationFragment } from "@govtechsg/oa-verify";
import { VerificationFragment } from "@tradetrust-tt/tt-verify";

// TODO: from the looks it needs this states, update once demo flow is more confirmed
interface DemoVerifyState {
Expand Down
2 changes: 1 addition & 1 deletion src/sagas/certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "../reducers/certificate";
import { processQrCode } from "../services/qrProcessor";
import { verifyDocument } from "../services/verify";
import { isValid } from "@govtechsg/oa-verify";
import { isValid } from "@tradetrust-tt/tt-verify";
import { decryptString } from "@govtechsg/oa-encryption";
import { history } from "../history";
import { CONSTANTS } from "@govtechsg/tradetrust-utils";
Expand Down
2 changes: 1 addition & 1 deletion src/sagas/demo-verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { put, select, takeEvery } from "redux-saga/effects";
import { getLogger } from "../utils/logger";
import { verifyDemoDocumentCompleted, verifyDemoDocumentFailure, getDemoDocument } from "../reducers/demo-verify";
import { verifyDocument, VerifierType } from "../services/verify";
import { isValid } from "@govtechsg/oa-verify";
import { isValid } from "@tradetrust-tt/tt-verify";
import { NETWORK_NAME } from "../config";
import { history } from "../history";
import { CONSTANTS } from "@govtechsg/tradetrust-utils";
Expand Down
2 changes: 1 addition & 1 deletion src/services/verify/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
openAttestationVerifiers,
verificationBuilder,
VerificationFragment,
} from "@govtechsg/oa-verify";
} from "@tradetrust-tt/tt-verify";
import { providers } from "ethers";
import { getCurrentProvider } from "../../common/contexts/provider";
import { NETWORK_NAME } from "../../config";
Expand Down

0 comments on commit e1959a5

Please sign in to comment.