@shapeshiftoss/unchained-client 10.0.0 → 10.1.0
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/cosmossdk/cosmos/index.d.ts +2 -0
- package/dist/{cosmos → cosmossdk/cosmos}/index.js +1 -2
- package/dist/cosmossdk/cosmos/parser/index.d.ts +6 -0
- package/dist/cosmossdk/cosmos/parser/index.js +12 -0
- package/dist/cosmossdk/index.d.ts +5 -0
- package/dist/cosmossdk/index.js +34 -0
- package/dist/cosmossdk/osmosis/index.d.ts +2 -0
- package/dist/{osmosis → cosmossdk/osmosis}/index.js +2 -1
- package/dist/cosmossdk/osmosis/parser/index.d.ts +6 -0
- package/dist/cosmossdk/osmosis/parser/index.js +12 -0
- package/dist/cosmossdk/parser/index.d.ts +12 -0
- package/dist/cosmossdk/parser/index.js +85 -0
- package/dist/{cosmos → cosmossdk/parser}/types.d.ts +3 -1
- package/dist/{cosmos → cosmossdk/parser}/types.js +0 -0
- package/dist/cosmossdk/parser/utils.d.ts +3 -0
- package/dist/cosmossdk/parser/utils.js +63 -0
- package/dist/cosmossdk/thorchain/index.d.ts +2 -0
- package/dist/cosmossdk/thorchain/index.js +18 -0
- package/dist/cosmossdk/thorchain/parser/index.d.ts +6 -0
- package/dist/cosmossdk/thorchain/parser/index.js +12 -0
- package/dist/cosmossdk/types.d.ts +1 -0
- package/dist/cosmossdk/types.js +2 -0
- package/dist/evm/ethereum/parser/abi/foxyStaking.d.ts +1 -1
- package/dist/evm/ethereum/parser/abi/shapeShiftRouter.d.ts +1 -1
- package/dist/evm/ethereum/parser/abi/thor.d.ts +1 -1
- package/dist/evm/ethereum/parser/abi/uniV2.d.ts +1 -1
- package/dist/evm/ethereum/parser/abi/uniV2StakingRewards.d.ts +1 -1
- package/dist/evm/ethereum/parser/abi/weth.d.ts +1 -1
- package/dist/evm/ethereum/parser/abi/yearnVault.d.ts +1 -1
- package/dist/evm/parser/abi/erc20.d.ts +1 -1
- package/dist/evm/parser/index.d.ts +1 -1
- package/dist/generated/cosmos/api.d.ts +18 -10
- package/dist/generated/osmosis/api.d.ts +18 -10
- package/dist/generated/thorchain/api.d.ts +1300 -0
- package/dist/generated/thorchain/api.js +520 -0
- package/dist/generated/thorchain/base.d.ts +55 -0
- package/dist/generated/thorchain/base.js +64 -0
- package/dist/generated/thorchain/common.d.ts +65 -0
- package/dist/generated/thorchain/common.js +137 -0
- package/dist/generated/thorchain/configuration.d.ts +83 -0
- package/dist/generated/thorchain/configuration.js +42 -0
- package/dist/generated/thorchain/index.d.ts +13 -0
- package/dist/generated/thorchain/index.js +31 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -3
- package/dist/types.d.ts +3 -3
- package/dist/utils.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cosmos/index.d.ts +0 -3
- package/dist/cosmos/parser/index.d.ts +0 -13
- package/dist/cosmos/parser/index.js +0 -71
- package/dist/cosmos/parser/utils.d.ts +0 -13
- package/dist/cosmos/parser/utils.js +0 -145
- package/dist/osmosis/index.d.ts +0 -1
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("../../generated/cosmos"), exports);
|
|
18
18
|
__exportStar(require("./parser"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Tx } from '../../../generated/cosmos';
|
|
2
|
+
import { BaseTransactionParser, BaseTransactionParserArgs } from '../../parser';
|
|
3
|
+
export declare type TransactionParserArgs = BaseTransactionParserArgs;
|
|
4
|
+
export declare class TransactionParser extends BaseTransactionParser<Tx> {
|
|
5
|
+
constructor(args: TransactionParserArgs);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionParser = void 0;
|
|
4
|
+
const caip_1 = require("@shapeshiftoss/caip");
|
|
5
|
+
const parser_1 = require("../../parser");
|
|
6
|
+
class TransactionParser extends parser_1.BaseTransactionParser {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super(args);
|
|
9
|
+
this.assetId = caip_1.cosmosAssetId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionParser = TransactionParser;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.thorchain = exports.osmosis = exports.cosmos = exports.types = void 0;
|
|
30
|
+
exports.types = __importStar(require("./types"));
|
|
31
|
+
__exportStar(require("./parser"), exports);
|
|
32
|
+
exports.cosmos = __importStar(require("./cosmos"));
|
|
33
|
+
exports.osmosis = __importStar(require("./osmosis"));
|
|
34
|
+
exports.thorchain = __importStar(require("./thorchain"));
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("../../generated/osmosis"), exports);
|
|
18
|
+
__exportStar(require("./parser"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Tx } from '../../../generated/osmosis';
|
|
2
|
+
import { BaseTransactionParser, BaseTransactionParserArgs } from '../../parser';
|
|
3
|
+
export declare type TransactionParserArgs = BaseTransactionParserArgs;
|
|
4
|
+
export declare class TransactionParser extends BaseTransactionParser<Tx> {
|
|
5
|
+
constructor(args: TransactionParserArgs);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionParser = void 0;
|
|
4
|
+
const caip_1 = require("@shapeshiftoss/caip");
|
|
5
|
+
const parser_1 = require("../../parser");
|
|
6
|
+
class TransactionParser extends parser_1.BaseTransactionParser {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super(args);
|
|
9
|
+
this.assetId = caip_1.osmosisAssetId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionParser = TransactionParser;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AssetId, ChainId } from '@shapeshiftoss/caip';
|
|
2
|
+
import { ParsedTx, Tx } from './types';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export interface BaseTransactionParserArgs {
|
|
5
|
+
chainId: ChainId;
|
|
6
|
+
}
|
|
7
|
+
export declare class BaseTransactionParser<T extends Tx> {
|
|
8
|
+
chainId: ChainId;
|
|
9
|
+
assetId: AssetId;
|
|
10
|
+
constructor(args: BaseTransactionParserArgs);
|
|
11
|
+
parse(tx: T, address: string): Promise<ParsedTx>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BaseTransactionParser = void 0;
|
|
18
|
+
const caip_1 = require("@shapeshiftoss/caip");
|
|
19
|
+
const logger_1 = require("@shapeshiftoss/logger");
|
|
20
|
+
const bignumber_js_1 = require("bignumber.js");
|
|
21
|
+
const types_1 = require("../../types");
|
|
22
|
+
const utils_1 = require("../../utils");
|
|
23
|
+
const utils_2 = require("./utils");
|
|
24
|
+
__exportStar(require("./types"), exports);
|
|
25
|
+
const logger = new logger_1.Logger({
|
|
26
|
+
namespace: ['unchained-client', 'cosmossdk', 'parser'],
|
|
27
|
+
level: process.env.LOG_LEVEL,
|
|
28
|
+
});
|
|
29
|
+
const assetIdByDenom = new Map([
|
|
30
|
+
['uatom', caip_1.cosmosAssetId],
|
|
31
|
+
['uosmo', caip_1.osmosisAssetId],
|
|
32
|
+
['rune', caip_1.thorchainAssetId],
|
|
33
|
+
]);
|
|
34
|
+
class BaseTransactionParser {
|
|
35
|
+
constructor(args) {
|
|
36
|
+
this.chainId = args.chainId;
|
|
37
|
+
}
|
|
38
|
+
async parse(tx, address) {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
const parsedTx = {
|
|
41
|
+
address,
|
|
42
|
+
blockHash: tx.blockHash,
|
|
43
|
+
blockHeight: (_a = tx.blockHeight) !== null && _a !== void 0 ? _a : -1,
|
|
44
|
+
blockTime: (_b = tx.timestamp) !== null && _b !== void 0 ? _b : Math.floor(Date.now() / 1000),
|
|
45
|
+
chainId: this.chainId,
|
|
46
|
+
confirmations: tx.confirmations,
|
|
47
|
+
status: tx.confirmations > 0 ? types_1.TxStatus.Confirmed : types_1.TxStatus.Pending,
|
|
48
|
+
transfers: [],
|
|
49
|
+
txid: tx.txid,
|
|
50
|
+
};
|
|
51
|
+
parsedTx.data = (0, utils_2.metaData)(tx.messages[0], this.assetId);
|
|
52
|
+
tx.messages.forEach(({ from = '', to = '', value, origin }) => {
|
|
53
|
+
var _a;
|
|
54
|
+
const amount = new bignumber_js_1.BigNumber((_a = value === null || value === void 0 ? void 0 : value.amount) !== null && _a !== void 0 ? _a : 0);
|
|
55
|
+
const assetId = (() => {
|
|
56
|
+
if (!(value === null || value === void 0 ? void 0 : value.denom))
|
|
57
|
+
return this.assetId;
|
|
58
|
+
if (assetIdByDenom.has(value.denom))
|
|
59
|
+
return assetIdByDenom.get(value.denom);
|
|
60
|
+
const [assetNamespace, assetReference] = value.denom.split('/');
|
|
61
|
+
if (assetNamespace === 'ibc' && assetReference) {
|
|
62
|
+
return (0, caip_1.toAssetId)({ chainId: this.chainId, assetNamespace, assetReference });
|
|
63
|
+
}
|
|
64
|
+
logger.warn(`unknown denom: ${value.denom}, defaulting to: ${this.assetId}`);
|
|
65
|
+
return this.assetId;
|
|
66
|
+
})();
|
|
67
|
+
if (from === address && amount.gt(0)) {
|
|
68
|
+
parsedTx.transfers = (0, utils_1.aggregateTransfer)(parsedTx.transfers, types_1.TransferType.Send, assetId, from, to, amount.toString(10));
|
|
69
|
+
}
|
|
70
|
+
if (to === address && amount.gt(0)) {
|
|
71
|
+
parsedTx.transfers = (0, utils_1.aggregateTransfer)(parsedTx.transfers, types_1.TransferType.Receive, assetId, from, to, amount.toString(10));
|
|
72
|
+
}
|
|
73
|
+
// We use origin for fees because some txs have a different from and origin addresses
|
|
74
|
+
if (origin === address) {
|
|
75
|
+
// network fee
|
|
76
|
+
const fees = new bignumber_js_1.BigNumber(tx.fee.amount);
|
|
77
|
+
if (fees.gt(0)) {
|
|
78
|
+
parsedTx.fee = { assetId: this.assetId, value: fees.toString(10) };
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return parsedTx;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.BaseTransactionParser = BaseTransactionParser;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { BaseTxMetadata, StandardTx } from '
|
|
1
|
+
import { BaseTxMetadata, StandardTx } from '../../types';
|
|
2
|
+
import * as cosmossdk from '../types';
|
|
3
|
+
export declare type Tx = cosmossdk.Tx;
|
|
2
4
|
export interface TxMetadata extends BaseTxMetadata {
|
|
3
5
|
parser: 'cosmos';
|
|
4
6
|
delegator?: string;
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.metaData = void 0;
|
|
4
|
+
const logger_1 = require("@shapeshiftoss/logger");
|
|
5
|
+
const logger = new logger_1.Logger({
|
|
6
|
+
namespace: ['unchained-client', 'cosmossdk', 'parser', 'utils'],
|
|
7
|
+
level: process.env.LOG_LEVEL,
|
|
8
|
+
});
|
|
9
|
+
// TODO: break out metadata by parser category to allow more explicit metadata types and pull out chain specific logic to appropriate chain parser
|
|
10
|
+
const metaData = (msg, assetId) => {
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
|
+
if (!msg)
|
|
13
|
+
return;
|
|
14
|
+
switch (msg.type) {
|
|
15
|
+
case 'delegate':
|
|
16
|
+
case 'begin_unbonding':
|
|
17
|
+
return {
|
|
18
|
+
parser: 'cosmos',
|
|
19
|
+
method: msg.type,
|
|
20
|
+
delegator: msg.from,
|
|
21
|
+
destinationValidator: msg.to,
|
|
22
|
+
value: (_a = msg === null || msg === void 0 ? void 0 : msg.value) === null || _a === void 0 ? void 0 : _a.amount,
|
|
23
|
+
};
|
|
24
|
+
case 'begin_redelegate':
|
|
25
|
+
return {
|
|
26
|
+
parser: 'cosmos',
|
|
27
|
+
method: msg.type,
|
|
28
|
+
sourceValidator: msg.from,
|
|
29
|
+
delegator: msg.origin,
|
|
30
|
+
destinationValidator: msg.to,
|
|
31
|
+
value: (_b = msg === null || msg === void 0 ? void 0 : msg.value) === null || _b === void 0 ? void 0 : _b.amount,
|
|
32
|
+
assetId,
|
|
33
|
+
};
|
|
34
|
+
case 'withdraw_delegator_reward':
|
|
35
|
+
return {
|
|
36
|
+
parser: 'cosmos',
|
|
37
|
+
method: msg.type,
|
|
38
|
+
destinationValidator: msg.to,
|
|
39
|
+
value: (_c = msg === null || msg === void 0 ? void 0 : msg.value) === null || _c === void 0 ? void 0 : _c.amount,
|
|
40
|
+
assetId,
|
|
41
|
+
};
|
|
42
|
+
case 'transfer':
|
|
43
|
+
case 'recv_packet':
|
|
44
|
+
return {
|
|
45
|
+
parser: 'cosmos',
|
|
46
|
+
method: 'ibc_transfer',
|
|
47
|
+
ibcDestination: msg.to,
|
|
48
|
+
ibcSource: msg.from,
|
|
49
|
+
assetId,
|
|
50
|
+
value: (_d = msg === null || msg === void 0 ? void 0 : msg.value) === null || _d === void 0 ? void 0 : _d.amount,
|
|
51
|
+
};
|
|
52
|
+
case 'swap_exact_amount_in':
|
|
53
|
+
// TODO: parse applicable metadata
|
|
54
|
+
return;
|
|
55
|
+
case 'send':
|
|
56
|
+
// known message types with no applicable metadata
|
|
57
|
+
return;
|
|
58
|
+
default:
|
|
59
|
+
logger.warn(`unsupported message type: ${msg.type}`);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
exports.metaData = metaData;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../../generated/thorchain"), exports);
|
|
18
|
+
__exportStar(require("./parser"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Tx } from '../../../generated/thorchain';
|
|
2
|
+
import { BaseTransactionParser, BaseTransactionParserArgs } from '../../parser';
|
|
3
|
+
export declare type TransactionParserArgs = BaseTransactionParserArgs;
|
|
4
|
+
export declare class TransactionParser extends BaseTransactionParser<Tx> {
|
|
5
|
+
constructor(args: TransactionParserArgs);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionParser = void 0;
|
|
4
|
+
const caip_1 = require("@shapeshiftoss/caip");
|
|
5
|
+
const parser_1 = require("../../parser");
|
|
6
|
+
class TransactionParser extends parser_1.BaseTransactionParser {
|
|
7
|
+
constructor(args) {
|
|
8
|
+
super(args);
|
|
9
|
+
this.assetId = caip_1.thorchainAssetId;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionParser = TransactionParser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CosmosSDKAccount as Account, Tx, CosmosSDKInfo as Info, Validator, Event, Message, } from '../generated/cosmos';
|
|
@@ -19,7 +19,7 @@ export declare class BaseTransactionParser<T extends Tx> {
|
|
|
19
19
|
* _parsers should be registered from most generic first to most specific last_
|
|
20
20
|
*/
|
|
21
21
|
registerParser(parser: SubParser<T>): void;
|
|
22
|
-
protected registerParsers(parsers:
|
|
22
|
+
protected registerParsers(parsers: SubParser<T>[]): void;
|
|
23
23
|
parse(tx: T, address: string): Promise<ParsedTx>;
|
|
24
24
|
private getStatus;
|
|
25
25
|
private getParsedTxWithTransfers;
|
|
@@ -179,13 +179,13 @@ export interface BaseTx {
|
|
|
179
179
|
* @type {number}
|
|
180
180
|
* @memberof BaseTx
|
|
181
181
|
*/
|
|
182
|
-
'blockHeight'
|
|
182
|
+
'blockHeight': number;
|
|
183
183
|
/**
|
|
184
184
|
*
|
|
185
185
|
* @type {number}
|
|
186
186
|
* @memberof BaseTx
|
|
187
187
|
*/
|
|
188
|
-
'timestamp'
|
|
188
|
+
'timestamp': number;
|
|
189
189
|
/**
|
|
190
190
|
*
|
|
191
191
|
* @type {string}
|
|
@@ -648,13 +648,13 @@ export interface Tx {
|
|
|
648
648
|
* @type {number}
|
|
649
649
|
* @memberof Tx
|
|
650
650
|
*/
|
|
651
|
-
'blockHeight'
|
|
651
|
+
'blockHeight': number;
|
|
652
652
|
/**
|
|
653
653
|
*
|
|
654
654
|
* @type {number}
|
|
655
655
|
* @memberof Tx
|
|
656
656
|
*/
|
|
657
|
-
'timestamp'
|
|
657
|
+
'timestamp': number;
|
|
658
658
|
/**
|
|
659
659
|
*
|
|
660
660
|
* @type {string}
|
|
@@ -668,12 +668,16 @@ export interface Tx {
|
|
|
668
668
|
*/
|
|
669
669
|
'confirmations': number;
|
|
670
670
|
/**
|
|
671
|
-
* Contains info about
|
|
672
|
-
* @type {{ [key: string]:
|
|
671
|
+
* Contains info about transaction events keyed by message index
|
|
672
|
+
* @type {{ [key: string]: { [key: string]: { [key: string]: string; }; }; }}
|
|
673
673
|
* @memberof Tx
|
|
674
674
|
*/
|
|
675
675
|
'events': {
|
|
676
|
-
[key: string]:
|
|
676
|
+
[key: string]: {
|
|
677
|
+
[key: string]: {
|
|
678
|
+
[key: string]: string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
677
681
|
};
|
|
678
682
|
/**
|
|
679
683
|
*
|
|
@@ -731,12 +735,16 @@ export interface TxAllOf {
|
|
|
731
735
|
*/
|
|
732
736
|
'confirmations': number;
|
|
733
737
|
/**
|
|
734
|
-
* Contains info about
|
|
735
|
-
* @type {{ [key: string]:
|
|
738
|
+
* Contains info about transaction events keyed by message index
|
|
739
|
+
* @type {{ [key: string]: { [key: string]: { [key: string]: string; }; }; }}
|
|
736
740
|
* @memberof TxAllOf
|
|
737
741
|
*/
|
|
738
742
|
'events': {
|
|
739
|
-
[key: string]:
|
|
743
|
+
[key: string]: {
|
|
744
|
+
[key: string]: {
|
|
745
|
+
[key: string]: string;
|
|
746
|
+
};
|
|
747
|
+
};
|
|
740
748
|
};
|
|
741
749
|
/**
|
|
742
750
|
*
|
|
@@ -179,13 +179,13 @@ export interface BaseTx {
|
|
|
179
179
|
* @type {number}
|
|
180
180
|
* @memberof BaseTx
|
|
181
181
|
*/
|
|
182
|
-
'blockHeight'
|
|
182
|
+
'blockHeight': number;
|
|
183
183
|
/**
|
|
184
184
|
*
|
|
185
185
|
* @type {number}
|
|
186
186
|
* @memberof BaseTx
|
|
187
187
|
*/
|
|
188
|
-
'timestamp'
|
|
188
|
+
'timestamp': number;
|
|
189
189
|
/**
|
|
190
190
|
*
|
|
191
191
|
* @type {string}
|
|
@@ -600,13 +600,13 @@ export interface Tx {
|
|
|
600
600
|
* @type {number}
|
|
601
601
|
* @memberof Tx
|
|
602
602
|
*/
|
|
603
|
-
'blockHeight'
|
|
603
|
+
'blockHeight': number;
|
|
604
604
|
/**
|
|
605
605
|
*
|
|
606
606
|
* @type {number}
|
|
607
607
|
* @memberof Tx
|
|
608
608
|
*/
|
|
609
|
-
'timestamp'
|
|
609
|
+
'timestamp': number;
|
|
610
610
|
/**
|
|
611
611
|
*
|
|
612
612
|
* @type {string}
|
|
@@ -620,12 +620,16 @@ export interface Tx {
|
|
|
620
620
|
*/
|
|
621
621
|
'confirmations': number;
|
|
622
622
|
/**
|
|
623
|
-
* Contains info about
|
|
624
|
-
* @type {{ [key: string]:
|
|
623
|
+
* Contains info about transaction events keyed by message index
|
|
624
|
+
* @type {{ [key: string]: { [key: string]: { [key: string]: string; }; }; }}
|
|
625
625
|
* @memberof Tx
|
|
626
626
|
*/
|
|
627
627
|
'events': {
|
|
628
|
-
[key: string]:
|
|
628
|
+
[key: string]: {
|
|
629
|
+
[key: string]: {
|
|
630
|
+
[key: string]: string;
|
|
631
|
+
};
|
|
632
|
+
};
|
|
629
633
|
};
|
|
630
634
|
/**
|
|
631
635
|
*
|
|
@@ -683,12 +687,16 @@ export interface TxAllOf {
|
|
|
683
687
|
*/
|
|
684
688
|
'confirmations': number;
|
|
685
689
|
/**
|
|
686
|
-
* Contains info about
|
|
687
|
-
* @type {{ [key: string]:
|
|
690
|
+
* Contains info about transaction events keyed by message index
|
|
691
|
+
* @type {{ [key: string]: { [key: string]: { [key: string]: string; }; }; }}
|
|
688
692
|
* @memberof TxAllOf
|
|
689
693
|
*/
|
|
690
694
|
'events': {
|
|
691
|
-
[key: string]:
|
|
695
|
+
[key: string]: {
|
|
696
|
+
[key: string]: {
|
|
697
|
+
[key: string]: string;
|
|
698
|
+
};
|
|
699
|
+
};
|
|
692
700
|
};
|
|
693
701
|
/**
|
|
694
702
|
*
|