Skip to content

Commit

Permalink
Remove custom events records and types definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed May 10, 2024
1 parent 26558b9 commit 985630a
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 414 deletions.
47 changes: 0 additions & 47 deletions blockchain/pallets/contracts.go

This file was deleted.

35 changes: 0 additions & 35 deletions blockchain/pallets/ddcclusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,6 @@ type ClusterProps struct {
NodeProviderAuthContract types.AccountID
}

// Events
type (
EventDdcClustersClusterCreated struct {
Phase types.Phase
ClusterId ClusterId
Topics []types.Hash
}

EventDdcClustersClusterNodeAdded struct {
Phase types.Phase
ClusterId ClusterId
NodePubKey NodePubKey
Topics []types.Hash
}

EventDdcClustersClusterNodeRemoved struct {
Phase types.Phase
ClusterId ClusterId
NodePubKey NodePubKey
Topics []types.Hash
}

EventDdcClustersClusterParamsSet struct {
Phase types.Phase
ClusterId ClusterId
Topics []types.Hash
}

EventDdcClustersClusterGovParamsSet struct {
Phase types.Phase
ClusterId ClusterId
Topics []types.Hash
}
)

type DdcClustersApi interface {
GetClustersNodes(clusterId ClusterId) ([]NodePubKey, error)
}
Expand Down
44 changes: 0 additions & 44 deletions blockchain/pallets/ddccustomers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,50 +26,6 @@ type UnlockChunk struct {
Block types.BlockNumber
}

// Events
type (
EventDdcCustomersDeposited struct {
Phase types.Phase
OwnerId types.AccountID
Amount types.U128
Topics []types.Hash
}
EventDdcCustomersInitialDepositUnlock struct {
Phase types.Phase
OwnerId types.AccountID
Amount types.U128
Topics []types.Hash
}
EventDdcCustomersWithdrawn struct {
Phase types.Phase
OwnerId types.AccountID
Amount types.U128
Topics []types.Hash
}
EventDdcCustomersCharged struct {
Phase types.Phase
OwnerId types.AccountID
Charged types.U128
ExpectedToCharge types.U128
Topics []types.Hash
}
EventDdcCustomersBucketCreated struct {
Phase types.Phase
BucketId BucketId
Topics []types.Hash
}
EventDdcCustomersBucketUpdated struct {
Phase types.Phase
BucketId BucketId
Topics []types.Hash
}
EventDdcCustomersBucketRemoved struct {
Phase types.Phase
BucketId BucketId
Topics []types.Hash
}
)

type DdcCustomersApi interface {
GetBuckets(bucketId BucketId) (types.Option[Bucket], error)
GetBucketsCount() (types.U64, error)
Expand Down
21 changes: 0 additions & 21 deletions blockchain/pallets/ddcnodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,6 @@ type StorageNodeProps struct {
Mode StorageNodeMode
}

// Events
type (
EventDdcNodesNodeCreated struct {
Phase types.Phase
NodePubKey NodePubKey
Topics []types.Hash
}

EventDdcNodesNodeDeleted struct {
Phase types.Phase
NodePubKey NodePubKey
Topics []types.Hash
}

EventDdcNodesNodeParamsChanged struct {
Phase types.Phase
NodePubKey NodePubKey
Topics []types.Hash
}
)

type DdcNodesApi interface {
GetStorageNodes(pubkey StorageNodePubKey) (types.Option[StorageNode], error)
}
Expand Down
147 changes: 0 additions & 147 deletions blockchain/pallets/ddcpayouts.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,153 +90,6 @@ func (m State) Encode(encoder scale.Encoder) error {
return nil
}

// Events
type (
EventDdcPayoutsBillingReportInitialized struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsChargingStarted struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsCharged struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
BatchIndex BatchIndex
CustomerId types.AccountID
Amount types.U128
Topics []types.Hash
}

EventDdcPayoutsChargeFailed struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
BatchIndex BatchIndex
CustomerId types.AccountID
Charged types.U128
ExpectedToCharge types.U128
Topics []types.Hash
}

EventDdcPayoutsIndebted struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
BatchIndex BatchIndex
CustomerId types.AccountID
Amount types.U128
Topics []types.Hash
}

EventDdcPayoutsChargingFinished struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsTreasuryFeesCollected struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsClusterReserveFeesCollected struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Amount types.U128
Topics []types.Hash
}

EventDdcPayoutsValidatorFeesCollected struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Amount types.U128
Topics []types.Hash
}

EventDdcPayoutsRewardingStarted struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsRewarded struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
BatchIndex BatchIndex
NodeProviderId types.AccountID
Rewarded types.U128
ExpectedToReward types.U128
Topics []types.Hash
}

EventDdcPayoutsNotDistributedReward struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
BatchIndex BatchIndex
NodeProviderId types.AccountID
ExpectedReward types.U128
DistributedReward types.U128
Topics []types.Hash
}

EventDdcPayoutsNotDistributedOverallReward struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
ExpectedReward types.U128
TotalDistributedReward types.U128
Topics []types.Hash
}

EventDdcPayoutsRewardingFinished struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsBillingReportFinalized struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
Topics []types.Hash
}

EventDdcPayoutsAuthorisedCaller struct {
Phase types.Phase
AuthorisedCaller types.AccountID
Topics []types.Hash
}

EventDdcPayoutsChargeError struct {
Phase types.Phase
ClusterId ClusterId
Era DdcEra
BatchIndex BatchIndex
CustomerId types.AccountID
Amount types.U128
Error types.DispatchError
Topics []types.Hash
}
)

type DdcPayoutsApi interface {
GetActiveBillingReports(cluster ClusterId, era DdcEra) (types.Option[BillingReport], error)
GetAuthorisedCaller() (types.Option[types.AccountID], error)
Expand Down
59 changes: 0 additions & 59 deletions blockchain/pallets/ddcstaking.go

This file was deleted.

Loading

0 comments on commit 985630a

Please sign in to comment.