From 6d5d79442d5ecc7a129c42a08f4d52883ab1a124 Mon Sep 17 00:00:00 2001 From: Siarhei Valasovich <75541419+svalasovich@users.noreply.github.com> Date: Wed, 18 May 2022 16:11:44 +0300 Subject: [PATCH] updated contract module for v0.5.0 (#5) --- contract/pkg/messages.go | 6 ------ contract/pkg/mock/ddc_bucket_contract_mock.go | 1 - 2 files changed, 7 deletions(-) diff --git a/contract/pkg/messages.go b/contract/pkg/messages.go index f253abb..d5ecc16 100644 --- a/contract/pkg/messages.go +++ b/contract/pkg/messages.go @@ -35,15 +35,9 @@ type NodeStatus struct { type Bucket struct { OwnerId types.AccountID ClusterId uint32 - Flow Flow ResourceReserved uint32 } -type Flow struct { - From types.AccountID - Schedule Schedule -} - type Schedule struct { Rate types.U128 Offset types.U128 diff --git a/contract/pkg/mock/ddc_bucket_contract_mock.go b/contract/pkg/mock/ddc_bucket_contract_mock.go index 87dc89c..42f0a53 100644 --- a/contract/pkg/mock/ddc_bucket_contract_mock.go +++ b/contract/pkg/mock/ddc_bucket_contract_mock.go @@ -113,7 +113,6 @@ func CreateBucket(bucketId uint32, bucketParams string) *pkg.BucketStatus { Bucket: pkg.Bucket{ OwnerId: types.AccountID{}, ClusterId: 0, - Flow: pkg.Flow{}, ResourceReserved: 0, }, Params: bucketParams,