Files
sonr/pkl/dwn.pkl
T

101 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-09-29 14:40:36 -04:00
@go.Package { name = "github.com/onsonr/sonr/pkg/dwn" }
2024-09-18 02:22:17 -04:00
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
2024-09-19 02:04:22 -04:00
motr: Motr
2024-09-21 21:42:51 -04:00
@JsonField
schema: Schema
2024-09-26 15:58:49 -04:00
@JsonField
proxyUrl: String
2024-09-18 02:22:17 -04:00
}
class IPFS {
2024-09-19 02:04:22 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
apiUrl: String
2024-09-19 02:04:22 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
gatewayUrl: String
}
2024-09-19 02:04:22 -04:00
class Motr {
@JsonField
keyshare: JSON
@JsonField
address: String
@JsonField
origin: String
}
2024-09-21 21:42:51 -04:00
class Schema {
version: Int
@JsonField
account: String
@JsonField
asset: String
@JsonField
chain: String
@JsonField
credential: String
@JsonField
jwk: String
@JsonField
grant: String
@JsonField
keyshare: String
@JsonField
publicKey: String
@JsonField
profile: String
}
2024-09-18 02:22:17 -04:00
class Sonr {
2024-09-19 02:04:22 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
apiUrl: String
2024-09-19 02:04:22 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
grpcUrl: String
2024-09-19 02:04:22 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
rpcUrl: String
2024-09-19 02:04:22 -04:00
@JsonField
2024-09-18 02:22:17 -04:00
webSocketUrl: String
2024-09-19 02:04:22 -04:00
@JsonField
chainId: String
2024-09-18 02:22:17 -04:00
}