Skip to content

New contracts#3

Draft
mrtingalingling wants to merge 68 commits intomainfrom
newContracts
Draft

New contracts#3
mrtingalingling wants to merge 68 commits intomainfrom
newContracts

Conversation

@mrtingalingling
Copy link
Copy Markdown
Collaborator

No description provided.

@mrtingalingling mrtingalingling marked this pull request as draft January 30, 2026 22:40
@mrtingalingling mrtingalingling marked this pull request as ready for review January 30, 2026 22:41
@mrtingalingling mrtingalingling marked this pull request as draft January 30, 2026 22:41
@mrtingalingling
Copy link
Copy Markdown
Collaborator Author

  1. SkypierVPN now implements ISkypierVPN ✅
  • File: SkypierVPN.sol:1-20
  • Change: Added ISkypierVPN to contract inheritance
  • Integration: Imports node management contracts (NodeStatusContract, NodeConfigContract) and ERC6551 registry/account for token-bound accounts
  1. PaymentPool now implements IPaymentPool ✅
  • File: PaymentPool.sol:1-15
  • Change: Added IPaymentPool to contract inheritance
  • Methods added:
    • deposit() - accepts ETH deposits
    • distributePayments() - coordinates network and builder payment distribution
    • getNetworkPoolBalance() - returns network pool ETH balance
    • getBuilderPoolBalance() - returns builder pool ETH balance
  1. SkypierBadges now implements IBadges ✅
  • File: SkypierBadges.sol:13
  • Change: Added IBadges to contract inheritance
  • Methods added:
    • mintBadge(address, uint256, uint256, bytes) - mint with badge attributes tracking
    • revokeBadge(address, uint256) - revoke badge and remove attributes
    • getBadgeAttributes(uint256, address) - retrieve badge metadata
  • State: Tracks BadgeAttributes per badge per holder
  1. Library Contracts Integrated into SkypierVPN ✅
  • NodeStatusContract - ERC721-based node status tracking
  • NodeConfigContract - ERC721-based node configuration management
  • ERC6551Registry - Token-bound account factory
  • TokenBoundAccount - Token-bound account implementation

File Changes Summary

  1. [SkypierVPN.sol] - Added interface and lib imports
  2. [PaymentPool.sol] - Added IPaymentPool interface + 4 methods
  3. [SkypierBadges.sol] - Added IBadges interface + 3 methods + state

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.

1 participant