-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(act): add act #3
base: master
Are you sure you want to change the base?
Conversation
src/bee.ts
Outdated
@@ -297,6 +299,66 @@ export class Bee { | |||
return chunk.download(this.getRequestOptionsForCall(options), reference) | |||
} | |||
|
|||
/** | |||
* Adds grantees to a postage batch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is not accurate. addGrantees creates a list of grantees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed a2dc53c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that the "creates for a postage batch" is incorrect, instead something like: "it creates a list from the given array of public keys"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed d739873
src/bee.ts
Outdated
} | ||
|
||
/** | ||
* Retrieves the grantees for a given reference or ENS name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove "ENS name"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed b82624a
test/integration/modules/bzz.spec.ts
Outdated
expect(Buffer.from(dFile.data).toString()).to.eql(data) | ||
}) | ||
|
||
it('should create grantee list', async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the grantee tests should go under a separate 'grantee' test file because it is a separate endpoint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New module grantee
created. e8b35e0
@@ -44,6 +44,7 @@ export async function upload( | |||
return { | |||
reference: response.data.reference, | |||
tagUid: response.headers['swarm-tag'] ? makeTagUid(response.headers['swarm-tag']) : undefined, | |||
history_address: response.headers['swarm-act-history-address'] || '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extend the other endpoints with act history header: soc, chunk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extended: 5c9cf24
feat(act): add grantee module for managing grantees
feat(act)!: Modify soc, chunk upload return value from Result to UploadResult
No description provided.