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

Implement Client subpackage #11

Closed
2 tasks
pikonha opened this issue Feb 21, 2024 · 1 comment
Closed
2 tasks

Implement Client subpackage #11

pikonha opened this issue Feb 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@pikonha
Copy link
Contributor

pikonha commented Feb 21, 2024

Feature Request

The client is responsible for linking different components that compose the ENS Offchain architecture. Therefore, a package named client will be required to gather all its specific logic, as well as its tests and scripts if needed.

┌──────┐                                           ┌───────────┐  ┌────────────────────┐
│Client│                                           │L1 Contract│  │ Off-Chain Database │
└──┬───┘                                           └─────┬─────┘  └──────────┬─────────┘
   │                                                     │                   │ 
   │ somefunc(...)                                       │                   │ 
   ├────────────────────────────────────────────────────►│                   │ 
   │                                                     │                   │ 
   │  revert StorageHandledByOffChainDatabase(sender,    |                   │ 
   │                               urls, requestParams)  │                   │ 
   │◄────────────────────────────────────────────────────┤                   │ 
   │                                                     │                   │ 
   │ HTTP Request [requestParams, signature]             │                   │ 
   ├─────────────────────────────────────────────────────┼──────────────────►│ 
   │                                                     │                   │ 
   │ response                                            │                   │ 
   │◄────────────────────────────────────────────────────┼───────────────────┤ 
   │                                                     │                   │ 

Describe Preferred Solution

The Client logic should be placed in a subpackage on the monorepo structure, allowing commands to be run from the root package in order automate local development environment setup. This subpackage must be able to:

  • Connect to a given Blockchain network through an JSON-RPC client
  • Call specific methods of an smart contract

Related Code

@pikonha pikonha added the enhancement New feature or request label Feb 21, 2024
This was referenced Feb 21, 2024
@pikonha
Copy link
Contributor Author

pikonha commented Feb 26, 2024

blocked by #9 #10

@pikonha pikonha self-assigned this Feb 29, 2024
pikonha added a commit that referenced this issue Mar 1, 2024
pikonha added a commit that referenced this issue Mar 1, 2024
pikonha added a commit that referenced this issue Mar 3, 2024
LeonardoVieira1630 added a commit that referenced this issue Mar 6, 2024
@pikonha pikonha closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ✅ Done
Development

No branches or pull requests

1 participant