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

Smartcontract prototype for Pay per month #45

Open
Igx22 opened this issue Jan 10, 2023 · 0 comments
Open

Smartcontract prototype for Pay per month #45

Igx22 opened this issue Jan 10, 2023 · 0 comments
Milestone

Comments

@Igx22
Copy link
Collaborator

Igx22 commented Jan 10, 2023

  1. read and cleanup dstorage.sol
    I'm pretty sure there are a lot of bugs - but I did this to define a skeleton of what is needed
    and what datastructures I need
    https://github.com/ethereum-push-notification-service/epns-dstorage/tree/contract-1/contract

  2. use this template project
    https://github.com/Belf33/Web3-hardhat-solidity-js-starter/blob/master/test/unit/FundMe.test.js
    we need hardhat, tests, testnet scripts etc...

  3. more features:
    nsToShardToSNodeMap
    nsToShard

maps should be populated via bindSNodeToShard(namespace, shard)

every modification should emit a SNodeMapped(wallet, namespace, shard)

and it all should land into SNode/mysql/network_storage_layout

and eventually (when it's all perfect) copied to VNode/mysql/network_storage_layout

// the workflow
// 1 a dapp says (I want to add a new node, I have money, I have url for API calls)
// API = I've setup a complete VNode docker instance (SNode)
// 2 this SC emits NodeAdded
// 3 all VNode/SNode receive NodeAdded
// 4 they update network_storage_layout
// and / or  node_info
@Igx22 Igx22 added this to the V2 feeds milestone Jan 10, 2023
@Igx22 Igx22 self-assigned this Jan 10, 2023
@Igx22 Igx22 assigned Arch0125 and unassigned Igx22 Jan 23, 2023
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

No branches or pull requests

2 participants