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

feature/offerable identity #269

Merged
merged 17 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from 11 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
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@
"no-param-reassign": 0,
"space-before-function-paren": 0,
"no-unused-expressions": 0,
"import/no-extraneous-dependencies": "error",
"chai-friendly/no-unused-expressions": 2
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
"chai-friendly/no-unused-expressions": 2,
"func-names": "off"
},
"settings": {
"import/resolver": {
Expand Down
18 changes: 10 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"main": "index.js",
"scripts": {
"test": "lerna run test",
"test-integration": "mocha -r ts-node/register tests/integration/*.test.ts",
"test-rpc": "run-with-testrpc -m \"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat\" --port 8544 --accounts 20 --networkId=9 --gasLimit=10000000 \"lerna run test && npm run test-integration\" ",
"test-rpc": "run-with-testrpc -m \"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat\" --port 8544 --accounts 20 --networkId=9 --gasLimit=10000000 \"lerna run test\" ",
"setup": "lerna bootstrap --hoist --no-ci",
"build": "rm -rf build docs packages/*/dist && lerna run compile",
"compile": "lerna run compile",
Expand Down Expand Up @@ -58,7 +57,7 @@
"eslint-config-airbnb-base": "14.0.0",
"eslint-import-resolver-typescript": "2.0.0",
"eslint-plugin-chai-friendly": "0.5.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-import": "^2.22.0",
"ethers": "4.0.45",
"ganache-cli": "6.9.1",
"gulp": "4.0.2",
Expand Down
1 change: 0 additions & 1 deletion packages/did-ethr-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@ew-did-registry/did": "0.1.0",
"@ew-did-registry/did-resolver-interface": "0.1.0",
"@ew-did-registry/keys": "0.1.0",
"@ew-did-registry/proxyidentity": "0.1.0",
"ethers": "4.0.45"
}
}
1 change: 0 additions & 1 deletion packages/did-ethr-resolver/src/implementations/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { default as Resolver } from './resolver';
export * from './operator';
export * from './proxyOperator';
4 changes: 2 additions & 2 deletions packages/did-ethr-resolver/src/implementations/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Operator extends Resolver implements IOperator {

private address: string;

private readonly _owner: IdentityOwner;
protected readonly _owner: IdentityOwner;

/**
* @param { IdentityOwner } owner - entity which controls document updatable by this operator
Expand All @@ -60,7 +60,7 @@ export class Operator extends Resolver implements IOperator {
this._keys.publicKey = owner.publicKey;
}

private async getAddress(): Promise<string> {
protected async getAddress(): Promise<string> {
return this.address || (this.address = await this._owner.getAddress());
}

Expand Down
202 changes: 0 additions & 202 deletions packages/did-ethr-resolver/src/implementations/proxyOperator.ts

This file was deleted.

Loading