@dfns/sdk 0.3.1 → 0.3.2

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 (115) hide show
  1. package/codegen/datamodel/Assets/types.d.ts +1 -7
  2. package/codegen/datamodel/Wallets/types.d.ts +152 -45
  3. package/codegen/datamodel/Wallets/types.js +34 -4
  4. package/dfnsApiClient.d.ts +2 -12
  5. package/dfnsApiClient.js +4 -18
  6. package/dfnsDelegatedApiClient.d.ts +2 -12
  7. package/dfnsDelegatedApiClient.js +4 -18
  8. package/generated/networks/client.d.ts +8 -0
  9. package/generated/networks/client.js +34 -0
  10. package/generated/networks/delegatedClient.d.ts +8 -0
  11. package/generated/networks/delegatedClient.js +34 -0
  12. package/generated/networks/index.d.ts +3 -0
  13. package/{codegen/datamodel/Orgs → generated/networks}/index.js +2 -1
  14. package/generated/networks/types.d.ts +37 -0
  15. package/generated/permissions/types.d.ts +49 -4
  16. package/generated/policies/types.d.ts +258 -2
  17. package/generated/wallets/types.d.ts +36 -31
  18. package/generated/webhooks/types.d.ts +9 -9
  19. package/package.json +1 -1
  20. package/types/networks.d.ts +1 -0
  21. package/{codegen/datamodel/BlockchainIndexing/index.js → types/networks.js} +1 -1
  22. package/codegen/Blockchains/BlockchainsClient.d.ts +0 -7
  23. package/codegen/Blockchains/BlockchainsClient.js +0 -23
  24. package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +0 -7
  25. package/codegen/Blockchains/DelegatedBlockchainsClient.js +0 -23
  26. package/codegen/Blockchains/index.d.ts +0 -3
  27. package/codegen/Blockchains/index.js +0 -19
  28. package/codegen/Blockchains/types.d.ts +0 -6
  29. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +0 -11
  30. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +0 -61
  31. package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +0 -9
  32. package/codegen/PolicyExecution/PolicyExecutionClient.js +0 -45
  33. package/codegen/PolicyExecution/index.d.ts +0 -3
  34. package/codegen/PolicyExecution/index.js +0 -19
  35. package/codegen/PolicyExecution/types.d.ts +0 -18
  36. package/codegen/PolicyExecution/types.js +0 -2
  37. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -25
  38. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -240
  39. package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -18
  40. package/codegen/PolicyManagement/PolicyManagementClient.js +0 -146
  41. package/codegen/PolicyManagement/index.d.ts +0 -3
  42. package/codegen/PolicyManagement/index.js +0 -19
  43. package/codegen/PolicyManagement/types.d.ts +0 -51
  44. package/codegen/PolicyManagement/types.js +0 -2
  45. package/codegen/Signers/DelegatedSignersClient.d.ts +0 -7
  46. package/codegen/Signers/DelegatedSignersClient.js +0 -22
  47. package/codegen/Signers/SignersClient.d.ts +0 -7
  48. package/codegen/Signers/SignersClient.js +0 -22
  49. package/codegen/Signers/index.d.ts +0 -3
  50. package/codegen/Signers/index.js +0 -19
  51. package/codegen/Signers/types.d.ts +0 -2
  52. package/codegen/Signers/types.js +0 -2
  53. package/codegen/datamodel/ApiKeys/errors.d.ts +0 -6
  54. package/codegen/datamodel/ApiKeys/errors.js +0 -15
  55. package/codegen/datamodel/ApiKeys/index.d.ts +0 -3
  56. package/codegen/datamodel/ApiKeys/index.js +0 -19
  57. package/codegen/datamodel/ApiKeys/responses.d.ts +0 -25
  58. package/codegen/datamodel/ApiKeys/responses.js +0 -2
  59. package/codegen/datamodel/ApiKeys/types.d.ts +0 -32
  60. package/codegen/datamodel/ApiKeys/types.js +0 -11
  61. package/codegen/datamodel/BlockchainIndexing/errors.d.ts +0 -0
  62. package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
  63. package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
  64. package/codegen/datamodel/BlockchainIndexing/responses.d.ts +0 -6
  65. package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
  66. package/codegen/datamodel/BlockchainIndexing/types.d.ts +0 -0
  67. package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
  68. package/codegen/datamodel/Blockchains/errors.d.ts +0 -0
  69. package/codegen/datamodel/Blockchains/errors.js +0 -1
  70. package/codegen/datamodel/Blockchains/index.d.ts +0 -2
  71. package/codegen/datamodel/Blockchains/index.js +0 -18
  72. package/codegen/datamodel/Blockchains/responses.d.ts +0 -12
  73. package/codegen/datamodel/Blockchains/responses.js +0 -2
  74. package/codegen/datamodel/Blockchains/types.d.ts +0 -270
  75. package/codegen/datamodel/Blockchains/types.js +0 -53
  76. package/codegen/datamodel/Orgs/errors.d.ts +0 -0
  77. package/codegen/datamodel/Orgs/errors.js +0 -1
  78. package/codegen/datamodel/Orgs/index.d.ts +0 -2
  79. package/codegen/datamodel/Orgs/responses.d.ts +0 -45
  80. package/codegen/datamodel/Orgs/responses.js +0 -2
  81. package/codegen/datamodel/Orgs/types.d.ts +0 -240
  82. package/codegen/datamodel/Orgs/types.js +0 -39
  83. package/codegen/datamodel/Permissions/errors.d.ts +0 -0
  84. package/codegen/datamodel/Permissions/errors.js +0 -1
  85. package/codegen/datamodel/Permissions/index.d.ts +0 -2
  86. package/codegen/datamodel/Permissions/index.js +0 -18
  87. package/codegen/datamodel/Permissions/responses.d.ts +0 -75
  88. package/codegen/datamodel/Permissions/responses.js +0 -2
  89. package/codegen/datamodel/Permissions/types.d.ts +0 -93
  90. package/codegen/datamodel/Permissions/types.js +0 -43
  91. package/codegen/datamodel/PolicyExecution/errors.d.ts +0 -11
  92. package/codegen/datamodel/PolicyExecution/errors.js +0 -17
  93. package/codegen/datamodel/PolicyExecution/index.d.ts +0 -3
  94. package/codegen/datamodel/PolicyExecution/index.js +0 -19
  95. package/codegen/datamodel/PolicyExecution/responses.d.ts +0 -19
  96. package/codegen/datamodel/PolicyExecution/responses.js +0 -2
  97. package/codegen/datamodel/PolicyExecution/types.d.ts +0 -60
  98. package/codegen/datamodel/PolicyExecution/types.js +0 -17
  99. package/codegen/datamodel/PolicyManagement/errors.d.ts +0 -0
  100. package/codegen/datamodel/PolicyManagement/errors.js +0 -1
  101. package/codegen/datamodel/PolicyManagement/index.d.ts +0 -2
  102. package/codegen/datamodel/PolicyManagement/index.js +0 -18
  103. package/codegen/datamodel/PolicyManagement/responses.d.ts +0 -83
  104. package/codegen/datamodel/PolicyManagement/responses.js +0 -2
  105. package/codegen/datamodel/PolicyManagement/types.d.ts +0 -391
  106. package/codegen/datamodel/PolicyManagement/types.js +0 -95
  107. package/codegen/datamodel/Signers/errors.d.ts +0 -0
  108. package/codegen/datamodel/Signers/errors.js +0 -1
  109. package/codegen/datamodel/Signers/index.d.ts +0 -2
  110. package/codegen/datamodel/Signers/index.js +0 -18
  111. package/codegen/datamodel/Signers/responses.d.ts +0 -27
  112. package/codegen/datamodel/Signers/responses.js +0 -2
  113. package/codegen/datamodel/Signers/types.d.ts +0 -21
  114. package/codegen/datamodel/Signers/types.js +0 -2
  115. /package/{codegen/Blockchains → generated/networks}/types.js +0 -0
@@ -1,51 +0,0 @@
1
- import * as PolicyManagement from '../datamodel/PolicyManagement';
2
- export type CreatePolicyRequest = {
3
- body: PolicyManagement.CreatePolicyInput;
4
- };
5
- export type CreatePolicyResponse = PolicyManagement.Policy;
6
- export type GetPolicyByIdRequest = {
7
- policyId: string;
8
- };
9
- export type GetPolicyByIdResponse = PolicyManagement.Policy;
10
- export type ListPoliciesResponse = {
11
- items: PolicyManagement.Policy[];
12
- };
13
- export type ArchivePolicyRequest = {
14
- policyId: string;
15
- };
16
- export type ArchivePolicyResponse = PolicyManagement.Policy;
17
- export type CreatePolicyControlRequest = {
18
- body: PolicyManagement.CreatePolicyControlInput;
19
- };
20
- export type CreatePolicyControlResponse = PolicyManagement.PolicyControl;
21
- export type GetPolicyControlByIdRequest = {
22
- policyControlId: string;
23
- };
24
- export type GetPolicyControlByIdResponse = PolicyManagement.PolicyControl;
25
- export type ListPolicyControlsResponse = {
26
- items: PolicyManagement.PolicyControl[];
27
- };
28
- export type ArchivePolicyControlRequest = {
29
- policyControlId: string;
30
- };
31
- export type ArchivePolicyControlResponse = PolicyManagement.PolicyControl;
32
- export type CreatePolicyRuleRequest = {
33
- body: PolicyManagement.CreatePolicyRuleInput;
34
- };
35
- export type CreatePolicyRuleResponse = PolicyManagement.PolicyRule;
36
- export type GetPolicyRuleByIdRequest = {
37
- policyRuleId: string;
38
- };
39
- export type GetPolicyRuleByIdResponse = PolicyManagement.PolicyRule;
40
- export type ListPolicyRulesRequest = {
41
- query?: {
42
- author?: string;
43
- };
44
- };
45
- export type ListPolicyRulesResponse = {
46
- items: PolicyManagement.PolicyRule[];
47
- };
48
- export type ArchivePolicyRuleRequest = {
49
- policyRuleId: string;
50
- };
51
- export type ArchivePolicyRuleResponse = PolicyManagement.PolicyRule;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
2
- import * as T from './types';
3
- export declare class DelegatedSignersClient {
4
- private apiOptions;
5
- constructor(apiOptions: DfnsDelegatedApiClientOptions);
6
- listSigners(): Promise<T.ListSignersResponse>;
7
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DelegatedSignersClient = void 0;
4
- const fetch_1 = require("../../utils/fetch");
5
- const url_1 = require("../../utils/url");
6
- class DelegatedSignersClient {
7
- constructor(apiOptions) {
8
- this.apiOptions = apiOptions;
9
- }
10
- async listSigners() {
11
- const path = (0, url_1.buildPathAndQuery)('/signers', {
12
- path: {},
13
- query: {},
14
- });
15
- const response = await (0, fetch_1.simpleFetch)(path, {
16
- method: 'GET',
17
- apiOptions: this.apiOptions,
18
- });
19
- return response.json();
20
- }
21
- }
22
- exports.DelegatedSignersClient = DelegatedSignersClient;
@@ -1,7 +0,0 @@
1
- import { DfnsApiClientOptions } from '../../dfnsApiClient';
2
- import * as T from './types';
3
- export declare class SignersClient {
4
- private apiOptions;
5
- constructor(apiOptions: DfnsApiClientOptions);
6
- listSigners(): Promise<T.ListSignersResponse>;
7
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SignersClient = void 0;
4
- const fetch_1 = require("../../utils/fetch");
5
- const url_1 = require("../../utils/url");
6
- class SignersClient {
7
- constructor(apiOptions) {
8
- this.apiOptions = apiOptions;
9
- }
10
- async listSigners() {
11
- const path = (0, url_1.buildPathAndQuery)('/signers', {
12
- path: {},
13
- query: {},
14
- });
15
- const response = await (0, fetch_1.simpleFetch)(path, {
16
- method: 'GET',
17
- apiOptions: this.apiOptions,
18
- });
19
- return response.json();
20
- }
21
- }
22
- exports.SignersClient = SignersClient;
@@ -1,3 +0,0 @@
1
- export * from './DelegatedSignersClient';
2
- export * from './SignersClient';
3
- export * from './types';
@@ -1,19 +0,0 @@
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("./DelegatedSignersClient"), exports);
18
- __exportStar(require("./SignersClient"), exports);
19
- __exportStar(require("./types"), exports);
@@ -1,2 +0,0 @@
1
- import * as Signers from '../datamodel/Signers';
2
- export type ListSignersResponse = Signers.ClusterList;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { DfnsError } from '../Foundations';
2
- export declare class ApiKeyActionNotAllowed extends DfnsError {
3
- name: string;
4
- httpStatus: number;
5
- errorName: string;
6
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiKeyActionNotAllowed = void 0;
4
- const Foundations_1 = require("../Foundations");
5
- class ApiKeyActionNotAllowed extends Foundations_1.DfnsError {
6
- constructor() {
7
- super(...arguments);
8
- this.name = 'ApiKeyActionNotAllowed';
9
- // FIXME: Missing documentation for httpStatus
10
- this.httpStatus = 403;
11
- // FIXME: Missing documentation for errorName
12
- this.errorName = 'Forbidden';
13
- }
14
- }
15
- exports.ApiKeyActionNotAllowed = ApiKeyActionNotAllowed;
@@ -1,3 +0,0 @@
1
- export * from './errors';
2
- export * from './responses';
3
- export * from './types';
@@ -1,19 +0,0 @@
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("./errors"), exports);
18
- __exportStar(require("./responses"), exports);
19
- __exportStar(require("./types"), exports);
@@ -1,25 +0,0 @@
1
- import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
2
- import { ApiKeyActionNotAllowed } from './errors';
3
- import { ApiKeyRecord, ApiKeyRecordWithToken } from './types';
4
- export type CreateApiKeySuccess = ApiKeyRecordWithToken;
5
- export type CreateApiKeyError = {
6
- error: ApiKeyActionNotAllowed | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
7
- };
8
- export type CreateApiKeyResponse = CreateApiKeySuccess | CreateApiKeyError;
9
- export type ListApiKeysSuccess = {
10
- items: ApiKeyRecord[];
11
- };
12
- export type ListApiKeysError = {
13
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
14
- };
15
- export type ListApiKeysResponse = ListApiKeysSuccess | ListApiKeysError;
16
- export type RevokeApiKeySuccess = ApiKeyRecord;
17
- export type RevokeApiKeyError = {
18
- error: ApiKeyActionNotAllowed | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
19
- };
20
- export type RevokeApiKeyResponse = RevokeApiKeySuccess | RevokeApiKeyError;
21
- export type GetApiKeyByIdSuccess = ApiKeyRecord;
22
- export type GetApiKeyByIdError = {
23
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
24
- };
25
- export type GetApiKeyByIdResponse = GetApiKeyByIdSuccess | GetApiKeyByIdError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,32 +0,0 @@
1
- import { EntityId, IsoDatetime } from '../Foundations';
2
- export type ApiKeyRecord = {
3
- id: EntityId;
4
- status: ApiKeyStatus;
5
- externalId?: string;
6
- orgId: EntityId;
7
- dateCreated: IsoDatetime;
8
- name?: string;
9
- authorId: EntityId;
10
- scopes: string[];
11
- };
12
- export type ApiKeyRecordWithToken = {
13
- id: EntityId;
14
- status: ApiKeyStatus;
15
- externalId?: string;
16
- orgId: EntityId;
17
- dateCreated: IsoDatetime;
18
- name?: string;
19
- authorId: EntityId;
20
- scopes: string[];
21
- token: ApiKeyValue;
22
- };
23
- export type ApiKeyValue = string;
24
- export type CreateApiKeyInput = {
25
- scopes: string[];
26
- externalId?: string;
27
- name: string;
28
- };
29
- export declare enum ApiKeyStatus {
30
- Active = "Active",
31
- Archived = "Archived"
32
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiKeyStatus = void 0;
4
- // FIXME: Missing documentation for ApiKeyStatus
5
- var ApiKeyStatus;
6
- (function (ApiKeyStatus) {
7
- // FIXME: Missing documentation for Active
8
- ApiKeyStatus["Active"] = "Active";
9
- // FIXME: Missing documentation for Archived
10
- ApiKeyStatus["Archived"] = "Archived";
11
- })(ApiKeyStatus || (exports.ApiKeyStatus = ApiKeyStatus = {}));
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- export * from './responses';
@@ -1,6 +0,0 @@
1
- import { BadRequestError, ForbiddenError } from '../Foundations';
2
- export type ReplayBlockSuccess = String;
3
- export type ReplayBlockError = {
4
- error: ForbiddenError | BadRequestError;
5
- };
6
- export type ReplayBlockResponse = ReplayBlockSuccess | ReplayBlockError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
File without changes
@@ -1 +0,0 @@
1
- "use strict";
File without changes
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,2 +0,0 @@
1
- export * from './responses';
2
- export * from './types';
@@ -1,18 +0,0 @@
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("./responses"), exports);
18
- __exportStar(require("./types"), exports);
@@ -1,12 +0,0 @@
1
- import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
2
- import { CallViewFunctionResult, EvmFeeEstimates } from './types';
3
- export type EvmBlockchainFeeSuccess = EvmFeeEstimates;
4
- export type EvmBlockchainFeeError = {
5
- error: ForbiddenError | UnauthorizedError | ForbiddenError | EntityNotFoundError;
6
- };
7
- export type EvmBlockchainFeeResponse = EvmBlockchainFeeSuccess | EvmBlockchainFeeError;
8
- export type CallViewFunctionSuccess = CallViewFunctionResult;
9
- export type CallViewFunctionError = {
10
- error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
11
- };
12
- export type CallViewFunctionResponse = CallViewFunctionSuccess | CallViewFunctionError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,270 +0,0 @@
1
- import { Amount, BlockchainAddress, IntegerPositiveStrict, IsoDatetime } from '../Foundations';
2
- export type BtcBlock = {
3
- hash: string;
4
- number: number;
5
- timestamp: IsoDatetime;
6
- transactions: BtcTransaction[];
7
- };
8
- export type BtcTransaction = {
9
- hash: string;
10
- blockNumber: number;
11
- size: number;
12
- weight: number;
13
- locktime: number;
14
- vins: BtcTransactionInput[];
15
- vouts: BtcTransactionOutput[];
16
- coinbase: boolean;
17
- fee?: Amount;
18
- };
19
- export type BtcTransactionInput = {
20
- hash: string;
21
- index: number;
22
- address?: BlockchainAddress;
23
- value?: Amount;
24
- };
25
- export type BtcTransactionOutput = {
26
- index: number;
27
- address?: BlockchainAddress;
28
- value: Amount;
29
- };
30
- export type EvmBlock = {
31
- hash: string;
32
- number: number;
33
- timestamp: IsoDatetime;
34
- transactions: EvmTransaction[];
35
- };
36
- export type EvmTransaction = {
37
- hash: string;
38
- blockNumber: number;
39
- nonce: number;
40
- from: BlockchainAddress;
41
- to?: BlockchainAddress;
42
- value: Amount;
43
- data?: string;
44
- signature: string;
45
- gasLimit: Amount;
46
- gasPrice?: Amount;
47
- maxFeePerGas?: Amount;
48
- maxPriorityFeePerGas?: Amount;
49
- receipt?: EvmTransactionReceipt;
50
- logs?: EvmLog[];
51
- };
52
- export type EvmTransactionReceipt = {
53
- gasUsed: Amount;
54
- effectiveGasPrice: Amount;
55
- fee: Amount;
56
- status: TransactionStatus;
57
- error?: string;
58
- };
59
- export type Erc20Log = {
60
- kind: EvmLogKind.Erc20;
61
- index: number;
62
- address: BlockchainAddress;
63
- from: BlockchainAddress;
64
- to: BlockchainAddress;
65
- value: Amount;
66
- };
67
- export type Erc721Log = {
68
- kind: EvmLogKind.Erc721;
69
- index: number;
70
- address: BlockchainAddress;
71
- from: BlockchainAddress;
72
- to: BlockchainAddress;
73
- tokenId: string;
74
- };
75
- export type EvmUntypedLog = {
76
- kind: EvmLogKind.Unknown;
77
- index: number;
78
- address: BlockchainAddress;
79
- topics: string[];
80
- data: string;
81
- };
82
- export type EvmFeeEstimates = {
83
- safeLow: Eip1559Fee;
84
- standard: Eip1559Fee;
85
- fast: Eip1559Fee;
86
- estimatedBaseFee: string;
87
- blockNumber: IntegerPositiveStrict;
88
- kind: FeeEstimationKind;
89
- };
90
- export type Eip1559Fee = {
91
- maxPriorityFee: string;
92
- maxFee: string;
93
- };
94
- export type CallViewFunctionInput = {
95
- data: string;
96
- contract: string;
97
- };
98
- export type CallViewFunctionResult = {
99
- data: string;
100
- };
101
- export type TrxBlock = {
102
- hash: string;
103
- number: number;
104
- timestamp: IsoDatetime;
105
- transactions: TrxTransaction[];
106
- };
107
- export type TrxTransaction = {
108
- hash: string;
109
- blockNumber: number;
110
- feeLimit?: Amount;
111
- from: BlockchainAddress;
112
- receipt: TrxReceipt;
113
- };
114
- export type TrxTransferTransaction = {
115
- hash: string;
116
- blockNumber: number;
117
- feeLimit?: Amount;
118
- from: BlockchainAddress;
119
- receipt: TrxReceipt;
120
- kind: TrxTransactionKind.TransferContract;
121
- to: BlockchainAddress;
122
- amount: Amount;
123
- };
124
- export type TrxTransferAssetTransaction = {
125
- hash: string;
126
- blockNumber: number;
127
- feeLimit?: Amount;
128
- from: BlockchainAddress;
129
- receipt: TrxReceipt;
130
- kind: TrxTransactionKind.TransferAssetContract;
131
- asset: string;
132
- to: BlockchainAddress;
133
- amount: Amount;
134
- };
135
- export type TrxSmartContractTransaction = {
136
- hash: string;
137
- blockNumber: number;
138
- feeLimit?: Amount;
139
- from: BlockchainAddress;
140
- receipt: TrxReceipt;
141
- kind: TrxTransactionKind.TriggerSmartContract;
142
- contract: BlockchainAddress;
143
- data: string;
144
- logs: EvmLog[];
145
- };
146
- export type TrxUntypedTransaction = {
147
- hash: string;
148
- blockNumber: number;
149
- feeLimit?: Amount;
150
- from: BlockchainAddress;
151
- receipt: TrxReceipt;
152
- kind: TrxTransactionKind;
153
- parameters: Record<string, unknown>;
154
- };
155
- export type TrxReceipt = {
156
- fee?: Amount;
157
- energyFee?: Amount;
158
- energyUsage?: Amount;
159
- netFee?: Amount;
160
- netUsage?: Amount;
161
- status: TransactionStatus;
162
- error?: string;
163
- };
164
- export type XrpBlock = {
165
- hash: string;
166
- number: number;
167
- timestamp: IsoDatetime;
168
- transactions: XrpTransaction[];
169
- };
170
- export type XrpTransaction = {
171
- hash: string;
172
- blockNumber: number;
173
- account: BlockchainAddress;
174
- fee: Amount;
175
- status: TransactionStatus;
176
- error?: string;
177
- };
178
- export type XrpPaymentTransaction = {
179
- hash: string;
180
- blockNumber: number;
181
- account: BlockchainAddress;
182
- fee: Amount;
183
- status: TransactionStatus;
184
- error?: string;
185
- kind: XrpTransactionKind.Payment;
186
- to: BlockchainAddress;
187
- currency?: string;
188
- issuer?: BlockchainAddress;
189
- amount: Amount;
190
- };
191
- export type XrpUntypedTransaction = {
192
- hash: string;
193
- blockNumber: number;
194
- account: BlockchainAddress;
195
- fee: Amount;
196
- status: TransactionStatus;
197
- error?: string;
198
- kind: XrpTransactionKind;
199
- };
200
- export type SolBlock = {
201
- hash: string;
202
- number: number;
203
- timestamp: IsoDatetime;
204
- transactions: SolTransaction[];
205
- };
206
- export type SolTransaction = {
207
- hash: string;
208
- blockNumber: number;
209
- version: string;
210
- from: BlockchainAddress;
211
- instructions: SolInstruction[];
212
- fee: Amount;
213
- status: TransactionStatus;
214
- error?: string;
215
- };
216
- export type SolInstruction = {
217
- index: string;
218
- program: BlockchainAddress;
219
- };
220
- export type SolSystemTransferInstruction = {
221
- index: string;
222
- program: BlockchainAddress;
223
- kind: SolInstructionKind.SystemTransfer;
224
- from: BlockchainAddress;
225
- to: BlockchainAddress;
226
- value: Amount;
227
- };
228
- export type SolTokenTransferInstruction = {
229
- index: string;
230
- program: BlockchainAddress;
231
- kind: SolInstructionKind.TokenTransfer;
232
- mint: BlockchainAddress;
233
- from: BlockchainAddress;
234
- fromTokenAccount: BlockchainAddress;
235
- to: BlockchainAddress;
236
- toTokenAccount: BlockchainAddress;
237
- value: Amount;
238
- };
239
- export type SolUntypedInstruction = {
240
- index: string;
241
- program: BlockchainAddress;
242
- accounts: BlockchainAddress[];
243
- data: string;
244
- };
245
- export type EvmLog = Erc20Log | Erc721Log | EvmUntypedLog;
246
- export declare enum EvmLogKind {
247
- Unknown = "Unknown",
248
- Erc20 = "Erc20",
249
- Erc721 = "Erc721"
250
- }
251
- export declare enum TransactionStatus {
252
- SUCCESS = "SUCCESS",
253
- FAILED = "FAILED"
254
- }
255
- export declare enum TrxTransactionKind {
256
- TransferContract = "TransferContract",
257
- TransferAssetContract = "TransferAssetContract",
258
- TriggerSmartContract = "TriggerSmartContract"
259
- }
260
- export declare enum XrpTransactionKind {
261
- Payment = "Payment"
262
- }
263
- export declare enum SolInstructionKind {
264
- SystemTransfer = "SystemTransfer",
265
- TokenTransfer = "TokenTransfer"
266
- }
267
- export declare enum FeeEstimationKind {
268
- Eip1559 = "Eip1559",
269
- EthLegacy = "EthLegacy"
270
- }