@@ -29,7 +29,6 @@ import (
2929 "github.com/code-payments/code-server/pkg/code/data/deposit"
3030 "github.com/code-payments/code-server/pkg/code/data/fulfillment"
3131 "github.com/code-payments/code-server/pkg/code/data/intent"
32- "github.com/code-payments/code-server/pkg/code/data/merkletree"
3332 "github.com/code-payments/code-server/pkg/code/data/messaging"
3433 "github.com/code-payments/code-server/pkg/code/data/nonce"
3534 "github.com/code-payments/code-server/pkg/code/data/rendezvous"
@@ -47,7 +46,6 @@ import (
4746 deposit_memory_client "github.com/code-payments/code-server/pkg/code/data/deposit/memory"
4847 fulfillment_memory_client "github.com/code-payments/code-server/pkg/code/data/fulfillment/memory"
4948 intent_memory_client "github.com/code-payments/code-server/pkg/code/data/intent/memory"
50- merkletree_memory_client "github.com/code-payments/code-server/pkg/code/data/merkletree/memory"
5149 messaging_memory_client "github.com/code-payments/code-server/pkg/code/data/messaging/memory"
5250 nonce_memory_client "github.com/code-payments/code-server/pkg/code/data/nonce/memory"
5351 rendezvous_memory_client "github.com/code-payments/code-server/pkg/code/data/rendezvous/memory"
@@ -65,7 +63,6 @@ import (
6563 deposit_postgres_client "github.com/code-payments/code-server/pkg/code/data/deposit/postgres"
6664 fulfillment_postgres_client "github.com/code-payments/code-server/pkg/code/data/fulfillment/postgres"
6765 intent_postgres_client "github.com/code-payments/code-server/pkg/code/data/intent/postgres"
68- merkletree_postgres_client "github.com/code-payments/code-server/pkg/code/data/merkletree/postgres"
6966 messaging_postgres_client "github.com/code-payments/code-server/pkg/code/data/messaging/postgres"
7067 nonce_postgres_client "github.com/code-payments/code-server/pkg/code/data/nonce/postgres"
7168 rendezvous_postgres_client "github.com/code-payments/code-server/pkg/code/data/rendezvous/postgres"
@@ -198,11 +195,6 @@ type DatabaseData interface {
198195 GetGiftCardClaimedIntent (ctx context.Context , giftCardVault string ) (* intent.Record , error )
199196 GetTransactedAmountForAntiMoneyLaundering (ctx context.Context , owner string , since time.Time ) (uint64 , float64 , error )
200197
201- // Merkle Trees
202- // --------------------------------------------------------------------------------
203- InitializeNewMerkleTree (ctx context.Context , name string , levels uint8 , seeds []merkletree.Seed , readOnly bool ) (* merkletree.MerkleTree , error )
204- LoadExistingMerkleTree (ctx context.Context , name string , readOnly bool ) (* merkletree.MerkleTree , error )
205-
206198 // Messaging
207199 // --------------------------------------------------------------------------------
208200 CreateMessage (ctx context.Context , record * messaging.Record ) error
@@ -277,7 +269,6 @@ type DatabaseProvider struct {
277269 deposits deposit.Store
278270 fulfillments fulfillment.Store
279271 intents intent.Store
280- merkleTrees merkletree.Store
281272 messages messaging.Store
282273 nonces nonce.Store
283274 rendezvous rendezvous.Store
@@ -323,7 +314,6 @@ func NewDatabaseProvider(dbConfig *pg.Config) (DatabaseData, error) {
323314 deposits : deposit_postgres_client .New (db ),
324315 fulfillments : fulfillment_postgres_client .New (db ),
325316 intents : intent_postgres_client .New (db ),
326- merkleTrees : merkletree_postgres_client .New (db ),
327317 messages : messaging_postgres_client .New (db ),
328318 nonces : nonce_postgres_client .New (db ),
329319 rendezvous : rendezvous_postgres_client .New (db ),
@@ -350,7 +340,6 @@ func NewTestDatabaseProvider() DatabaseData {
350340 deposits : deposit_memory_client .New (),
351341 fulfillments : fulfillment_memory_client .New (),
352342 intents : intent_memory_client .New (),
353- merkleTrees : merkletree_memory_client .New (),
354343 messages : messaging_memory_client .New (),
355344 nonces : nonce_memory_client .New (),
356345 rendezvous : rendezvous_memory_client .New (),
@@ -700,15 +689,6 @@ func (dp *DatabaseProvider) GetTransactedAmountForAntiMoneyLaundering(ctx contex
700689 return dp .intents .GetTransactedAmountForAntiMoneyLaundering (ctx , owner , since )
701690}
702691
703- // Merkle Trees
704- // --------------------------------------------------------------------------------
705- func (dp * DatabaseProvider ) InitializeNewMerkleTree (ctx context.Context , name string , levels uint8 , seeds []merkletree.Seed , readOnly bool ) (* merkletree.MerkleTree , error ) {
706- return merkletree .InitializeNew (ctx , dp .merkleTrees , name , levels , seeds , readOnly )
707- }
708- func (dp * DatabaseProvider ) LoadExistingMerkleTree (ctx context.Context , name string , readOnly bool ) (* merkletree.MerkleTree , error ) {
709- return merkletree .LoadExisting (ctx , dp .merkleTrees , name , readOnly )
710- }
711-
712692// Messaging
713693// --------------------------------------------------------------------------------
714694func (dp * DatabaseProvider ) CreateMessage (ctx context.Context , record * messaging.Record ) error {
0 commit comments