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

add authorized publishers, update DDO validate call #90

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ jobs:
DB_URL: 'http://localhost:8108/?apiKey=xyz'
FEE_TOKENS: '{ "1": "0x967da4048cD07aB37855c090aAF366e4ce1b9F48", "137": "0x282d8efCe846A88B159800bd4130ad77443Fa1A1", "80001": "0xd8992Ed72C445c35Cb4A2be468568Ed1079357c8", "56": "0xDCe07662CA8EbC241316a15B611c89711414Dd1a" }'
FEE_AMOUNT: '{ "amount": 1, "unit": "MB" }'
AUTHORIZED_DECRYPTERS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"]'
AUTHORIZED_DECRYPTERS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260","0x529043886F21D9bc1AE0feDb751e34265a246e47"]'
AUTHORIZED_PUBLISHERS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260","0x529043886F21D9bc1AE0feDb751e34265a246e47"]'
ALLOWED_ADMINS: '["0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"]'
MAX_REQ_PER_MINUTE: 320
- name: Check Ocean Node is running
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
name: string,
symbol: string,
owner: Signer,
assetUrl: any,

Check warning on line 112 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
ddo: any,

Check warning on line 113 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
providerUrl: string,
config: Config,
aquariusInstance: Aquarius,
Expand Down Expand Up @@ -162,7 +162,7 @@
const nft = new Nft(owner, (await owner.provider.getNetwork()).chainId);
let flags;
let metadata;
const validateResult = await aquariusInstance.validate(updatedDdo);
const validateResult = await aquariusInstance.validate(updatedDdo, owner);

Check failure on line 165 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / build

Argument of type 'Signer' is not assignable to parameter of type 'AbortSignal'.

Check failure on line 165 in src/helpers.ts

View workflow job for this annotation

GitHub Actions / test_system

Argument of type 'Signer' is not assignable to parameter of type 'AbortSignal'.
if (encryptDDO) {
const providerResponse = await ProviderInstance.encrypt(
updatedDdo,
Expand Down
1 change: 1 addition & 0 deletions test/consumeFlow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe("Ocean CLI Publishing", function() {
}

process.env.PRIVATE_KEY = "0x1d751ded5a32226054cd2e71261039b65afb9ee1c746d055dd699b1150a5befc";
// Using this account: 0x529043886F21D9bc1AE0feDb751e34265a246e47
process.env.RPC = "http://127.0.0.1:8545";
process.env.AQUARIUS_URL = "http://127.0.0.1:8001";
process.env.PROVIDER_URL = "http://127.0.0.1:8001";
Expand Down
Loading