mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
* feat: add new supported attestation formats to genesis * feat: refactor keyType to keytype enum * refactor: remove unused imports and code * refactor: update main.go to use src package * refactor: move web-related structs from to * refactor: move client middleware package to root * refactor: remove unused IndexedDB dependency * feat: update worker implementation to use * feat: add Caddyfile and Caddy configuration for vault service * refactor(config): move keyshare and address to Motr config * fix: validate service origin in AllocateVault * chore: remove IndexedDB configuration * feat: add support for IPNS-based vault access
76 lines
1.0 KiB
Plaintext
76 lines
1.0 KiB
Plaintext
@go.Package { name = "github.com/onsonr/sonr/config/dwn" }
|
|
|
|
module dwn
|
|
|
|
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
|
|
|
typealias JSON = String
|
|
|
|
class JsonField extends go.Field {
|
|
structTags {
|
|
["json"] = "%{name},omitempty"
|
|
}
|
|
}
|
|
|
|
class Config {
|
|
@JsonField
|
|
ipfs: IPFS
|
|
|
|
@JsonField
|
|
sonr: Sonr
|
|
|
|
@JsonField
|
|
motr: Motr
|
|
}
|
|
|
|
class IPFS {
|
|
@JsonField
|
|
apiUrl: String
|
|
|
|
@JsonField
|
|
gatewayUrl: String
|
|
}
|
|
|
|
class Motr {
|
|
@JsonField
|
|
keyshare: JSON
|
|
|
|
@JsonField
|
|
address: String
|
|
|
|
@JsonField
|
|
origin: String
|
|
}
|
|
|
|
class Sonr {
|
|
@JsonField
|
|
apiUrl: String
|
|
|
|
@JsonField
|
|
grpcUrl: String
|
|
|
|
@JsonField
|
|
rpcUrl: String
|
|
|
|
@JsonField
|
|
webSocketUrl: String
|
|
|
|
@JsonField
|
|
chainId: String
|
|
}
|
|
|
|
|
|
config = new Config {
|
|
ipfs = new IPFS {
|
|
apiUrl = "https://api.sonr-ipfs.land"
|
|
gatewayUrl = "https://ipfs.sonr.land"
|
|
}
|
|
|
|
sonr = new Sonr {
|
|
apiUrl = "https://api.sonr.land"
|
|
grpcUrl = "https://grpc.sonr.land"
|
|
rpcUrl = "https://rpc.sonr.land"
|
|
webSocketUrl = "wss://rpc.sonr.land/ws"
|
|
}
|
|
}
|