-
Notifications
You must be signed in to change notification settings - Fork 80
/
wasm.go
32 lines (27 loc) · 890 Bytes
/
wasm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package app
import (
"strings"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
tokenfactorytypes "github.com/public-awesome/stargaze/v14/x/tokenfactory/types"
)
var wasmCapabilities = []string{
"iterator",
"staking",
"stargate",
"stargaze",
"cosmwasm_1_1",
"cosmwasm_1_2",
"cosmwasm_1_3",
"cosmwasm_1_4",
"token_factory",
}
func AcceptedStargateQueries() wasmkeeper.AcceptedStargateQueries {
return wasmkeeper.AcceptedStargateQueries{
"/osmosis.tokenfactory.v1beta1.Query/Params": &tokenfactorytypes.QueryParamsResponse{},
"/osmosis.tokenfactory.v1beta1.Query/DenomAuthorityMetadata": &tokenfactorytypes.QueryDenomAuthorityMetadataResponse{},
"/osmosis.tokenfactory.v1beta1.Query/DenomsFromCreator": &tokenfactorytypes.QueryDenomsFromCreatorResponse{},
}
}
func GetWasmCapabilities() string {
return strings.Join(wasmCapabilities, ",")
}