mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: add PKL schema for message formats
This commit is contained in:
parent
d9b1ac72a3
commit
aa830517f3
2
Makefile
2
Makefile
@ -317,7 +317,9 @@ nebula:
|
|||||||
pkl:
|
pkl:
|
||||||
@echo "(pkl) Building PKL"
|
@echo "(pkl) Building PKL"
|
||||||
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/dwn.pkl
|
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/dwn.pkl
|
||||||
|
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/fmt.pkl
|
||||||
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/orm.pkl
|
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/orm.pkl
|
||||||
|
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./pkl/txns.pkl
|
||||||
|
|
||||||
start-caddy:
|
start-caddy:
|
||||||
@echo "(start-caddy) Starting caddy"
|
@echo "(start-caddy) Starting caddy"
|
||||||
|
@ -18,7 +18,5 @@ type Schema struct {
|
|||||||
|
|
||||||
Keyshare string `pkl:"keyshare" json:"keyshare,omitempty"`
|
Keyshare string `pkl:"keyshare" json:"keyshare,omitempty"`
|
||||||
|
|
||||||
PublicKey string `pkl:"publicKey" json:"publicKey,omitempty"`
|
|
||||||
|
|
||||||
Profile string `pkl:"profile" json:"profile,omitempty"`
|
Profile string `pkl:"profile" json:"profile,omitempty"`
|
||||||
}
|
}
|
||||||
|
36
pkg/format/Format.pkl.go
Normal file
36
pkg/format/Format.pkl.go
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
// Code generated from Pkl module `format`. DO NOT EDIT.
|
||||||
|
package format
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"github.com/apple/pkl-go/pkl"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Format struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
// LoadFromPath loads the pkl module at the given path and evaluates it into a Format
|
||||||
|
func LoadFromPath(ctx context.Context, path string) (ret *Format, err error) {
|
||||||
|
evaluator, err := pkl.NewEvaluator(ctx, pkl.PreconfiguredOptions)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
defer func() {
|
||||||
|
cerr := evaluator.Close()
|
||||||
|
if err == nil {
|
||||||
|
err = cerr
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
ret, err = Load(ctx, evaluator, pkl.FileSource(path))
|
||||||
|
return ret, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load loads the pkl module at the given source and evaluates it with the given evaluator into a Format
|
||||||
|
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Format, error) {
|
||||||
|
var ret Format
|
||||||
|
if err := evaluator.EvaluateModule(ctx, source, &ret); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &ret, nil
|
||||||
|
}
|
16
pkg/format/Macaroon.pkl.go
Normal file
16
pkg/format/Macaroon.pkl.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Code generated from Pkl module `format`. DO NOT EDIT.
|
||||||
|
package format
|
||||||
|
|
||||||
|
type Macaroon struct {
|
||||||
|
Location string `pkl:"location" json:"location,omitempty"`
|
||||||
|
|
||||||
|
Originator string `pkl:"originator" json:"originator,omitempty"`
|
||||||
|
|
||||||
|
Identifier string `pkl:"identifier" json:"identifier,omitempty"`
|
||||||
|
|
||||||
|
FirstParty []string `pkl:"first_party" json:"first_party,omitempty"`
|
||||||
|
|
||||||
|
ThirdParty []string `pkl:"third_party" json:"third_party,omitempty"`
|
||||||
|
|
||||||
|
Expiration int `pkl:"expiration" json:"expiration,omitempty"`
|
||||||
|
}
|
52
pkg/format/didmethod/DIDMethod.pkl.go
Normal file
52
pkg/format/didmethod/DIDMethod.pkl.go
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
// Code generated from Pkl module `format`. DO NOT EDIT.
|
||||||
|
package didmethod
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding"
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
type DIDMethod string
|
||||||
|
|
||||||
|
const (
|
||||||
|
Ipfs DIDMethod = "ipfs"
|
||||||
|
Sonr DIDMethod = "sonr"
|
||||||
|
Bitcoin DIDMethod = "bitcoin"
|
||||||
|
Ethereum DIDMethod = "ethereum"
|
||||||
|
Ibc DIDMethod = "ibc"
|
||||||
|
Webauthn DIDMethod = "webauthn"
|
||||||
|
Dwn DIDMethod = "dwn"
|
||||||
|
Service DIDMethod = "service"
|
||||||
|
)
|
||||||
|
|
||||||
|
// String returns the string representation of DIDMethod
|
||||||
|
func (rcv DIDMethod) String() string {
|
||||||
|
return string(rcv)
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ encoding.BinaryUnmarshaler = new(DIDMethod)
|
||||||
|
|
||||||
|
// UnmarshalBinary implements encoding.BinaryUnmarshaler for DIDMethod.
|
||||||
|
func (rcv *DIDMethod) UnmarshalBinary(data []byte) error {
|
||||||
|
switch str := string(data); str {
|
||||||
|
case "ipfs":
|
||||||
|
*rcv = Ipfs
|
||||||
|
case "sonr":
|
||||||
|
*rcv = Sonr
|
||||||
|
case "bitcoin":
|
||||||
|
*rcv = Bitcoin
|
||||||
|
case "ethereum":
|
||||||
|
*rcv = Ethereum
|
||||||
|
case "ibc":
|
||||||
|
*rcv = Ibc
|
||||||
|
case "webauthn":
|
||||||
|
*rcv = Webauthn
|
||||||
|
case "dwn":
|
||||||
|
*rcv = Dwn
|
||||||
|
case "service":
|
||||||
|
*rcv = Service
|
||||||
|
default:
|
||||||
|
return fmt.Errorf(`illegal: "%s" is not a valid DIDMethod`, str)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
9
pkg/format/init.pkl.go
Normal file
9
pkg/format/init.pkl.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// Code generated from Pkl module `format`. DO NOT EDIT.
|
||||||
|
package format
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
pkl.RegisterMapping("format", Format{})
|
||||||
|
pkl.RegisterMapping("format#Macaroon", Macaroon{})
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Account struct {
|
type Account struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Asset struct {
|
type Asset struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Chain struct {
|
type Chain struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Credential struct {
|
type Credential struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Grant struct {
|
type Grant struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type JWK struct {
|
type JWK struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Keyshare struct {
|
type Keyshare struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -7,14 +7,14 @@ import (
|
|||||||
"github.com/apple/pkl-go/pkl"
|
"github.com/apple/pkl-go/pkl"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Models struct {
|
type Orm struct {
|
||||||
DbName string `pkl:"db_name"`
|
DbName string `pkl:"db_name"`
|
||||||
|
|
||||||
DbVersion int `pkl:"db_version"`
|
DbVersion int `pkl:"db_version"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LoadFromPath loads the pkl module at the given path and evaluates it into a Models
|
// LoadFromPath loads the pkl module at the given path and evaluates it into a Orm
|
||||||
func LoadFromPath(ctx context.Context, path string) (ret *Models, err error) {
|
func LoadFromPath(ctx context.Context, path string) (ret *Orm, err error) {
|
||||||
evaluator, err := pkl.NewEvaluator(ctx, pkl.PreconfiguredOptions)
|
evaluator, err := pkl.NewEvaluator(ctx, pkl.PreconfiguredOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -29,9 +29,9 @@ func LoadFromPath(ctx context.Context, path string) (ret *Models, err error) {
|
|||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load loads the pkl module at the given source and evaluates it with the given evaluator into a Models
|
// Load loads the pkl module at the given source and evaluates it with the given evaluator into a Orm
|
||||||
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Models, error) {
|
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Orm, error) {
|
||||||
var ret Models
|
var ret Orm
|
||||||
if err := evaluator.EvaluateModule(ctx, source, &ret); err != nil {
|
if err := evaluator.EvaluateModule(ctx, source, &ret); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
type Profile struct {
|
type Profile struct {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package assettype
|
package assettype
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package didmethod
|
package didmethod
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package orm
|
package orm
|
||||||
|
|
||||||
import "github.com/apple/pkl-go/pkl"
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
pkl.RegisterMapping("models", Models{})
|
pkl.RegisterMapping("orm", Orm{})
|
||||||
pkl.RegisterMapping("models#Account", Account{})
|
pkl.RegisterMapping("orm#Account", Account{})
|
||||||
pkl.RegisterMapping("models#Asset", Asset{})
|
pkl.RegisterMapping("orm#Asset", Asset{})
|
||||||
pkl.RegisterMapping("models#Chain", Chain{})
|
pkl.RegisterMapping("orm#Chain", Chain{})
|
||||||
pkl.RegisterMapping("models#Credential", Credential{})
|
pkl.RegisterMapping("orm#Credential", Credential{})
|
||||||
pkl.RegisterMapping("models#JWK", JWK{})
|
pkl.RegisterMapping("orm#JWK", JWK{})
|
||||||
pkl.RegisterMapping("models#Grant", Grant{})
|
pkl.RegisterMapping("orm#Grant", Grant{})
|
||||||
pkl.RegisterMapping("models#Keyshare", Keyshare{})
|
pkl.RegisterMapping("orm#Keyshare", Keyshare{})
|
||||||
pkl.RegisterMapping("models#PublicKey", PublicKey{})
|
pkl.RegisterMapping("orm#PublicKey", PublicKey{})
|
||||||
pkl.RegisterMapping("models#Profile", Profile{})
|
pkl.RegisterMapping("orm#Profile", Profile{})
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package keyalgorithm
|
package keyalgorithm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package keycurve
|
package keycurve
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package keyencoding
|
package keyencoding
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package keyrole
|
package keyrole
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package keysharerole
|
package keysharerole
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package keytype
|
package keytype
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package permissiongrant
|
package permissiongrant
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Code generated from Pkl module `models`. DO NOT EDIT.
|
// Code generated from Pkl module `orm`. DO NOT EDIT.
|
||||||
package permissionscope
|
package permissionscope
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
6
pkg/orm/transactions/Msg.pkl.go
Normal file
6
pkg/orm/transactions/Msg.pkl.go
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
type Msg interface {
|
||||||
|
GetTypeUrl() string
|
||||||
|
}
|
44
pkg/orm/transactions/MsgDidAllocateVault.pkl.go
Normal file
44
pkg/orm/transactions/MsgDidAllocateVault.pkl.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidAllocateVault interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetAuthority() string
|
||||||
|
|
||||||
|
GetSubject() string
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidAllocateVault = (*MsgDidAllocateVaultImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidAllocateVaultImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Authority string `pkl:"authority"`
|
||||||
|
|
||||||
|
Subject string `pkl:"subject"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidAllocateVaultImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAllocateVaultImpl) GetAuthority() string {
|
||||||
|
return rcv.Authority
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAllocateVaultImpl) GetSubject() string {
|
||||||
|
return rcv.Subject
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAllocateVaultImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
60
pkg/orm/transactions/MsgDidAuthorize.pkl.go
Normal file
60
pkg/orm/transactions/MsgDidAuthorize.pkl.go
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidAuthorize interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetAuthority() string
|
||||||
|
|
||||||
|
GetController() string
|
||||||
|
|
||||||
|
GetAddress() string
|
||||||
|
|
||||||
|
GetOrigin() string
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidAuthorize = (*MsgDidAuthorizeImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidAuthorizeImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Authority string `pkl:"authority"`
|
||||||
|
|
||||||
|
Controller string `pkl:"controller"`
|
||||||
|
|
||||||
|
Address string `pkl:"address"`
|
||||||
|
|
||||||
|
Origin string `pkl:"origin"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidAuthorizeImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAuthorizeImpl) GetAuthority() string {
|
||||||
|
return rcv.Authority
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAuthorizeImpl) GetController() string {
|
||||||
|
return rcv.Controller
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAuthorizeImpl) GetAddress() string {
|
||||||
|
return rcv.Address
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAuthorizeImpl) GetOrigin() string {
|
||||||
|
return rcv.Origin
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidAuthorizeImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
52
pkg/orm/transactions/MsgDidProveWitness.pkl.go
Normal file
52
pkg/orm/transactions/MsgDidProveWitness.pkl.go
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidProveWitness interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetAuthority() string
|
||||||
|
|
||||||
|
GetProperty() string
|
||||||
|
|
||||||
|
GetWitness() []int
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidProveWitness = (*MsgDidProveWitnessImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidProveWitnessImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Authority string `pkl:"authority"`
|
||||||
|
|
||||||
|
Property string `pkl:"property"`
|
||||||
|
|
||||||
|
Witness []int `pkl:"witness"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidProveWitnessImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidProveWitnessImpl) GetAuthority() string {
|
||||||
|
return rcv.Authority
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidProveWitnessImpl) GetProperty() string {
|
||||||
|
return rcv.Property
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidProveWitnessImpl) GetWitness() []int {
|
||||||
|
return rcv.Witness
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidProveWitnessImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
60
pkg/orm/transactions/MsgDidRegisterController.pkl.go
Normal file
60
pkg/orm/transactions/MsgDidRegisterController.pkl.go
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidRegisterController interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetAuthority() string
|
||||||
|
|
||||||
|
GetCid() string
|
||||||
|
|
||||||
|
GetOrigin() string
|
||||||
|
|
||||||
|
GetAuthentication() []*pkl.Object
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidRegisterController = (*MsgDidRegisterControllerImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidRegisterControllerImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Authority string `pkl:"authority"`
|
||||||
|
|
||||||
|
Cid string `pkl:"cid"`
|
||||||
|
|
||||||
|
Origin string `pkl:"origin"`
|
||||||
|
|
||||||
|
Authentication []*pkl.Object `pkl:"authentication"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidRegisterControllerImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterControllerImpl) GetAuthority() string {
|
||||||
|
return rcv.Authority
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterControllerImpl) GetCid() string {
|
||||||
|
return rcv.Cid
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterControllerImpl) GetOrigin() string {
|
||||||
|
return rcv.Origin
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterControllerImpl) GetAuthentication() []*pkl.Object {
|
||||||
|
return rcv.Authentication
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterControllerImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
76
pkg/orm/transactions/MsgDidRegisterService.pkl.go
Normal file
76
pkg/orm/transactions/MsgDidRegisterService.pkl.go
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidRegisterService interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetController() string
|
||||||
|
|
||||||
|
GetOriginUri() string
|
||||||
|
|
||||||
|
GetScopes() *pkl.Object
|
||||||
|
|
||||||
|
GetDescription() string
|
||||||
|
|
||||||
|
GetServiceEndpoints() map[string]string
|
||||||
|
|
||||||
|
GetMetadata() *pkl.Object
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidRegisterService = (*MsgDidRegisterServiceImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidRegisterServiceImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Controller string `pkl:"controller"`
|
||||||
|
|
||||||
|
OriginUri string `pkl:"originUri"`
|
||||||
|
|
||||||
|
Scopes *pkl.Object `pkl:"scopes"`
|
||||||
|
|
||||||
|
Description string `pkl:"description"`
|
||||||
|
|
||||||
|
ServiceEndpoints map[string]string `pkl:"serviceEndpoints"`
|
||||||
|
|
||||||
|
Metadata *pkl.Object `pkl:"metadata"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetController() string {
|
||||||
|
return rcv.Controller
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetOriginUri() string {
|
||||||
|
return rcv.OriginUri
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetScopes() *pkl.Object {
|
||||||
|
return rcv.Scopes
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetDescription() string {
|
||||||
|
return rcv.Description
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetServiceEndpoints() map[string]string {
|
||||||
|
return rcv.ServiceEndpoints
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetMetadata() *pkl.Object {
|
||||||
|
return rcv.Metadata
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidRegisterServiceImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
36
pkg/orm/transactions/MsgDidSyncVault.pkl.go
Normal file
36
pkg/orm/transactions/MsgDidSyncVault.pkl.go
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidSyncVault interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetController() string
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidSyncVault = (*MsgDidSyncVaultImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidSyncVaultImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Controller string `pkl:"controller"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidSyncVaultImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidSyncVaultImpl) GetController() string {
|
||||||
|
return rcv.Controller
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidSyncVaultImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
44
pkg/orm/transactions/MsgDidUpdateParams.pkl.go
Normal file
44
pkg/orm/transactions/MsgDidUpdateParams.pkl.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgDidUpdateParams interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetAuthority() string
|
||||||
|
|
||||||
|
GetParams() *pkl.Object
|
||||||
|
|
||||||
|
GetToken() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgDidUpdateParams = (*MsgDidUpdateParamsImpl)(nil)
|
||||||
|
|
||||||
|
type MsgDidUpdateParamsImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Authority string `pkl:"authority"`
|
||||||
|
|
||||||
|
Params *pkl.Object `pkl:"params"`
|
||||||
|
|
||||||
|
Token *pkl.Object `pkl:"token"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgDidUpdateParamsImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidUpdateParamsImpl) GetAuthority() string {
|
||||||
|
return rcv.Authority
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidUpdateParamsImpl) GetParams() *pkl.Object {
|
||||||
|
return rcv.Params
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgDidUpdateParamsImpl) GetToken() *pkl.Object {
|
||||||
|
return rcv.Token
|
||||||
|
}
|
44
pkg/orm/transactions/MsgGovDeposit.pkl.go
Normal file
44
pkg/orm/transactions/MsgGovDeposit.pkl.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgGovDeposit interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetProposalId() int
|
||||||
|
|
||||||
|
GetDepositor() string
|
||||||
|
|
||||||
|
GetAmount() []*pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgGovDeposit = (*MsgGovDepositImpl)(nil)
|
||||||
|
|
||||||
|
type MsgGovDepositImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
ProposalId int `pkl:"proposalId"`
|
||||||
|
|
||||||
|
Depositor string `pkl:"depositor"`
|
||||||
|
|
||||||
|
Amount []*pkl.Object `pkl:"amount"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgGovDepositImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovDepositImpl) GetProposalId() int {
|
||||||
|
return rcv.ProposalId
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovDepositImpl) GetDepositor() string {
|
||||||
|
return rcv.Depositor
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovDepositImpl) GetAmount() []*pkl.Object {
|
||||||
|
return rcv.Amount
|
||||||
|
}
|
45
pkg/orm/transactions/MsgGovSubmitProposal.pkl.go
Normal file
45
pkg/orm/transactions/MsgGovSubmitProposal.pkl.go
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgGovSubmitProposal interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetContent() *Proposal
|
||||||
|
|
||||||
|
GetInitialDeposit() []*pkl.Object
|
||||||
|
|
||||||
|
GetProposer() string
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgGovSubmitProposal = (*MsgGovSubmitProposalImpl)(nil)
|
||||||
|
|
||||||
|
// Gov module messages
|
||||||
|
type MsgGovSubmitProposalImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Content *Proposal `pkl:"content"`
|
||||||
|
|
||||||
|
InitialDeposit []*pkl.Object `pkl:"initialDeposit"`
|
||||||
|
|
||||||
|
Proposer string `pkl:"proposer"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgGovSubmitProposalImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovSubmitProposalImpl) GetContent() *Proposal {
|
||||||
|
return rcv.Content
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovSubmitProposalImpl) GetInitialDeposit() []*pkl.Object {
|
||||||
|
return rcv.InitialDeposit
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovSubmitProposalImpl) GetProposer() string {
|
||||||
|
return rcv.Proposer
|
||||||
|
}
|
42
pkg/orm/transactions/MsgGovVote.pkl.go
Normal file
42
pkg/orm/transactions/MsgGovVote.pkl.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
type MsgGovVote interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetProposalId() int
|
||||||
|
|
||||||
|
GetVoter() string
|
||||||
|
|
||||||
|
GetOption() int
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgGovVote = (*MsgGovVoteImpl)(nil)
|
||||||
|
|
||||||
|
type MsgGovVoteImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
ProposalId int `pkl:"proposalId"`
|
||||||
|
|
||||||
|
Voter string `pkl:"voter"`
|
||||||
|
|
||||||
|
Option int `pkl:"option"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgGovVoteImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovVoteImpl) GetProposalId() int {
|
||||||
|
return rcv.ProposalId
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovVoteImpl) GetVoter() string {
|
||||||
|
return rcv.Voter
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGovVoteImpl) GetOption() int {
|
||||||
|
return rcv.Option
|
||||||
|
}
|
45
pkg/orm/transactions/MsgGroupCreateGroup.pkl.go
Normal file
45
pkg/orm/transactions/MsgGroupCreateGroup.pkl.go
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgGroupCreateGroup interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetAdmin() string
|
||||||
|
|
||||||
|
GetMembers() []*pkl.Object
|
||||||
|
|
||||||
|
GetMetadata() string
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgGroupCreateGroup = (*MsgGroupCreateGroupImpl)(nil)
|
||||||
|
|
||||||
|
// Group module messages
|
||||||
|
type MsgGroupCreateGroupImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Admin string `pkl:"admin"`
|
||||||
|
|
||||||
|
Members []*pkl.Object `pkl:"members"`
|
||||||
|
|
||||||
|
Metadata string `pkl:"metadata"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgGroupCreateGroupImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupCreateGroupImpl) GetAdmin() string {
|
||||||
|
return rcv.Admin
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupCreateGroupImpl) GetMembers() []*pkl.Object {
|
||||||
|
return rcv.Members
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupCreateGroupImpl) GetMetadata() string {
|
||||||
|
return rcv.Metadata
|
||||||
|
}
|
60
pkg/orm/transactions/MsgGroupSubmitProposal.pkl.go
Normal file
60
pkg/orm/transactions/MsgGroupSubmitProposal.pkl.go
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgGroupSubmitProposal interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetGroupPolicyAddress() string
|
||||||
|
|
||||||
|
GetProposers() []string
|
||||||
|
|
||||||
|
GetMetadata() string
|
||||||
|
|
||||||
|
GetMessages() []*pkl.Object
|
||||||
|
|
||||||
|
GetExec() int
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgGroupSubmitProposal = (*MsgGroupSubmitProposalImpl)(nil)
|
||||||
|
|
||||||
|
type MsgGroupSubmitProposalImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
GroupPolicyAddress string `pkl:"groupPolicyAddress"`
|
||||||
|
|
||||||
|
Proposers []string `pkl:"proposers"`
|
||||||
|
|
||||||
|
Metadata string `pkl:"metadata"`
|
||||||
|
|
||||||
|
Messages []*pkl.Object `pkl:"messages"`
|
||||||
|
|
||||||
|
Exec int `pkl:"exec"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgGroupSubmitProposalImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupSubmitProposalImpl) GetGroupPolicyAddress() string {
|
||||||
|
return rcv.GroupPolicyAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupSubmitProposalImpl) GetProposers() []string {
|
||||||
|
return rcv.Proposers
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupSubmitProposalImpl) GetMetadata() string {
|
||||||
|
return rcv.Metadata
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupSubmitProposalImpl) GetMessages() []*pkl.Object {
|
||||||
|
return rcv.Messages
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupSubmitProposalImpl) GetExec() int {
|
||||||
|
return rcv.Exec
|
||||||
|
}
|
58
pkg/orm/transactions/MsgGroupVote.pkl.go
Normal file
58
pkg/orm/transactions/MsgGroupVote.pkl.go
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
type MsgGroupVote interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetProposalId() int
|
||||||
|
|
||||||
|
GetVoter() string
|
||||||
|
|
||||||
|
GetOption() int
|
||||||
|
|
||||||
|
GetMetadata() string
|
||||||
|
|
||||||
|
GetExec() int
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgGroupVote = (*MsgGroupVoteImpl)(nil)
|
||||||
|
|
||||||
|
type MsgGroupVoteImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
ProposalId int `pkl:"proposalId"`
|
||||||
|
|
||||||
|
Voter string `pkl:"voter"`
|
||||||
|
|
||||||
|
Option int `pkl:"option"`
|
||||||
|
|
||||||
|
Metadata string `pkl:"metadata"`
|
||||||
|
|
||||||
|
Exec int `pkl:"exec"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgGroupVoteImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupVoteImpl) GetProposalId() int {
|
||||||
|
return rcv.ProposalId
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupVoteImpl) GetVoter() string {
|
||||||
|
return rcv.Voter
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupVoteImpl) GetOption() int {
|
||||||
|
return rcv.Option
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupVoteImpl) GetMetadata() string {
|
||||||
|
return rcv.Metadata
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgGroupVoteImpl) GetExec() int {
|
||||||
|
return rcv.Exec
|
||||||
|
}
|
52
pkg/orm/transactions/MsgStakingBeginRedelegate.pkl.go
Normal file
52
pkg/orm/transactions/MsgStakingBeginRedelegate.pkl.go
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgStakingBeginRedelegate interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetDelegatorAddress() string
|
||||||
|
|
||||||
|
GetValidatorSrcAddress() string
|
||||||
|
|
||||||
|
GetValidatorDstAddress() string
|
||||||
|
|
||||||
|
GetAmount() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgStakingBeginRedelegate = (*MsgStakingBeginRedelegateImpl)(nil)
|
||||||
|
|
||||||
|
type MsgStakingBeginRedelegateImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
DelegatorAddress string `pkl:"delegatorAddress"`
|
||||||
|
|
||||||
|
ValidatorSrcAddress string `pkl:"validatorSrcAddress"`
|
||||||
|
|
||||||
|
ValidatorDstAddress string `pkl:"validatorDstAddress"`
|
||||||
|
|
||||||
|
Amount *pkl.Object `pkl:"amount"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgStakingBeginRedelegateImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingBeginRedelegateImpl) GetDelegatorAddress() string {
|
||||||
|
return rcv.DelegatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingBeginRedelegateImpl) GetValidatorSrcAddress() string {
|
||||||
|
return rcv.ValidatorSrcAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingBeginRedelegateImpl) GetValidatorDstAddress() string {
|
||||||
|
return rcv.ValidatorDstAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingBeginRedelegateImpl) GetAmount() *pkl.Object {
|
||||||
|
return rcv.Amount
|
||||||
|
}
|
77
pkg/orm/transactions/MsgStakingCreateValidator.pkl.go
Normal file
77
pkg/orm/transactions/MsgStakingCreateValidator.pkl.go
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgStakingCreateValidator interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetDescription() *pkl.Object
|
||||||
|
|
||||||
|
GetCommission() *pkl.Object
|
||||||
|
|
||||||
|
GetMinSelfDelegation() string
|
||||||
|
|
||||||
|
GetDelegatorAddress() string
|
||||||
|
|
||||||
|
GetValidatorAddress() string
|
||||||
|
|
||||||
|
GetPubkey() *pkl.Object
|
||||||
|
|
||||||
|
GetValue() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgStakingCreateValidator = (*MsgStakingCreateValidatorImpl)(nil)
|
||||||
|
|
||||||
|
// Staking module messages
|
||||||
|
type MsgStakingCreateValidatorImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
Description *pkl.Object `pkl:"description"`
|
||||||
|
|
||||||
|
Commission *pkl.Object `pkl:"commission"`
|
||||||
|
|
||||||
|
MinSelfDelegation string `pkl:"minSelfDelegation"`
|
||||||
|
|
||||||
|
DelegatorAddress string `pkl:"delegatorAddress"`
|
||||||
|
|
||||||
|
ValidatorAddress string `pkl:"validatorAddress"`
|
||||||
|
|
||||||
|
Pubkey *pkl.Object `pkl:"pubkey"`
|
||||||
|
|
||||||
|
Value *pkl.Object `pkl:"value"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetDescription() *pkl.Object {
|
||||||
|
return rcv.Description
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetCommission() *pkl.Object {
|
||||||
|
return rcv.Commission
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetMinSelfDelegation() string {
|
||||||
|
return rcv.MinSelfDelegation
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetDelegatorAddress() string {
|
||||||
|
return rcv.DelegatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetValidatorAddress() string {
|
||||||
|
return rcv.ValidatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetPubkey() *pkl.Object {
|
||||||
|
return rcv.Pubkey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingCreateValidatorImpl) GetValue() *pkl.Object {
|
||||||
|
return rcv.Value
|
||||||
|
}
|
44
pkg/orm/transactions/MsgStakingDelegate.pkl.go
Normal file
44
pkg/orm/transactions/MsgStakingDelegate.pkl.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgStakingDelegate interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetDelegatorAddress() string
|
||||||
|
|
||||||
|
GetValidatorAddress() string
|
||||||
|
|
||||||
|
GetAmount() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgStakingDelegate = (*MsgStakingDelegateImpl)(nil)
|
||||||
|
|
||||||
|
type MsgStakingDelegateImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
DelegatorAddress string `pkl:"delegatorAddress"`
|
||||||
|
|
||||||
|
ValidatorAddress string `pkl:"validatorAddress"`
|
||||||
|
|
||||||
|
Amount *pkl.Object `pkl:"amount"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgStakingDelegateImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingDelegateImpl) GetDelegatorAddress() string {
|
||||||
|
return rcv.DelegatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingDelegateImpl) GetValidatorAddress() string {
|
||||||
|
return rcv.ValidatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingDelegateImpl) GetAmount() *pkl.Object {
|
||||||
|
return rcv.Amount
|
||||||
|
}
|
44
pkg/orm/transactions/MsgStakingUndelegate.pkl.go
Normal file
44
pkg/orm/transactions/MsgStakingUndelegate.pkl.go
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
type MsgStakingUndelegate interface {
|
||||||
|
Msg
|
||||||
|
|
||||||
|
GetDelegatorAddress() string
|
||||||
|
|
||||||
|
GetValidatorAddress() string
|
||||||
|
|
||||||
|
GetAmount() *pkl.Object
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ MsgStakingUndelegate = (*MsgStakingUndelegateImpl)(nil)
|
||||||
|
|
||||||
|
type MsgStakingUndelegateImpl struct {
|
||||||
|
// The type URL for the message
|
||||||
|
TypeUrl string `pkl:"typeUrl"`
|
||||||
|
|
||||||
|
DelegatorAddress string `pkl:"delegatorAddress"`
|
||||||
|
|
||||||
|
ValidatorAddress string `pkl:"validatorAddress"`
|
||||||
|
|
||||||
|
Amount *pkl.Object `pkl:"amount"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// The type URL for the message
|
||||||
|
func (rcv *MsgStakingUndelegateImpl) GetTypeUrl() string {
|
||||||
|
return rcv.TypeUrl
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingUndelegateImpl) GetDelegatorAddress() string {
|
||||||
|
return rcv.DelegatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingUndelegateImpl) GetValidatorAddress() string {
|
||||||
|
return rcv.ValidatorAddress
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rcv *MsgStakingUndelegateImpl) GetAmount() *pkl.Object {
|
||||||
|
return rcv.Amount
|
||||||
|
}
|
11
pkg/orm/transactions/Proposal.pkl.go
Normal file
11
pkg/orm/transactions/Proposal.pkl.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
// Base class for all proposals
|
||||||
|
type Proposal struct {
|
||||||
|
// The title of the proposal
|
||||||
|
Title string `pkl:"title"`
|
||||||
|
|
||||||
|
// The description of the proposal
|
||||||
|
Description string `pkl:"description"`
|
||||||
|
}
|
36
pkg/orm/transactions/Transactions.pkl.go
Normal file
36
pkg/orm/transactions/Transactions.pkl.go
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"github.com/apple/pkl-go/pkl"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Transactions struct {
|
||||||
|
}
|
||||||
|
|
||||||
|
// LoadFromPath loads the pkl module at the given path and evaluates it into a Transactions
|
||||||
|
func LoadFromPath(ctx context.Context, path string) (ret *Transactions, err error) {
|
||||||
|
evaluator, err := pkl.NewEvaluator(ctx, pkl.PreconfiguredOptions)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
defer func() {
|
||||||
|
cerr := evaluator.Close()
|
||||||
|
if err == nil {
|
||||||
|
err = cerr
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
ret, err = Load(ctx, evaluator, pkl.FileSource(path))
|
||||||
|
return ret, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load loads the pkl module at the given source and evaluates it with the given evaluator into a Transactions
|
||||||
|
func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Transactions, error) {
|
||||||
|
var ret Transactions
|
||||||
|
if err := evaluator.EvaluateModule(ctx, source, &ret); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &ret, nil
|
||||||
|
}
|
17
pkg/orm/transactions/TxBody.pkl.go
Normal file
17
pkg/orm/transactions/TxBody.pkl.go
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
// Represents a transaction body
|
||||||
|
type TxBody struct {
|
||||||
|
Messages []Msg `pkl:"messages"`
|
||||||
|
|
||||||
|
Memo *string `pkl:"memo"`
|
||||||
|
|
||||||
|
TimeoutHeight *int `pkl:"timeoutHeight"`
|
||||||
|
|
||||||
|
ExtensionOptions *[]*pkl.Object `pkl:"extensionOptions"`
|
||||||
|
|
||||||
|
NonCriticalExtensionOptions *[]*pkl.Object `pkl:"nonCriticalExtensionOptions"`
|
||||||
|
}
|
27
pkg/orm/transactions/init.pkl.go
Normal file
27
pkg/orm/transactions/init.pkl.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
// Code generated from Pkl module `transactions`. DO NOT EDIT.
|
||||||
|
package transactions
|
||||||
|
|
||||||
|
import "github.com/apple/pkl-go/pkl"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
pkl.RegisterMapping("transactions", Transactions{})
|
||||||
|
pkl.RegisterMapping("transactions#Proposal", Proposal{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgGovSubmitProposal", MsgGovSubmitProposalImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgGovVote", MsgGovVoteImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgGovDeposit", MsgGovDepositImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgGroupCreateGroup", MsgGroupCreateGroupImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgGroupSubmitProposal", MsgGroupSubmitProposalImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgGroupVote", MsgGroupVoteImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgStakingCreateValidator", MsgStakingCreateValidatorImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgStakingDelegate", MsgStakingDelegateImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgStakingUndelegate", MsgStakingUndelegateImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgStakingBeginRedelegate", MsgStakingBeginRedelegateImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidUpdateParams", MsgDidUpdateParamsImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidAllocateVault", MsgDidAllocateVaultImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidProveWitness", MsgDidProveWitnessImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidSyncVault", MsgDidSyncVaultImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidRegisterController", MsgDidRegisterControllerImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidAuthorize", MsgDidAuthorizeImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#MsgDidRegisterService", MsgDidRegisterServiceImpl{})
|
||||||
|
pkl.RegisterMapping("transactions#TxBody", TxBody{})
|
||||||
|
}
|
@ -72,9 +72,6 @@ class Schema {
|
|||||||
@JsonField
|
@JsonField
|
||||||
keyshare: String
|
keyshare: String
|
||||||
|
|
||||||
@JsonField
|
|
||||||
publicKey: String
|
|
||||||
|
|
||||||
@JsonField
|
@JsonField
|
||||||
profile: String
|
profile: String
|
||||||
}
|
}
|
||||||
|
37
pkl/fmt.pkl
Normal file
37
pkl/fmt.pkl
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
@go.Package { name = "github.com/onsonr/sonr/pkg/format" }
|
||||||
|
|
||||||
|
module format
|
||||||
|
|
||||||
|
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
||||||
|
|
||||||
|
class JsonField extends go.Field {
|
||||||
|
structTags {
|
||||||
|
["json"] = "%{name},omitempty"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
typealias DID = String
|
||||||
|
|
||||||
|
typealias DIDMethod = "ipfs"|"sonr"|"bitcoin"|"ethereum"|"ibc"|"webauthn"|"dwn"|"service"
|
||||||
|
|
||||||
|
class Macaroon {
|
||||||
|
@JsonField
|
||||||
|
location: String
|
||||||
|
|
||||||
|
@JsonField
|
||||||
|
originator: String
|
||||||
|
|
||||||
|
@JsonField
|
||||||
|
identifier: String
|
||||||
|
|
||||||
|
@JsonField
|
||||||
|
first_party: List<String>
|
||||||
|
|
||||||
|
@JsonField
|
||||||
|
third_party: List<String>
|
||||||
|
|
||||||
|
@JsonField
|
||||||
|
expiration: Int
|
||||||
|
}
|
||||||
|
|
||||||
|
typealias MacaroonToken = String
|
@ -1,6 +1,6 @@
|
|||||||
@go.Package { name = "github.com/onsonr/sonr/pkg/orm" }
|
@go.Package { name = "github.com/onsonr/sonr/pkg/orm" }
|
||||||
|
|
||||||
module models
|
module orm
|
||||||
|
|
||||||
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
import "package://pkg.pkl-lang.org/pkl-go/pkl.golang@0.5.0#/go.pkl"
|
||||||
|
|
||||||
@ -273,4 +273,3 @@ class Profile {
|
|||||||
|
|
||||||
db_name: String = "vault"
|
db_name: String = "vault"
|
||||||
db_version: Int = 1
|
db_version: Int = 1
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@go.Package { name = "github.com/onsonr/sonr/internal/orm/transactions" }
|
@go.Package { name = "github.com/onsonr/sonr/pkg/orm/transactions" }
|
||||||
|
|
||||||
module transactions
|
module transactions
|
||||||
|
|
||||||
|
@ -32,6 +32,5 @@ message Schema {
|
|||||||
string jwk = 6;
|
string jwk = 6;
|
||||||
string grant = 7;
|
string grant = 7;
|
||||||
string keyshare = 8;
|
string keyshare = 8;
|
||||||
string publicKey = 9;
|
string profile = 9;
|
||||||
string profile = 10;
|
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,6 @@ func (k Keeper) CurrentSchema(ctx sdk.Context) (*dwn.Schema, error) {
|
|||||||
Jwk: schema.Jwk,
|
Jwk: schema.Jwk,
|
||||||
Grant: schema.Grant,
|
Grant: schema.Grant,
|
||||||
Keyshare: schema.Keyshare,
|
Keyshare: schema.Keyshare,
|
||||||
PublicKey: schema.PublicKey,
|
|
||||||
Profile: schema.Profile,
|
Profile: schema.Profile,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
@ -49,9 +49,6 @@ func (s *Schema) Equal(that *Schema) bool {
|
|||||||
if s.Keyshare != that.Keyshare {
|
if s.Keyshare != that.Keyshare {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if s.PublicKey != that.PublicKey {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if s.Profile != that.Profile {
|
if s.Profile != that.Profile {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -139,8 +139,7 @@ type Schema struct {
|
|||||||
Jwk string `protobuf:"bytes,6,opt,name=jwk,proto3" json:"jwk,omitempty"`
|
Jwk string `protobuf:"bytes,6,opt,name=jwk,proto3" json:"jwk,omitempty"`
|
||||||
Grant string `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"`
|
Grant string `protobuf:"bytes,7,opt,name=grant,proto3" json:"grant,omitempty"`
|
||||||
Keyshare string `protobuf:"bytes,8,opt,name=keyshare,proto3" json:"keyshare,omitempty"`
|
Keyshare string `protobuf:"bytes,8,opt,name=keyshare,proto3" json:"keyshare,omitempty"`
|
||||||
PublicKey string `protobuf:"bytes,9,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
|
Profile string `protobuf:"bytes,9,opt,name=profile,proto3" json:"profile,omitempty"`
|
||||||
Profile string `protobuf:"bytes,10,opt,name=profile,proto3" json:"profile,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Schema) Reset() { *m = Schema{} }
|
func (m *Schema) Reset() { *m = Schema{} }
|
||||||
@ -232,13 +231,6 @@ func (m *Schema) GetKeyshare() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Schema) GetPublicKey() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.PublicKey
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Schema) GetProfile() string {
|
func (m *Schema) GetProfile() string {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.Profile
|
return m.Profile
|
||||||
@ -255,35 +247,34 @@ func init() {
|
|||||||
func init() { proto.RegisterFile("vault/v1/genesis.proto", fileDescriptor_4c971b352fb6cc17) }
|
func init() { proto.RegisterFile("vault/v1/genesis.proto", fileDescriptor_4c971b352fb6cc17) }
|
||||||
|
|
||||||
var fileDescriptor_4c971b352fb6cc17 = []byte{
|
var fileDescriptor_4c971b352fb6cc17 = []byte{
|
||||||
// 440 bytes of a gzipped FileDescriptorProto
|
// 423 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xb1, 0x6f, 0xd3, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0xb1, 0x6e, 0xd4, 0x40,
|
||||||
0x14, 0xc6, 0xed, 0xb6, 0x71, 0x93, 0xd7, 0x0e, 0xe5, 0x54, 0xa1, 0x23, 0x42, 0x0e, 0xaa, 0x18,
|
0x10, 0x86, 0xbd, 0x24, 0xe7, 0xdc, 0x6d, 0x52, 0x84, 0x55, 0x84, 0x96, 0x2b, 0x7c, 0x28, 0xa2,
|
||||||
0x2a, 0x06, 0x5b, 0x85, 0x0d, 0xa1, 0x4a, 0x54, 0x42, 0x0c, 0x2c, 0xc8, 0xdd, 0x58, 0xa2, 0xcb,
|
0x88, 0x28, 0x6c, 0x05, 0x3a, 0x84, 0x22, 0x11, 0x09, 0xd1, 0x22, 0xa7, 0xa3, 0x39, 0xcd, 0x6d,
|
||||||
0xf5, 0xd5, 0x39, 0xea, 0xdc, 0x59, 0x77, 0x17, 0x43, 0x76, 0x26, 0x26, 0x46, 0xc6, 0xfe, 0x01,
|
0x26, 0xbe, 0x25, 0xbe, 0x5d, 0x6b, 0x77, 0xcf, 0x90, 0x57, 0xa0, 0xa2, 0xa4, 0xcc, 0x03, 0x50,
|
||||||
0x0c, 0xfc, 0x19, 0x1d, 0x3b, 0x32, 0x21, 0x94, 0x0c, 0xf0, 0x67, 0x20, 0xbf, 0x73, 0x20, 0xea,
|
0xf0, 0x18, 0x29, 0x53, 0x52, 0x21, 0x74, 0x27, 0x01, 0x8f, 0x81, 0x3c, 0xeb, 0x43, 0x51, 0x9a,
|
||||||
0x72, 0x7a, 0xdf, 0xef, 0xfb, 0xfc, 0xf4, 0xdd, 0xc9, 0x70, 0xbf, 0x11, 0xf3, 0xca, 0xe7, 0xcd,
|
0xd5, 0xfc, 0xdf, 0xff, 0x7b, 0xf4, 0x6b, 0x64, 0xfe, 0xa8, 0x85, 0x65, 0x1d, 0x8a, 0xf6, 0xb8,
|
||||||
0x49, 0x5e, 0xa2, 0x46, 0xa7, 0x5c, 0x56, 0x5b, 0xe3, 0x0d, 0xeb, 0x13, 0xcf, 0x9a, 0x93, 0xe1,
|
0xa8, 0xd0, 0xa0, 0xd7, 0x3e, 0x6f, 0x9c, 0x0d, 0x56, 0x0c, 0x89, 0xe7, 0xed, 0xf1, 0xf8, 0x21,
|
||||||
0x3d, 0x31, 0x53, 0xda, 0xe4, 0x74, 0x06, 0x73, 0x78, 0x58, 0x9a, 0xd2, 0xd0, 0x98, 0xb7, 0x53,
|
0x2c, 0xb4, 0xb1, 0x05, 0xbd, 0xd1, 0x1c, 0x1f, 0x54, 0xb6, 0xb2, 0x34, 0x16, 0xdd, 0x14, 0xe9,
|
||||||
0xa0, 0x47, 0xa7, 0xb0, 0xff, 0x3a, 0xec, 0x38, 0xf7, 0xc2, 0x23, 0xcb, 0x20, 0xa9, 0x85, 0x15,
|
0xe1, 0x09, 0xdf, 0x7b, 0x1b, 0x77, 0x9c, 0x05, 0x08, 0x28, 0x72, 0x9e, 0x36, 0xe0, 0x60, 0xe1,
|
||||||
0x33, 0xc7, 0xe3, 0x47, 0xf1, 0xf1, 0xde, 0xd3, 0x83, 0x6c, 0xbd, 0x33, 0x7b, 0x4b, 0xfc, 0x6c,
|
0x25, 0x7b, 0xc2, 0x8e, 0x76, 0x9f, 0xef, 0xe7, 0x9b, 0x9d, 0xf9, 0x3b, 0xe2, 0xa7, 0xdb, 0x37,
|
||||||
0xe7, 0xe6, 0xe7, 0x28, 0x2a, 0xba, 0xd4, 0xd1, 0xb7, 0x18, 0x92, 0x60, 0xb0, 0x11, 0xec, 0xa9,
|
0x3f, 0x27, 0x49, 0xd9, 0xa7, 0x0e, 0xbf, 0x31, 0x9e, 0x46, 0x43, 0x4c, 0xf8, 0xae, 0x6e, 0x2e,
|
||||||
0xfa, 0xd2, 0x8d, 0x85, 0xf4, 0xaa, 0x41, 0xfa, 0xbe, 0x5f, 0x40, 0x8b, 0x5e, 0x12, 0x61, 0x2f,
|
0xfc, 0x14, 0x54, 0xd0, 0x2d, 0xd2, 0xf7, 0xc3, 0x92, 0x77, 0xe8, 0x35, 0x11, 0xf1, 0x8a, 0x8f,
|
||||||
0x60, 0x58, 0x19, 0x29, 0xaa, 0xb1, 0xc5, 0x52, 0x39, 0x6f, 0x85, 0x57, 0x46, 0x8f, 0x51, 0x8b,
|
0x6b, 0xab, 0xa0, 0x9e, 0x3a, 0xac, 0xb4, 0x0f, 0x0e, 0x82, 0xb6, 0x66, 0x8a, 0x06, 0x66, 0x35,
|
||||||
0x49, 0x85, 0x17, 0x7c, 0x8b, 0xf2, 0x9c, 0x12, 0xc5, 0x46, 0xe0, 0x55, 0xf0, 0xd9, 0x31, 0x24,
|
0x9e, 0xcb, 0x07, 0x94, 0x97, 0x94, 0x28, 0xef, 0x04, 0xde, 0x44, 0x5f, 0x1c, 0xf1, 0xd4, 0xab,
|
||||||
0x4e, 0x4e, 0x71, 0x26, 0xf8, 0xce, 0xdd, 0x66, 0xe7, 0xc4, 0x8b, 0xce, 0x7f, 0xfe, 0xe0, 0xeb,
|
0x39, 0x2e, 0x40, 0x6e, 0xdf, 0x6f, 0x76, 0x46, 0xbc, 0xec, 0xfd, 0x97, 0x8f, 0xbf, 0x5e, 0x4f,
|
||||||
0xf5, 0x28, 0xfa, 0x73, 0x3d, 0x8a, 0x3f, 0xff, 0xfe, 0xfe, 0x64, 0x3f, 0xbc, 0x55, 0x57, 0xf7,
|
0x92, 0xbf, 0xd7, 0x13, 0xf6, 0xf9, 0xcf, 0xf7, 0x67, 0x7b, 0xf1, 0x56, 0x7d, 0xdd, 0xdf, 0x8c,
|
||||||
0xd3, 0x16, 0x24, 0x21, 0xcd, 0x38, 0xec, 0x36, 0x68, 0x9d, 0x32, 0x9a, 0xaa, 0xf6, 0x8a, 0xb5,
|
0xa7, 0x31, 0x2d, 0x24, 0xdf, 0x69, 0xd1, 0x79, 0x6d, 0x0d, 0x55, 0x1d, 0x94, 0x1b, 0xd9, 0x39,
|
||||||
0x6c, 0x1d, 0x21, 0xa5, 0x99, 0x6b, 0x4f, 0xa5, 0x06, 0xc5, 0x5a, 0xb2, 0x43, 0xe8, 0x09, 0xe7,
|
0xa0, 0x94, 0x5d, 0x9a, 0x40, 0xa5, 0x46, 0xe5, 0x46, 0x8a, 0x03, 0x3e, 0x00, 0xef, 0x31, 0xc8,
|
||||||
0xd0, 0xf3, 0x6d, 0xe2, 0x41, 0xb4, 0x54, 0x4e, 0x85, 0xd2, 0x54, 0x6c, 0x50, 0x04, 0xc1, 0x52,
|
0x2d, 0xe2, 0x51, 0x74, 0x54, 0xcd, 0x41, 0x1b, 0x2a, 0x36, 0x2a, 0xa3, 0x10, 0x19, 0xe7, 0xca,
|
||||||
0x00, 0x69, 0xf1, 0x02, 0xb5, 0x57, 0xa2, 0xe2, 0x3d, 0xb2, 0x36, 0x08, 0x3b, 0x80, 0xed, 0xf7,
|
0xe1, 0x39, 0x9a, 0xa0, 0xa1, 0x96, 0x03, 0xb2, 0xee, 0x10, 0xb1, 0xcf, 0xb7, 0x3e, 0x7c, 0xbc,
|
||||||
0x1f, 0xae, 0x78, 0x42, 0x46, 0x3b, 0xb6, 0x7b, 0x4a, 0x2b, 0xb4, 0xe7, 0xbb, 0x61, 0x0f, 0x09,
|
0x94, 0x29, 0x19, 0xdd, 0xd8, 0xed, 0xa9, 0x1c, 0x98, 0x20, 0x77, 0xe2, 0x1e, 0x12, 0x62, 0xcc,
|
||||||
0x36, 0x84, 0xfe, 0x15, 0x2e, 0xdc, 0x54, 0x58, 0xe4, 0x7d, 0x32, 0xfe, 0x69, 0xf6, 0x10, 0x06,
|
0x87, 0x97, 0x78, 0xe5, 0xe7, 0xe0, 0x50, 0x0e, 0xc9, 0xf8, 0xaf, 0xbb, 0xa6, 0x8d, 0xb3, 0x17,
|
||||||
0xf5, 0x7c, 0x52, 0x29, 0xf9, 0x06, 0x17, 0x7c, 0x40, 0xe6, 0x7f, 0xd0, 0xde, 0xa3, 0xb6, 0xe6,
|
0xba, 0x46, 0x39, 0x8a, 0x4d, 0x7b, 0x79, 0x7a, 0x72, 0xb3, 0xca, 0xd8, 0xed, 0x2a, 0x63, 0xbf,
|
||||||
0x52, 0x55, 0xc8, 0x21, 0xdc, 0xa3, 0x93, 0x67, 0xa7, 0x37, 0xcb, 0x34, 0xbe, 0x5d, 0xa6, 0xf1,
|
0x56, 0x19, 0xfb, 0xb2, 0xce, 0x92, 0xdb, 0x75, 0x96, 0xfc, 0x58, 0x67, 0xc9, 0xfb, 0xa7, 0x95,
|
||||||
0xaf, 0x65, 0x1a, 0x7f, 0x59, 0xa5, 0xd1, 0xed, 0x2a, 0x8d, 0x7e, 0xac, 0xd2, 0xe8, 0xdd, 0xe3,
|
0x0e, 0xf3, 0xe5, 0x2c, 0x57, 0x76, 0x51, 0x58, 0xe3, 0xad, 0x71, 0x05, 0x3d, 0x9f, 0x8a, 0x78,
|
||||||
0x52, 0xf9, 0xe9, 0x7c, 0x92, 0x49, 0x33, 0xcb, 0x8d, 0x76, 0x46, 0xdb, 0x9c, 0x8e, 0x8f, 0x79,
|
0xa9, 0x70, 0xd5, 0xa0, 0x9f, 0xa5, 0xf4, 0x7b, 0xbc, 0xf8, 0x17, 0x00, 0x00, 0xff, 0xff, 0xb6,
|
||||||
0x78, 0x47, 0xbf, 0xa8, 0xd1, 0x4d, 0x12, 0xfa, 0x79, 0x9e, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff,
|
0xf1, 0x38, 0xc9, 0x6b, 0x02, 0x00, 0x00,
|
||||||
0x57, 0x11, 0x84, 0xf3, 0x89, 0x02, 0x00, 0x00,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Params) Equal(that interface{}) bool {
|
func (this *Params) Equal(that interface{}) bool {
|
||||||
@ -429,13 +420,6 @@ func (m *Schema) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|||||||
copy(dAtA[i:], m.Profile)
|
copy(dAtA[i:], m.Profile)
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(len(m.Profile)))
|
i = encodeVarintGenesis(dAtA, i, uint64(len(m.Profile)))
|
||||||
i--
|
i--
|
||||||
dAtA[i] = 0x52
|
|
||||||
}
|
|
||||||
if len(m.PublicKey) > 0 {
|
|
||||||
i -= len(m.PublicKey)
|
|
||||||
copy(dAtA[i:], m.PublicKey)
|
|
||||||
i = encodeVarintGenesis(dAtA, i, uint64(len(m.PublicKey)))
|
|
||||||
i--
|
|
||||||
dAtA[i] = 0x4a
|
dAtA[i] = 0x4a
|
||||||
}
|
}
|
||||||
if len(m.Keyshare) > 0 {
|
if len(m.Keyshare) > 0 {
|
||||||
@ -573,10 +557,6 @@ func (m *Schema) Size() (n int) {
|
|||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
n += 1 + l + sovGenesis(uint64(l))
|
||||||
}
|
}
|
||||||
l = len(m.PublicKey)
|
|
||||||
if l > 0 {
|
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
|
||||||
}
|
|
||||||
l = len(m.Profile)
|
l = len(m.Profile)
|
||||||
if l > 0 {
|
if l > 0 {
|
||||||
n += 1 + l + sovGenesis(uint64(l))
|
n += 1 + l + sovGenesis(uint64(l))
|
||||||
@ -1072,38 +1052,6 @@ func (m *Schema) Unmarshal(dAtA []byte) error {
|
|||||||
m.Keyshare = string(dAtA[iNdEx:postIndex])
|
m.Keyshare = string(dAtA[iNdEx:postIndex])
|
||||||
iNdEx = postIndex
|
iNdEx = postIndex
|
||||||
case 9:
|
case 9:
|
||||||
if wireType != 2 {
|
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType)
|
|
||||||
}
|
|
||||||
var stringLen uint64
|
|
||||||
for shift := uint(0); ; shift += 7 {
|
|
||||||
if shift >= 64 {
|
|
||||||
return ErrIntOverflowGenesis
|
|
||||||
}
|
|
||||||
if iNdEx >= l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
b := dAtA[iNdEx]
|
|
||||||
iNdEx++
|
|
||||||
stringLen |= uint64(b&0x7F) << shift
|
|
||||||
if b < 0x80 {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
intStringLen := int(stringLen)
|
|
||||||
if intStringLen < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
postIndex := iNdEx + intStringLen
|
|
||||||
if postIndex < 0 {
|
|
||||||
return ErrInvalidLengthGenesis
|
|
||||||
}
|
|
||||||
if postIndex > l {
|
|
||||||
return io.ErrUnexpectedEOF
|
|
||||||
}
|
|
||||||
m.PublicKey = string(dAtA[iNdEx:postIndex])
|
|
||||||
iNdEx = postIndex
|
|
||||||
case 10:
|
|
||||||
if wireType != 2 {
|
if wireType != 2 {
|
||||||
return fmt.Errorf("proto: wrong wireType = %d for field Profile", wireType)
|
return fmt.Errorf("proto: wrong wireType = %d for field Profile", wireType)
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,6 @@ func DefaultSchema() *Schema {
|
|||||||
Jwk: "++, kty, crv, x, y, n, e",
|
Jwk: "++, kty, crv, x, y, n, e",
|
||||||
Grant: "++, subject, controller, origin, token, scopes, createdAt, updatedAt",
|
Grant: "++, subject, controller, origin, token, scopes, createdAt, updatedAt",
|
||||||
Keyshare: "++, id, data, role, createdAt, lastRefreshed",
|
Keyshare: "++, id, data, role, createdAt, lastRefreshed",
|
||||||
PublicKey: "++, role, algorithm, encoding, curve, key_type, raw, jwk",
|
|
||||||
Profile: "++, id, subject, controller, originUri, publicMetadata, privateMetadata, createdAt, updatedAt",
|
Profile: "++, id, subject, controller, originUri, publicMetadata, privateMetadata, createdAt, updatedAt",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user