-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
139 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,89 @@ | ||
package model | ||
|
||
import "encoding/json" | ||
import ( | ||
"encoding/json" | ||
|
||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/gogo/protobuf/proto" | ||
|
||
"github.com/osmosis-labs/osmosis/v15/x/cosmwasmpool/types" | ||
poolmanagertypes "github.com/osmosis-labs/osmosis/v15/x/poolmanager/types" | ||
) | ||
|
||
var ( | ||
_ poolmanagertypes.PoolI = &CosmWasmPool{} | ||
_ types.CosmWasmExtension = &CosmWasmPool{} | ||
) | ||
|
||
// String returns the json marshalled string of the pool | ||
func (p PoolStoreModel) String() string { | ||
func (p CosmWasmPool) String() string { | ||
out, err := json.Marshal(p) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return string(out) | ||
} | ||
|
||
// poolmanager.PoolI interface implementation | ||
|
||
func (p CosmWasmPool) GetAddress() sdk.AccAddress { | ||
panic("CosmWasmPool.GetAddress not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetId() uint64 { | ||
panic("CosmWasmPool.GetId not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetSwapFee(ctx sdk.Context) sdk.Dec { | ||
panic("CosmWasmPool.SwapFee not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetExitFee(ctx sdk.Context) sdk.Dec { | ||
panic("CosmWasmPool.GetExitFee not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) IsActive(ctx sdk.Context) bool { | ||
panic("CosmWasmPool.IsActive not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) SpotPrice(ctx sdk.Context, baseAssetDenom string, quoteAssetDenom string) (sdk.Dec, error) { | ||
panic("CosmWasmPool.SpotPrice not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetTotalShares() sdk.Int { | ||
panic("CosmWasmPool.GetTotalShares not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetType() poolmanagertypes.PoolType { | ||
panic("CosmWasmPool.GetType not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetTotalPoolLiquidity(ctx sdk.Context) sdk.Coins { | ||
panic("CosmWasmPool.GetTotalPoolLiquidity not implemented") | ||
} | ||
|
||
// types.CosmWasmExtension interface implementation | ||
|
||
func (p CosmWasmPool) GetCodeId() uint64 { | ||
panic("CosmWasmPool.GetType not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetInstantiateMsg() []byte { | ||
panic("CosmWasmPool.GetInstantiateMsg not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetContractAddress() string { | ||
panic("CosmWasmPool.GetContractAddress not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) SetContractAddress(contractAddress string) { | ||
panic("CosmWasmPool.SetContractAddress not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) GetStoreModel() proto.Message { | ||
panic("CosmWasmPool.GetStoreModel not implemented") | ||
} | ||
|
||
func (p CosmWasmPool) SetWasmKeeper(wasmKeeper types.WasmKeeper) { | ||
panic("CosmWasmPool.SetWasmKeeeper not implemented") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters