/
interface.go
34 lines (30 loc) 路 1.43 KB
/
interface.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
33
34
package keeper
import (
"github.com/MixinNetwork/safe/keeper/store"
"github.com/MixinNetwork/trusted-group/mtg"
)
type Configuration struct {
StoreDir string `toml:"store-dir"`
MonitorConversaionId string `toml:"monitor-conversation-id"`
SharedKey string `toml:"shared-key"`
SignerPublicKey string `toml:"signer-public-key"`
AssetId string `toml:"asset-id"`
ObserverAssetId string `toml:"observer-asset-id"`
ObserverPublicKey string `toml:"observer-public-key"`
ObserverUserId string `toml:"observer-user-id"`
MixinMessengerAPI string `toml:"mixin-messenger-api"`
MixinRPC string `toml:"mixin-rpc"`
BitcoinRPC string `toml:"bitcoin-rpc"`
LitecoinRPC string `toml:"litecoin-rpc"`
EthereumRPC string `toml:"ethereum-rpc"`
MVMRPC string `toml:"mvm-rpc"`
PolygonRPC string `toml:"polygon-rpc"`
MVMFactoryAddress string `toml:"mvm-factory-address"`
MTG *mtg.Configuration `toml:"mtg"`
}
func OpenSQLite3Store(path string) (*store.SQLite3Store, error) {
return store.OpenSQLite3Store(path)
}
func OpenSQLite3ReadOnlyStore(path string) (*store.SQLite3Store, error) {
return store.OpenSQLite3ReadOnlyStore(path)
}