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

Remove contract 2 + Code Split #1610

Merged
merged 9 commits into from
Jan 13, 2025
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
2 changes: 1 addition & 1 deletion demos/client-example-server/src/controllers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { blake2b } from "@noble/hashes/blake2b";
import { u8aToHex } from "@polkadot/util";
import { randomAsHex } from "@polkadot/util-crypto";
import { ProsopoEnvError } from "@prosopo/common";
import { getPairAsync } from "@prosopo/contract";
import { getPairAsync } from "@prosopo/keyring";
import { ProsopoServer } from "@prosopo/server";
import {
ApiParams,
Expand Down
3 changes: 0 additions & 3 deletions demos/client-example-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
{
"path": "../../packages/common"
},
{
"path": "../../packages/contract"
},
{
"path": "../../packages/dotenv"
},
Expand Down
2 changes: 1 addition & 1 deletion demos/cypress-shared/cypress/e2e/captcha.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import "@cypress/xpath";
import { u8aToHex } from "@polkadot/util";
import { ProsopoDatasetError } from "@prosopo/common";
import { getPairAsync } from "@prosopo/contract";
import { datasetWithSolutionHashes } from "@prosopo/datasets";
import { getPairAsync } from "@prosopo/keyring";
import {
AdminApiPaths,
type Captcha,
Expand Down
2 changes: 1 addition & 1 deletion demos/cypress-shared/cypress/e2e/correct.captcha.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import "@cypress/xpath";
import { u8aToHex } from "@polkadot/util";
import { ProsopoDatasetError } from "@prosopo/common";
import { getPairAsync } from "@prosopo/contract";
import { datasetWithSolutionHashes } from "@prosopo/datasets";
import { getPairAsync } from "@prosopo/keyring";
import {
AdminApiPaths,
type Captcha,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import "@cypress/xpath";
import { u8aToHex } from "@polkadot/util";
import { ProsopoDatasetError } from "@prosopo/common";
import { getPairAsync } from "@prosopo/contract";
import { datasetWithSolutionHashes } from "@prosopo/datasets";
import { getPairAsync } from "@prosopo/keyring";
import {
AdminApiPaths,
type Captcha,
Expand Down
4 changes: 0 additions & 4 deletions dev/config/src/projectInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ export const getCliPkgDir = () => `${getPackagesDir()}/cli`;

export const getCommonPkgDir = () => `${getPackagesDir()}/common`;

export const getContractPkgDir = () => `${getPackagesDir()}/contract`;

export const getDatabasePkgDir = () => `${getPackagesDir()}/database`;

export const getDatasetsPkgDir = () => `${getPackagesDir()}/datasets`;
Expand Down Expand Up @@ -92,8 +90,6 @@ export const getProviderPkgDir = () => `${getPackagesDir()}/provider`;

export const getServerPkgDir = () => `${getPackagesDir()}/server`;

export const getTxPkgDir = () => `${getPackagesDir()}/tx`;

export const getTypesPkgDir = () => `${getPackagesDir()}/types`;

export const getTypesDatabasePkgDir = () =>
Expand Down
3 changes: 2 additions & 1 deletion dev/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
"@polkadot/keyring": "12.6.2",
"@polkadot/util": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@prosopo/account": "2.2.3",
"@prosopo/cli": "2.2.3",
"@prosopo/common": "2.2.3",
"@prosopo/config": "2.2.3",
"@prosopo/contract": "2.2.3",
"@prosopo/datasets": "2.2.3",
"@prosopo/dotenv": "2.2.3",
"@prosopo/env": "2.2.3",
"@prosopo/keyring": "2.2.3",
"@prosopo/provider": "2.2.3",
"@prosopo/types": "2.2.3",
"@prosopo/types-database": "2.2.3",
Expand Down
2 changes: 1 addition & 1 deletion dev/scripts/src/scripts/generateMnemonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
// limitations under the License.

import { LogLevel, getLogger } from "@prosopo/common";
import { generateMnemonic } from "@prosopo/contract";
import { loadEnv } from "@prosopo/dotenv";
import { generateMnemonic } from "@prosopo/keyring";
import { updateEnvFile } from "../setup/index.js";

loadEnv();
Expand Down
2 changes: 1 addition & 1 deletion dev/scripts/src/scripts/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { stringToU8a, u8aToHex } from "@polkadot/util";
// See the License for the specific language governing permissions and
// limitations under the License.
import type { KeypairType } from "@polkadot/util-crypto/types";
import { getPairAsync } from "@prosopo/contract";
import { getPairAsync } from "@prosopo/keyring";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";

Expand Down
2 changes: 1 addition & 1 deletion dev/scripts/src/setup/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import path from "node:path";
import { BN } from "@polkadot/util";
import { defaultConfig, getSecret } from "@prosopo/cli";
import { LogLevel, ProsopoEnvError, getLogger } from "@prosopo/common";
import { generateMnemonic, getPairAsync } from "@prosopo/contract";
import { getEnvFile } from "@prosopo/dotenv";
import { ProviderEnvironment } from "@prosopo/env";
import { generateMnemonic, getPairAsync } from "@prosopo/keyring";
import {
type IDappAccount,
type IProviderAccount,
Expand Down
9 changes: 6 additions & 3 deletions dev/scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"include": ["src", "src/**/*.json"],
"references": [
{
"path": "../../packages/cli"
"path": "../../packages/account"
},
{
"path": "../../packages/common"
"path": "../../packages/cli"
},
{
"path": "../../packages/contract"
"path": "../../packages/common"
},
{
"path": "../../packages/datasets"
Expand All @@ -25,6 +25,9 @@
{
"path": "../../packages/env"
},
{
"path": "../../packages/keyring"
},
{
"path": "../../packages/provider"
},
Expand Down
Loading
Loading