Skip to content

Conversation

@mr-naveenseven
Copy link
Collaborator

Changes

Fixes

Tests

Tasks to complete before merging PR:

  • Ensure system tests are passing. If not Run them manually to check for any regressions 📋
  • Do any new system tests need added to test this change? do any existing system tests need updated? If so create a PR at 0chain/system_test
  • Merge your system tests PR to master AFTER merging this PR

Associated PRs (Link as appropriate):

  • blobber:
  • 0chain:
  • system_test:
  • zboxcli:
  • zwalletcli:
  • Other: ...

- Add RevokePublicShare method to allocation.go
- Add RemovePublicShareRecipient method to allocation.go
- Add CheckPublicShareExists method to allocation.go
- Add GetPublicShareRecipients method to allocation.go

WASM SDK Changes:
- Add RevokePublicShare WASM function in blobber.go
- Add RemovePublicShareRecipient WASM function in blobber.go
- Add CheckPublicShareExists WASM function in blobber.go
- Add GetPublicShareRecipients WASM function in blobber.go
- Register new WASM methods in proxy.go for frontend access

HTTP Utilities:
- Add NewCheckPublicShareExistsRequest in http.go
- Add NewGetPublicShareRecipientsRequest in http.go
- Add NewRemovePublicShareRecipientRequest in http.go

Features:
- Complete public share management via SDK
- Frontend accessible methods via goWasm.sdk.*
- Proper error handling and validation
- JSON marshaling for WASM responses
- Consensus-based blobber communication

Frontend Integration:
- goWasm.sdk.revokePublicShare(allocationId, filePath)
- goWasm.sdk.removePublicShareRecipient(allocationId, filePath, recipientId)
- goWasm.sdk.checkPublicShareExists(allocationId, filePath)
- goWasm.sdk.getPublicShareRecipients(allocationId, filePath)

This provides complete public share functionality accessible from frontend
applications through the WASM SDK interface.
- Refactor NewCheckPublicShareExistsRequest to use joinUrl() and setClientInfoWithSign()
- Refactor NewGetPublicShareRecipientsRequest to use joinUrl() and setClientInfoWithSign()
- Refactor NewRemovePublicShareRecipientRequest to use joinUrl() and setClientInfoWithSign()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants