Files
sonr/pkl/sonr.motr/DWN.pkl
T

82 lines
1.0 KiB
Plaintext
Raw Normal View History

@go.Package { name = "github.com/onsonr/sonr/app/vault/types" }
2024-09-18 02:22:17 -04:00
module sonr.motr.DWN
2024-09-18 02:22:17 -04:00
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
typealias JSON = String
2024-10-06 20:07:24 -04:00
class JsonField extends go.Field {
structTags {
["json"] = "%{name},omitempty"
}
}
2024-09-18 02:22:17 -04:00
class Config {
2024-10-06 20:07:24 -04:00
@JsonField
ipfsGatewayUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
motrToken: String
2024-10-06 20:07:24 -04:00
@JsonField
motrAddress: String
2024-10-06 20:07:24 -04:00
@JsonField
sonrApiUrl: String
2024-10-06 20:07:24 -04:00
@JsonField
sonrRpcUrl: String
2024-09-18 02:22:17 -04:00
2024-10-06 20:07:24 -04:00
@JsonField
sonrChainId: String
2024-09-18 02:22:17 -04:00
2024-10-06 20:07:24 -04:00
@JsonField
vaultSchema: Schema
2024-09-19 02:04:22 -04:00
}
class Environment {
@JsonField
isDevelopment: Boolean
@JsonField
cacheVersion: String
@JsonField
httpserverPath: String
@JsonField
wasmExecPath: String
@JsonField
wasmPath: String
}
2024-09-21 21:42:51 -04:00
class Schema {
version: Int
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
account: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
asset: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
chain: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
credential: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
jwk: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
grant: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
keyshare: String
2024-10-06 20:07:24 -04:00
@JsonField
2024-09-21 21:42:51 -04:00
profile: String
}