@verana-labs/verana-types 0.10.1-dev.12 → 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.
Files changed (57) hide show
  1. package/dist/amino-converter/co.d.ts +3 -0
  2. package/dist/amino-converter/co.js +164 -0
  3. package/dist/amino-converter/cs.js +2 -2
  4. package/dist/amino-converter/ec.d.ts +4 -0
  5. package/dist/amino-converter/ec.js +63 -0
  6. package/dist/amino-converter/{tr.d.ts → gf.d.ts} +0 -3
  7. package/dist/amino-converter/gf.js +48 -0
  8. package/dist/amino-converter/group.d.ts +3 -0
  9. package/dist/amino-converter/group.js +91 -0
  10. package/dist/amino-converter/pp.d.ts +12 -0
  11. package/dist/amino-converter/{perm.js → pp.js} +56 -56
  12. package/dist/codec/verana/cs/v1/query.d.ts +2 -2
  13. package/dist/codec/verana/cs/v1/query.js +21 -21
  14. package/dist/codec/verana/cs/v1/tx.d.ts +1 -1
  15. package/dist/codec/verana/cs/v1/tx.js +22 -22
  16. package/dist/codec/verana/cs/v1/types.d.ts +6 -2
  17. package/dist/codec/verana/cs/v1/types.js +30 -30
  18. package/dist/codec/verana/{tr → ec}/module/module.d.ts +1 -1
  19. package/dist/codec/verana/{tr → ec}/module/module.js +2 -2
  20. package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
  21. package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
  22. package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
  23. package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
  24. package/dist/codec/verana/ec/v1/query.d.ts +109 -0
  25. package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
  26. package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
  27. package/dist/codec/verana/{tr → ec}/v1/tx.js +85 -403
  28. package/dist/codec/verana/ec/v1/types.d.ts +67 -0
  29. package/dist/codec/verana/ec/v1/types.js +422 -0
  30. package/dist/codec/verana/{perm → pp}/module/module.d.ts +1 -1
  31. package/dist/codec/verana/{perm → pp}/module/module.js +2 -2
  32. package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
  33. package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
  34. package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
  35. package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
  36. package/dist/codec/verana/pp/v1/query.d.ts +208 -0
  37. package/dist/codec/verana/{perm → pp}/v1/query.js +148 -148
  38. package/dist/codec/verana/pp/v1/tx.d.ts +437 -0
  39. package/dist/codec/verana/{perm → pp}/v1/tx.js +255 -249
  40. package/dist/codec/verana/pp/v1/types.d.ts +140 -0
  41. package/dist/codec/verana/{perm → pp}/v1/types.js +278 -262
  42. package/dist/helpers/aminoConverters.d.ts +6 -4
  43. package/dist/helpers/aminoConverters.js +6 -4
  44. package/dist/index.d.ts +4 -2
  45. package/dist/index.js +4 -2
  46. package/dist/signing.d.ts +36 -32
  47. package/dist/signing.js +85 -68
  48. package/package.json +1 -1
  49. package/dist/amino-converter/perm.d.ts +0 -12
  50. package/dist/amino-converter/tr.js +0 -107
  51. package/dist/codec/verana/perm/v1/query.d.ts +0 -208
  52. package/dist/codec/verana/perm/v1/tx.d.ts +0 -441
  53. package/dist/codec/verana/perm/v1/types.d.ts +0 -134
  54. package/dist/codec/verana/tr/v1/query.d.ts +0 -117
  55. package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
  56. package/dist/codec/verana/tr/v1/types.d.ts +0 -105
  57. package/dist/codec/verana/tr/v1/types.js +0 -809
@@ -0,0 +1,140 @@
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.pp.v1";
5
+ /** Participant roles */
6
+ export declare enum ParticipantRole {
7
+ UNSPECIFIED = 0,
8
+ ISSUER = 1,
9
+ VERIFIER = 2,
10
+ ISSUER_GRANTOR = 3,
11
+ VERIFIER_GRANTOR = 4,
12
+ ECOSYSTEM = 5,
13
+ HOLDER = 6,
14
+ UNRECOGNIZED = -1
15
+ }
16
+ export declare function participantRoleFromJSON(object: any): ParticipantRole;
17
+ export declare function participantRoleToJSON(object: ParticipantRole): string;
18
+ /** Participant onboarding-process states */
19
+ export declare enum OnboardingState {
20
+ ONBOARDING_STATE_UNSPECIFIED = 0,
21
+ PENDING = 1,
22
+ VALIDATED = 2,
23
+ TERMINATED = 3,
24
+ UNRECOGNIZED = -1
25
+ }
26
+ export declare function onboardingStateFromJSON(object: any): OnboardingState;
27
+ export declare function onboardingStateToJSON(object: OnboardingState): string;
28
+ export interface Participant {
29
+ id: number;
30
+ schemaId: number;
31
+ role: ParticipantRole;
32
+ did: string;
33
+ created: Date | undefined;
34
+ adjusted: Date | undefined;
35
+ slashed: Date | undefined;
36
+ repaid: Date | undefined;
37
+ effectiveFrom: Date | undefined;
38
+ effectiveUntil: Date | undefined;
39
+ modified: Date | undefined;
40
+ validationFees: number;
41
+ issuanceFees: number;
42
+ verificationFees: number;
43
+ deposit: number;
44
+ slashedDeposit: number;
45
+ repaidDeposit: number;
46
+ revoked: Date | undefined;
47
+ validatorParticipantId: number;
48
+ opState: OnboardingState;
49
+ opExp: Date | undefined;
50
+ opLastStateChange: Date | undefined;
51
+ opValidatorDeposit: number;
52
+ opCurrentFees: number;
53
+ opCurrentDeposit: number;
54
+ opSummaryDigest: string;
55
+ /**
56
+ * TODO(spec v4): Fee discount should be LegacyDec in [0, 1] per spec.
57
+ * Currently scaled 0..10000 for compatibility; full migration deferred.
58
+ */
59
+ issuanceFeeDiscount: number;
60
+ verificationFeeDiscount: number;
61
+ /** VS Operator fields (spec v4) */
62
+ vsOperator: string;
63
+ vsOperatorAuthzEnabled: boolean;
64
+ vsOperatorAuthzSpendLimit: Coin[];
65
+ vsOperatorAuthzWithFeegrant: boolean;
66
+ vsOperatorAuthzFeeSpendLimit: Coin[];
67
+ vsOperatorAuthzSpendPeriod: Duration | undefined;
68
+ /**
69
+ * corporation_id is the uint64 FK to Corporation.id (resolved from the
70
+ * signing corporation account via AUTHZ-CHECK-5). Replaces former field 5.
71
+ */
72
+ corporationId: number;
73
+ }
74
+ export interface ParticipantSession {
75
+ /** UUID */
76
+ id: string;
77
+ /** uint64 FK to Corporation.id */
78
+ corporationId: number;
79
+ /** the VS operator account */
80
+ vsOperator: string;
81
+ created: Date | undefined;
82
+ modified: Date | undefined;
83
+ sessionRecords: ParticipantSessionRecord[];
84
+ }
85
+ export interface ParticipantSessionRecord {
86
+ /** own uint64 id (key) */
87
+ id: number;
88
+ created: Date | undefined;
89
+ issuerParticipantId: number;
90
+ verifierParticipantId: number;
91
+ walletAgentParticipantId: number;
92
+ agentParticipantId: number;
93
+ }
94
+ /** OptionalUInt64 is a wrapper for optional uint64 values */
95
+ export interface OptionalUInt64 {
96
+ value: number;
97
+ }
98
+ export declare const Participant: {
99
+ encode(message: Participant, writer?: _m0.Writer): _m0.Writer;
100
+ decode(input: _m0.Reader | Uint8Array, length?: number): Participant;
101
+ fromJSON(object: any): Participant;
102
+ toJSON(message: Participant): unknown;
103
+ create<I extends Exact<DeepPartial<Participant>, I>>(base?: I): Participant;
104
+ fromPartial<I extends Exact<DeepPartial<Participant>, I>>(object: I): Participant;
105
+ };
106
+ export declare const ParticipantSession: {
107
+ encode(message: ParticipantSession, writer?: _m0.Writer): _m0.Writer;
108
+ decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantSession;
109
+ fromJSON(object: any): ParticipantSession;
110
+ toJSON(message: ParticipantSession): unknown;
111
+ create<I extends Exact<DeepPartial<ParticipantSession>, I>>(base?: I): ParticipantSession;
112
+ fromPartial<I extends Exact<DeepPartial<ParticipantSession>, I>>(object: I): ParticipantSession;
113
+ };
114
+ export declare const ParticipantSessionRecord: {
115
+ encode(message: ParticipantSessionRecord, writer?: _m0.Writer): _m0.Writer;
116
+ decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantSessionRecord;
117
+ fromJSON(object: any): ParticipantSessionRecord;
118
+ toJSON(message: ParticipantSessionRecord): unknown;
119
+ create<I extends Exact<DeepPartial<ParticipantSessionRecord>, I>>(base?: I): ParticipantSessionRecord;
120
+ fromPartial<I extends Exact<DeepPartial<ParticipantSessionRecord>, I>>(object: I): ParticipantSessionRecord;
121
+ };
122
+ export declare const OptionalUInt64: {
123
+ encode(message: OptionalUInt64, writer?: _m0.Writer): _m0.Writer;
124
+ decode(input: _m0.Reader | Uint8Array, length?: number): OptionalUInt64;
125
+ fromJSON(object: any): OptionalUInt64;
126
+ toJSON(message: OptionalUInt64): unknown;
127
+ create<I extends Exact<DeepPartial<OptionalUInt64>, I>>(base?: I): OptionalUInt64;
128
+ fromPartial<I extends Exact<DeepPartial<OptionalUInt64>, I>>(object: I): OptionalUInt64;
129
+ };
130
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
131
+ 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 {} ? {
132
+ [K in keyof T]?: DeepPartial<T[K]>;
133
+ } : Partial<T>;
134
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
135
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
136
+ [K in keyof P]: Exact<P[K], I[K]>;
137
+ } & {
138
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
139
+ };
140
+ export {};