@verana-labs/verana-types 0.10.1-dev.2 → 0.10.1-dev.22

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 (142) hide show
  1. package/README.md +1 -1
  2. package/dist/amino-converter/co.d.ts +3 -0
  3. package/dist/amino-converter/co.js +164 -0
  4. package/dist/amino-converter/cs.d.ts +7 -0
  5. package/dist/amino-converter/cs.js +169 -0
  6. package/dist/amino-converter/de.d.ts +3 -0
  7. package/dist/amino-converter/de.js +51 -0
  8. package/dist/amino-converter/di.d.ts +2 -0
  9. package/dist/amino-converter/di.js +23 -0
  10. package/dist/amino-converter/ec.d.ts +4 -0
  11. package/dist/amino-converter/ec.js +63 -0
  12. package/dist/amino-converter/gf.d.ts +3 -0
  13. package/dist/amino-converter/gf.js +48 -0
  14. package/dist/amino-converter/group.d.ts +3 -0
  15. package/dist/amino-converter/group.js +91 -0
  16. package/dist/amino-converter/pp.d.ts +13 -0
  17. package/dist/amino-converter/pp.js +347 -0
  18. package/dist/amino-converter/td.d.ts +4 -0
  19. package/dist/amino-converter/td.js +46 -0
  20. package/dist/amino-converter/util/helpers.d.ts +30 -0
  21. package/dist/amino-converter/util/helpers.js +88 -0
  22. package/dist/amino-converter/xr.d.ts +6 -0
  23. package/dist/amino-converter/xr.js +106 -0
  24. package/dist/codec/cosmos/base/v1beta1/coin.d.ts +1 -1
  25. package/dist/codec/google/protobuf/any.d.ts +143 -0
  26. package/dist/codec/{verana/dd/v1/params.js → google/protobuf/any.js} +46 -39
  27. package/dist/codec/google/protobuf/descriptor.d.ts +5 -0
  28. package/dist/codec/google/protobuf/descriptor.js +16 -2
  29. package/dist/codec/google/protobuf/timestamp.d.ts +3 -3
  30. package/dist/codec/verana/{perm/module → co/module/v1}/module.d.ts +5 -2
  31. package/dist/codec/verana/{perm/module → co/module/v1}/module.js +2 -2
  32. package/dist/codec/verana/co/v1/genesis.d.ts +29 -0
  33. package/dist/codec/verana/co/v1/genesis.js +149 -0
  34. package/dist/codec/verana/co/v1/params.d.ts +29 -0
  35. package/dist/codec/verana/co/v1/params.js +81 -0
  36. package/dist/codec/verana/co/v1/query.d.ts +111 -0
  37. package/dist/codec/verana/{dd → co}/v1/query.js +151 -117
  38. package/dist/codec/verana/co/v1/tx.d.ts +172 -0
  39. package/dist/codec/verana/co/v1/tx.js +639 -0
  40. package/dist/codec/verana/co/v1/types.d.ts +60 -0
  41. package/dist/codec/verana/co/v1/types.js +384 -0
  42. package/dist/codec/verana/cs/v1/genesis.d.ts +3 -1
  43. package/dist/codec/verana/cs/v1/genesis.js +42 -3
  44. package/dist/codec/verana/cs/v1/query.d.ts +57 -5
  45. package/dist/codec/verana/cs/v1/query.js +297 -38
  46. package/dist/codec/verana/cs/v1/tx.d.ts +107 -12
  47. package/dist/codec/verana/cs/v1/tx.js +548 -64
  48. package/dist/codec/verana/cs/v1/types.d.ts +75 -16
  49. package/dist/codec/verana/cs/v1/types.js +419 -82
  50. package/dist/codec/verana/de/v1/genesis.d.ts +7 -0
  51. package/dist/codec/verana/de/v1/genesis.js +57 -2
  52. package/dist/codec/verana/de/v1/query.d.ts +109 -3
  53. package/dist/codec/verana/de/v1/query.js +396 -10
  54. package/dist/codec/verana/de/v1/tx.d.ts +22 -10
  55. package/dist/codec/verana/de/v1/tx.js +16 -16
  56. package/dist/codec/verana/de/v1/types.d.ts +104 -21
  57. package/dist/codec/verana/de/v1/types.js +313 -83
  58. package/dist/codec/verana/di/module/v1/module.d.ts +29 -0
  59. package/dist/codec/verana/di/module/v1/module.js +98 -0
  60. package/dist/codec/verana/{dd → di}/v1/genesis.d.ts +5 -4
  61. package/dist/codec/verana/{dd → di}/v1/genesis.js +11 -13
  62. package/dist/codec/verana/di/v1/params.d.ts +24 -0
  63. package/dist/codec/verana/di/v1/params.js +81 -0
  64. package/dist/codec/verana/di/v1/query.d.ts +99 -0
  65. package/dist/codec/verana/di/v1/query.js +349 -0
  66. package/dist/codec/verana/di/v1/tx.d.ts +120 -0
  67. package/dist/codec/verana/di/v1/tx.js +409 -0
  68. package/dist/codec/verana/{dd → ec}/module/module.d.ts +1 -1
  69. package/dist/codec/verana/{dd → ec}/module/module.js +2 -2
  70. package/dist/codec/verana/{tr → ec}/v1/genesis.d.ts +10 -12
  71. package/dist/codec/verana/{tr → ec}/v1/genesis.js +16 -56
  72. package/dist/codec/verana/{tr → ec}/v1/params.d.ts +1 -1
  73. package/dist/codec/verana/{tr → ec}/v1/params.js +2 -2
  74. package/dist/codec/verana/ec/v1/query.d.ts +109 -0
  75. package/dist/codec/verana/{tr → ec}/v1/query.js +69 -71
  76. package/dist/codec/verana/ec/v1/tx.d.ts +152 -0
  77. package/dist/codec/verana/{dd → ec}/v1/tx.js +218 -216
  78. package/dist/codec/verana/ec/v1/types.d.ts +67 -0
  79. package/dist/codec/verana/ec/v1/types.js +422 -0
  80. package/dist/codec/verana/gf/module/v1/module.d.ts +29 -0
  81. package/dist/codec/verana/gf/module/v1/module.js +98 -0
  82. package/dist/codec/verana/gf/v1/genesis.d.ts +31 -0
  83. package/dist/codec/verana/gf/v1/genesis.js +179 -0
  84. package/dist/codec/verana/gf/v1/params.d.ts +28 -0
  85. package/dist/codec/verana/gf/v1/params.js +81 -0
  86. package/dist/codec/verana/gf/v1/query.d.ts +108 -0
  87. package/dist/codec/verana/gf/v1/query.js +462 -0
  88. package/dist/codec/verana/gf/v1/tx.d.ts +142 -0
  89. package/dist/codec/verana/gf/v1/tx.js +486 -0
  90. package/dist/codec/verana/{tr → gf}/v1/types.d.ts +18 -51
  91. package/dist/codec/verana/gf/v1/types.js +477 -0
  92. package/dist/codec/verana/{tr → pp}/module/module.d.ts +1 -1
  93. package/dist/codec/verana/{tr → pp}/module/module.js +2 -2
  94. package/dist/codec/verana/{perm → pp}/v1/genesis.d.ts +9 -9
  95. package/dist/codec/verana/{perm → pp}/v1/genesis.js +26 -26
  96. package/dist/codec/verana/{perm → pp}/v1/params.d.ts +1 -1
  97. package/dist/codec/verana/{perm → pp}/v1/params.js +2 -2
  98. package/dist/codec/verana/pp/v1/query.d.ts +220 -0
  99. package/dist/codec/verana/{perm → pp}/v1/query.js +305 -166
  100. package/dist/codec/verana/pp/v1/tx.d.ts +479 -0
  101. package/dist/codec/verana/pp/v1/tx.js +2574 -0
  102. package/dist/codec/verana/pp/v1/types.d.ts +137 -0
  103. package/dist/codec/verana/{perm → pp}/v1/types.js +312 -354
  104. package/dist/codec/verana/td/v1/genesis.d.ts +13 -3
  105. package/dist/codec/verana/td/v1/genesis.js +151 -35
  106. package/dist/codec/verana/td/v1/params.d.ts +2 -0
  107. package/dist/codec/verana/td/v1/params.js +18 -1
  108. package/dist/codec/verana/td/v1/query.d.ts +1 -1
  109. package/dist/codec/verana/td/v1/query.js +24 -10
  110. package/dist/codec/verana/td/v1/tx.d.ts +26 -40
  111. package/dist/codec/verana/td/v1/tx.js +80 -190
  112. package/dist/codec/verana/td/v1/types.d.ts +8 -8
  113. package/dist/codec/verana/td/v1/types.js +54 -69
  114. package/dist/codec/verana/xr/module/v1/module.d.ts +29 -0
  115. package/dist/codec/verana/xr/module/v1/module.js +98 -0
  116. package/dist/codec/verana/xr/v1/genesis.d.ts +34 -0
  117. package/dist/codec/verana/xr/v1/genesis.js +166 -0
  118. package/dist/codec/verana/{dd → xr}/v1/params.d.ts +4 -3
  119. package/dist/codec/verana/xr/v1/params.js +104 -0
  120. package/dist/codec/verana/xr/v1/query.d.ts +166 -0
  121. package/dist/codec/verana/xr/v1/query.js +817 -0
  122. package/dist/codec/verana/xr/v1/tx.d.ts +284 -0
  123. package/dist/codec/verana/xr/v1/tx.js +1298 -0
  124. package/dist/helpers/aminoConverters.d.ts +10 -32
  125. package/dist/helpers/aminoConverters.js +23 -589
  126. package/dist/index.d.ts +11 -1
  127. package/dist/index.js +11 -1
  128. package/dist/signing.d.ts +75 -0
  129. package/dist/signing.js +147 -0
  130. package/package.json +32 -6
  131. package/dist/codec/verana/dd/v1/query.d.ts +0 -108
  132. package/dist/codec/verana/dd/v1/tx.d.ts +0 -173
  133. package/dist/codec/verana/dd/v1/types.d.ts +0 -30
  134. package/dist/codec/verana/dd/v1/types.js +0 -206
  135. package/dist/codec/verana/perm/v1/query.d.ts +0 -209
  136. package/dist/codec/verana/perm/v1/tx.d.ts +0 -395
  137. package/dist/codec/verana/perm/v1/tx.js +0 -1995
  138. package/dist/codec/verana/perm/v1/types.d.ts +0 -134
  139. package/dist/codec/verana/tr/v1/query.d.ts +0 -118
  140. package/dist/codec/verana/tr/v1/tx.d.ts +0 -255
  141. package/dist/codec/verana/tr/v1/tx.js +0 -956
  142. package/dist/codec/verana/tr/v1/types.js +0 -839
@@ -2,34 +2,48 @@ import * as _m0 from "protobufjs/minimal";
2
2
  import { Coin } from "../../../cosmos/base/v1beta1/coin";
3
3
  import { Duration } from "../../../google/protobuf/duration";
4
4
  export declare const protobufPackage = "verana.de.v1";
5
+ /**
6
+ * OperatorAuthorization is the operator-delegation record. Per spec v4-rc2 it is
7
+ * keyed by its own uint64 id; (corporation_id, operator) is a unique secondary
8
+ * index.
9
+ */
5
10
  export interface OperatorAuthorization {
6
- /** authority is the group granting the authorization. */
7
- authority: string;
11
+ /** id is the own uint64 key of this OperatorAuthorization. */
12
+ id: number;
13
+ /**
14
+ * corporation_id is the id of the corporation granting the authorization. The
15
+ * (corporation_id, operator) tuple MUST be unique.
16
+ */
17
+ corporationId: number;
8
18
  /** operator is the account receiving the authorization. */
9
19
  operator: string;
10
20
  /** msg_types is the list of module message types this authorization applies to. */
11
21
  msgTypes: string[];
12
- /**
13
- * spend_limit is the maximum amount of funds that the grantee is allowed to
14
- * spend as a direct consequence of executing authorized messages.
15
- */
22
+ /** spend_limit is the maximum amount of funds the grantee is allowed to spend. */
16
23
  spendLimit: Coin[];
17
24
  /**
18
- * fee_spend_limit is the maximum total amount of fees that can be paid using
19
- * this authorization.
25
+ * remaining_spend is the runtime balance for spend_limit. Present iff
26
+ * spend_limit is set.
20
27
  */
21
- feeSpendLimit: Coin[];
28
+ remainingSpend: Coin[];
22
29
  /**
23
30
  * expiration is the timestamp after which the authorization is no longer
24
31
  * valid.
25
32
  */
26
33
  expiration: Date | undefined;
27
- /** period is the reset period for spend_limit and fee_spend_limit. */
34
+ /** period is the reset period for spend_limit. If set, expiration MUST also be set. */
28
35
  period: Duration | undefined;
29
36
  }
37
+ /**
38
+ * FeeGrant is the chain-level fee allowance, keyed by the composite
39
+ * (grantor_corporation_id, grantee).
40
+ */
30
41
  export interface FeeGrant {
31
- /** grantor is the authority group granting the fee allowance. */
32
- grantor: string;
42
+ /**
43
+ * grantor_corporation_id is the id of the corporation granting the fee
44
+ * allowance. Together with grantee it forms the composite key.
45
+ */
46
+ grantorCorporationId: number;
33
47
  /** grantee is the account that receives the fee grant from grantor. */
34
48
  grantee: string;
35
49
  /**
@@ -37,26 +51,87 @@ export interface FeeGrant {
37
51
  * allowance applies.
38
52
  */
39
53
  msgTypes: string[];
54
+ /** spend_limit is the maximum amount of fees that can be spent using this grant. */
55
+ spendLimit: Coin[];
40
56
  /**
41
- * spend_limit is the maximum amount of fees that can be spent using this
42
- * grant.
57
+ * remaining_spend is the runtime balance for spend_limit. Present iff
58
+ * spend_limit is set.
43
59
  */
44
- spendLimit: Coin[];
60
+ remainingSpend: Coin[];
45
61
  /** expiration is the timestamp after which the fee grant is no longer valid. */
46
62
  expiration: Date | undefined;
47
- /** period is the reset period for spend_limit. */
63
+ /**
64
+ * period is the reset period for spend_limit. If set, expiration MUST also be
65
+ * set.
66
+ */
67
+ period: Duration | undefined;
68
+ }
69
+ /**
70
+ * ParticipantAuthorizationRecord is a per-participant VS-operator authorization
71
+ * nested inside a VSOperatorAuthorization. Keyed by participant_id, which is
72
+ * globally unique across all records of all VSOperatorAuthorizations.
73
+ */
74
+ export interface ParticipantAuthorizationRecord {
75
+ /**
76
+ * participant_id is the id of the Participant this record applies to. Globally
77
+ * unique across all ParticipantAuthorizationRecord entries.
78
+ */
79
+ participantId: number;
80
+ /**
81
+ * msg_types is the list of delegable message types the vs_operator is
82
+ * authorized for on behalf of corporation. Mandatory, frozen at create.
83
+ */
84
+ msgTypes: string[];
85
+ /** spend_limit is the maximum amount the vs_operator is allowed to spend. */
86
+ spendLimit: Coin[];
87
+ /**
88
+ * remaining_spend is the runtime balance for spend_limit. Present iff
89
+ * spend_limit is set.
90
+ */
91
+ remainingSpend: Coin[];
92
+ /**
93
+ * fee_spend_limit is the maximum total amount of transaction fees that can be
94
+ * spent by vs_operator.
95
+ */
96
+ feeSpendLimit: Coin[];
97
+ /**
98
+ * remaining_fee_spend is the runtime balance for fee_spend_limit. Present iff
99
+ * fee_spend_limit is set.
100
+ */
101
+ remainingFeeSpend: Coin[];
102
+ /**
103
+ * with_feegrant indicates the corporation pays the transaction fees for
104
+ * vs_operator.
105
+ */
106
+ withFeegrant: boolean;
107
+ /**
108
+ * expiration is the authorization window boundary. A record created before
109
+ * validation is disabled with expiration = now().
110
+ */
111
+ expiration: Date | undefined;
112
+ /** period is the reset period for spend_limit and fee_spend_limit. */
48
113
  period: Duration | undefined;
49
114
  }
115
+ /**
116
+ * VSOperatorAuthorization is the VS-operator delegation, keyed by its own uint64
117
+ * id; (corporation_id, vs_operator) is a unique secondary index. The entry
118
+ * exists iff it has at least one record.
119
+ */
50
120
  export interface VSOperatorAuthorization {
51
- /** authority is the group granting the authorization. */
52
- authority: string;
121
+ /** id is the own uint64 key of this VSOperatorAuthorization. */
122
+ id: number;
123
+ /**
124
+ * corporation_id is the id of the corporation granting the authorization. The
125
+ * (corporation_id, vs_operator) tuple MUST be unique.
126
+ */
127
+ corporationId: number;
53
128
  /** vs_operator is the operator account receiving the authorization. */
54
129
  vsOperator: string;
55
130
  /**
56
- * permissions is the list of permission ids for which this authorization is
57
- * granted.
131
+ * records is the list of per-participant authorization records granted to
132
+ * vs_operator by corporation_id.
58
133
  */
59
- permissions: number[];
134
+ records: ParticipantAuthorizationRecord[];
60
135
  }
61
136
  export declare const OperatorAuthorization: {
62
137
  encode(message: OperatorAuthorization, writer?: _m0.Writer): _m0.Writer;
@@ -74,6 +149,14 @@ export declare const FeeGrant: {
74
149
  create<I extends Exact<DeepPartial<FeeGrant>, I>>(base?: I): FeeGrant;
75
150
  fromPartial<I extends Exact<DeepPartial<FeeGrant>, I>>(object: I): FeeGrant;
76
151
  };
152
+ export declare const ParticipantAuthorizationRecord: {
153
+ encode(message: ParticipantAuthorizationRecord, writer?: _m0.Writer): _m0.Writer;
154
+ decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantAuthorizationRecord;
155
+ fromJSON(object: any): ParticipantAuthorizationRecord;
156
+ toJSON(message: ParticipantAuthorizationRecord): unknown;
157
+ create<I extends Exact<DeepPartial<ParticipantAuthorizationRecord>, I>>(base?: I): ParticipantAuthorizationRecord;
158
+ fromPartial<I extends Exact<DeepPartial<ParticipantAuthorizationRecord>, I>>(object: I): ParticipantAuthorizationRecord;
159
+ };
77
160
  export declare const VSOperatorAuthorization: {
78
161
  encode(message: VSOperatorAuthorization, writer?: _m0.Writer): _m0.Writer;
79
162
  decode(input: _m0.Reader | Uint8Array, length?: number): VSOperatorAuthorization;