From 4988ab68f7753d55c4d979717a13ccdca13fe11e Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 15 Jun 2022 15:22:03 +0000 Subject: [PATCH] Move `internal/trie/proof` -> `lib/trie/proof` --- lib/runtime/wasmer/imports.go | 2 +- lib/runtime/wasmer/imports_test.go | 2 +- {internal => lib}/trie/proof/generate.go | 0 {internal => lib}/trie/proof/generate_test.go | 0 {internal => lib}/trie/proof/helpers_test.go | 0 {internal => lib}/trie/proof/mocks_generate_test.go | 0 {internal => lib}/trie/proof/mocks_test.go | 2 +- {internal => lib}/trie/proof/proof_test.go | 0 {internal => lib}/trie/proof/verify.go | 0 {internal => lib}/trie/proof/verify_test.go | 0 10 files changed, 3 insertions(+), 3 deletions(-) rename {internal => lib}/trie/proof/generate.go (100%) rename {internal => lib}/trie/proof/generate_test.go (100%) rename {internal => lib}/trie/proof/helpers_test.go (100%) rename {internal => lib}/trie/proof/mocks_generate_test.go (100%) rename {internal => lib}/trie/proof/mocks_test.go (93%) rename {internal => lib}/trie/proof/proof_test.go (100%) rename {internal => lib}/trie/proof/verify.go (100%) rename {internal => lib}/trie/proof/verify_test.go (100%) diff --git a/lib/runtime/wasmer/imports.go b/lib/runtime/wasmer/imports.go index dc36b4d82c1..509c5a3e34d 100644 --- a/lib/runtime/wasmer/imports.go +++ b/lib/runtime/wasmer/imports.go @@ -111,7 +111,6 @@ import ( "unsafe" "github.com/ChainSafe/gossamer/internal/log" - "github.com/ChainSafe/gossamer/internal/trie/proof" "github.com/ChainSafe/gossamer/lib/common" rtype "github.com/ChainSafe/gossamer/lib/common/types" "github.com/ChainSafe/gossamer/lib/crypto" @@ -122,6 +121,7 @@ import ( rtstorage "github.com/ChainSafe/gossamer/lib/runtime/storage" "github.com/ChainSafe/gossamer/lib/transaction" "github.com/ChainSafe/gossamer/lib/trie" + "github.com/ChainSafe/gossamer/lib/trie/proof" "github.com/ChainSafe/gossamer/pkg/scale" wasm "github.com/wasmerio/go-ext-wasm/wasmer" diff --git a/lib/runtime/wasmer/imports_test.go b/lib/runtime/wasmer/imports_test.go index 516f50dbde6..b31c0944c7f 100644 --- a/lib/runtime/wasmer/imports_test.go +++ b/lib/runtime/wasmer/imports_test.go @@ -12,7 +12,6 @@ import ( "time" "github.com/ChainSafe/chaindb" - "github.com/ChainSafe/gossamer/internal/trie/proof" "github.com/ChainSafe/gossamer/lib/common" "github.com/ChainSafe/gossamer/lib/common/types" "github.com/ChainSafe/gossamer/lib/crypto" @@ -23,6 +22,7 @@ import ( "github.com/ChainSafe/gossamer/lib/runtime" "github.com/ChainSafe/gossamer/lib/runtime/storage" "github.com/ChainSafe/gossamer/lib/trie" + "github.com/ChainSafe/gossamer/lib/trie/proof" "github.com/ChainSafe/gossamer/pkg/scale" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/trie/proof/generate.go b/lib/trie/proof/generate.go similarity index 100% rename from internal/trie/proof/generate.go rename to lib/trie/proof/generate.go diff --git a/internal/trie/proof/generate_test.go b/lib/trie/proof/generate_test.go similarity index 100% rename from internal/trie/proof/generate_test.go rename to lib/trie/proof/generate_test.go diff --git a/internal/trie/proof/helpers_test.go b/lib/trie/proof/helpers_test.go similarity index 100% rename from internal/trie/proof/helpers_test.go rename to lib/trie/proof/helpers_test.go diff --git a/internal/trie/proof/mocks_generate_test.go b/lib/trie/proof/mocks_generate_test.go similarity index 100% rename from internal/trie/proof/mocks_generate_test.go rename to lib/trie/proof/mocks_generate_test.go diff --git a/internal/trie/proof/mocks_test.go b/lib/trie/proof/mocks_test.go similarity index 93% rename from internal/trie/proof/mocks_test.go rename to lib/trie/proof/mocks_test.go index a46e88cb314..69262dc3157 100644 --- a/internal/trie/proof/mocks_test.go +++ b/lib/trie/proof/mocks_test.go @@ -1,5 +1,5 @@ // Code generated by MockGen. DO NOT EDIT. -// Source: github.com/ChainSafe/gossamer/internal/trie/proof (interfaces: Database) +// Source: github.com/ChainSafe/gossamer/lib/trie/proof (interfaces: Database) // Package proof is a generated GoMock package. package proof diff --git a/internal/trie/proof/proof_test.go b/lib/trie/proof/proof_test.go similarity index 100% rename from internal/trie/proof/proof_test.go rename to lib/trie/proof/proof_test.go diff --git a/internal/trie/proof/verify.go b/lib/trie/proof/verify.go similarity index 100% rename from internal/trie/proof/verify.go rename to lib/trie/proof/verify.go diff --git a/internal/trie/proof/verify_test.go b/lib/trie/proof/verify_test.go similarity index 100% rename from internal/trie/proof/verify_test.go rename to lib/trie/proof/verify_test.go