@avalabs/glacier-sdk 3.1.0-alpha.43 → 3.1.0-alpha.45
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/index.d.ts +531 -68
- package/dist/index.js +1 -1
- package/esm/generated/models/AccessListData.d.ts +12 -0
- package/esm/generated/models/CommonBalanceType.d.ts +17 -0
- package/esm/generated/models/CommonBalanceType.js +1 -0
- package/esm/generated/models/ERCToken.d.ts +24 -0
- package/esm/generated/models/ERCTransfer.d.ts +50 -0
- package/esm/generated/models/{CreateWebhookRequest.d.ts → EVMAddressActivityRequest.d.ts} +11 -5
- package/esm/generated/models/EVMAddressActivityRequest.js +1 -0
- package/esm/generated/models/{WebhookResponse.d.ts → EVMAddressActivityResponse.d.ts} +8 -8
- package/esm/generated/models/EventType.d.ts +3 -1
- package/esm/generated/models/EventType.js +1 -1
- package/esm/generated/models/InternalTransaction.d.ts +15 -16
- package/esm/generated/models/L1ValidatorDetailsFull.d.ts +4 -0
- package/esm/generated/models/L1ValidatorDetailsTransaction.d.ts +4 -0
- package/esm/generated/models/ListWebhooksResponse.d.ts +3 -2
- package/esm/generated/models/Log.d.ts +40 -0
- package/esm/generated/models/Network.d.ts +1 -2
- package/esm/generated/models/Network.js +1 -1
- package/esm/generated/models/NetworkTokenInfo.d.ts +20 -0
- package/esm/generated/models/PlatformActivityKeyType.d.ts +10 -0
- package/esm/generated/models/PlatformActivityKeyType.js +1 -0
- package/esm/generated/models/PlatformActivityMetadata.d.ts +37 -0
- package/esm/generated/models/PlatformActivityRequest.d.ts +31 -0
- package/esm/generated/models/PlatformActivityRequest.js +1 -0
- package/esm/generated/models/PlatformActivityResponse.d.ts +17 -0
- package/esm/generated/models/PlatformActivitySubEvents.d.ts +11 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.d.ts +10 -0
- package/esm/generated/models/PlatformAddressActivitySubEventType.js +1 -0
- package/esm/generated/models/PlatformBalanceThresholdFilter.d.ts +11 -0
- package/esm/generated/models/PrimaryNetworkType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkType.js +1 -0
- package/esm/generated/models/Subnet.d.ts +2 -2
- package/esm/generated/models/Transaction.d.ts +121 -0
- package/esm/generated/models/TransactionEvent.d.ts +15 -0
- package/esm/generated/models/WebhookAddressActivityResponse.d.ts +30 -0
- package/esm/generated/models/WebhookAddressActivityResponse.js +1 -0
- package/esm/generated/services/EvmBalancesService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +17 -0
- package/esm/generated/services/PrimaryNetworkService.js +1 -1
- package/esm/generated/services/SignatureAggregatorService.d.ts +16 -0
- package/esm/generated/services/SignatureAggregatorService.js +1 -1
- package/esm/generated/services/WebhooksService.d.ts +23 -21
- package/esm/index.d.ts +19 -3
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/generated/models/BlockchainInfo.d.ts +0 -5
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type of balance to monitor
|
|
3
|
+
*/
|
|
4
|
+
declare enum CommonBalanceType {
|
|
5
|
+
UNLOCKED_UNSTAKED = "unlockedUnstaked",
|
|
6
|
+
UNLOCKED_STAKED = "unlockedStaked",
|
|
7
|
+
LOCKED_PLATFORM = "lockedPlatform",
|
|
8
|
+
LOCKED_STAKEABLE = "lockedStakeable",
|
|
9
|
+
LOCKED_STAKED = "lockedStaked",
|
|
10
|
+
PENDING_STAKED = "pendingStaked",
|
|
11
|
+
UNLOCKED = "unlocked",
|
|
12
|
+
LOCKED = "locked",
|
|
13
|
+
ATOMIC_MEMORY_UNLOCKED = "atomicMemoryUnlocked",
|
|
14
|
+
ATOMIC_MEMORY_LOCKED = "atomicMemoryLocked"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { CommonBalanceType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e=>(e.UNLOCKED_UNSTAKED="unlockedUnstaked",e.UNLOCKED_STAKED="unlockedStaked",e.LOCKED_PLATFORM="lockedPlatform",e.LOCKED_STAKEABLE="lockedStakeable",e.LOCKED_STAKED="lockedStaked",e.PENDING_STAKED="pendingStaked",e.UNLOCKED="unlocked",e.LOCKED="locked",e.ATOMIC_MEMORY_UNLOCKED="atomicMemoryUnlocked",e.ATOMIC_MEMORY_LOCKED="atomicMemoryLocked",e))(e||{});export{e as CommonBalanceType};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type ERCToken = {
|
|
2
|
+
/**
|
|
3
|
+
* Token contract address
|
|
4
|
+
*/
|
|
5
|
+
address: string;
|
|
6
|
+
/**
|
|
7
|
+
* Token name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Token symbol
|
|
12
|
+
*/
|
|
13
|
+
symbol: string;
|
|
14
|
+
/**
|
|
15
|
+
* Token decimals
|
|
16
|
+
*/
|
|
17
|
+
decimals: number;
|
|
18
|
+
/**
|
|
19
|
+
* Value including decimals
|
|
20
|
+
*/
|
|
21
|
+
valueWithDecimals: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { ERCToken };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ERCToken } from './ERCToken.js';
|
|
2
|
+
|
|
3
|
+
type ERCTransfer = {
|
|
4
|
+
/**
|
|
5
|
+
* Transaction hash
|
|
6
|
+
*/
|
|
7
|
+
transactionHash: string;
|
|
8
|
+
/**
|
|
9
|
+
* Transfer type
|
|
10
|
+
*/
|
|
11
|
+
type: string;
|
|
12
|
+
/**
|
|
13
|
+
* Sender address
|
|
14
|
+
*/
|
|
15
|
+
from: string;
|
|
16
|
+
/**
|
|
17
|
+
* Recipient address
|
|
18
|
+
*/
|
|
19
|
+
to: string;
|
|
20
|
+
/**
|
|
21
|
+
* Amount transferred
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* Token Id
|
|
26
|
+
*/
|
|
27
|
+
tokenId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Block timestamp
|
|
30
|
+
*/
|
|
31
|
+
blockTimestamp: number;
|
|
32
|
+
/**
|
|
33
|
+
* Log index
|
|
34
|
+
*/
|
|
35
|
+
logIndex: number;
|
|
36
|
+
/**
|
|
37
|
+
* erc20 Token details
|
|
38
|
+
*/
|
|
39
|
+
erc20Token?: ERCToken;
|
|
40
|
+
/**
|
|
41
|
+
* erc721 Token details
|
|
42
|
+
*/
|
|
43
|
+
erc721Token?: ERCToken;
|
|
44
|
+
/**
|
|
45
|
+
* erc1155 Token details
|
|
46
|
+
*/
|
|
47
|
+
erc1155Token?: ERCToken;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { ERCTransfer };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
2
|
-
import {
|
|
2
|
+
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
3
|
|
|
4
|
-
type
|
|
4
|
+
type EVMAddressActivityRequest = {
|
|
5
|
+
eventType: EVMAddressActivityRequest.eventType;
|
|
5
6
|
url: string;
|
|
6
7
|
chainId: string;
|
|
7
|
-
|
|
8
|
-
metadata: AddressActivityMetadata;
|
|
8
|
+
network?: PrimaryNetworkType;
|
|
9
9
|
name?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
/**
|
|
@@ -16,6 +16,12 @@ type CreateWebhookRequest = {
|
|
|
16
16
|
* Whether to include logs in the webhook payload.
|
|
17
17
|
*/
|
|
18
18
|
includeLogs?: boolean;
|
|
19
|
+
metadata: AddressActivityMetadata;
|
|
19
20
|
};
|
|
21
|
+
declare namespace EVMAddressActivityRequest {
|
|
22
|
+
enum eventType {
|
|
23
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
20
26
|
|
|
21
|
-
export {
|
|
27
|
+
export { EVMAddressActivityRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,t;((t=e||(e={})).eventType||(t.eventType={})).ADDRESS_ACTIVITY="address_activity";export{e as EVMAddressActivityRequest};
|
|
@@ -2,9 +2,15 @@ import { AddressActivityMetadata } from './AddressActivityMetadata.js';
|
|
|
2
2
|
import { EventType } from './EventType.js';
|
|
3
3
|
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type EVMAddressActivityResponse = {
|
|
6
6
|
id: string;
|
|
7
7
|
eventType: EventType;
|
|
8
|
+
url: string;
|
|
9
|
+
chainId: string;
|
|
10
|
+
status: WebhookStatusType;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
8
14
|
metadata: AddressActivityMetadata;
|
|
9
15
|
/**
|
|
10
16
|
* Whether to include traces in the webhook payload.
|
|
@@ -14,12 +20,6 @@ type WebhookResponse = {
|
|
|
14
20
|
* Whether to include logs in the webhook payload.
|
|
15
21
|
*/
|
|
16
22
|
includeLogs?: boolean;
|
|
17
|
-
url: string;
|
|
18
|
-
chainId: string;
|
|
19
|
-
status: WebhookStatusType;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
name: string;
|
|
22
|
-
description: string;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export {
|
|
25
|
+
export { EVMAddressActivityResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a))(a||{});export{a as EventType};
|
|
1
|
+
var a=(a=>(a.ADDRESS_ACTIVITY="address_activity",a.PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",a.VALIDATOR_ACTIVITY="validator_activity",a))(a||{});export{a as EventType};
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { InternalTransactionOpCall } from './InternalTransactionOpCall.js';
|
|
2
|
-
import { RichAddress } from './RichAddress.js';
|
|
3
|
-
|
|
4
1
|
type InternalTransaction = {
|
|
5
2
|
/**
|
|
6
|
-
*
|
|
3
|
+
* Sender address
|
|
7
4
|
*/
|
|
8
|
-
|
|
5
|
+
from: string;
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
7
|
+
* Recipient address
|
|
11
8
|
*/
|
|
12
|
-
|
|
9
|
+
to: string;
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
11
|
+
* Internal transaction type
|
|
15
12
|
*/
|
|
16
|
-
|
|
13
|
+
internalTxType: string;
|
|
17
14
|
/**
|
|
18
|
-
*
|
|
15
|
+
* Value transferred
|
|
19
16
|
*/
|
|
20
|
-
txHash: string;
|
|
21
|
-
from: RichAddress;
|
|
22
|
-
to: RichAddress;
|
|
23
|
-
internalTxType: InternalTransactionOpCall;
|
|
24
17
|
value: string;
|
|
25
18
|
/**
|
|
26
|
-
*
|
|
19
|
+
* Gas used
|
|
27
20
|
*/
|
|
28
|
-
isReverted: boolean;
|
|
29
21
|
gasUsed: string;
|
|
22
|
+
/**
|
|
23
|
+
* Gas limit
|
|
24
|
+
*/
|
|
30
25
|
gasLimit: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction hash
|
|
28
|
+
*/
|
|
29
|
+
transactionHash: string;
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
export { InternalTransaction };
|
|
@@ -5,6 +5,10 @@ type L1ValidatorDetailsFull = {
|
|
|
5
5
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
6
6
|
*/
|
|
7
7
|
validationId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
10
|
+
*/
|
|
11
|
+
validationIdHex: string;
|
|
8
12
|
nodeId: string;
|
|
9
13
|
subnetId: string;
|
|
10
14
|
/**
|
|
@@ -3,6 +3,10 @@ type L1ValidatorDetailsTransaction = {
|
|
|
3
3
|
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed.
|
|
4
4
|
*/
|
|
5
5
|
validationId: string;
|
|
6
|
+
/**
|
|
7
|
+
* Unique L1 validation ID used network-wide to identify L1 validation until its weight is reduced to 0 i.e. removed. In hex format
|
|
8
|
+
*/
|
|
9
|
+
validationIdHex: string;
|
|
6
10
|
nodeId: string;
|
|
7
11
|
subnetId: string;
|
|
8
12
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EVMAddressActivityResponse } from './EVMAddressActivityResponse.js';
|
|
2
|
+
import { PlatformActivityResponse } from './PlatformActivityResponse.js';
|
|
2
3
|
|
|
3
4
|
type ListWebhooksResponse = {
|
|
4
5
|
/**
|
|
5
6
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
6
7
|
*/
|
|
7
8
|
nextPageToken?: string;
|
|
8
|
-
webhooks: Array<
|
|
9
|
+
webhooks: Array<(EVMAddressActivityResponse | PlatformActivityResponse)>;
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
export { ListWebhooksResponse };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
type Log = {
|
|
2
|
+
/**
|
|
3
|
+
* Contract address
|
|
4
|
+
*/
|
|
5
|
+
address: string;
|
|
6
|
+
/**
|
|
7
|
+
* First topic
|
|
8
|
+
*/
|
|
9
|
+
topic0: string;
|
|
10
|
+
/**
|
|
11
|
+
* Second topic (optional)
|
|
12
|
+
*/
|
|
13
|
+
topic1?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Third topic (optional)
|
|
16
|
+
*/
|
|
17
|
+
topic2?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Fourth topic (optional)
|
|
20
|
+
*/
|
|
21
|
+
topic3?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Event data
|
|
24
|
+
*/
|
|
25
|
+
data: string;
|
|
26
|
+
/**
|
|
27
|
+
* Transaction index
|
|
28
|
+
*/
|
|
29
|
+
transactionIndex: number;
|
|
30
|
+
/**
|
|
31
|
+
* Log index
|
|
32
|
+
*/
|
|
33
|
+
logIndex: number;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if the log was removed
|
|
36
|
+
*/
|
|
37
|
+
removed: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { Log };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t=(t=>(t.MAINNET="mainnet",t.FUJI="fuji",t.TESTNET="testnet",t))(t||{});export{t as Network};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type NetworkTokenInfo = {
|
|
2
|
+
/**
|
|
3
|
+
* Token name
|
|
4
|
+
*/
|
|
5
|
+
tokenName?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Token symbol
|
|
8
|
+
*/
|
|
9
|
+
tokenSymbol?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Token decimals
|
|
12
|
+
*/
|
|
13
|
+
tokenDecimals?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Value including decimals
|
|
16
|
+
*/
|
|
17
|
+
valueWithDecimals?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { NetworkTokenInfo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=(d=>(d.ADDRESSES="addresses",d.NODE_ID="nodeId",d.SUBNET_ID="subnetId",d))(d||{});export{d as PlatformActivityKeyType};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PlatformActivityKeyType } from './PlatformActivityKeyType.js';
|
|
2
|
+
import { PlatformActivitySubEvents } from './PlatformActivitySubEvents.js';
|
|
3
|
+
import { PlatformBalanceThresholdFilter } from './PlatformBalanceThresholdFilter.js';
|
|
4
|
+
|
|
5
|
+
type PlatformActivityMetadata = {
|
|
6
|
+
keyType: PlatformActivityKeyType;
|
|
7
|
+
/**
|
|
8
|
+
* Array of keys like addresses, NodeID or SubnetID corresponding to the keyType being monitored. For PlatformAddressActivity event, an array of multiple addresses can be provided. ValidatorActivity event will only accept a single key
|
|
9
|
+
*/
|
|
10
|
+
keys: Array<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Sub-events to monitor
|
|
13
|
+
*/
|
|
14
|
+
subEvents?: PlatformActivitySubEvents;
|
|
15
|
+
/**
|
|
16
|
+
* Array of hexadecimal strings of the event signatures.
|
|
17
|
+
*/
|
|
18
|
+
eventSignatures?: Array<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Array of node IDs to filter the events
|
|
21
|
+
*/
|
|
22
|
+
nodeIds?: Array<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Array of subnet IDs to filter the events
|
|
25
|
+
*/
|
|
26
|
+
subnetIds?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Balance threshold filter
|
|
29
|
+
*/
|
|
30
|
+
balanceThresholdFilter?: PlatformBalanceThresholdFilter;
|
|
31
|
+
/**
|
|
32
|
+
* L1 validator fee balance threshold in nAVAX
|
|
33
|
+
*/
|
|
34
|
+
l1ValidatorFeeBalanceThreshold?: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { PlatformActivityMetadata };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
|
|
2
|
+
import { PrimaryNetworkType } from './PrimaryNetworkType.js';
|
|
3
|
+
|
|
4
|
+
type PlatformActivityRequest = {
|
|
5
|
+
eventType: PlatformActivityRequest.eventType;
|
|
6
|
+
url: string;
|
|
7
|
+
chainId: string;
|
|
8
|
+
network?: PrimaryNetworkType;
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to include traces in the webhook payload. Traces are only available for C-Chain on chainId 43113 and 43114.
|
|
13
|
+
*/
|
|
14
|
+
includeInternalTxs?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to include logs in the webhook payload.
|
|
17
|
+
*/
|
|
18
|
+
includeLogs?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Metadata for platform activity
|
|
21
|
+
*/
|
|
22
|
+
metadata: PlatformActivityMetadata;
|
|
23
|
+
};
|
|
24
|
+
declare namespace PlatformActivityRequest {
|
|
25
|
+
enum eventType {
|
|
26
|
+
PLATFORM_ADDRESS_ACTIVITY = "platform_address_activity",
|
|
27
|
+
VALIDATOR_ACTIVITY = "validator_activity"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { PlatformActivityRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e,T;e=t||(t={}),(T=e.eventType||(e.eventType={})).PLATFORM_ADDRESS_ACTIVITY="platform_address_activity",T.VALIDATOR_ACTIVITY="validator_activity";export{t as PlatformActivityRequest};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventType } from './EventType.js';
|
|
2
|
+
import { PlatformActivityMetadata } from './PlatformActivityMetadata.js';
|
|
3
|
+
import { WebhookStatusType } from './WebhookStatusType.js';
|
|
4
|
+
|
|
5
|
+
type PlatformActivityResponse = {
|
|
6
|
+
id: string;
|
|
7
|
+
eventType: EventType;
|
|
8
|
+
url: string;
|
|
9
|
+
chainId: string;
|
|
10
|
+
status: WebhookStatusType;
|
|
11
|
+
createdAt: number;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
metadata: PlatformActivityMetadata;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { PlatformActivityResponse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlatformAddressActivitySubEventType } from './PlatformAddressActivitySubEventType.js';
|
|
2
|
+
|
|
3
|
+
type PlatformActivitySubEvents = {
|
|
4
|
+
/**
|
|
5
|
+
* Array of validator activity sub-event types
|
|
6
|
+
*/
|
|
7
|
+
validatorActivitySubEvents?: Array<'validator_stake' | 'delegator_stake' | 'reward_distribution' | 'l1_validator_balance_increased' | 'l1_validator_disabled' | 'l1_validator_removed' | 'l1_validator_balance_threshold'>;
|
|
8
|
+
addressActivitySubEvents?: Array<PlatformAddressActivitySubEventType>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PlatformActivitySubEvents };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array of address activity sub-event types
|
|
3
|
+
*/
|
|
4
|
+
declare enum PlatformAddressActivitySubEventType {
|
|
5
|
+
BALANCE_CHANGE_PLATFORM = "balance_change_platform",
|
|
6
|
+
BALANCE_THRESHOLD_PLATFORM = "balance_threshold_platform",
|
|
7
|
+
REWARD_DISTRIBUTION = "reward_distribution"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { PlatformAddressActivitySubEventType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _=(_=>(_.BALANCE_CHANGE_PLATFORM="balance_change_platform",_.BALANCE_THRESHOLD_PLATFORM="balance_threshold_platform",_.REWARD_DISTRIBUTION="reward_distribution",_))(_||{});export{_ as PlatformAddressActivitySubEventType};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommonBalanceType } from './CommonBalanceType.js';
|
|
2
|
+
|
|
3
|
+
type PlatformBalanceThresholdFilter = {
|
|
4
|
+
balanceType: CommonBalanceType;
|
|
5
|
+
/**
|
|
6
|
+
* Threshold for balance corresponding to balanceType in nAVAX
|
|
7
|
+
*/
|
|
8
|
+
balanceThreshold: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { PlatformBalanceThresholdFilter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=(a=>(a.MAINNET="mainnet",a.FUJI="fuji",a))(a||{});export{a as PrimaryNetworkType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Blockchain } from './Blockchain.js';
|
|
2
2
|
import { L1ValidatorManagerDetails } from './L1ValidatorManagerDetails.js';
|
|
3
3
|
import { SubnetOwnershipInfo } from './SubnetOwnershipInfo.js';
|
|
4
4
|
|
|
@@ -37,7 +37,7 @@ type Subnet = {
|
|
|
37
37
|
* L1 validator manager details.
|
|
38
38
|
*/
|
|
39
39
|
l1ValidatorManagerDetails?: L1ValidatorManagerDetails;
|
|
40
|
-
blockchains: Array<
|
|
40
|
+
blockchains: Array<Blockchain>;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export { Subnet };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { AccessListData } from './AccessListData.js';
|
|
2
|
+
import { ERCTransfer } from './ERCTransfer.js';
|
|
3
|
+
import { InternalTransaction } from './InternalTransaction.js';
|
|
4
|
+
import { NetworkTokenInfo } from './NetworkTokenInfo.js';
|
|
5
|
+
|
|
6
|
+
type Transaction = {
|
|
7
|
+
/**
|
|
8
|
+
* Block hash of the transaction
|
|
9
|
+
*/
|
|
10
|
+
blockHash: string;
|
|
11
|
+
/**
|
|
12
|
+
* Block number of the transaction
|
|
13
|
+
*/
|
|
14
|
+
blockNumber: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sender address
|
|
17
|
+
*/
|
|
18
|
+
from: string;
|
|
19
|
+
/**
|
|
20
|
+
* Gas limit for the transaction
|
|
21
|
+
*/
|
|
22
|
+
gas: string;
|
|
23
|
+
/**
|
|
24
|
+
* Gas price used
|
|
25
|
+
*/
|
|
26
|
+
gasPrice: string;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum fee per gas
|
|
29
|
+
*/
|
|
30
|
+
maxFeePerGas: string;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum priority fee per gas
|
|
33
|
+
*/
|
|
34
|
+
maxPriorityFeePerGas: string;
|
|
35
|
+
/**
|
|
36
|
+
* Transaction hash
|
|
37
|
+
*/
|
|
38
|
+
txHash: string;
|
|
39
|
+
/**
|
|
40
|
+
* Transaction status
|
|
41
|
+
*/
|
|
42
|
+
txStatus: string;
|
|
43
|
+
/**
|
|
44
|
+
* Input data
|
|
45
|
+
*/
|
|
46
|
+
input: string;
|
|
47
|
+
/**
|
|
48
|
+
* Nonce value
|
|
49
|
+
*/
|
|
50
|
+
nonce: string;
|
|
51
|
+
/**
|
|
52
|
+
* Recipient address
|
|
53
|
+
*/
|
|
54
|
+
to: string;
|
|
55
|
+
/**
|
|
56
|
+
* Transaction index
|
|
57
|
+
*/
|
|
58
|
+
transactionIndex: number;
|
|
59
|
+
/**
|
|
60
|
+
* Value transferred in the transaction
|
|
61
|
+
*/
|
|
62
|
+
value: string;
|
|
63
|
+
/**
|
|
64
|
+
* Transaction type
|
|
65
|
+
*/
|
|
66
|
+
type: number;
|
|
67
|
+
/**
|
|
68
|
+
* Chain ID of the network
|
|
69
|
+
*/
|
|
70
|
+
chainId: string;
|
|
71
|
+
/**
|
|
72
|
+
* Cumulative gas used
|
|
73
|
+
*/
|
|
74
|
+
receiptCumulativeGasUsed: string;
|
|
75
|
+
/**
|
|
76
|
+
* Gas used
|
|
77
|
+
*/
|
|
78
|
+
receiptGasUsed: string;
|
|
79
|
+
/**
|
|
80
|
+
* Effective gas price
|
|
81
|
+
*/
|
|
82
|
+
receiptEffectiveGasPrice: string;
|
|
83
|
+
/**
|
|
84
|
+
* Receipt root
|
|
85
|
+
*/
|
|
86
|
+
receiptRoot: string;
|
|
87
|
+
/**
|
|
88
|
+
* Block timestamp
|
|
89
|
+
*/
|
|
90
|
+
blockTimestamp: number;
|
|
91
|
+
/**
|
|
92
|
+
* Contract address (optional)
|
|
93
|
+
*/
|
|
94
|
+
contractAddress?: string;
|
|
95
|
+
/**
|
|
96
|
+
* ERC20 transfers
|
|
97
|
+
*/
|
|
98
|
+
erc20Transfers: Array<ERCTransfer>;
|
|
99
|
+
/**
|
|
100
|
+
* ERC721 transfers
|
|
101
|
+
*/
|
|
102
|
+
erc721Transfers: Array<ERCTransfer>;
|
|
103
|
+
/**
|
|
104
|
+
* ERC1155 transfers
|
|
105
|
+
*/
|
|
106
|
+
erc1155Transfers: Array<ERCTransfer>;
|
|
107
|
+
/**
|
|
108
|
+
* Internal transactions (optional)
|
|
109
|
+
*/
|
|
110
|
+
internalTransactions?: Array<InternalTransaction>;
|
|
111
|
+
/**
|
|
112
|
+
* Access list (optional)
|
|
113
|
+
*/
|
|
114
|
+
accessList?: Array<AccessListData>;
|
|
115
|
+
/**
|
|
116
|
+
* Network token info (optional)
|
|
117
|
+
*/
|
|
118
|
+
networkToken?: NetworkTokenInfo;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export { Transaction };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Log } from './Log.js';
|
|
2
|
+
import { Transaction } from './Transaction.js';
|
|
3
|
+
|
|
4
|
+
type TransactionEvent = {
|
|
5
|
+
/**
|
|
6
|
+
* Transaction details
|
|
7
|
+
*/
|
|
8
|
+
transaction: Transaction;
|
|
9
|
+
/**
|
|
10
|
+
* Array of log events
|
|
11
|
+
*/
|
|
12
|
+
logs?: Array<Log>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { TransactionEvent };
|