envio 3.10.0-subgraph → 3.11.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/evm.schema.json +21 -4
- package/fuel.schema.json +21 -4
- package/index.d.ts +1 -1
- package/package.json +6 -6
- package/src/ChainState.res +9 -73
- package/src/ChainState.res.mjs +6 -58
- package/src/Config.res +73 -27
- package/src/Config.res.mjs +71 -21
- package/src/Core.res +0 -15
- package/src/Core.res.mjs +0 -11
- package/src/EventConfigBuilder.res +14 -10
- package/src/EventConfigBuilder.res.mjs +6 -4
- package/src/EventProcessing.res +6 -6
- package/src/EventProcessing.res.mjs +6 -8
- package/src/HandlerLoader.res +8 -20
- package/src/HandlerLoader.res.mjs +2 -11
- package/src/HandlerRegister.res +12 -11
- package/src/HandlerRegister.res.mjs +6 -5
- package/src/Internal.res +20 -4
- package/src/Internal.res.mjs +9 -0
- package/src/Main.res +8 -1
- package/src/Main.res.mjs +3 -3
- package/src/Persistence.res +11 -1
- package/src/Persistence.res.mjs +6 -2
- package/src/PgStorage.res +1 -1
- package/src/PgStorage.res.mjs +1 -1
- package/src/SimulateItems.res +13 -6
- package/src/SimulateItems.res.mjs +7 -6
- package/src/TestIndexer.res +6 -5
- package/src/TestIndexer.res.mjs +5 -4
- package/src/UserContext.res +51 -358
- package/src/UserContext.res.mjs +35 -271
- package/src/db/InternalTable.res +1 -1
- package/src/db/InternalTable.res.mjs +2 -1
- package/src/sources/ChainSources.res +72 -0
- package/src/sources/ChainSources.res.mjs +55 -0
- package/src/sources/EvmHyperSyncSource.res +10 -22
- package/src/sources/EvmHyperSyncSource.res.mjs +9 -41
- package/src/sources/FuelHyperSyncSource.res +10 -18
- package/src/sources/FuelHyperSyncSource.res.mjs +8 -38
- package/src/sources/HyperSync.res +31 -0
- package/src/sources/HyperSync.res.mjs +31 -0
- package/src/sources/HyperSync.resi +16 -0
- package/src/sources/StartBlockResolver.res +173 -0
- package/src/sources/StartBlockResolver.res.mjs +134 -0
- package/src/sources/Svm.res +0 -51
- package/src/sources/Svm.res.mjs +0 -46
- package/src/sources/SvmHyperSyncSource.res +20 -9
- package/src/sources/SvmHyperSyncSource.res.mjs +34 -12
- package/svm.schema.json +78 -63
- package/src/subgraph/blocks.ts +0 -176
- package/src/subgraph/calls.ts +0 -217
- package/src/subgraph/conformance.ts +0 -102
- package/src/subgraph/division.ts +0 -133
- package/src/subgraph/errors.ts +0 -90
- package/src/subgraph/graph-ts-types/VERSION +0 -2
- package/src/subgraph/graph-ts-types/chain/arweave.d.ts +0 -70
- package/src/subgraph/graph-ts-types/chain/cosmos.d.ts +0 -327
- package/src/subgraph/graph-ts-types/chain/ethereum.d.ts +0 -233
- package/src/subgraph/graph-ts-types/chain/near.d.ts +0 -253
- package/src/subgraph/graph-ts-types/chain/starknet.d.ts +0 -32
- package/src/subgraph/graph-ts-types/common/collections.d.ts +0 -136
- package/src/subgraph/graph-ts-types/common/conversion.d.ts +0 -11
- package/src/subgraph/graph-ts-types/common/datasource.d.ts +0 -30
- package/src/subgraph/graph-ts-types/common/eager-offset.d.ts +0 -0
- package/src/subgraph/graph-ts-types/common/json.d.ts +0 -17
- package/src/subgraph/graph-ts-types/common/numbers.d.ts +0 -120
- package/src/subgraph/graph-ts-types/common/value.d.ts +0 -120
- package/src/subgraph/graph-ts-types/common/yaml.d.ts +0 -90
- package/src/subgraph/graph-ts-types/global/global.d.ts +0 -194
- package/src/subgraph/graph-ts-types/helper-functions.d.ts +0 -22
- package/src/subgraph/graph-ts-types/index.d.ts +0 -102
- package/src/subgraph/graph-ts.ts +0 -1948
- package/src/subgraph/hosts.ts +0 -148
- package/src/subgraph/runtime.ts +0 -863
- package/src/subgraph/scope.ts +0 -66
package/src/subgraph/errors.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
const ISSUES_URL = "https://github.com/enviodev/hyperindex/issues";
|
|
2
|
-
|
|
3
|
-
/** A feature we recognise and deliberately don't implement. */
|
|
4
|
-
export function unsupported(feature: string, location: string): Error {
|
|
5
|
-
return new Error(
|
|
6
|
-
`Envio Subgraph doesn't support ${feature} yet.\n` +
|
|
7
|
-
` Found in ${location}.\n` +
|
|
8
|
-
`First, make sure you're on the latest envio version — support may have landed:\n` +
|
|
9
|
-
` pnpm add -D envio@latest\n` +
|
|
10
|
-
`If you're up to date and need this feature, please open an issue (existing\n` +
|
|
11
|
-
`issues welcome a 👍 — demand drives prioritization):\n ${ISSUES_URL}`,
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/** Something we don't recognise at all: newer than us, or a typo. */
|
|
16
|
-
export function unknown(thing: string, location: string): Error {
|
|
17
|
-
return new Error(
|
|
18
|
-
`Envio Subgraph doesn't know ${thing}.\n` +
|
|
19
|
-
` Found in ${location}.\n` +
|
|
20
|
-
`This may be a feature newer than this envio version understands, or a typo.\n` +
|
|
21
|
-
`First, make sure you're on the latest envio version:\n` +
|
|
22
|
-
` pnpm add -D envio@latest\n` +
|
|
23
|
-
`If you're up to date and this is a real subgraph feature, please open an\n` +
|
|
24
|
-
`issue so we can add it: ${ISSUES_URL}`,
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const RPC_ENV_VAR = "ENVIO_SUBGRAPH_RPC";
|
|
29
|
-
|
|
30
|
-
/** §6b: contract calls need an endpoint HyperSync and HyperRPC don't serve. */
|
|
31
|
-
export function missingRpcMessage(callSite: string): string {
|
|
32
|
-
return (
|
|
33
|
-
`This subgraph performs contract calls (${callSite}), which need an\n` +
|
|
34
|
-
`RPC endpoint — HyperSync and HyperRPC serve logs and blocks, not eth_call.\n` +
|
|
35
|
-
`Set one in .env or the environment:\n` +
|
|
36
|
-
` ${RPC_ENV_VAR}=https://...\n` +
|
|
37
|
-
`Advanced (matches envio's rpc config; single entry or array):\n` +
|
|
38
|
-
` ${RPC_ENV_VAR}={"url":"https://...","for":"fallback","headers":{...}}`
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Names a trap must answer for rather than refuse. AS-compiled mappings never
|
|
44
|
-
* feature-detect, so nothing legitimate reaches these — but `console.log`,
|
|
45
|
-
* `await` and `JSON.stringify` do, and they must not explode.
|
|
46
|
-
*/
|
|
47
|
-
const PASSTHROUGH = new Set([
|
|
48
|
-
"then",
|
|
49
|
-
"toJSON",
|
|
50
|
-
"constructor",
|
|
51
|
-
"valueOf",
|
|
52
|
-
"toString",
|
|
53
|
-
"inspect",
|
|
54
|
-
"nodeType",
|
|
55
|
-
"$$typeof",
|
|
56
|
-
"@@__IMMUTABLE_ITERABLE__@@",
|
|
57
|
-
]);
|
|
58
|
-
|
|
59
|
-
function isPassthrough(prop: PropertyKey): boolean {
|
|
60
|
-
return typeof prop === "symbol" || PASSTHROUGH.has(prop as string);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export const PROTOTYPE_PASSTHROUGH = PASSTHROUGH;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Full Proxy for a graph-ts namespace object. Future graph-ts APIs are
|
|
67
|
-
* unenumerable, so only a `get` trap can catch them; these are cold paths, so
|
|
68
|
-
* the trap cost doesn't matter.
|
|
69
|
-
*/
|
|
70
|
-
export function strictNamespace<T extends object>(name: string, target: T): T {
|
|
71
|
-
return new Proxy(target, {
|
|
72
|
-
get(target, prop, receiver) {
|
|
73
|
-
if (prop in target || isPassthrough(prop)) {
|
|
74
|
-
return Reflect.get(target, prop, receiver);
|
|
75
|
-
}
|
|
76
|
-
throw unknown(`the graph-ts API ${name}.${String(prop)}`, `a mapping handler`);
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** A known-but-refused field: enumerable, so a plain throwing getter is enough. */
|
|
82
|
-
export function refusedGetter(object: object, prop: string, feature: string, location: string) {
|
|
83
|
-
Object.defineProperty(object, prop, {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
configurable: true,
|
|
86
|
-
get() {
|
|
87
|
-
throw unsupported(feature, location);
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import '../common/eager-offset';
|
|
2
|
-
import { Bytes } from '../common/collections';
|
|
3
|
-
export declare namespace arweave {
|
|
4
|
-
/**
|
|
5
|
-
* A key-value pair for arbitrary metadata
|
|
6
|
-
*/
|
|
7
|
-
class Tag {
|
|
8
|
-
name: Bytes;
|
|
9
|
-
value: Bytes;
|
|
10
|
-
constructor(name: Bytes, value: Bytes);
|
|
11
|
-
}
|
|
12
|
-
class ProofOfAccess {
|
|
13
|
-
option: string;
|
|
14
|
-
txPath: Bytes;
|
|
15
|
-
dataPath: Bytes;
|
|
16
|
-
chunk: Bytes;
|
|
17
|
-
constructor(option: string, txPath: Bytes, dataPath: Bytes, chunk: Bytes);
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* An Arweave block.
|
|
21
|
-
*/
|
|
22
|
-
class Block {
|
|
23
|
-
timestamp: bigint;
|
|
24
|
-
lastRetarget: bigint;
|
|
25
|
-
height: bigint;
|
|
26
|
-
indepHash: Bytes;
|
|
27
|
-
nonce: Bytes;
|
|
28
|
-
previousBlock: Bytes;
|
|
29
|
-
diff: Bytes;
|
|
30
|
-
hash: Bytes;
|
|
31
|
-
txRoot: Bytes;
|
|
32
|
-
txs: Bytes[];
|
|
33
|
-
walletList: Bytes;
|
|
34
|
-
rewardAddr: Bytes;
|
|
35
|
-
tags: Tag[];
|
|
36
|
-
rewardPool: Bytes;
|
|
37
|
-
weaveSize: Bytes;
|
|
38
|
-
blockSize: Bytes;
|
|
39
|
-
cumulativeDiff: Bytes;
|
|
40
|
-
hashListMerkle: Bytes;
|
|
41
|
-
poa: ProofOfAccess;
|
|
42
|
-
constructor(timestamp: bigint, lastRetarget: bigint, height: bigint, indepHash: Bytes, nonce: Bytes, previousBlock: Bytes, diff: Bytes, hash: Bytes, txRoot: Bytes, txs: Bytes[], walletList: Bytes, rewardAddr: Bytes, tags: Tag[], rewardPool: Bytes, weaveSize: Bytes, blockSize: Bytes, cumulativeDiff: Bytes, hashListMerkle: Bytes, poa: ProofOfAccess);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* An Arweave transaction
|
|
46
|
-
*/
|
|
47
|
-
class Transaction {
|
|
48
|
-
format: number;
|
|
49
|
-
id: Bytes;
|
|
50
|
-
lastTx: Bytes;
|
|
51
|
-
owner: Bytes;
|
|
52
|
-
tags: Tag[];
|
|
53
|
-
target: Bytes;
|
|
54
|
-
quantity: Bytes;
|
|
55
|
-
data: Bytes;
|
|
56
|
-
dataSize: Bytes;
|
|
57
|
-
dataRoot: Bytes;
|
|
58
|
-
signature: Bytes;
|
|
59
|
-
reward: Bytes;
|
|
60
|
-
constructor(format: number, id: Bytes, lastTx: Bytes, owner: Bytes, tags: Tag[], target: Bytes, quantity: Bytes, data: Bytes, dataSize: Bytes, dataRoot: Bytes, signature: Bytes, reward: Bytes);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* An Arweave transaction with block ptr
|
|
64
|
-
*/
|
|
65
|
-
class TransactionWithBlockPtr {
|
|
66
|
-
tx: Transaction;
|
|
67
|
-
block: Block;
|
|
68
|
-
constructor(tx: Transaction, block: Block);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
import '../common/eager-offset';
|
|
2
|
-
import { Bytes } from '../common/collections';
|
|
3
|
-
export declare namespace cosmos {
|
|
4
|
-
class Block {
|
|
5
|
-
header: Header;
|
|
6
|
-
evidence: EvidenceList;
|
|
7
|
-
lastCommit: Commit;
|
|
8
|
-
resultBeginBlock: ResponseBeginBlock;
|
|
9
|
-
resultEndBlock: ResponseEndBlock;
|
|
10
|
-
transactions: Array<TxResult>;
|
|
11
|
-
validatorUpdates: Array<Validator>;
|
|
12
|
-
constructor(header: Header, evidence: EvidenceList, lastCommit: Commit, resultBeginBlock: ResponseBeginBlock, resultEndBlock: ResponseEndBlock, transactions: Array<TxResult>, validatorUpdates: Array<Validator>);
|
|
13
|
-
}
|
|
14
|
-
class HeaderOnlyBlock {
|
|
15
|
-
header: Header;
|
|
16
|
-
constructor(header: Header);
|
|
17
|
-
}
|
|
18
|
-
class EventData {
|
|
19
|
-
event: Event;
|
|
20
|
-
block: HeaderOnlyBlock;
|
|
21
|
-
tx: TransactionContext;
|
|
22
|
-
constructor(event: Event, block: HeaderOnlyBlock, tx: TransactionContext);
|
|
23
|
-
}
|
|
24
|
-
class TransactionData {
|
|
25
|
-
tx: TxResult;
|
|
26
|
-
block: HeaderOnlyBlock;
|
|
27
|
-
constructor(tx: TxResult, block: HeaderOnlyBlock);
|
|
28
|
-
}
|
|
29
|
-
class MessageData {
|
|
30
|
-
message: Any;
|
|
31
|
-
block: HeaderOnlyBlock;
|
|
32
|
-
tx: TransactionContext;
|
|
33
|
-
constructor(message: Any, block: HeaderOnlyBlock, tx: TransactionContext);
|
|
34
|
-
}
|
|
35
|
-
class TransactionContext {
|
|
36
|
-
hash: Bytes;
|
|
37
|
-
index: number;
|
|
38
|
-
code: number;
|
|
39
|
-
gasWanted: bigint;
|
|
40
|
-
gasUsed: bigint;
|
|
41
|
-
constructor(hash: Bytes, index: number, code: number, gasWanted: bigint, gasUsed: bigint);
|
|
42
|
-
}
|
|
43
|
-
class Header {
|
|
44
|
-
version: Consensus;
|
|
45
|
-
chainId: string;
|
|
46
|
-
height: bigint;
|
|
47
|
-
time: Timestamp;
|
|
48
|
-
lastBlockId: BlockID;
|
|
49
|
-
lastCommitHash: Bytes;
|
|
50
|
-
dataHash: Bytes;
|
|
51
|
-
validatorsHash: Bytes;
|
|
52
|
-
nextValidatorsHash: Bytes;
|
|
53
|
-
consensusHash: Bytes;
|
|
54
|
-
appHash: Bytes;
|
|
55
|
-
lastResultsHash: Bytes;
|
|
56
|
-
evidenceHash: Bytes;
|
|
57
|
-
proposerAddress: Bytes;
|
|
58
|
-
hash: Bytes;
|
|
59
|
-
constructor(version: Consensus, chainId: string, height: bigint, time: Timestamp, lastBlockId: BlockID, lastCommitHash: Bytes, dataHash: Bytes, validatorsHash: Bytes, nextValidatorsHash: Bytes, consensusHash: Bytes, appHash: Bytes, lastResultsHash: Bytes, evidenceHash: Bytes, proposerAddress: Bytes, hash: Bytes);
|
|
60
|
-
}
|
|
61
|
-
class Consensus {
|
|
62
|
-
block: bigint;
|
|
63
|
-
app: bigint;
|
|
64
|
-
constructor(block: bigint, app: bigint);
|
|
65
|
-
}
|
|
66
|
-
class Timestamp {
|
|
67
|
-
seconds: bigint;
|
|
68
|
-
nanos: number;
|
|
69
|
-
constructor(seconds: bigint, nanos: number);
|
|
70
|
-
}
|
|
71
|
-
class BlockID {
|
|
72
|
-
hash: Bytes;
|
|
73
|
-
partSetHeader: PartSetHeader;
|
|
74
|
-
constructor(hash: Bytes, partSetHeader: PartSetHeader);
|
|
75
|
-
}
|
|
76
|
-
class PartSetHeader {
|
|
77
|
-
total: number;
|
|
78
|
-
hash: Bytes;
|
|
79
|
-
constructor(total: number, hash: Bytes);
|
|
80
|
-
}
|
|
81
|
-
class EvidenceList {
|
|
82
|
-
evidence: Array<Evidence>;
|
|
83
|
-
constructor(evidence: Array<Evidence>);
|
|
84
|
-
}
|
|
85
|
-
class Evidence {
|
|
86
|
-
duplicateVoteEvidence: DuplicateVoteEvidence;
|
|
87
|
-
lightClientAttackEvidence: LightClientAttackEvidence;
|
|
88
|
-
constructor(duplicateVoteEvidence: DuplicateVoteEvidence, lightClientAttackEvidence: LightClientAttackEvidence);
|
|
89
|
-
}
|
|
90
|
-
class DuplicateVoteEvidence {
|
|
91
|
-
voteA: EventVote;
|
|
92
|
-
voteB: EventVote;
|
|
93
|
-
totalVotingPower: bigint;
|
|
94
|
-
validatorPower: bigint;
|
|
95
|
-
timestamp: Timestamp;
|
|
96
|
-
constructor(voteA: EventVote, voteB: EventVote, totalVotingPower: bigint, validatorPower: bigint, timestamp: Timestamp);
|
|
97
|
-
}
|
|
98
|
-
class EventVote {
|
|
99
|
-
eventVoteType: SignedMsgType;
|
|
100
|
-
height: bigint;
|
|
101
|
-
round: number;
|
|
102
|
-
blockId: BlockID;
|
|
103
|
-
timestamp: Timestamp;
|
|
104
|
-
validatorAddress: Bytes;
|
|
105
|
-
validatorIndex: number;
|
|
106
|
-
signature: Bytes;
|
|
107
|
-
constructor(eventVoteType: SignedMsgType, height: bigint, round: number, blockId: BlockID, timestamp: Timestamp, validatorAddress: Bytes, validatorIndex: number, signature: Bytes);
|
|
108
|
-
}
|
|
109
|
-
enum SignedMsgType {
|
|
110
|
-
SIGNED_MSG_TYPE_UNKNOWN = 0,
|
|
111
|
-
SIGNED_MSG_TYPE_PREVOTE = 1,
|
|
112
|
-
SIGNED_MSG_TYPE_PRECOMMIT = 2,
|
|
113
|
-
SIGNED_MSG_TYPE_PROPOSAL = 32
|
|
114
|
-
}
|
|
115
|
-
class LightClientAttackEvidence {
|
|
116
|
-
conflictingBlock: LightBlock;
|
|
117
|
-
commonHeight: bigint;
|
|
118
|
-
byzantineValidators: Array<Validator>;
|
|
119
|
-
totalVotingPower: bigint;
|
|
120
|
-
timestamp: Timestamp;
|
|
121
|
-
constructor(conflictingBlock: LightBlock, commonHeight: bigint, byzantineValidators: Array<Validator>, totalVotingPower: bigint, timestamp: Timestamp);
|
|
122
|
-
}
|
|
123
|
-
class LightBlock {
|
|
124
|
-
signedHeader: SignedHeader;
|
|
125
|
-
validatorSet: ValidatorSet;
|
|
126
|
-
constructor(signedHeader: SignedHeader, validatorSet: ValidatorSet);
|
|
127
|
-
}
|
|
128
|
-
class SignedHeader {
|
|
129
|
-
header: Header;
|
|
130
|
-
commit: Commit;
|
|
131
|
-
constructor(header: Header, commit: Commit);
|
|
132
|
-
}
|
|
133
|
-
class Commit {
|
|
134
|
-
height: bigint;
|
|
135
|
-
round: number;
|
|
136
|
-
blockId: BlockID;
|
|
137
|
-
signatures: Array<CommitSig>;
|
|
138
|
-
constructor(height: bigint, round: number, blockId: BlockID, signatures: Array<CommitSig>);
|
|
139
|
-
}
|
|
140
|
-
class CommitSig {
|
|
141
|
-
blockIdFlag: BlockIDFlag;
|
|
142
|
-
validatorAddress: Bytes;
|
|
143
|
-
timestamp: Timestamp;
|
|
144
|
-
signature: Bytes;
|
|
145
|
-
constructor(blockIdFlag: BlockIDFlag, validatorAddress: Bytes, timestamp: Timestamp, signature: Bytes);
|
|
146
|
-
}
|
|
147
|
-
enum BlockIDFlag {
|
|
148
|
-
BLOCK_ID_FLAG_UNKNOWN = 0,
|
|
149
|
-
BLOCK_ID_FLAG_ABSENT = 1,
|
|
150
|
-
BLOCK_ID_FLAG_COMMIT = 2,
|
|
151
|
-
BLOCK_ID_FLAG_NIL = 3
|
|
152
|
-
}
|
|
153
|
-
class ValidatorSet {
|
|
154
|
-
validators: Array<Validator>;
|
|
155
|
-
proposer: Validator;
|
|
156
|
-
totalVotingPower: bigint;
|
|
157
|
-
constructor(validators: Array<Validator>, proposer: Validator, totalVotingPower: bigint);
|
|
158
|
-
}
|
|
159
|
-
class Validator {
|
|
160
|
-
address: Bytes;
|
|
161
|
-
pubKey: PublicKey;
|
|
162
|
-
votingPower: bigint;
|
|
163
|
-
proposerPriority: bigint;
|
|
164
|
-
constructor(address: Bytes, pubKey: PublicKey, votingPower: bigint, proposerPriority: bigint);
|
|
165
|
-
}
|
|
166
|
-
class PublicKey {
|
|
167
|
-
ed25519: Bytes;
|
|
168
|
-
secp256k1: Bytes;
|
|
169
|
-
constructor(ed25519: Bytes, secp256k1: Bytes);
|
|
170
|
-
}
|
|
171
|
-
class ResponseBeginBlock {
|
|
172
|
-
events: Array<Event>;
|
|
173
|
-
constructor(events: Array<Event>);
|
|
174
|
-
}
|
|
175
|
-
class Event {
|
|
176
|
-
eventType: string;
|
|
177
|
-
attributes: Array<EventAttribute>;
|
|
178
|
-
constructor(eventType: string, attributes: Array<EventAttribute>);
|
|
179
|
-
getAttribute(key: string): EventAttribute | null;
|
|
180
|
-
getAttributeValue(key: string): string;
|
|
181
|
-
}
|
|
182
|
-
class EventAttribute {
|
|
183
|
-
key: string;
|
|
184
|
-
value: string;
|
|
185
|
-
index: boolean;
|
|
186
|
-
constructor(key: string, value: string, index: boolean);
|
|
187
|
-
}
|
|
188
|
-
class ResponseEndBlock {
|
|
189
|
-
validatorUpdates: Array<ValidatorUpdate>;
|
|
190
|
-
consensusParamUpdates: ConsensusParams;
|
|
191
|
-
events: Array<Event>;
|
|
192
|
-
constructor(validatorUpdates: Array<ValidatorUpdate>, consensusParamUpdates: ConsensusParams, events: Array<Event>);
|
|
193
|
-
}
|
|
194
|
-
class ValidatorUpdate {
|
|
195
|
-
address: Bytes;
|
|
196
|
-
pubKey: PublicKey;
|
|
197
|
-
power: bigint;
|
|
198
|
-
constructor(address: Bytes, pubKey: PublicKey, power: bigint);
|
|
199
|
-
}
|
|
200
|
-
class ConsensusParams {
|
|
201
|
-
block: BlockParams;
|
|
202
|
-
evidence: EvidenceParams;
|
|
203
|
-
validator: ValidatorParams;
|
|
204
|
-
version: VersionParams;
|
|
205
|
-
constructor(block: BlockParams, evidence: EvidenceParams, validator: ValidatorParams, version: VersionParams);
|
|
206
|
-
}
|
|
207
|
-
class BlockParams {
|
|
208
|
-
maxBytes: bigint;
|
|
209
|
-
maxGas: bigint;
|
|
210
|
-
constructor(maxBytes: bigint, maxGas: bigint);
|
|
211
|
-
}
|
|
212
|
-
class EvidenceParams {
|
|
213
|
-
maxAgeNumBlocks: bigint;
|
|
214
|
-
maxAgeDuration: Duration;
|
|
215
|
-
maxBytes: bigint;
|
|
216
|
-
constructor(maxAgeNumBlocks: bigint, maxAgeDuration: Duration, maxBytes: bigint);
|
|
217
|
-
}
|
|
218
|
-
class Duration {
|
|
219
|
-
seconds: bigint;
|
|
220
|
-
nanos: number;
|
|
221
|
-
constructor(seconds: bigint, nanos: number);
|
|
222
|
-
}
|
|
223
|
-
class ValidatorParams {
|
|
224
|
-
pubKeyTypes: Array<string>;
|
|
225
|
-
constructor(pubKeyTypes: Array<string>);
|
|
226
|
-
}
|
|
227
|
-
class VersionParams {
|
|
228
|
-
appVersion: bigint;
|
|
229
|
-
constructor(appVersion: bigint);
|
|
230
|
-
}
|
|
231
|
-
class TxResult {
|
|
232
|
-
height: bigint;
|
|
233
|
-
index: number;
|
|
234
|
-
tx: Tx;
|
|
235
|
-
result: ResponseDeliverTx;
|
|
236
|
-
hash: Bytes;
|
|
237
|
-
constructor(height: bigint, index: number, tx: Tx, result: ResponseDeliverTx, hash: Bytes);
|
|
238
|
-
}
|
|
239
|
-
class Tx {
|
|
240
|
-
body: TxBody;
|
|
241
|
-
authInfo: AuthInfo;
|
|
242
|
-
signatures: Array<Bytes>;
|
|
243
|
-
constructor(body: TxBody, authInfo: AuthInfo, signatures: Array<Bytes>);
|
|
244
|
-
}
|
|
245
|
-
class TxBody {
|
|
246
|
-
messages: Array<Any>;
|
|
247
|
-
memo: string;
|
|
248
|
-
timeoutHeight: bigint;
|
|
249
|
-
extensionOptions: Array<Any>;
|
|
250
|
-
nonCriticalExtensionOptions: Array<Any>;
|
|
251
|
-
constructor(messages: Array<Any>, memo: string, timeoutHeight: bigint, extensionOptions: Array<Any>, nonCriticalExtensionOptions: Array<Any>);
|
|
252
|
-
}
|
|
253
|
-
class Any {
|
|
254
|
-
typeUrl: string;
|
|
255
|
-
value: Bytes;
|
|
256
|
-
constructor(typeUrl: string, value: Bytes);
|
|
257
|
-
}
|
|
258
|
-
class AuthInfo {
|
|
259
|
-
signerInfos: Array<SignerInfo>;
|
|
260
|
-
fee: Fee;
|
|
261
|
-
tip: Tip;
|
|
262
|
-
constructor(signerInfos: Array<SignerInfo>, fee: Fee, tip: Tip);
|
|
263
|
-
}
|
|
264
|
-
class SignerInfo {
|
|
265
|
-
publicKey: Any;
|
|
266
|
-
modeInfo: ModeInfo;
|
|
267
|
-
sequence: bigint;
|
|
268
|
-
constructor(publicKey: Any, modeInfo: ModeInfo, sequence: bigint);
|
|
269
|
-
}
|
|
270
|
-
class ModeInfo {
|
|
271
|
-
single: ModeInfoSingle;
|
|
272
|
-
multi: ModeInfoMulti;
|
|
273
|
-
constructor(single: ModeInfoSingle, multi: ModeInfoMulti);
|
|
274
|
-
}
|
|
275
|
-
class ModeInfoSingle {
|
|
276
|
-
mode: SignMode;
|
|
277
|
-
constructor(mode: SignMode);
|
|
278
|
-
}
|
|
279
|
-
enum SignMode {
|
|
280
|
-
SIGN_MODE_UNSPECIFIED = 0,
|
|
281
|
-
SIGN_MODE_DIRECT = 1,
|
|
282
|
-
SIGN_MODE_TEXTUAL = 2,
|
|
283
|
-
SIGN_MODE_LEGACY_AMINO_JSON = 127
|
|
284
|
-
}
|
|
285
|
-
class ModeInfoMulti {
|
|
286
|
-
bitarray: CompactBitArray;
|
|
287
|
-
modeInfos: Array<ModeInfo>;
|
|
288
|
-
constructor(bitarray: CompactBitArray, modeInfos: Array<ModeInfo>);
|
|
289
|
-
}
|
|
290
|
-
class CompactBitArray {
|
|
291
|
-
extraBitsStored: number;
|
|
292
|
-
elems: Bytes;
|
|
293
|
-
constructor(extraBitsStored: number, elems: Bytes);
|
|
294
|
-
}
|
|
295
|
-
class Fee {
|
|
296
|
-
amount: Array<Coin>;
|
|
297
|
-
gasLimit: bigint;
|
|
298
|
-
payer: string;
|
|
299
|
-
granter: string;
|
|
300
|
-
constructor(amount: Array<Coin>, gasLimit: bigint, payer: string, granter: string);
|
|
301
|
-
}
|
|
302
|
-
class Coin {
|
|
303
|
-
denom: string;
|
|
304
|
-
amount: string;
|
|
305
|
-
constructor(denom: string, amount: string);
|
|
306
|
-
}
|
|
307
|
-
class Tip {
|
|
308
|
-
amount: Array<Coin>;
|
|
309
|
-
tipper: string;
|
|
310
|
-
constructor(amount: Array<Coin>, tipper: string);
|
|
311
|
-
}
|
|
312
|
-
class ResponseDeliverTx {
|
|
313
|
-
code: number;
|
|
314
|
-
data: Bytes;
|
|
315
|
-
log: string;
|
|
316
|
-
info: string;
|
|
317
|
-
gasWanted: bigint;
|
|
318
|
-
gasUsed: bigint;
|
|
319
|
-
events: Array<Event>;
|
|
320
|
-
codespace: string;
|
|
321
|
-
constructor(code: number, data: Bytes, log: string, info: string, gasWanted: bigint, gasUsed: bigint, events: Array<Event>, codespace: string);
|
|
322
|
-
}
|
|
323
|
-
class ValidatorSetUpdates {
|
|
324
|
-
validatorUpdates: Array<Validator>;
|
|
325
|
-
constructor(validatorUpdates: Array<Validator>);
|
|
326
|
-
}
|
|
327
|
-
}
|