Skip to content

Commit c167f63

Browse files
authored
storage refactoring (#1295)
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent dae0c1f commit c167f63

File tree

136 files changed

+1011
-957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+1011
-957
lines changed

docs/development/storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This system leverages several stores, each with a specific purpose:
2727
For applications requiring enhanced auditability, the `auditdb` provides an additional layer of transparency.
2828
It meticulously stores audit records for transactions that have undergone the auditing process.
2929
This functionality is particularly valuable for scenarios where regulatory compliance or tamper-proof records are essential.
30-
The `auditdb.StoreService` is located under [`token/services/auditdb`](./../../token/services/auditdb). It is accessible via the `auditor.Service`.
30+
The `auditdb.StoreService` is located under [`token/services/auditdb`](../../token/services/storage/auditdb). It is accessible via the `auditor.Service`.
3131

3232
* **Identity Store (`identitydb`) and Wallet Store (`walletdb`)**:
3333
The `identitydb` plays a crucial role in managing user identities and wallets within the network.

docs/services/storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This system leverages several stores, each with a specific purpose:
2727
For applications requiring enhanced auditability, the `auditdb` provides an additional layer of transparency.
2828
It meticulously stores audit records for transactions that have undergone the auditing process.
2929
This functionality is particularly valuable for scenarios where regulatory compliance or tamper-proof records are essential.
30-
The `auditdb.StoreService` is located under [`token/services/auditdb`](./../../token/services/auditdb). It is accessible via the `auditor.Service`.
30+
The `auditdb.StoreService` is located under [`token/services/auditdb`](../../token/services/storage/auditdb). It is accessible via the `auditor.Service`.
3131

3232
* **Identity Store (`identitydb`) and Wallet Store (`walletdb`)**:
3333
The `identitydb` plays a crucial role in managing user identities and wallets within the network.

integration/token/common/sdk/identity/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ package identity
88

99
import (
1010
"github.com/hyperledger-labs/fabric-token-sdk/token"
11-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/db/driver"
1211
driver2 "github.com/hyperledger-labs/fabric-token-sdk/token/services/identity/driver"
1312
"github.com/hyperledger-labs/fabric-token-sdk/token/services/identity/storage/kvs"
13+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/db/driver"
1414
)
1515

1616
type KVSStorageProvider struct {

integration/token/fungible/support.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ import (
4040
"github.com/hyperledger-labs/fabric-token-sdk/token/services/identity"
4141
"github.com/hyperledger-labs/fabric-token-sdk/token/services/identity/storage/kvs"
4242
"github.com/hyperledger-labs/fabric-token-sdk/token/services/identity/x509"
43+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/ttxdb"
4344
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttx"
44-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttxdb"
4545
"github.com/hyperledger-labs/fabric-token-sdk/token/token"
4646
"github.com/onsi/gomega"
4747
"github.com/prometheus/common/model"

integration/token/fungible/tests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
"github.com/hyperledger-labs/fabric-token-sdk/integration/token/fungible/views"
3030
token4 "github.com/hyperledger-labs/fabric-token-sdk/token"
3131
dlognoghv1 "github.com/hyperledger-labs/fabric-token-sdk/token/core/zkatdlog/nogh/v1/setup"
32+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/ttxdb"
3233
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttx"
33-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttxdb"
3434
token2 "github.com/hyperledger-labs/fabric-token-sdk/token/token"
3535
"github.com/onsi/gomega"
3636
)

integration/token/fungible/views/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/hyperledger-labs/fabric-smart-client/platform/common/utils/assert"
1616
"github.com/hyperledger-labs/fabric-smart-client/platform/view/view"
1717
"github.com/hyperledger-labs/fabric-token-sdk/token"
18-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/db/driver"
1918
"github.com/hyperledger-labs/fabric-token-sdk/token/services/interop/htlc"
19+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/db/driver"
2020
"github.com/hyperledger-labs/fabric-token-sdk/token/services/tokens"
2121
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttx"
2222
token2 "github.com/hyperledger-labs/fabric-token-sdk/token/token"

integration/token/fungible/views/history.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/storage/driver/sql/query/pagination"
1717
"github.com/hyperledger-labs/fabric-smart-client/platform/view/view"
1818
"github.com/hyperledger-labs/fabric-token-sdk/token"
19+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/ttxdb"
1920
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttx"
20-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttxdb"
2121
token2 "github.com/hyperledger-labs/fabric-token-sdk/token/token"
2222
)
2323

integration/token/fungible/views/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/hyperledger-labs/fabric-smart-client/platform/view/services/storage/kvs"
1717
"github.com/hyperledger-labs/fabric-smart-client/platform/view/view"
1818
"github.com/hyperledger-labs/fabric-token-sdk/token"
19-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/tokendb"
19+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/tokendb"
2020
"github.com/hyperledger-labs/fabric-token-sdk/token/services/tokens"
2121
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttx"
2222
token2 "github.com/hyperledger-labs/fabric-token-sdk/token/token"

token/sdk/db/checks.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ package db
88

99
import (
1010
"github.com/hyperledger-labs/fabric-token-sdk/token"
11-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/auditdb"
1211
"github.com/hyperledger-labs/fabric-token-sdk/token/services/auditor"
13-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/db/common"
12+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/auditdb"
13+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/db/common"
14+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/ttxdb"
1415
"github.com/hyperledger-labs/fabric-token-sdk/token/services/tokens"
1516
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttx"
16-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/ttxdb"
1717
)
1818

1919
type AuditorCheckServiceProvider struct {

token/sdk/dig/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package sdk
88

99
import (
1010
"github.com/hyperledger-labs/fabric-token-sdk/token/sdk/db"
11-
"github.com/hyperledger-labs/fabric-token-sdk/token/services/db/common"
11+
"github.com/hyperledger-labs/fabric-token-sdk/token/services/storage/db/common"
1212
"go.uber.org/dig"
1313
)
1414

0 commit comments

Comments
 (0)