rename `internal` to `pkg`
These components are meant to be consumed by external programs to implement a terra oracle.
This commit is contained in:
parent
23ed9acc7a
commit
cbf678fafd
|
@ -4,7 +4,7 @@ A library for implementing a price oracle on the Terra network.
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
See `cmd/example` directory for an example oracle program.
|
See `example` directory for an example oracle program.
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"github.com/cosmos/cosmos-sdk/types"
|
"github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/tendermint/tendermint/rpc/client"
|
"github.com/tendermint/tendermint/rpc/client"
|
||||||
|
|
||||||
"github.com/certusone/terra-oracle/internal/oracle"
|
"github.com/certusone/terra-oracle/pkg/oracle"
|
||||||
"github.com/certusone/terra-oracle/internal/signer"
|
"github.com/certusone/terra-oracle/pkg/signer"
|
||||||
)
|
)
|
||||||
|
|
||||||
// examplePriceProvider implements the PriceProvider interface
|
// examplePriceProvider implements the PriceProvider interface
|
2
go.mod
2
go.mod
|
@ -13,3 +13,5 @@ replace (
|
||||||
github.com/cosmos/cosmos-sdk => github.com/YunSuk-Yeo/cosmos-sdk v0.34.7-terra
|
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
|
golang.org/x/crypto => github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
go 1.13
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/certusone/terra-oracle/internal/signer"
|
"github.com/certusone/terra-oracle/pkg/signer"
|
||||||
ctypes "github.com/cosmos/cosmos-sdk/types"
|
ctypes "github.com/cosmos/cosmos-sdk/types"
|
||||||
"github.com/cosmos/cosmos-sdk/x/auth"
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
||||||
tcontext "github.com/cosmos/cosmos-sdk/x/auth/client/txbuilder"
|
tcontext "github.com/cosmos/cosmos-sdk/x/auth/client/txbuilder"
|
Loading…
Reference in New Issue