@prosopo/types-env 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,34 +1,35 @@
1
1
  {
2
- "name": "@prosopo/types-env",
3
- "version": "0.1.16",
4
- "description": "Types for prosopo environment",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "clean": "tsc --build --clean",
8
- "build": "tsc --build --verbose",
9
- "test": "echo \"Error: no test specified\" && exit 1",
10
- "lint": "npx eslint .",
11
- "lint:fix": "npx eslint . --fix"
12
- },
13
- "repository": {
14
- "type": "git",
15
- "url": "git+ssh://git@github.com/prosopo/captcha.git"
16
- },
17
- "author": "Prosopo Limited",
18
- "license": "Apache-2.0",
19
- "bugs": {
20
- "url": "https://github.com/prosopo/captcha/issues"
21
- },
22
- "homepage": "https://github.com/prosopo/captcha#readme",
23
- "dependencies": {
24
- "@polkadot/keyring": "12.3.2",
25
- "@polkadot/types": "10.9.1",
26
- "@prosopo/common": "^0.1.16",
27
- "@prosopo/types": "^0.1.16",
28
- "@prosopo/types-database": "^0.1.16"
29
- },
30
- "devDependencies": {
31
- "typescript": "^4.9.4"
32
- },
33
- "sideEffects": false
2
+ "name": "@prosopo/types-env",
3
+ "version": "0.1.18",
4
+ "description": "Types for prosopo environment",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "clean": "tsc --build --clean",
9
+ "build": "tsc --build --verbose",
10
+ "lint": "npx eslint .",
11
+ "lint:fix": "npx eslint . --fix --config ../../.eslintrc.js"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+ssh://git@github.com/prosopo/captcha.git"
16
+ },
17
+ "author": "Prosopo Limited",
18
+ "license": "Apache-2.0",
19
+ "bugs": {
20
+ "url": "https://github.com/prosopo/captcha/issues"
21
+ },
22
+ "homepage": "https://github.com/prosopo/captcha#readme",
23
+ "dependencies": {
24
+ "@polkadot/keyring": "12.3.2",
25
+ "@polkadot/types": "10.9.1",
26
+ "@prosopo/common": "^0.1.18",
27
+ "@prosopo/types": "^0.1.18",
28
+ "@prosopo/types-database": "^0.1.18"
29
+ },
30
+ "devDependencies": {
31
+ "tslib": "^2.6.2",
32
+ "typescript": "^5.1.6"
33
+ },
34
+ "sideEffects": false
34
35
  }
package/dist/env.d.ts DELETED
@@ -1,28 +0,0 @@
1
- import { ApiPromise } from '@polkadot/api';
2
- import { AssetsResolver, EnvironmentTypes } from '@prosopo/types';
3
- import { ContractAbi } from '@prosopo/types';
4
- import { Database } from '@prosopo/types-database';
5
- import { Keyring } from '@polkadot/keyring';
6
- import { KeyringPair } from '@polkadot/keyring/types';
7
- import { Logger } from '@prosopo/common';
8
- import { ProsopoBasicConfig } from '@prosopo/types';
9
- import { WsProvider } from '@polkadot/rpc-provider';
10
- export interface ProsopoEnvironment {
11
- config: ProsopoBasicConfig;
12
- db: Database | undefined;
13
- contractInterface: any;
14
- contractAddress: string;
15
- defaultEnvironment: EnvironmentTypes;
16
- contractName: string;
17
- abi: ContractAbi;
18
- logger: Logger;
19
- assetsResolver: AssetsResolver | undefined;
20
- wsProvider: WsProvider;
21
- keyring: Keyring;
22
- pair: KeyringPair;
23
- api: ApiPromise;
24
- isReady(): Promise<void>;
25
- importDatabase(): Promise<void>;
26
- changeSigner(pair: KeyringPair): Promise<void>;
27
- }
28
- //# sourceMappingURL=env.d.ts.map
package/dist/env.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,kBAAkB,CAAA;IAC1B,EAAE,EAAE,QAAQ,GAAG,SAAS,CAAA;IACxB,iBAAiB,EAAE,GAAG,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,kBAAkB,EAAE,gBAAgB,CAAA;IACpC,YAAY,EAAE,MAAM,CAAA;IACpB,GAAG,EAAE,WAAW,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,cAAc,GAAG,SAAS,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,WAAW,CAAA;IACjB,GAAG,EAAE,UAAU,CAAA;IACf,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACxB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/B,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD"}
package/dist/env.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=env.js.map
package/dist/env.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":""}
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './env';
2
- export * from './provider';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA"}
package/dist/index.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./env"), exports);
5
- tslib_1.__exportStar(require("./provider"), exports);
6
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAqB;AACrB,qDAA0B"}
@@ -1,6 +0,0 @@
1
- import { ProsopoConfig } from '@prosopo/types';
2
- import { ProsopoEnvironment } from './env';
3
- export interface ProviderEnvironment extends ProsopoEnvironment {
4
- config: ProsopoConfig;
5
- }
6
- //# sourceMappingURL=provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC3D,MAAM,EAAE,aAAa,CAAA;CACxB"}
package/dist/provider.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":""}