@verana-labs/verana-types 0.10.1-dev.11 → 0.10.1-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/amino-converter/co.d.ts +3 -0
- package/dist/amino-converter/co.js +164 -0
- package/dist/amino-converter/cs.js +2 -2
- package/dist/amino-converter/ec.d.ts +4 -0
- package/dist/amino-converter/ec.js +63 -0
- package/dist/amino-converter/{tr.d.ts → gf.d.ts} +0 -3
- package/dist/amino-converter/gf.js +48 -0
- package/dist/amino-converter/group.d.ts +3 -0
- package/dist/amino-converter/group.js +91 -0
- package/dist/amino-converter/pp.d.ts +12 -0
- package/dist/amino-converter/{perm.js → pp.js} +56 -56
- package/dist/codec/google/protobuf/any.d.ts +143 -0
- package/dist/codec/google/protobuf/any.js +139 -0
- package/dist/codec/verana/co/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/co/module/v1/module.js +98 -0
- package/dist/codec/verana/co/v1/genesis.d.ts +28 -0
- package/dist/codec/verana/co/v1/genesis.js +121 -0
- package/dist/codec/verana/co/v1/params.d.ts +29 -0
- package/dist/codec/verana/co/v1/params.js +81 -0
- package/dist/codec/verana/co/v1/query.d.ts +111 -0
- package/dist/codec/verana/co/v1/query.js +484 -0
- package/dist/codec/verana/co/v1/tx.d.ts +172 -0
- package/dist/codec/verana/co/v1/tx.js +639 -0
- package/dist/codec/verana/co/v1/types.d.ts +60 -0
- package/dist/codec/verana/co/v1/types.js +384 -0
- package/dist/codec/verana/cs/v1/query.d.ts +2 -2
- package/dist/codec/verana/cs/v1/query.js +21 -21
- package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
- package/dist/codec/verana/cs/v1/tx.js +22 -22
- package/dist/codec/verana/cs/v1/types.d.ts +6 -2
- package/dist/codec/verana/cs/v1/types.js +30 -30
- package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/module/module.js +2 -2
- package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
- package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
- package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
- package/dist/codec/verana/ec/v1/query.d.ts +109 -0
- package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
- package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
- package/dist/codec/verana/{tr → ec}/v1/tx.js +85 -403
- package/dist/codec/verana/ec/v1/types.d.ts +67 -0
- package/dist/codec/verana/ec/v1/types.js +422 -0
- package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
- package/dist/codec/verana/gf/module/v1/module.js +98 -0
- package/dist/codec/verana/gf/v1/genesis.d.ts +29 -0
- package/dist/codec/verana/gf/v1/genesis.js +137 -0
- package/dist/codec/verana/gf/v1/params.d.ts +28 -0
- package/dist/codec/verana/gf/v1/params.js +81 -0
- package/dist/codec/verana/gf/v1/query.d.ts +108 -0
- package/dist/codec/verana/gf/v1/query.js +462 -0
- package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
- package/dist/codec/verana/gf/v1/tx.js +486 -0
- package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -48
- package/dist/codec/verana/gf/v1/types.js +477 -0
- package/dist/codec/verana/{perm → pp}/module/module.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/module/module.js +2 -2
- package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
- package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
- package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
- package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
- package/dist/codec/verana/pp/v1/query.d.ts +208 -0
- package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
- package/dist/codec/verana/pp/v1/tx.d.ts +437 -0
- package/dist/codec/verana/{perm → pp}/v1/tx.js +255 -249
- package/dist/codec/verana/pp/v1/types.d.ts +140 -0
- package/dist/codec/verana/{perm → pp}/v1/types.js +278 -262
- package/dist/helpers/aminoConverters.d.ts +6 -4
- package/dist/helpers/aminoConverters.js +6 -4
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/signing.d.ts +36 -32
- package/dist/signing.js +85 -68
- package/package.json +1 -1
- package/dist/amino-converter/perm.d.ts +0 -12
- package/dist/amino-converter/tr.js +0 -107
- package/dist/codec/verana/perm/v1/query.d.ts +0 -208
- package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
- package/dist/codec/verana/perm/v1/types.d.ts +0 -134
- package/dist/codec/verana/tr/v1/query.d.ts +0 -117
- package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
- package/dist/codec/verana/tr/v1/types.js +0 -809
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Coin } from "../../../cosmos/base/v1beta1/coin";
|
|
3
|
-
import { Duration } from "../../../google/protobuf/duration";
|
|
4
|
-
export declare const protobufPackage = "verana.perm.v1";
|
|
5
|
-
/** Permission types */
|
|
6
|
-
export declare enum PermissionType {
|
|
7
|
-
UNSPECIFIED = 0,
|
|
8
|
-
ISSUER = 1,
|
|
9
|
-
VERIFIER = 2,
|
|
10
|
-
ISSUER_GRANTOR = 3,
|
|
11
|
-
VERIFIER_GRANTOR = 4,
|
|
12
|
-
/** ECOSYSTEM - Changed from PERMISSION_TYPE_TRUST_REGISTRY */
|
|
13
|
-
ECOSYSTEM = 5,
|
|
14
|
-
HOLDER = 6,
|
|
15
|
-
UNRECOGNIZED = -1
|
|
16
|
-
}
|
|
17
|
-
export declare function permissionTypeFromJSON(object: any): PermissionType;
|
|
18
|
-
export declare function permissionTypeToJSON(object: PermissionType): string;
|
|
19
|
-
/** Validation process states */
|
|
20
|
-
export declare enum ValidationState {
|
|
21
|
-
VALIDATION_STATE_UNSPECIFIED = 0,
|
|
22
|
-
PENDING = 1,
|
|
23
|
-
VALIDATED = 2,
|
|
24
|
-
TERMINATED = 3,
|
|
25
|
-
UNRECOGNIZED = -1
|
|
26
|
-
}
|
|
27
|
-
export declare function validationStateFromJSON(object: any): ValidationState;
|
|
28
|
-
export declare function validationStateToJSON(object: ValidationState): string;
|
|
29
|
-
export interface Permission {
|
|
30
|
-
id: number;
|
|
31
|
-
schemaId: number;
|
|
32
|
-
type: PermissionType;
|
|
33
|
-
did: string;
|
|
34
|
-
corporation: string;
|
|
35
|
-
created: Date | undefined;
|
|
36
|
-
adjusted: Date | undefined;
|
|
37
|
-
slashed: Date | undefined;
|
|
38
|
-
repaid: Date | undefined;
|
|
39
|
-
effectiveFrom: Date | undefined;
|
|
40
|
-
effectiveUntil: Date | undefined;
|
|
41
|
-
modified: Date | undefined;
|
|
42
|
-
validationFees: number;
|
|
43
|
-
issuanceFees: number;
|
|
44
|
-
verificationFees: number;
|
|
45
|
-
deposit: number;
|
|
46
|
-
slashedDeposit: number;
|
|
47
|
-
repaidDeposit: number;
|
|
48
|
-
revoked: Date | undefined;
|
|
49
|
-
validatorPermId: number;
|
|
50
|
-
vpState: ValidationState;
|
|
51
|
-
vpExp: Date | undefined;
|
|
52
|
-
vpLastStateChange: Date | undefined;
|
|
53
|
-
vpValidatorDeposit: number;
|
|
54
|
-
vpCurrentFees: number;
|
|
55
|
-
vpCurrentDeposit: number;
|
|
56
|
-
vpSummaryDigest: string;
|
|
57
|
-
/**
|
|
58
|
-
* TODO(spec v4): Fee discount should be LegacyDec in [0, 1] per spec.
|
|
59
|
-
* Currently scaled 0..10000 for compatibility; full migration deferred.
|
|
60
|
-
*/
|
|
61
|
-
issuanceFeeDiscount: number;
|
|
62
|
-
verificationFeeDiscount: number;
|
|
63
|
-
/** VS Operator fields (spec v4) */
|
|
64
|
-
vsOperator: string;
|
|
65
|
-
vsOperatorAuthzEnabled: boolean;
|
|
66
|
-
vsOperatorAuthzSpendLimit: Coin[];
|
|
67
|
-
vsOperatorAuthzWithFeegrant: boolean;
|
|
68
|
-
vsOperatorAuthzFeeSpendLimit: Coin[];
|
|
69
|
-
vsOperatorAuthzSpendPeriod: Duration | undefined;
|
|
70
|
-
}
|
|
71
|
-
export interface PermissionSession {
|
|
72
|
-
id: string;
|
|
73
|
-
/** group account that owns this session */
|
|
74
|
-
corporation: string;
|
|
75
|
-
/** the VS operator account */
|
|
76
|
-
vsOperator: string;
|
|
77
|
-
agentPermId: number;
|
|
78
|
-
sessionRecords: PermissionSessionRecord[];
|
|
79
|
-
created: Date | undefined;
|
|
80
|
-
modified: Date | undefined;
|
|
81
|
-
}
|
|
82
|
-
export interface PermissionSessionRecord {
|
|
83
|
-
created: Date | undefined;
|
|
84
|
-
issuerPermId: number;
|
|
85
|
-
verifierPermId: number;
|
|
86
|
-
walletAgentPermId: number;
|
|
87
|
-
}
|
|
88
|
-
/** OptionalUInt64 is a wrapper for optional uint64 values */
|
|
89
|
-
export interface OptionalUInt64 {
|
|
90
|
-
value: number;
|
|
91
|
-
}
|
|
92
|
-
export declare const Permission: {
|
|
93
|
-
encode(message: Permission, writer?: _m0.Writer): _m0.Writer;
|
|
94
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Permission;
|
|
95
|
-
fromJSON(object: any): Permission;
|
|
96
|
-
toJSON(message: Permission): unknown;
|
|
97
|
-
create<I extends Exact<DeepPartial<Permission>, I>>(base?: I): Permission;
|
|
98
|
-
fromPartial<I extends Exact<DeepPartial<Permission>, I>>(object: I): Permission;
|
|
99
|
-
};
|
|
100
|
-
export declare const PermissionSession: {
|
|
101
|
-
encode(message: PermissionSession, writer?: _m0.Writer): _m0.Writer;
|
|
102
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionSession;
|
|
103
|
-
fromJSON(object: any): PermissionSession;
|
|
104
|
-
toJSON(message: PermissionSession): unknown;
|
|
105
|
-
create<I extends Exact<DeepPartial<PermissionSession>, I>>(base?: I): PermissionSession;
|
|
106
|
-
fromPartial<I extends Exact<DeepPartial<PermissionSession>, I>>(object: I): PermissionSession;
|
|
107
|
-
};
|
|
108
|
-
export declare const PermissionSessionRecord: {
|
|
109
|
-
encode(message: PermissionSessionRecord, writer?: _m0.Writer): _m0.Writer;
|
|
110
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PermissionSessionRecord;
|
|
111
|
-
fromJSON(object: any): PermissionSessionRecord;
|
|
112
|
-
toJSON(message: PermissionSessionRecord): unknown;
|
|
113
|
-
create<I extends Exact<DeepPartial<PermissionSessionRecord>, I>>(base?: I): PermissionSessionRecord;
|
|
114
|
-
fromPartial<I extends Exact<DeepPartial<PermissionSessionRecord>, I>>(object: I): PermissionSessionRecord;
|
|
115
|
-
};
|
|
116
|
-
export declare const OptionalUInt64: {
|
|
117
|
-
encode(message: OptionalUInt64, writer?: _m0.Writer): _m0.Writer;
|
|
118
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): OptionalUInt64;
|
|
119
|
-
fromJSON(object: any): OptionalUInt64;
|
|
120
|
-
toJSON(message: OptionalUInt64): unknown;
|
|
121
|
-
create<I extends Exact<DeepPartial<OptionalUInt64>, I>>(base?: I): OptionalUInt64;
|
|
122
|
-
fromPartial<I extends Exact<DeepPartial<OptionalUInt64>, I>>(object: I): OptionalUInt64;
|
|
123
|
-
};
|
|
124
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
125
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
126
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
127
|
-
} : Partial<T>;
|
|
128
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
129
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
130
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
131
|
-
} & {
|
|
132
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
133
|
-
};
|
|
134
|
-
export {};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Params } from "./params";
|
|
3
|
-
import { TrustRegistryWithVersions } from "./types";
|
|
4
|
-
export declare const protobufPackage = "verana.tr.v1";
|
|
5
|
-
/** QueryParamsRequest is request type for the Query/Params RPC method. */
|
|
6
|
-
export interface QueryParamsRequest {
|
|
7
|
-
}
|
|
8
|
-
/** QueryParamsResponse is response type for the Query/Params RPC method. */
|
|
9
|
-
export interface QueryParamsResponse {
|
|
10
|
-
/** params holds all the parameters of this module. */
|
|
11
|
-
params: Params | undefined;
|
|
12
|
-
}
|
|
13
|
-
/** QueryGetTrustRegistryRequest is the request type for the Query/GetTrustRegistry RPC method. */
|
|
14
|
-
export interface QueryGetTrustRegistryRequest {
|
|
15
|
-
/** Changed from string did to uint64 tr_id */
|
|
16
|
-
trId: number;
|
|
17
|
-
activeGfOnly: boolean;
|
|
18
|
-
preferredLanguage: string;
|
|
19
|
-
}
|
|
20
|
-
/** QueryGetTrustRegistryResponse is the response type for the Query/GetTrustRegistry RPC method. */
|
|
21
|
-
export interface QueryGetTrustRegistryResponse {
|
|
22
|
-
trustRegistry: TrustRegistryWithVersions | undefined;
|
|
23
|
-
}
|
|
24
|
-
/** QueryListTrustRegistriesRequest is the request type for the Query/ListTrustRegistries RPC method. */
|
|
25
|
-
export interface QueryListTrustRegistriesRequest {
|
|
26
|
-
corporation: string;
|
|
27
|
-
modifiedAfter: Date | undefined;
|
|
28
|
-
activeGfOnly: boolean;
|
|
29
|
-
preferredLanguage: string;
|
|
30
|
-
responseMaxSize: number;
|
|
31
|
-
}
|
|
32
|
-
/** QueryListTrustRegistriesResponse is the response type for the Query/ListTrustRegistries RPC method. */
|
|
33
|
-
export interface QueryListTrustRegistriesResponse {
|
|
34
|
-
trustRegistries: TrustRegistryWithVersions[];
|
|
35
|
-
}
|
|
36
|
-
export declare const QueryParamsRequest: {
|
|
37
|
-
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
39
|
-
fromJSON(_: any): QueryParamsRequest;
|
|
40
|
-
toJSON(_: QueryParamsRequest): unknown;
|
|
41
|
-
create<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(base?: I): QueryParamsRequest;
|
|
42
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsRequest>, I>>(_: I): QueryParamsRequest;
|
|
43
|
-
};
|
|
44
|
-
export declare const QueryParamsResponse: {
|
|
45
|
-
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
47
|
-
fromJSON(object: any): QueryParamsResponse;
|
|
48
|
-
toJSON(message: QueryParamsResponse): unknown;
|
|
49
|
-
create<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(base?: I): QueryParamsResponse;
|
|
50
|
-
fromPartial<I extends Exact<DeepPartial<QueryParamsResponse>, I>>(object: I): QueryParamsResponse;
|
|
51
|
-
};
|
|
52
|
-
export declare const QueryGetTrustRegistryRequest: {
|
|
53
|
-
encode(message: QueryGetTrustRegistryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
54
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetTrustRegistryRequest;
|
|
55
|
-
fromJSON(object: any): QueryGetTrustRegistryRequest;
|
|
56
|
-
toJSON(message: QueryGetTrustRegistryRequest): unknown;
|
|
57
|
-
create<I extends Exact<DeepPartial<QueryGetTrustRegistryRequest>, I>>(base?: I): QueryGetTrustRegistryRequest;
|
|
58
|
-
fromPartial<I extends Exact<DeepPartial<QueryGetTrustRegistryRequest>, I>>(object: I): QueryGetTrustRegistryRequest;
|
|
59
|
-
};
|
|
60
|
-
export declare const QueryGetTrustRegistryResponse: {
|
|
61
|
-
encode(message: QueryGetTrustRegistryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
62
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetTrustRegistryResponse;
|
|
63
|
-
fromJSON(object: any): QueryGetTrustRegistryResponse;
|
|
64
|
-
toJSON(message: QueryGetTrustRegistryResponse): unknown;
|
|
65
|
-
create<I extends Exact<DeepPartial<QueryGetTrustRegistryResponse>, I>>(base?: I): QueryGetTrustRegistryResponse;
|
|
66
|
-
fromPartial<I extends Exact<DeepPartial<QueryGetTrustRegistryResponse>, I>>(object: I): QueryGetTrustRegistryResponse;
|
|
67
|
-
};
|
|
68
|
-
export declare const QueryListTrustRegistriesRequest: {
|
|
69
|
-
encode(message: QueryListTrustRegistriesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
70
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryListTrustRegistriesRequest;
|
|
71
|
-
fromJSON(object: any): QueryListTrustRegistriesRequest;
|
|
72
|
-
toJSON(message: QueryListTrustRegistriesRequest): unknown;
|
|
73
|
-
create<I extends Exact<DeepPartial<QueryListTrustRegistriesRequest>, I>>(base?: I): QueryListTrustRegistriesRequest;
|
|
74
|
-
fromPartial<I extends Exact<DeepPartial<QueryListTrustRegistriesRequest>, I>>(object: I): QueryListTrustRegistriesRequest;
|
|
75
|
-
};
|
|
76
|
-
export declare const QueryListTrustRegistriesResponse: {
|
|
77
|
-
encode(message: QueryListTrustRegistriesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
78
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryListTrustRegistriesResponse;
|
|
79
|
-
fromJSON(object: any): QueryListTrustRegistriesResponse;
|
|
80
|
-
toJSON(message: QueryListTrustRegistriesResponse): unknown;
|
|
81
|
-
create<I extends Exact<DeepPartial<QueryListTrustRegistriesResponse>, I>>(base?: I): QueryListTrustRegistriesResponse;
|
|
82
|
-
fromPartial<I extends Exact<DeepPartial<QueryListTrustRegistriesResponse>, I>>(object: I): QueryListTrustRegistriesResponse;
|
|
83
|
-
};
|
|
84
|
-
/** Query defines the gRPC querier service. */
|
|
85
|
-
export interface Query {
|
|
86
|
-
/** Parameters queries the parameters of the module. */
|
|
87
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
88
|
-
/** GetTrustRegistry returns the trust registry information. */
|
|
89
|
-
GetTrustRegistry(request: QueryGetTrustRegistryRequest): Promise<QueryGetTrustRegistryResponse>;
|
|
90
|
-
/** ListTrustRegistries returns a list of Trust Registries */
|
|
91
|
-
ListTrustRegistries(request: QueryListTrustRegistriesRequest): Promise<QueryListTrustRegistriesResponse>;
|
|
92
|
-
}
|
|
93
|
-
export declare const QueryServiceName = "verana.tr.v1.Query";
|
|
94
|
-
export declare class QueryClientImpl implements Query {
|
|
95
|
-
private readonly rpc;
|
|
96
|
-
private readonly service;
|
|
97
|
-
constructor(rpc: Rpc, opts?: {
|
|
98
|
-
service?: string;
|
|
99
|
-
});
|
|
100
|
-
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
101
|
-
GetTrustRegistry(request: QueryGetTrustRegistryRequest): Promise<QueryGetTrustRegistryResponse>;
|
|
102
|
-
ListTrustRegistries(request: QueryListTrustRegistriesRequest): Promise<QueryListTrustRegistriesResponse>;
|
|
103
|
-
}
|
|
104
|
-
interface Rpc {
|
|
105
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
106
|
-
}
|
|
107
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
108
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
109
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
110
|
-
} : Partial<T>;
|
|
111
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
112
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
113
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
114
|
-
} & {
|
|
115
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
116
|
-
};
|
|
117
|
-
export {};
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import { Params } from "./params";
|
|
3
|
-
export declare const protobufPackage = "verana.tr.v1";
|
|
4
|
-
/** MsgUpdateParams is the Msg/UpdateParams request type. */
|
|
5
|
-
export interface MsgUpdateParams {
|
|
6
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
7
|
-
authority: string;
|
|
8
|
-
/**
|
|
9
|
-
* params defines the module parameters to update.
|
|
10
|
-
*
|
|
11
|
-
* NOTE: All parameters must be supplied.
|
|
12
|
-
*/
|
|
13
|
-
params: Params | undefined;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
17
|
-
* MsgUpdateParams message.
|
|
18
|
-
*/
|
|
19
|
-
export interface MsgUpdateParamsResponse {
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* MsgCreateTrustRegistry defines the Msg/CreateTrustRegistry request type.
|
|
23
|
-
* [MOD-TR-MSG-1] Create New Trust Registry
|
|
24
|
-
*/
|
|
25
|
-
export interface MsgCreateTrustRegistry {
|
|
26
|
-
/** corporation is the group account on whose behalf this message is executed */
|
|
27
|
-
corporation: string;
|
|
28
|
-
/** operator is the account authorized by the corporation to run this Msg */
|
|
29
|
-
operator: string;
|
|
30
|
-
/** did is the DID of the ecosystem creating this trust registry (mandatory) */
|
|
31
|
-
did: string;
|
|
32
|
-
/** aka is an optional additional URI of this trust registry */
|
|
33
|
-
aka: string;
|
|
34
|
-
/** language is the primary language tag (RFC1766) of this trust registry (mandatory) */
|
|
35
|
-
language: string;
|
|
36
|
-
/** doc_url is the URL where the initial governance framework document is published (mandatory) */
|
|
37
|
-
docUrl: string;
|
|
38
|
-
/** doc_digest_sri is the digest SRI of the initial governance framework document (mandatory) */
|
|
39
|
-
docDigestSri: string;
|
|
40
|
-
}
|
|
41
|
-
/** MsgCreateTrustRegistryResponse defines the Msg/CreateTrustRegistry response type. */
|
|
42
|
-
export interface MsgCreateTrustRegistryResponse {
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* MsgAddGovernanceFrameworkDocument defines the Msg/AddGovernanceFrameworkDocument request type.
|
|
46
|
-
* [MOD-TR-MSG-2] Add Governance Framework Document
|
|
47
|
-
*/
|
|
48
|
-
export interface MsgAddGovernanceFrameworkDocument {
|
|
49
|
-
/** corporation is the group account on whose behalf this message is executed */
|
|
50
|
-
corporation: string;
|
|
51
|
-
/** operator is the account authorized by the corporation to run this Msg */
|
|
52
|
-
operator: string;
|
|
53
|
-
/** tr_id is the trust registry id (mandatory) */
|
|
54
|
-
trId: number;
|
|
55
|
-
/** language is the language tag (RFC1766) of the document (mandatory) */
|
|
56
|
-
language: string;
|
|
57
|
-
/** url is the URL where the document is published (mandatory) */
|
|
58
|
-
url: string;
|
|
59
|
-
/** digest_sri is the digest SRI of the document (mandatory) */
|
|
60
|
-
digestSri: string;
|
|
61
|
-
/** version is the targeted version (mandatory) */
|
|
62
|
-
version: number;
|
|
63
|
-
}
|
|
64
|
-
/** MsgAddGovernanceFrameworkDocumentResponse defines the Msg/AddGovernanceFrameworkDocument response type. */
|
|
65
|
-
export interface MsgAddGovernanceFrameworkDocumentResponse {
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion request type.
|
|
69
|
-
* [MOD-TR-MSG-3] Increase Active Governance Framework Version
|
|
70
|
-
*/
|
|
71
|
-
export interface MsgIncreaseActiveGovernanceFrameworkVersion {
|
|
72
|
-
/** corporation is the group account on whose behalf this message is executed */
|
|
73
|
-
corporation: string;
|
|
74
|
-
/** operator is the account authorized by the corporation to run this Msg */
|
|
75
|
-
operator: string;
|
|
76
|
-
/** tr_id is the trust registry id (mandatory) */
|
|
77
|
-
trId: number;
|
|
78
|
-
}
|
|
79
|
-
/** MsgIncreaseActiveGovernanceFrameworkVersion defines the Msg/IncreaseActiveGovernanceFrameworkVersion response type. */
|
|
80
|
-
export interface MsgIncreaseActiveGovernanceFrameworkVersionResponse {
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* MsgUpdateTrustRegistry defines the Msg/UpdateTrustRegistry request type.
|
|
84
|
-
* [MOD-TR-MSG-4] Update Trust Registry
|
|
85
|
-
*/
|
|
86
|
-
export interface MsgUpdateTrustRegistry {
|
|
87
|
-
/** corporation is the group account on whose behalf this message is executed */
|
|
88
|
-
corporation: string;
|
|
89
|
-
/** operator is the account authorized by the corporation to run this Msg */
|
|
90
|
-
operator: string;
|
|
91
|
-
/** tr_id is the trust registry id (mandatory) */
|
|
92
|
-
trId: number;
|
|
93
|
-
/** did is the DID of the ecosystem (mandatory) — spec draft 13 [MOD-TR-MSG-4-1] */
|
|
94
|
-
did: string;
|
|
95
|
-
/** aka is an optional additional URI of this trust registry */
|
|
96
|
-
aka: string;
|
|
97
|
-
}
|
|
98
|
-
/** MsgUpdateTrustRegistryResponse defines the Msg/UpdateTrustRegistry response type. */
|
|
99
|
-
export interface MsgUpdateTrustRegistryResponse {
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* MsgArchiveTrustRegistry defines the Msg/ArchiveTrustRegistry request type.
|
|
103
|
-
* [MOD-TR-MSG-5] Archive Trust Registry
|
|
104
|
-
*/
|
|
105
|
-
export interface MsgArchiveTrustRegistry {
|
|
106
|
-
/** corporation is the group account on whose behalf this message is executed */
|
|
107
|
-
corporation: string;
|
|
108
|
-
/** operator is the account authorized by the corporation to run this Msg */
|
|
109
|
-
operator: string;
|
|
110
|
-
/** tr_id is the trust registry id (mandatory) */
|
|
111
|
-
trId: number;
|
|
112
|
-
/** archive is true to archive, false to unarchive (mandatory) */
|
|
113
|
-
archive: boolean;
|
|
114
|
-
}
|
|
115
|
-
/** MsgArchiveTrustRegistryResponse defines the Msg/ArchiveTrustRegistry response type. */
|
|
116
|
-
export interface MsgArchiveTrustRegistryResponse {
|
|
117
|
-
}
|
|
118
|
-
export declare const MsgUpdateParams: {
|
|
119
|
-
encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer;
|
|
120
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams;
|
|
121
|
-
fromJSON(object: any): MsgUpdateParams;
|
|
122
|
-
toJSON(message: MsgUpdateParams): unknown;
|
|
123
|
-
create<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(base?: I): MsgUpdateParams;
|
|
124
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams;
|
|
125
|
-
};
|
|
126
|
-
export declare const MsgUpdateParamsResponse: {
|
|
127
|
-
encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
128
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse;
|
|
129
|
-
fromJSON(_: any): MsgUpdateParamsResponse;
|
|
130
|
-
toJSON(_: MsgUpdateParamsResponse): unknown;
|
|
131
|
-
create<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(base?: I): MsgUpdateParamsResponse;
|
|
132
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse;
|
|
133
|
-
};
|
|
134
|
-
export declare const MsgCreateTrustRegistry: {
|
|
135
|
-
encode(message: MsgCreateTrustRegistry, writer?: _m0.Writer): _m0.Writer;
|
|
136
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateTrustRegistry;
|
|
137
|
-
fromJSON(object: any): MsgCreateTrustRegistry;
|
|
138
|
-
toJSON(message: MsgCreateTrustRegistry): unknown;
|
|
139
|
-
create<I extends Exact<DeepPartial<MsgCreateTrustRegistry>, I>>(base?: I): MsgCreateTrustRegistry;
|
|
140
|
-
fromPartial<I extends Exact<DeepPartial<MsgCreateTrustRegistry>, I>>(object: I): MsgCreateTrustRegistry;
|
|
141
|
-
};
|
|
142
|
-
export declare const MsgCreateTrustRegistryResponse: {
|
|
143
|
-
encode(_: MsgCreateTrustRegistryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
144
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateTrustRegistryResponse;
|
|
145
|
-
fromJSON(_: any): MsgCreateTrustRegistryResponse;
|
|
146
|
-
toJSON(_: MsgCreateTrustRegistryResponse): unknown;
|
|
147
|
-
create<I extends Exact<DeepPartial<MsgCreateTrustRegistryResponse>, I>>(base?: I): MsgCreateTrustRegistryResponse;
|
|
148
|
-
fromPartial<I extends Exact<DeepPartial<MsgCreateTrustRegistryResponse>, I>>(_: I): MsgCreateTrustRegistryResponse;
|
|
149
|
-
};
|
|
150
|
-
export declare const MsgAddGovernanceFrameworkDocument: {
|
|
151
|
-
encode(message: MsgAddGovernanceFrameworkDocument, writer?: _m0.Writer): _m0.Writer;
|
|
152
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddGovernanceFrameworkDocument;
|
|
153
|
-
fromJSON(object: any): MsgAddGovernanceFrameworkDocument;
|
|
154
|
-
toJSON(message: MsgAddGovernanceFrameworkDocument): unknown;
|
|
155
|
-
create<I extends Exact<DeepPartial<MsgAddGovernanceFrameworkDocument>, I>>(base?: I): MsgAddGovernanceFrameworkDocument;
|
|
156
|
-
fromPartial<I extends Exact<DeepPartial<MsgAddGovernanceFrameworkDocument>, I>>(object: I): MsgAddGovernanceFrameworkDocument;
|
|
157
|
-
};
|
|
158
|
-
export declare const MsgAddGovernanceFrameworkDocumentResponse: {
|
|
159
|
-
encode(_: MsgAddGovernanceFrameworkDocumentResponse, writer?: _m0.Writer): _m0.Writer;
|
|
160
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgAddGovernanceFrameworkDocumentResponse;
|
|
161
|
-
fromJSON(_: any): MsgAddGovernanceFrameworkDocumentResponse;
|
|
162
|
-
toJSON(_: MsgAddGovernanceFrameworkDocumentResponse): unknown;
|
|
163
|
-
create<I extends Exact<DeepPartial<MsgAddGovernanceFrameworkDocumentResponse>, I>>(base?: I): MsgAddGovernanceFrameworkDocumentResponse;
|
|
164
|
-
fromPartial<I extends Exact<DeepPartial<MsgAddGovernanceFrameworkDocumentResponse>, I>>(_: I): MsgAddGovernanceFrameworkDocumentResponse;
|
|
165
|
-
};
|
|
166
|
-
export declare const MsgIncreaseActiveGovernanceFrameworkVersion: {
|
|
167
|
-
encode(message: MsgIncreaseActiveGovernanceFrameworkVersion, writer?: _m0.Writer): _m0.Writer;
|
|
168
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgIncreaseActiveGovernanceFrameworkVersion;
|
|
169
|
-
fromJSON(object: any): MsgIncreaseActiveGovernanceFrameworkVersion;
|
|
170
|
-
toJSON(message: MsgIncreaseActiveGovernanceFrameworkVersion): unknown;
|
|
171
|
-
create<I extends Exact<DeepPartial<MsgIncreaseActiveGovernanceFrameworkVersion>, I>>(base?: I): MsgIncreaseActiveGovernanceFrameworkVersion;
|
|
172
|
-
fromPartial<I extends Exact<DeepPartial<MsgIncreaseActiveGovernanceFrameworkVersion>, I>>(object: I): MsgIncreaseActiveGovernanceFrameworkVersion;
|
|
173
|
-
};
|
|
174
|
-
export declare const MsgIncreaseActiveGovernanceFrameworkVersionResponse: {
|
|
175
|
-
encode(_: MsgIncreaseActiveGovernanceFrameworkVersionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
176
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgIncreaseActiveGovernanceFrameworkVersionResponse;
|
|
177
|
-
fromJSON(_: any): MsgIncreaseActiveGovernanceFrameworkVersionResponse;
|
|
178
|
-
toJSON(_: MsgIncreaseActiveGovernanceFrameworkVersionResponse): unknown;
|
|
179
|
-
create<I extends Exact<DeepPartial<MsgIncreaseActiveGovernanceFrameworkVersionResponse>, I>>(base?: I): MsgIncreaseActiveGovernanceFrameworkVersionResponse;
|
|
180
|
-
fromPartial<I extends Exact<DeepPartial<MsgIncreaseActiveGovernanceFrameworkVersionResponse>, I>>(_: I): MsgIncreaseActiveGovernanceFrameworkVersionResponse;
|
|
181
|
-
};
|
|
182
|
-
export declare const MsgUpdateTrustRegistry: {
|
|
183
|
-
encode(message: MsgUpdateTrustRegistry, writer?: _m0.Writer): _m0.Writer;
|
|
184
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTrustRegistry;
|
|
185
|
-
fromJSON(object: any): MsgUpdateTrustRegistry;
|
|
186
|
-
toJSON(message: MsgUpdateTrustRegistry): unknown;
|
|
187
|
-
create<I extends Exact<DeepPartial<MsgUpdateTrustRegistry>, I>>(base?: I): MsgUpdateTrustRegistry;
|
|
188
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateTrustRegistry>, I>>(object: I): MsgUpdateTrustRegistry;
|
|
189
|
-
};
|
|
190
|
-
export declare const MsgUpdateTrustRegistryResponse: {
|
|
191
|
-
encode(_: MsgUpdateTrustRegistryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
192
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateTrustRegistryResponse;
|
|
193
|
-
fromJSON(_: any): MsgUpdateTrustRegistryResponse;
|
|
194
|
-
toJSON(_: MsgUpdateTrustRegistryResponse): unknown;
|
|
195
|
-
create<I extends Exact<DeepPartial<MsgUpdateTrustRegistryResponse>, I>>(base?: I): MsgUpdateTrustRegistryResponse;
|
|
196
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateTrustRegistryResponse>, I>>(_: I): MsgUpdateTrustRegistryResponse;
|
|
197
|
-
};
|
|
198
|
-
export declare const MsgArchiveTrustRegistry: {
|
|
199
|
-
encode(message: MsgArchiveTrustRegistry, writer?: _m0.Writer): _m0.Writer;
|
|
200
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgArchiveTrustRegistry;
|
|
201
|
-
fromJSON(object: any): MsgArchiveTrustRegistry;
|
|
202
|
-
toJSON(message: MsgArchiveTrustRegistry): unknown;
|
|
203
|
-
create<I extends Exact<DeepPartial<MsgArchiveTrustRegistry>, I>>(base?: I): MsgArchiveTrustRegistry;
|
|
204
|
-
fromPartial<I extends Exact<DeepPartial<MsgArchiveTrustRegistry>, I>>(object: I): MsgArchiveTrustRegistry;
|
|
205
|
-
};
|
|
206
|
-
export declare const MsgArchiveTrustRegistryResponse: {
|
|
207
|
-
encode(_: MsgArchiveTrustRegistryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
208
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgArchiveTrustRegistryResponse;
|
|
209
|
-
fromJSON(_: any): MsgArchiveTrustRegistryResponse;
|
|
210
|
-
toJSON(_: MsgArchiveTrustRegistryResponse): unknown;
|
|
211
|
-
create<I extends Exact<DeepPartial<MsgArchiveTrustRegistryResponse>, I>>(base?: I): MsgArchiveTrustRegistryResponse;
|
|
212
|
-
fromPartial<I extends Exact<DeepPartial<MsgArchiveTrustRegistryResponse>, I>>(_: I): MsgArchiveTrustRegistryResponse;
|
|
213
|
-
};
|
|
214
|
-
/** Msg defines the Msg service. */
|
|
215
|
-
export interface Msg {
|
|
216
|
-
/**
|
|
217
|
-
* UpdateParams defines a (governance) operation for updating the module
|
|
218
|
-
* parameters. The authority defaults to the x/gov module account.
|
|
219
|
-
*/
|
|
220
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
221
|
-
/** CreateTrustRegistry creates a new trust registry. */
|
|
222
|
-
CreateTrustRegistry(request: MsgCreateTrustRegistry): Promise<MsgCreateTrustRegistryResponse>;
|
|
223
|
-
AddGovernanceFrameworkDocument(request: MsgAddGovernanceFrameworkDocument): Promise<MsgAddGovernanceFrameworkDocumentResponse>;
|
|
224
|
-
IncreaseActiveGovernanceFrameworkVersion(request: MsgIncreaseActiveGovernanceFrameworkVersion): Promise<MsgIncreaseActiveGovernanceFrameworkVersionResponse>;
|
|
225
|
-
UpdateTrustRegistry(request: MsgUpdateTrustRegistry): Promise<MsgUpdateTrustRegistryResponse>;
|
|
226
|
-
ArchiveTrustRegistry(request: MsgArchiveTrustRegistry): Promise<MsgArchiveTrustRegistryResponse>;
|
|
227
|
-
}
|
|
228
|
-
export declare const MsgServiceName = "verana.tr.v1.Msg";
|
|
229
|
-
export declare class MsgClientImpl implements Msg {
|
|
230
|
-
private readonly rpc;
|
|
231
|
-
private readonly service;
|
|
232
|
-
constructor(rpc: Rpc, opts?: {
|
|
233
|
-
service?: string;
|
|
234
|
-
});
|
|
235
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
236
|
-
CreateTrustRegistry(request: MsgCreateTrustRegistry): Promise<MsgCreateTrustRegistryResponse>;
|
|
237
|
-
AddGovernanceFrameworkDocument(request: MsgAddGovernanceFrameworkDocument): Promise<MsgAddGovernanceFrameworkDocumentResponse>;
|
|
238
|
-
IncreaseActiveGovernanceFrameworkVersion(request: MsgIncreaseActiveGovernanceFrameworkVersion): Promise<MsgIncreaseActiveGovernanceFrameworkVersionResponse>;
|
|
239
|
-
UpdateTrustRegistry(request: MsgUpdateTrustRegistry): Promise<MsgUpdateTrustRegistryResponse>;
|
|
240
|
-
ArchiveTrustRegistry(request: MsgArchiveTrustRegistry): Promise<MsgArchiveTrustRegistryResponse>;
|
|
241
|
-
}
|
|
242
|
-
interface Rpc {
|
|
243
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
244
|
-
}
|
|
245
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
246
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
247
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
248
|
-
} : Partial<T>;
|
|
249
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
250
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
251
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
252
|
-
} & {
|
|
253
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
254
|
-
};
|
|
255
|
-
export {};
|