@injectivelabs/sdk-ts 1.16.11-alpha.1 → 1.16.11

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.
@@ -0,0 +1,38 @@
1
+ import { MsgBase } from '../../MsgBase.js';
2
+ import { InjectiveExchangeV2Tx } from '@injectivelabs/core-proto-ts';
3
+ export declare namespace MsgSetDelegationTransferReceivers {
4
+ interface Params {
5
+ sender: string;
6
+ receivers: string[];
7
+ }
8
+ type Proto = InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers;
9
+ }
10
+ /**
11
+ * @category Messages
12
+ */
13
+ export default class MsgSetDelegationTransferReceivers extends MsgBase<MsgSetDelegationTransferReceivers.Params, MsgSetDelegationTransferReceivers.Proto> {
14
+ static fromJSON(params: MsgSetDelegationTransferReceivers.Params): MsgSetDelegationTransferReceivers;
15
+ toProto(): InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers;
16
+ toData(): {
17
+ sender: string;
18
+ receivers: string[];
19
+ '@type': string;
20
+ };
21
+ toAmino(): {
22
+ type: string;
23
+ value: {
24
+ sender: string;
25
+ receivers: string[];
26
+ };
27
+ };
28
+ toWeb3Gw(): {
29
+ sender: string;
30
+ receivers: string[];
31
+ '@type': string;
32
+ };
33
+ toDirectSign(): {
34
+ type: string;
35
+ message: InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers;
36
+ };
37
+ toBinary(): Uint8Array;
38
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const MsgBase_js_1 = require("../../MsgBase.js");
7
+ const snakecase_keys_1 = __importDefault(require("snakecase-keys"));
8
+ const core_proto_ts_1 = require("@injectivelabs/core-proto-ts");
9
+ /**
10
+ * @category Messages
11
+ */
12
+ class MsgSetDelegationTransferReceivers extends MsgBase_js_1.MsgBase {
13
+ static fromJSON(params) {
14
+ return new MsgSetDelegationTransferReceivers(params);
15
+ }
16
+ toProto() {
17
+ const { params } = this;
18
+ const message = core_proto_ts_1.InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers.create();
19
+ message.sender = params.sender;
20
+ message.receivers = params.receivers;
21
+ return core_proto_ts_1.InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers.fromPartial(message);
22
+ }
23
+ toData() {
24
+ const proto = this.toProto();
25
+ return {
26
+ '@type': '/injective.exchange.v2.MsgSetDelegationTransferReceivers',
27
+ ...proto,
28
+ };
29
+ }
30
+ toAmino() {
31
+ const proto = this.toProto();
32
+ const message = {
33
+ ...(0, snakecase_keys_1.default)(proto),
34
+ };
35
+ return {
36
+ type: 'exchange/MsgSetDelegationTransferReceivers',
37
+ value: message,
38
+ };
39
+ }
40
+ toWeb3Gw() {
41
+ const amino = this.toAmino();
42
+ const { value } = amino;
43
+ return {
44
+ '@type': '/injective.exchange.v2.MsgSetDelegationTransferReceivers',
45
+ ...value,
46
+ };
47
+ }
48
+ toDirectSign() {
49
+ const proto = this.toProto();
50
+ return {
51
+ type: '/injective.exchange.v2.MsgSetDelegationTransferReceivers',
52
+ message: proto,
53
+ };
54
+ }
55
+ toBinary() {
56
+ return core_proto_ts_1.InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers.encode(this.toProto()).finish();
57
+ }
58
+ }
59
+ exports.default = MsgSetDelegationTransferReceivers;
@@ -0,0 +1,38 @@
1
+ import { MsgBase } from '../../MsgBase.js';
2
+ import { InjectiveExchangeV2Tx } from '@injectivelabs/core-proto-ts';
3
+ export declare namespace MsgSetDelegationTransferReceivers {
4
+ interface Params {
5
+ sender: string;
6
+ receivers: string[];
7
+ }
8
+ type Proto = InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers;
9
+ }
10
+ /**
11
+ * @category Messages
12
+ */
13
+ export default class MsgSetDelegationTransferReceivers extends MsgBase<MsgSetDelegationTransferReceivers.Params, MsgSetDelegationTransferReceivers.Proto> {
14
+ static fromJSON(params: MsgSetDelegationTransferReceivers.Params): MsgSetDelegationTransferReceivers;
15
+ toProto(): InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers;
16
+ toData(): {
17
+ sender: string;
18
+ receivers: string[];
19
+ '@type': string;
20
+ };
21
+ toAmino(): {
22
+ type: string;
23
+ value: {
24
+ sender: string;
25
+ receivers: string[];
26
+ };
27
+ };
28
+ toWeb3Gw(): {
29
+ sender: string;
30
+ receivers: string[];
31
+ '@type': string;
32
+ };
33
+ toDirectSign(): {
34
+ type: string;
35
+ message: InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers;
36
+ };
37
+ toBinary(): Uint8Array;
38
+ }
@@ -0,0 +1,53 @@
1
+ import { MsgBase } from '../../MsgBase.js';
2
+ import snakecaseKeys from 'snakecase-keys';
3
+ import { InjectiveExchangeV2Tx } from '@injectivelabs/core-proto-ts';
4
+ /**
5
+ * @category Messages
6
+ */
7
+ export default class MsgSetDelegationTransferReceivers extends MsgBase {
8
+ static fromJSON(params) {
9
+ return new MsgSetDelegationTransferReceivers(params);
10
+ }
11
+ toProto() {
12
+ const { params } = this;
13
+ const message = InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers.create();
14
+ message.sender = params.sender;
15
+ message.receivers = params.receivers;
16
+ return InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers.fromPartial(message);
17
+ }
18
+ toData() {
19
+ const proto = this.toProto();
20
+ return {
21
+ '@type': '/injective.exchange.v2.MsgSetDelegationTransferReceivers',
22
+ ...proto,
23
+ };
24
+ }
25
+ toAmino() {
26
+ const proto = this.toProto();
27
+ const message = {
28
+ ...snakecaseKeys(proto),
29
+ };
30
+ return {
31
+ type: 'exchange/MsgSetDelegationTransferReceivers',
32
+ value: message,
33
+ };
34
+ }
35
+ toWeb3Gw() {
36
+ const amino = this.toAmino();
37
+ const { value } = amino;
38
+ return {
39
+ '@type': '/injective.exchange.v2.MsgSetDelegationTransferReceivers',
40
+ ...value,
41
+ };
42
+ }
43
+ toDirectSign() {
44
+ const proto = this.toProto();
45
+ return {
46
+ type: '/injective.exchange.v2.MsgSetDelegationTransferReceivers',
47
+ message: proto,
48
+ };
49
+ }
50
+ toBinary() {
51
+ return InjectiveExchangeV2Tx.MsgSetDelegationTransferReceivers.encode(this.toProto()).finish();
52
+ }
53
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/sdk-ts",
3
3
  "description": "SDK in TypeScript for building Injective applications in a browser, node, and react native environment.",
4
- "version": "1.16.11-alpha.1",
4
+ "version": "1.16.11",
5
5
  "sideEffects": false,
6
6
  "license": "Apache-2.0",
7
7
  "author": {
@@ -122,17 +122,17 @@
122
122
  "@cosmjs/proto-signing": "^0.33.0",
123
123
  "@cosmjs/stargate": "^0.33.0",
124
124
  "@injectivelabs/abacus-proto-ts": "1.14.0",
125
- "@injectivelabs/core-proto-ts": "1.16.1",
126
- "@injectivelabs/exceptions": "1.16.11-alpha.1",
125
+ "@injectivelabs/core-proto-ts": "1.16.5",
126
+ "@injectivelabs/exceptions": "1.16.11",
127
127
  "@injectivelabs/grpc-web": "^0.0.1",
128
128
  "@injectivelabs/grpc-web-node-http-transport": "^0.0.2",
129
129
  "@injectivelabs/grpc-web-react-native-transport": "^0.0.2",
130
130
  "@injectivelabs/indexer-proto-ts": "1.13.14",
131
131
  "@injectivelabs/mito-proto-ts": "1.13.2",
132
- "@injectivelabs/networks": "1.16.11-alpha.1",
132
+ "@injectivelabs/networks": "1.16.11",
133
133
  "@injectivelabs/olp-proto-ts": "1.13.4",
134
- "@injectivelabs/ts-types": "1.16.11-alpha.1",
135
- "@injectivelabs/utils": "1.16.11-alpha.1",
134
+ "@injectivelabs/ts-types": "1.16.11",
135
+ "@injectivelabs/utils": "1.16.11",
136
136
  "@metamask/eth-sig-util": "^8.2.0",
137
137
  "@noble/curves": "^1.8.1",
138
138
  "@noble/hashes": "^1.7.1",
@@ -152,7 +152,7 @@
152
152
  "shx": "^0.3.4",
153
153
  "snakecase-keys": "^5.4.1"
154
154
  },
155
- "gitHead": "47c65d92c8e41a786c10df297b3c44770b91965a",
155
+ "gitHead": "2fc52f1db9da90837e15543c9854367f33c5f5d1",
156
156
  "typedoc": {
157
157
  "entryPoint": "./src/index.ts",
158
158
  "readmeFile": "./README.md",