@sparkdreamnft/sparkdreamjs 0.0.29 → 0.0.30

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 (77) hide show
  1. package/akash/bme/v1/events.d.ts +332 -0
  2. package/akash/bme/v1/events.js +500 -0
  3. package/akash/bme/v1/filters.d.ts +80 -0
  4. package/akash/bme/v1/filters.js +110 -0
  5. package/akash/bme/v1/genesis.d.ts +271 -0
  6. package/akash/bme/v1/genesis.js +452 -0
  7. package/akash/bme/v1/msgs.d.ts +585 -0
  8. package/akash/bme/v1/msgs.js +867 -0
  9. package/akash/bme/v1/params.d.ts +147 -0
  10. package/akash/bme/v1/params.js +174 -0
  11. package/akash/bme/v1/query.d.ts +508 -0
  12. package/akash/bme/v1/query.js +727 -0
  13. package/akash/bme/v1/query.lcd.d.ts +12 -0
  14. package/akash/bme/v1/query.lcd.js +41 -0
  15. package/akash/bme/v1/query.rpc.Query.d.ts +28 -0
  16. package/akash/bme/v1/query.rpc.Query.js +56 -0
  17. package/akash/bme/v1/service.amino.d.ts +28 -0
  18. package/akash/bme/v1/service.amino.js +32 -0
  19. package/akash/bme/v1/service.d.ts +1 -0
  20. package/akash/bme/v1/service.js +2 -0
  21. package/akash/bme/v1/service.registry.d.ts +73 -0
  22. package/akash/bme/v1/service.registry.js +109 -0
  23. package/akash/bme/v1/service.rpc.msg.d.ts +46 -0
  24. package/akash/bme/v1/service.rpc.msg.js +55 -0
  25. package/akash/bme/v1/types.d.ts +766 -0
  26. package/akash/bme/v1/types.js +1283 -0
  27. package/akash/bundle.d.ts +3317 -2680
  28. package/akash/bundle.js +294 -263
  29. package/akash/client.d.ts +25 -0
  30. package/akash/client.js +4 -1
  31. package/akash/lcd.d.ts +3 -0
  32. package/akash/lcd.js +5 -0
  33. package/akash/rpc.query.d.ts +8 -0
  34. package/akash/rpc.query.js +3 -0
  35. package/akash/rpc.tx.d.ts +3 -0
  36. package/akash/rpc.tx.js +3 -0
  37. package/amino/bundle.js +2 -2
  38. package/cosmos/bundle.d.ts +7545 -7545
  39. package/cosmos/bundle.js +416 -416
  40. package/cosmos_proto/bundle.d.ts +23 -23
  41. package/cosmos_proto/bundle.js +2 -2
  42. package/esm/akash/bme/v1/events.js +497 -0
  43. package/esm/akash/bme/v1/filters.js +107 -0
  44. package/esm/akash/bme/v1/genesis.js +449 -0
  45. package/esm/akash/bme/v1/msgs.js +864 -0
  46. package/esm/akash/bme/v1/params.js +171 -0
  47. package/esm/akash/bme/v1/query.js +724 -0
  48. package/esm/akash/bme/v1/query.lcd.js +37 -0
  49. package/esm/akash/bme/v1/query.rpc.Query.js +51 -0
  50. package/esm/akash/bme/v1/service.amino.js +29 -0
  51. package/esm/akash/bme/v1/service.js +1 -0
  52. package/esm/akash/bme/v1/service.registry.js +105 -0
  53. package/esm/akash/bme/v1/service.rpc.msg.js +50 -0
  54. package/esm/akash/bme/v1/types.js +1274 -0
  55. package/esm/akash/bundle.js +294 -263
  56. package/esm/akash/client.js +4 -1
  57. package/esm/akash/lcd.js +5 -0
  58. package/esm/akash/rpc.query.js +3 -0
  59. package/esm/akash/rpc.tx.js +3 -0
  60. package/esm/amino/bundle.js +2 -2
  61. package/esm/cosmos/bundle.js +416 -416
  62. package/esm/cosmos_proto/bundle.js +2 -2
  63. package/esm/gogoproto/bundle.js +2 -2
  64. package/esm/google/bundle.js +8 -8
  65. package/esm/ibc/bundle.js +224 -224
  66. package/esm/sparkdream/bundle.js +486 -486
  67. package/esm/tendermint/bundle.js +20 -20
  68. package/gogoproto/bundle.js +2 -2
  69. package/google/bundle.d.ts +431 -431
  70. package/google/bundle.js +8 -8
  71. package/ibc/bundle.d.ts +3843 -3843
  72. package/ibc/bundle.js +224 -224
  73. package/package.json +1 -1
  74. package/sparkdream/bundle.d.ts +17352 -17352
  75. package/sparkdream/bundle.js +486 -486
  76. package/tendermint/bundle.d.ts +844 -844
  77. package/tendermint/bundle.js +20 -20
@@ -0,0 +1,147 @@
1
+ import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin";
2
+ import { BinaryReader, BinaryWriter } from "../../../binary";
3
+ import { DeepPartial } from "../../../helpers";
4
+ /**
5
+ * Params defines the parameters for the BME module
6
+ * @name Params
7
+ * @package akash.bme.v1
8
+ * @see proto type: akash.bme.v1.Params
9
+ */
10
+ export interface Params {
11
+ /**
12
+ * circuit_breaker_warn_threshold is the CR below which warning is triggered
13
+ * Stored as basis points * 100 (e.g., 9500 = 0.95)
14
+ */
15
+ circuitBreakerWarnThreshold: number;
16
+ /**
17
+ * circuit_breaker_halt_threshold is the CR below which mints are halted
18
+ * Stored as basis points * 100 (e.g., 9000 = 0.90)
19
+ */
20
+ circuitBreakerHaltThreshold: number;
21
+ /**
22
+ * min_epoch_blocks is the minimum amount of blocks required for ACT mints
23
+ */
24
+ minEpochBlocks: bigint;
25
+ /**
26
+ * epoch_blocks_backoff increase of runway_blocks in % during warn threshold
27
+ * for drop in 1 basis point of circuit_breaker_warn_threshold
28
+ * Stored as basis points * 100 (e.g., 9500 = 0.95)
29
+ * e.g: runway_blocks = 100
30
+ * min_runway_blocks_backoff = 1000
31
+ * circuit_breaker_warn_threshold drops from 0.95 to 0.94
32
+ * then runway_blocks = (100*0.1 + 100) = 110
33
+ *
34
+ * circuit_breaker_warn_threshold drops from 0.94 to 0.92
35
+ * then runway_blocks = (110*(0.1*2) + 110) = 132
36
+ */
37
+ epochBlocksBackoffPercent: number;
38
+ /**
39
+ * mint_spread_bps is the spread in basis points applied during ACT mint
40
+ * (default: 25 bps = 0.25%)
41
+ */
42
+ mintSpreadBps: number;
43
+ /**
44
+ * settle_spread_bps is the spread in basis points applied during settlement
45
+ * (default: 0 for no provider tax)
46
+ */
47
+ settleSpreadBps: number;
48
+ /**
49
+ * max_endblocker_records is the deterministic upper bound on pending ledger
50
+ * records processed in a single EndBlocker invocation.
51
+ */
52
+ maxEndblockerRecords: number;
53
+ /**
54
+ * min_mint minimum amount of ACT required to be minted in the new transaction
55
+ */
56
+ minMint: Coin[];
57
+ /**
58
+ * max_pending_attempts is the maximum number of EndBlocker processing attempts
59
+ * for a pending record before it is canceled. Applies to retriable errors only.
60
+ */
61
+ maxPendingAttempts: number;
62
+ }
63
+ export interface ParamsProtoMsg {
64
+ typeUrl: "/akash.bme.v1.Params";
65
+ value: Uint8Array;
66
+ }
67
+ /**
68
+ * Params defines the parameters for the BME module
69
+ * @name ParamsAmino
70
+ * @package akash.bme.v1
71
+ * @see proto type: akash.bme.v1.Params
72
+ */
73
+ export interface ParamsAmino {
74
+ /**
75
+ * circuit_breaker_warn_threshold is the CR below which warning is triggered
76
+ * Stored as basis points * 100 (e.g., 9500 = 0.95)
77
+ */
78
+ circuit_breaker_warn_threshold?: number;
79
+ /**
80
+ * circuit_breaker_halt_threshold is the CR below which mints are halted
81
+ * Stored as basis points * 100 (e.g., 9000 = 0.90)
82
+ */
83
+ circuit_breaker_halt_threshold?: number;
84
+ /**
85
+ * min_epoch_blocks is the minimum amount of blocks required for ACT mints
86
+ */
87
+ min_epoch_blocks?: string;
88
+ /**
89
+ * epoch_blocks_backoff increase of runway_blocks in % during warn threshold
90
+ * for drop in 1 basis point of circuit_breaker_warn_threshold
91
+ * Stored as basis points * 100 (e.g., 9500 = 0.95)
92
+ * e.g: runway_blocks = 100
93
+ * min_runway_blocks_backoff = 1000
94
+ * circuit_breaker_warn_threshold drops from 0.95 to 0.94
95
+ * then runway_blocks = (100*0.1 + 100) = 110
96
+ *
97
+ * circuit_breaker_warn_threshold drops from 0.94 to 0.92
98
+ * then runway_blocks = (110*(0.1*2) + 110) = 132
99
+ */
100
+ epoch_blocks_backoff_percent?: number;
101
+ /**
102
+ * mint_spread_bps is the spread in basis points applied during ACT mint
103
+ * (default: 25 bps = 0.25%)
104
+ */
105
+ mint_spread_bps?: number;
106
+ /**
107
+ * settle_spread_bps is the spread in basis points applied during settlement
108
+ * (default: 0 for no provider tax)
109
+ */
110
+ settle_spread_bps?: number;
111
+ /**
112
+ * max_endblocker_records is the deterministic upper bound on pending ledger
113
+ * records processed in a single EndBlocker invocation.
114
+ */
115
+ max_endblocker_records?: number;
116
+ /**
117
+ * min_mint minimum amount of ACT required to be minted in the new transaction
118
+ */
119
+ min_mint: CoinAmino[];
120
+ /**
121
+ * max_pending_attempts is the maximum number of EndBlocker processing attempts
122
+ * for a pending record before it is canceled. Applies to retriable errors only.
123
+ */
124
+ max_pending_attempts?: number;
125
+ }
126
+ export interface ParamsAminoMsg {
127
+ type: "/akash.bme.v1.Params";
128
+ value: ParamsAmino;
129
+ }
130
+ /**
131
+ * Params defines the parameters for the BME module
132
+ * @name Params
133
+ * @package akash.bme.v1
134
+ * @see proto type: akash.bme.v1.Params
135
+ */
136
+ export declare const Params: {
137
+ typeUrl: string;
138
+ encode(message: Params, writer?: BinaryWriter): BinaryWriter;
139
+ decode(input: BinaryReader | Uint8Array, length?: number): Params;
140
+ fromPartial(object: DeepPartial<Params>): Params;
141
+ fromAmino(object: ParamsAmino): Params;
142
+ toAmino(message: Params): ParamsAmino;
143
+ fromAminoMsg(object: ParamsAminoMsg): Params;
144
+ fromProtoMsg(message: ParamsProtoMsg): Params;
145
+ toProto(message: Params): Uint8Array;
146
+ toProtoMsg(message: Params): ParamsProtoMsg;
147
+ };
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Params = void 0;
4
+ //@ts-nocheck
5
+ const coin_1 = require("../../../cosmos/base/v1beta1/coin");
6
+ const binary_1 = require("../../../binary");
7
+ function createBaseParams() {
8
+ return {
9
+ circuitBreakerWarnThreshold: 0,
10
+ circuitBreakerHaltThreshold: 0,
11
+ minEpochBlocks: BigInt(0),
12
+ epochBlocksBackoffPercent: 0,
13
+ mintSpreadBps: 0,
14
+ settleSpreadBps: 0,
15
+ maxEndblockerRecords: 0,
16
+ minMint: [],
17
+ maxPendingAttempts: 0
18
+ };
19
+ }
20
+ /**
21
+ * Params defines the parameters for the BME module
22
+ * @name Params
23
+ * @package akash.bme.v1
24
+ * @see proto type: akash.bme.v1.Params
25
+ */
26
+ exports.Params = {
27
+ typeUrl: "/akash.bme.v1.Params",
28
+ encode(message, writer = binary_1.BinaryWriter.create()) {
29
+ if (message.circuitBreakerWarnThreshold !== 0) {
30
+ writer.uint32(8).uint32(message.circuitBreakerWarnThreshold);
31
+ }
32
+ if (message.circuitBreakerHaltThreshold !== 0) {
33
+ writer.uint32(16).uint32(message.circuitBreakerHaltThreshold);
34
+ }
35
+ if (message.minEpochBlocks !== BigInt(0)) {
36
+ writer.uint32(24).int64(message.minEpochBlocks);
37
+ }
38
+ if (message.epochBlocksBackoffPercent !== 0) {
39
+ writer.uint32(32).uint32(message.epochBlocksBackoffPercent);
40
+ }
41
+ if (message.mintSpreadBps !== 0) {
42
+ writer.uint32(48).uint32(message.mintSpreadBps);
43
+ }
44
+ if (message.settleSpreadBps !== 0) {
45
+ writer.uint32(56).uint32(message.settleSpreadBps);
46
+ }
47
+ if (message.maxEndblockerRecords !== 0) {
48
+ writer.uint32(64).uint32(message.maxEndblockerRecords);
49
+ }
50
+ for (const v of message.minMint) {
51
+ coin_1.Coin.encode(v, writer.uint32(74).fork()).ldelim();
52
+ }
53
+ if (message.maxPendingAttempts !== 0) {
54
+ writer.uint32(80).uint32(message.maxPendingAttempts);
55
+ }
56
+ return writer;
57
+ },
58
+ decode(input, length) {
59
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
60
+ let end = length === undefined ? reader.len : reader.pos + length;
61
+ const message = createBaseParams();
62
+ while (reader.pos < end) {
63
+ const tag = reader.uint32();
64
+ switch (tag >>> 3) {
65
+ case 1:
66
+ message.circuitBreakerWarnThreshold = reader.uint32();
67
+ break;
68
+ case 2:
69
+ message.circuitBreakerHaltThreshold = reader.uint32();
70
+ break;
71
+ case 3:
72
+ message.minEpochBlocks = reader.int64();
73
+ break;
74
+ case 4:
75
+ message.epochBlocksBackoffPercent = reader.uint32();
76
+ break;
77
+ case 6:
78
+ message.mintSpreadBps = reader.uint32();
79
+ break;
80
+ case 7:
81
+ message.settleSpreadBps = reader.uint32();
82
+ break;
83
+ case 8:
84
+ message.maxEndblockerRecords = reader.uint32();
85
+ break;
86
+ case 9:
87
+ message.minMint.push(coin_1.Coin.decode(reader, reader.uint32()));
88
+ break;
89
+ case 10:
90
+ message.maxPendingAttempts = reader.uint32();
91
+ break;
92
+ default:
93
+ reader.skipType(tag & 7);
94
+ break;
95
+ }
96
+ }
97
+ return message;
98
+ },
99
+ fromPartial(object) {
100
+ const message = createBaseParams();
101
+ message.circuitBreakerWarnThreshold = object.circuitBreakerWarnThreshold ?? 0;
102
+ message.circuitBreakerHaltThreshold = object.circuitBreakerHaltThreshold ?? 0;
103
+ message.minEpochBlocks = object.minEpochBlocks !== undefined && object.minEpochBlocks !== null ? BigInt(object.minEpochBlocks.toString()) : BigInt(0);
104
+ message.epochBlocksBackoffPercent = object.epochBlocksBackoffPercent ?? 0;
105
+ message.mintSpreadBps = object.mintSpreadBps ?? 0;
106
+ message.settleSpreadBps = object.settleSpreadBps ?? 0;
107
+ message.maxEndblockerRecords = object.maxEndblockerRecords ?? 0;
108
+ message.minMint = object.minMint?.map(e => coin_1.Coin.fromPartial(e)) || [];
109
+ message.maxPendingAttempts = object.maxPendingAttempts ?? 0;
110
+ return message;
111
+ },
112
+ fromAmino(object) {
113
+ const message = createBaseParams();
114
+ if (object.circuit_breaker_warn_threshold !== undefined && object.circuit_breaker_warn_threshold !== null) {
115
+ message.circuitBreakerWarnThreshold = object.circuit_breaker_warn_threshold;
116
+ }
117
+ if (object.circuit_breaker_halt_threshold !== undefined && object.circuit_breaker_halt_threshold !== null) {
118
+ message.circuitBreakerHaltThreshold = object.circuit_breaker_halt_threshold;
119
+ }
120
+ if (object.min_epoch_blocks !== undefined && object.min_epoch_blocks !== null) {
121
+ message.minEpochBlocks = BigInt(object.min_epoch_blocks);
122
+ }
123
+ if (object.epoch_blocks_backoff_percent !== undefined && object.epoch_blocks_backoff_percent !== null) {
124
+ message.epochBlocksBackoffPercent = object.epoch_blocks_backoff_percent;
125
+ }
126
+ if (object.mint_spread_bps !== undefined && object.mint_spread_bps !== null) {
127
+ message.mintSpreadBps = object.mint_spread_bps;
128
+ }
129
+ if (object.settle_spread_bps !== undefined && object.settle_spread_bps !== null) {
130
+ message.settleSpreadBps = object.settle_spread_bps;
131
+ }
132
+ if (object.max_endblocker_records !== undefined && object.max_endblocker_records !== null) {
133
+ message.maxEndblockerRecords = object.max_endblocker_records;
134
+ }
135
+ message.minMint = object.min_mint?.map(e => coin_1.Coin.fromAmino(e)) || [];
136
+ if (object.max_pending_attempts !== undefined && object.max_pending_attempts !== null) {
137
+ message.maxPendingAttempts = object.max_pending_attempts;
138
+ }
139
+ return message;
140
+ },
141
+ toAmino(message) {
142
+ const obj = {};
143
+ obj.circuit_breaker_warn_threshold = message.circuitBreakerWarnThreshold === 0 ? undefined : message.circuitBreakerWarnThreshold;
144
+ obj.circuit_breaker_halt_threshold = message.circuitBreakerHaltThreshold === 0 ? undefined : message.circuitBreakerHaltThreshold;
145
+ obj.min_epoch_blocks = message.minEpochBlocks !== BigInt(0) ? message.minEpochBlocks?.toString() : undefined;
146
+ obj.epoch_blocks_backoff_percent = message.epochBlocksBackoffPercent === 0 ? undefined : message.epochBlocksBackoffPercent;
147
+ obj.mint_spread_bps = message.mintSpreadBps === 0 ? undefined : message.mintSpreadBps;
148
+ obj.settle_spread_bps = message.settleSpreadBps === 0 ? undefined : message.settleSpreadBps;
149
+ obj.max_endblocker_records = message.maxEndblockerRecords === 0 ? undefined : message.maxEndblockerRecords;
150
+ if (message.minMint) {
151
+ obj.min_mint = message.minMint.map(e => e ? coin_1.Coin.toAmino(e) : undefined);
152
+ }
153
+ else {
154
+ obj.min_mint = message.minMint;
155
+ }
156
+ obj.max_pending_attempts = message.maxPendingAttempts === 0 ? undefined : message.maxPendingAttempts;
157
+ return obj;
158
+ },
159
+ fromAminoMsg(object) {
160
+ return exports.Params.fromAmino(object.value);
161
+ },
162
+ fromProtoMsg(message) {
163
+ return exports.Params.decode(message.value);
164
+ },
165
+ toProto(message) {
166
+ return exports.Params.encode(message).finish();
167
+ },
168
+ toProtoMsg(message) {
169
+ return {
170
+ typeUrl: "/akash.bme.v1.Params",
171
+ value: exports.Params.encode(message).finish()
172
+ };
173
+ }
174
+ };