rename `internal` to `pkg`

These components are meant to be consumed by external programs to implement
a terra oracle.
This commit is contained in:
Roman Shtylman 2019-12-03 15:11:27 -08:00
parent 23ed9acc7a
commit cbf678fafd
10 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,7 @@ A library for implementing a price oracle on the Terra network.
## Example
See `cmd/example` directory for an example oracle program.
See `example` directory for an example oracle program.
## Sponsors

View File

@ -7,8 +7,8 @@ import (
"github.com/cosmos/cosmos-sdk/types"
"github.com/tendermint/tendermint/rpc/client"
"github.com/certusone/terra-oracle/internal/oracle"
"github.com/certusone/terra-oracle/internal/signer"
"github.com/certusone/terra-oracle/pkg/oracle"
"github.com/certusone/terra-oracle/pkg/signer"
)
// examplePriceProvider implements the PriceProvider interface

2
go.mod
View File

@ -13,3 +13,5 @@ replace (
github.com/cosmos/cosmos-sdk => github.com/YunSuk-Yeo/cosmos-sdk v0.34.7-terra
golang.org/x/crypto => github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5
)
go 1.13

View File

@ -6,7 +6,7 @@ import (
"log"
"time"
"github.com/certusone/terra-oracle/internal/signer"
"github.com/certusone/terra-oracle/pkg/signer"
ctypes "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth"
tcontext "github.com/cosmos/cosmos-sdk/x/auth/client/txbuilder"