@orb-labs/orby-core 0.0.15 → 0.0.16
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/CHANGELOG.md +5 -0
- package/dist/cjs/actions/operation.d.ts +2 -2
- package/dist/cjs/actions/operation.js +74 -4
- package/dist/cjs/entities/account.js +1 -1
- package/dist/cjs/interfaces/operation.d.ts +2 -2
- package/dist/cjs/types.d.ts +20 -0
- package/dist/esm/actions/operation.d.ts +2 -2
- package/dist/esm/actions/operation.js +75 -5
- package/dist/esm/actions/token.js +1 -1
- package/dist/esm/entities/account.js +1 -1
- package/dist/esm/interfaces/operation.d.ts +2 -2
- package/dist/esm/types.d.ts +20 -0
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/actions/account_cluster.d.ts +0 -32
- package/dist/actions/account_cluster.js +0 -207
- package/dist/actions/admin.d.ts +0 -17
- package/dist/actions/admin.js +0 -39
- package/dist/actions/application.d.ts +0 -6
- package/dist/actions/application.js +0 -16
- package/dist/actions/blockchain.d.ts +0 -16
- package/dist/actions/blockchain.js +0 -35
- package/dist/actions/instance.d.ts +0 -15
- package/dist/actions/instance.js +0 -94
- package/dist/actions/operation.d.ts +0 -99
- package/dist/actions/operation.js +0 -341
- package/dist/actions/token.d.ts +0 -15
- package/dist/actions/token.js +0 -46
- package/dist/constants.d.ts +0 -14
- package/dist/constants.js +0 -133
- package/dist/entities/account.d.ts +0 -14
- package/dist/entities/account.js +0 -45
- package/dist/entities/financial/account_balance.d.ts +0 -12
- package/dist/entities/financial/account_balance.js +0 -31
- package/dist/entities/financial/asset.d.ts +0 -31
- package/dist/entities/financial/asset.js +0 -38
- package/dist/entities/financial/currency.d.ts +0 -41
- package/dist/entities/financial/currency.js +0 -49
- package/dist/entities/financial/currency_amount.d.ts +0 -34
- package/dist/entities/financial/currency_amount.js +0 -92
- package/dist/entities/financial/fungible_token.d.ts +0 -41
- package/dist/entities/financial/fungible_token.js +0 -64
- package/dist/entities/financial/fungible_token_amount.d.ts +0 -36
- package/dist/entities/financial/fungible_token_amount.js +0 -95
- package/dist/entities/financial/non_fungible_token.d.ts +0 -39
- package/dist/entities/financial/non_fungible_token.js +0 -61
- package/dist/entities/financial/semi_fungible_token.d.ts +0 -41
- package/dist/entities/financial/semi_fungible_token.js +0 -63
- package/dist/entities/library_request.d.ts +0 -8
- package/dist/entities/library_request.js +0 -30
- package/dist/entities/state.d.ts +0 -22
- package/dist/entities/state.js +0 -102
- package/dist/enums.d.ts +0 -116
- package/dist/enums.js +0 -135
- package/dist/index.d.ts +0 -29
- package/dist/index.js +0 -33
- package/dist/interfaces/account_cluster.d.ts +0 -30
- package/dist/interfaces/account_cluster.js +0 -1
- package/dist/interfaces/admin.d.ts +0 -14
- package/dist/interfaces/admin.js +0 -1
- package/dist/interfaces/application.d.ts +0 -3
- package/dist/interfaces/application.js +0 -1
- package/dist/interfaces/blockchain.d.ts +0 -13
- package/dist/interfaces/blockchain.js +0 -1
- package/dist/interfaces/instance.d.ts +0 -12
- package/dist/interfaces/instance.js +0 -1
- package/dist/interfaces/operation.d.ts +0 -97
- package/dist/interfaces/operation.js +0 -1
- package/dist/interfaces/orby.d.ts +0 -9
- package/dist/interfaces/orby.js +0 -1
- package/dist/interfaces/token.d.ts +0 -12
- package/dist/interfaces/token.js +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types.d.ts +0 -152
- package/dist/types.js +0 -1
- package/dist/utils/action_helpers.d.ts +0 -22
- package/dist/utils/action_helpers.js +0 -250
- package/dist/utils/utils.d.ts +0 -10
- package/dist/utils/utils.js +0 -70
- package/dist/utils/validateAndParseAddress.d.ts +0 -10
- package/dist/utils/validateAndParseAddress.js +0 -25
package/dist/enums.d.ts
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
export declare enum Blockchain {
|
2
|
-
ETHEREUM = "ethereum",
|
3
|
-
POLYGON = "polygon",
|
4
|
-
BINANCE = "binance",
|
5
|
-
ARBITRUM = "arbitrum",
|
6
|
-
BASE = "base",
|
7
|
-
AVALANCHE = "avalanche",
|
8
|
-
ARBITRUM_NOVA = "arbitrum_nova",
|
9
|
-
OPTIMISM = "optimism",
|
10
|
-
EVMOS = "evmos",
|
11
|
-
MOONBEAM = "moonbeam",
|
12
|
-
ETHEREUM_SEPOLIA = "ethereum_sepolia",
|
13
|
-
ETHEREUM_HOLESKY = "ethereum_holesky",
|
14
|
-
BASE_SEPOLIA = "base_sepolia",
|
15
|
-
ARBITRUM_SEPOLIA = "arbitrum_sepolia",
|
16
|
-
OPTIMISM_SEPOLIA = "optimism_sepolia",
|
17
|
-
POLYGON_AMOY = "polygon_amoy",
|
18
|
-
BINANCE_TESTNET = "binance_testnet",
|
19
|
-
OPBNB_TESTNET = "opbnb_testnet",
|
20
|
-
MOONBEAM_ALPHA = "moonbeam_alpha",
|
21
|
-
HARDHAT = "hardhat",
|
22
|
-
LOCAL_CHAIN_0 = "local_chain_0",
|
23
|
-
LOCAL_CHAIN_1 = "local_chain_1"
|
24
|
-
}
|
25
|
-
export declare enum TokenType {
|
26
|
-
FUNGIBLE_TOKEN = "FUNGIBLE_TOKEN",
|
27
|
-
NON_FUNGIBLE_TOKEN = "NON_FUNGIBLE_TOKEN",
|
28
|
-
SEMI_FUNGIBLE_TOKEN = "SEMI_FUNGIBLE_TOKEN",
|
29
|
-
FIAT = "FIAT"
|
30
|
-
}
|
31
|
-
export declare enum AccountType {
|
32
|
-
EOA = "EOA",
|
33
|
-
SCA = "SCA"
|
34
|
-
}
|
35
|
-
export declare enum VMType {
|
36
|
-
EVM = "EVM"
|
37
|
-
}
|
38
|
-
export declare enum ChainSupportStatus {
|
39
|
-
CHAIN_SUPPORTED = "CHAIN_SUPPORTED",
|
40
|
-
CHAIN_UNAVAILABLE = "CHAIN_UNAVAILABLE",
|
41
|
-
ACCOUNT_UNAVAILABLE = "ACCOUNT_UNAVAILABLE"
|
42
|
-
}
|
43
|
-
export declare enum CreateOperationsStatus {
|
44
|
-
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
45
|
-
INSUFFICIENT_FUNDS_FOR_GAS = "INSUFFICIENT_FUNDS_FOR_GAS",
|
46
|
-
INTERNAL = "INTERNAL",
|
47
|
-
INVALID_ARGUMENT = "INVALID_ARGUMENT",
|
48
|
-
NO_EXECUTION_PATH = "NO_EXECUTION_PATH",
|
49
|
-
SUCCESS = "SUCCESS"
|
50
|
-
}
|
51
|
-
export declare enum OperationDataFormat {
|
52
|
-
TRANSACTION = "TRANSACTION",
|
53
|
-
TYPED_DATA = "TYPED_DATA"
|
54
|
-
}
|
55
|
-
export declare enum OperationType {
|
56
|
-
APPROVE_ERC20_TOKEN = "APPROVE_ERC20_TOKEN",
|
57
|
-
CANCEL_OPERATION = "CANCEL_OPERATION",
|
58
|
-
CANCEL_TRANSACTION = "CANCEL_TRANSACTION",
|
59
|
-
FINAL_TRANSACTION = "FINAL_TRANSACTION",
|
60
|
-
GAS_ABSTRACTION = "GAS_ABSTRACTION",
|
61
|
-
NATIVE_TOKEN_TRANSFER = "NATIVE_TOKEN_TRANSFER",
|
62
|
-
SUBMIT_INTENT = "SUBMIT_INTENT"
|
63
|
-
}
|
64
|
-
export declare enum Category {
|
65
|
-
SEND = "SEND",
|
66
|
-
RECEIVE = "RECEIVE",
|
67
|
-
SWAP = "SWAP",
|
68
|
-
REBALANCE = "REBALANCE",
|
69
|
-
BRIDGE = "BRIDGE",
|
70
|
-
FUNCTION_CALL = "FUNCTION_CALL",
|
71
|
-
TYPED_DATA_SIGNATURE = "TYPED_DATA_SIGNATURE"
|
72
|
-
}
|
73
|
-
export declare enum OperationStatusType {
|
74
|
-
FAILED = "FAILED",
|
75
|
-
NOT_FOUND = "NOT_FOUND",
|
76
|
-
PENDING = "PENDING",
|
77
|
-
SUCCESSFUL = "SUCCESSFUL",
|
78
|
-
WAITING_PRECONDITION = "WAITING_PRECONDITION"
|
79
|
-
}
|
80
|
-
export declare enum QuoteType {
|
81
|
-
EXACT_INPUT = "EXACT_INPUT",
|
82
|
-
EXACT_OUTPUT = "EXACT_OUTPUT"
|
83
|
-
}
|
84
|
-
export declare enum Order {
|
85
|
-
NEWEST = "NEWEST",
|
86
|
-
OLDEST = "OLDEST"
|
87
|
-
}
|
88
|
-
export declare enum ActivityStatus {
|
89
|
-
CANCELLED = "CANCELLED",
|
90
|
-
FAILED = "FAILED",
|
91
|
-
PENDING = "PENDING",
|
92
|
-
SUCCESS = "SUCCESS"
|
93
|
-
}
|
94
|
-
export declare enum BlockchainEnvironment {
|
95
|
-
MAINNET = "MAINNET",
|
96
|
-
TESTNET = "TESTNET"
|
97
|
-
}
|
98
|
-
export declare enum TokenAllowlistType {
|
99
|
-
ALL_TOKENS = "ALL_TOKENS",
|
100
|
-
ONLY_FUNGIBLE_TOKENS = "ONLY_FUNGIBLE_TOKENS",
|
101
|
-
ONLY_NON_FUNGIBLE_TOKENS = "ONLY_NON_FUNGIBLE_TOKENS",
|
102
|
-
ONLY_SEMI_FUNGIBLE_TOKENS = "ONLY_SEMI_FUNGIBLE_TOKENS"
|
103
|
-
}
|
104
|
-
export declare enum TimeIntervalUnits {
|
105
|
-
DAYS = "DAYS",
|
106
|
-
FOREVER = "FOREVER",
|
107
|
-
HOURS = "HOURS",
|
108
|
-
MINUTES = "MINUTES",
|
109
|
-
MONTHS = "MONTHS",
|
110
|
-
WEEKS = "WEEKS",
|
111
|
-
YEARS = "YEARS"
|
112
|
-
}
|
113
|
-
export declare enum LIBRARY_TYPE {
|
114
|
-
VIEM = "VIEM",
|
115
|
-
ETHERS = "ETHERS"
|
116
|
-
}
|
package/dist/enums.js
DELETED
@@ -1,135 +0,0 @@
|
|
1
|
-
export var Blockchain;
|
2
|
-
(function (Blockchain) {
|
3
|
-
Blockchain["ETHEREUM"] = "ethereum";
|
4
|
-
Blockchain["POLYGON"] = "polygon";
|
5
|
-
Blockchain["BINANCE"] = "binance";
|
6
|
-
Blockchain["ARBITRUM"] = "arbitrum";
|
7
|
-
Blockchain["BASE"] = "base";
|
8
|
-
Blockchain["AVALANCHE"] = "avalanche";
|
9
|
-
Blockchain["ARBITRUM_NOVA"] = "arbitrum_nova";
|
10
|
-
Blockchain["OPTIMISM"] = "optimism";
|
11
|
-
Blockchain["EVMOS"] = "evmos";
|
12
|
-
Blockchain["MOONBEAM"] = "moonbeam";
|
13
|
-
// testnets
|
14
|
-
Blockchain["ETHEREUM_SEPOLIA"] = "ethereum_sepolia";
|
15
|
-
Blockchain["ETHEREUM_HOLESKY"] = "ethereum_holesky";
|
16
|
-
Blockchain["BASE_SEPOLIA"] = "base_sepolia";
|
17
|
-
Blockchain["ARBITRUM_SEPOLIA"] = "arbitrum_sepolia";
|
18
|
-
Blockchain["OPTIMISM_SEPOLIA"] = "optimism_sepolia";
|
19
|
-
Blockchain["POLYGON_AMOY"] = "polygon_amoy";
|
20
|
-
Blockchain["BINANCE_TESTNET"] = "binance_testnet";
|
21
|
-
Blockchain["OPBNB_TESTNET"] = "opbnb_testnet";
|
22
|
-
Blockchain["MOONBEAM_ALPHA"] = "moonbeam_alpha";
|
23
|
-
// local testing
|
24
|
-
Blockchain["HARDHAT"] = "hardhat";
|
25
|
-
Blockchain["LOCAL_CHAIN_0"] = "local_chain_0";
|
26
|
-
Blockchain["LOCAL_CHAIN_1"] = "local_chain_1";
|
27
|
-
})(Blockchain || (Blockchain = {}));
|
28
|
-
export var TokenType;
|
29
|
-
(function (TokenType) {
|
30
|
-
TokenType["FUNGIBLE_TOKEN"] = "FUNGIBLE_TOKEN";
|
31
|
-
TokenType["NON_FUNGIBLE_TOKEN"] = "NON_FUNGIBLE_TOKEN";
|
32
|
-
TokenType["SEMI_FUNGIBLE_TOKEN"] = "SEMI_FUNGIBLE_TOKEN";
|
33
|
-
TokenType["FIAT"] = "FIAT";
|
34
|
-
})(TokenType || (TokenType = {}));
|
35
|
-
export var AccountType;
|
36
|
-
(function (AccountType) {
|
37
|
-
AccountType["EOA"] = "EOA";
|
38
|
-
AccountType["SCA"] = "SCA";
|
39
|
-
})(AccountType || (AccountType = {}));
|
40
|
-
export var VMType;
|
41
|
-
(function (VMType) {
|
42
|
-
VMType["EVM"] = "EVM";
|
43
|
-
})(VMType || (VMType = {}));
|
44
|
-
export var ChainSupportStatus;
|
45
|
-
(function (ChainSupportStatus) {
|
46
|
-
ChainSupportStatus["CHAIN_SUPPORTED"] = "CHAIN_SUPPORTED";
|
47
|
-
ChainSupportStatus["CHAIN_UNAVAILABLE"] = "CHAIN_UNAVAILABLE";
|
48
|
-
ChainSupportStatus["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE";
|
49
|
-
})(ChainSupportStatus || (ChainSupportStatus = {}));
|
50
|
-
export var CreateOperationsStatus;
|
51
|
-
(function (CreateOperationsStatus) {
|
52
|
-
CreateOperationsStatus["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
53
|
-
CreateOperationsStatus["INSUFFICIENT_FUNDS_FOR_GAS"] = "INSUFFICIENT_FUNDS_FOR_GAS";
|
54
|
-
CreateOperationsStatus["INTERNAL"] = "INTERNAL";
|
55
|
-
CreateOperationsStatus["INVALID_ARGUMENT"] = "INVALID_ARGUMENT";
|
56
|
-
CreateOperationsStatus["NO_EXECUTION_PATH"] = "NO_EXECUTION_PATH";
|
57
|
-
CreateOperationsStatus["SUCCESS"] = "SUCCESS";
|
58
|
-
})(CreateOperationsStatus || (CreateOperationsStatus = {}));
|
59
|
-
export var OperationDataFormat;
|
60
|
-
(function (OperationDataFormat) {
|
61
|
-
OperationDataFormat["TRANSACTION"] = "TRANSACTION";
|
62
|
-
OperationDataFormat["TYPED_DATA"] = "TYPED_DATA";
|
63
|
-
})(OperationDataFormat || (OperationDataFormat = {}));
|
64
|
-
export var OperationType;
|
65
|
-
(function (OperationType) {
|
66
|
-
OperationType["APPROVE_ERC20_TOKEN"] = "APPROVE_ERC20_TOKEN";
|
67
|
-
OperationType["CANCEL_OPERATION"] = "CANCEL_OPERATION";
|
68
|
-
OperationType["CANCEL_TRANSACTION"] = "CANCEL_TRANSACTION";
|
69
|
-
OperationType["FINAL_TRANSACTION"] = "FINAL_TRANSACTION";
|
70
|
-
OperationType["GAS_ABSTRACTION"] = "GAS_ABSTRACTION";
|
71
|
-
OperationType["NATIVE_TOKEN_TRANSFER"] = "NATIVE_TOKEN_TRANSFER";
|
72
|
-
OperationType["SUBMIT_INTENT"] = "SUBMIT_INTENT";
|
73
|
-
})(OperationType || (OperationType = {}));
|
74
|
-
export var Category;
|
75
|
-
(function (Category) {
|
76
|
-
Category["SEND"] = "SEND";
|
77
|
-
Category["RECEIVE"] = "RECEIVE";
|
78
|
-
Category["SWAP"] = "SWAP";
|
79
|
-
Category["REBALANCE"] = "REBALANCE";
|
80
|
-
Category["BRIDGE"] = "BRIDGE";
|
81
|
-
Category["FUNCTION_CALL"] = "FUNCTION_CALL";
|
82
|
-
Category["TYPED_DATA_SIGNATURE"] = "TYPED_DATA_SIGNATURE";
|
83
|
-
})(Category || (Category = {}));
|
84
|
-
export var OperationStatusType;
|
85
|
-
(function (OperationStatusType) {
|
86
|
-
OperationStatusType["FAILED"] = "FAILED";
|
87
|
-
OperationStatusType["NOT_FOUND"] = "NOT_FOUND";
|
88
|
-
OperationStatusType["PENDING"] = "PENDING";
|
89
|
-
OperationStatusType["SUCCESSFUL"] = "SUCCESSFUL";
|
90
|
-
OperationStatusType["WAITING_PRECONDITION"] = "WAITING_PRECONDITION";
|
91
|
-
})(OperationStatusType || (OperationStatusType = {}));
|
92
|
-
export var QuoteType;
|
93
|
-
(function (QuoteType) {
|
94
|
-
QuoteType["EXACT_INPUT"] = "EXACT_INPUT";
|
95
|
-
QuoteType["EXACT_OUTPUT"] = "EXACT_OUTPUT";
|
96
|
-
})(QuoteType || (QuoteType = {}));
|
97
|
-
export var Order;
|
98
|
-
(function (Order) {
|
99
|
-
Order["NEWEST"] = "NEWEST";
|
100
|
-
Order["OLDEST"] = "OLDEST";
|
101
|
-
})(Order || (Order = {}));
|
102
|
-
export var ActivityStatus;
|
103
|
-
(function (ActivityStatus) {
|
104
|
-
ActivityStatus["CANCELLED"] = "CANCELLED";
|
105
|
-
ActivityStatus["FAILED"] = "FAILED";
|
106
|
-
ActivityStatus["PENDING"] = "PENDING";
|
107
|
-
ActivityStatus["SUCCESS"] = "SUCCESS";
|
108
|
-
})(ActivityStatus || (ActivityStatus = {}));
|
109
|
-
export var BlockchainEnvironment;
|
110
|
-
(function (BlockchainEnvironment) {
|
111
|
-
BlockchainEnvironment["MAINNET"] = "MAINNET";
|
112
|
-
BlockchainEnvironment["TESTNET"] = "TESTNET";
|
113
|
-
})(BlockchainEnvironment || (BlockchainEnvironment = {}));
|
114
|
-
export var TokenAllowlistType;
|
115
|
-
(function (TokenAllowlistType) {
|
116
|
-
TokenAllowlistType["ALL_TOKENS"] = "ALL_TOKENS";
|
117
|
-
TokenAllowlistType["ONLY_FUNGIBLE_TOKENS"] = "ONLY_FUNGIBLE_TOKENS";
|
118
|
-
TokenAllowlistType["ONLY_NON_FUNGIBLE_TOKENS"] = "ONLY_NON_FUNGIBLE_TOKENS";
|
119
|
-
TokenAllowlistType["ONLY_SEMI_FUNGIBLE_TOKENS"] = "ONLY_SEMI_FUNGIBLE_TOKENS";
|
120
|
-
})(TokenAllowlistType || (TokenAllowlistType = {}));
|
121
|
-
export var TimeIntervalUnits;
|
122
|
-
(function (TimeIntervalUnits) {
|
123
|
-
TimeIntervalUnits["DAYS"] = "DAYS";
|
124
|
-
TimeIntervalUnits["FOREVER"] = "FOREVER";
|
125
|
-
TimeIntervalUnits["HOURS"] = "HOURS";
|
126
|
-
TimeIntervalUnits["MINUTES"] = "MINUTES";
|
127
|
-
TimeIntervalUnits["MONTHS"] = "MONTHS";
|
128
|
-
TimeIntervalUnits["WEEKS"] = "WEEKS";
|
129
|
-
TimeIntervalUnits["YEARS"] = "YEARS";
|
130
|
-
})(TimeIntervalUnits || (TimeIntervalUnits = {}));
|
131
|
-
export var LIBRARY_TYPE;
|
132
|
-
(function (LIBRARY_TYPE) {
|
133
|
-
LIBRARY_TYPE["VIEM"] = "VIEM";
|
134
|
-
LIBRARY_TYPE["ETHERS"] = "ETHERS";
|
135
|
-
})(LIBRARY_TYPE || (LIBRARY_TYPE = {}));
|
package/dist/index.d.ts
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
export * from "./interfaces/account_cluster.js";
|
2
|
-
export * from "./interfaces/admin.js";
|
3
|
-
export * from "./interfaces/application.js";
|
4
|
-
export * from "./interfaces/instance.js";
|
5
|
-
export * from "./interfaces/operation.js";
|
6
|
-
export * from "./interfaces/token.js";
|
7
|
-
export * from "./interfaces/orby.js";
|
8
|
-
export * from "./interfaces/blockchain.js";
|
9
|
-
export * from "./actions/account_cluster.js";
|
10
|
-
export * from "./actions/admin.js";
|
11
|
-
export * from "./actions/application.js";
|
12
|
-
export * from "./actions/instance.js";
|
13
|
-
export * from "./actions/operation.js";
|
14
|
-
export * from "./actions/token.js";
|
15
|
-
export * from "./actions/blockchain.js";
|
16
|
-
export * from "./entities/financial/account_balance.js";
|
17
|
-
export * from "./entities/financial/asset.js";
|
18
|
-
export * from "./entities/financial/currency_amount.js";
|
19
|
-
export * from "./entities/financial/currency.js";
|
20
|
-
export * from "./entities/financial/fungible_token_amount.js";
|
21
|
-
export * from "./entities/financial/fungible_token.js";
|
22
|
-
export * from "./entities/financial/non_fungible_token.js";
|
23
|
-
export * from "./entities/financial/semi_fungible_token.js";
|
24
|
-
export * from "./entities/account.js";
|
25
|
-
export * from "./entities/state.js";
|
26
|
-
export * from "./enums.js";
|
27
|
-
export * from "./types.js";
|
28
|
-
export * from "./constants.js";
|
29
|
-
export * from "./utils/utils.js";
|
package/dist/index.js
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
// interfaces
|
2
|
-
export * from "./interfaces/account_cluster.js";
|
3
|
-
export * from "./interfaces/admin.js";
|
4
|
-
export * from "./interfaces/application.js";
|
5
|
-
export * from "./interfaces/instance.js";
|
6
|
-
export * from "./interfaces/operation.js";
|
7
|
-
export * from "./interfaces/token.js";
|
8
|
-
export * from "./interfaces/orby.js";
|
9
|
-
export * from "./interfaces/blockchain.js";
|
10
|
-
// actions
|
11
|
-
export * from "./actions/account_cluster.js";
|
12
|
-
export * from "./actions/admin.js";
|
13
|
-
export * from "./actions/application.js";
|
14
|
-
export * from "./actions/instance.js";
|
15
|
-
export * from "./actions/operation.js";
|
16
|
-
export * from "./actions/token.js";
|
17
|
-
export * from "./actions/blockchain.js";
|
18
|
-
// entities
|
19
|
-
export * from "./entities/financial/account_balance.js";
|
20
|
-
export * from "./entities/financial/asset.js";
|
21
|
-
export * from "./entities/financial/currency_amount.js";
|
22
|
-
export * from "./entities/financial/currency.js";
|
23
|
-
export * from "./entities/financial/fungible_token_amount.js";
|
24
|
-
export * from "./entities/financial/fungible_token.js";
|
25
|
-
export * from "./entities/financial/non_fungible_token.js";
|
26
|
-
export * from "./entities/financial/semi_fungible_token.js";
|
27
|
-
export * from "./entities/account.js";
|
28
|
-
export * from "./entities/state.js";
|
29
|
-
// enums, types and constants
|
30
|
-
export * from "./enums.js";
|
31
|
-
export * from "./types.js";
|
32
|
-
export * from "./constants.js";
|
33
|
-
export * from "./utils/utils.js";
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { Account } from "../entities/account.js";
|
2
|
-
import { AccountCluster, Activity, ChainEndpoint, FungibleTokenOverview, StandardizedBalance, VirtualNodeRpcUrlForSupportedChain } from "../types.js";
|
3
|
-
import { ChainSupportStatus, Order } from "../enums.js";
|
4
|
-
export interface IAccountClusterActions {
|
5
|
-
createAccountCluster(accounts: Account[]): Promise<AccountCluster>;
|
6
|
-
addToAccountCluster(accounts: Account[], accountClusterId: string): Promise<AccountCluster>;
|
7
|
-
removeFromAccountCluster(accounts: Account[], accountClusterId: string): Promise<AccountCluster>;
|
8
|
-
getVirtualNodeRpcUrlsForSupportedChains(accountClusterId: string): Promise<VirtualNodeRpcUrlForSupportedChain[]>;
|
9
|
-
enableChainAbstractionForAccountCluster(accountClusterId: string, enable: boolean): Promise<boolean>;
|
10
|
-
setCustomChainEndpointsForAccountCluster(accountClusterId: string, chainEndpoints: ChainEndpoint[]): Promise<boolean>;
|
11
|
-
removeCustomChainEndpointsForAccountCluster(accountClusterId: string, chainIds: bigint[]): Promise<boolean>;
|
12
|
-
getCustomChainEndpointsForAccountCluster(accountClusterId: string, returnChainIdsOnly: boolean): Promise<ChainEndpoint[]>;
|
13
|
-
isChainSupportedOnAccountCluster(accountClusterId: string, chainId: bigint): Promise<ChainSupportStatus>;
|
14
|
-
getNodeRpcUrl(accountClusterId: string, chainId: bigint): Promise<string>;
|
15
|
-
getVirtualNodeRpcUrl(accountClusterId: string, chainId: bigint, entrypointAccountAddress: string): Promise<string>;
|
16
|
-
getActivity(accountClusterId: string, limit?: number, offset?: number, order?: Order, startDate?: number, endDate?: number, filters?: {
|
17
|
-
transactionHash?: string;
|
18
|
-
address?: string;
|
19
|
-
}[]): Promise<{
|
20
|
-
activities: Activity[];
|
21
|
-
pageInfo: {
|
22
|
-
hasNextPage: boolean;
|
23
|
-
hasPreviousPage: boolean;
|
24
|
-
totalCount: number;
|
25
|
-
};
|
26
|
-
}>;
|
27
|
-
getPortfolioOverview(accountClusterId: string): Promise<FungibleTokenOverview>;
|
28
|
-
getFungibleTokenPortfolio(accountClusterId: string): Promise<StandardizedBalance[]>;
|
29
|
-
getFungibleTokenBalances(accountClusterId: string, offset?: number, limit?: number, chainId?: bigint, tokensToOmit?: string[]): Promise<StandardizedBalance[]>;
|
30
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { GasSpendForInstance, GasSponsorshipData } from "../types.js";
|
2
|
-
export interface IAdminActions {
|
3
|
-
createInstance(name: string): Promise<{
|
4
|
-
success: boolean;
|
5
|
-
orbyInstancePrivateUrl: string;
|
6
|
-
orbyInstancePublicUrl: string;
|
7
|
-
}>;
|
8
|
-
getInstanceUrls(name: string): Promise<{
|
9
|
-
orbyInstancePrivateUrl: string;
|
10
|
-
orbyInstancePublicUrl: string;
|
11
|
-
}>;
|
12
|
-
getGasSpentForCustomer(month: string, year: string): Promise<GasSponsorshipData>;
|
13
|
-
getGasSpentForInstances(month: string, year: string, instanceNames: string[]): Promise<GasSpendForInstance[]>;
|
14
|
-
}
|
package/dist/interfaces/admin.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { BlockchainInformation } from "../types.js";
|
2
|
-
export interface IBlockchainActions {
|
3
|
-
getBlockchainInformation(chainId: bigint): Promise<BlockchainInformation>;
|
4
|
-
listBlockchainsInformation(offset?: number, limit?: number): Promise<{
|
5
|
-
blockchains: BlockchainInformation[];
|
6
|
-
pageInfo: {
|
7
|
-
hasNextPage: boolean;
|
8
|
-
hasPreviousPage: boolean;
|
9
|
-
totalCount: number;
|
10
|
-
};
|
11
|
-
}>;
|
12
|
-
getChainsSupportedByDefault(chainId: bigint): Promise<BlockchainInformation[]>;
|
13
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { ChainEndpoint, GasSponsorshipPolicy } from "../types.js";
|
2
|
-
export interface IInstanceActions {
|
3
|
-
setCustomChainEndpointsForInstance(chainEndpoints: ChainEndpoint[]): Promise<boolean>;
|
4
|
-
removeCustomChainEndpointForInstance(chainIds: bigint[]): Promise<boolean>;
|
5
|
-
getCustomChainEndpointsForInstance(returnChainIdsOnly: boolean): Promise<boolean>;
|
6
|
-
enableChainAbstractionForInstance(enable: boolean): Promise<boolean>;
|
7
|
-
enableGasSponsorshipForInstance(enable: boolean): Promise<boolean>;
|
8
|
-
getGasSponsorForInstance(): Promise<string>;
|
9
|
-
getOrbyGasSponsorPolicyForInstance(): Promise<GasSponsorshipPolicy>;
|
10
|
-
setOrbyGasSponsorPolicyForInstance(gasSponsorshipPolicy: GasSponsorshipPolicy): Promise<boolean>;
|
11
|
-
removeOrbyGasSponsorPolicyForInstance(): Promise<boolean>;
|
12
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,97 +0,0 @@
|
|
1
|
-
import { OnchainOperation, OperationSet, OperationStatus, SignedOperation } from "../types.js";
|
2
|
-
import { CurrencyAmount } from "../entities/financial/currency_amount.js";
|
3
|
-
import { OperationStatusType, QuoteType } from "../enums.js";
|
4
|
-
export interface IOperationActions {
|
5
|
-
getOperationsToExecuteTransaction(accountClusterId: string, to: string, data: string, value?: bigint, gasToken?: {
|
6
|
-
standardizedTokenId: string;
|
7
|
-
tokenSources?: {
|
8
|
-
chainId: bigint;
|
9
|
-
address?: string;
|
10
|
-
}[];
|
11
|
-
}): Promise<OperationSet>;
|
12
|
-
getOperationsToSignTypedData(accountClusterId: string, data: string, gasToken?: {
|
13
|
-
standardizedTokenId: string;
|
14
|
-
tokenSources?: {
|
15
|
-
chainId: bigint;
|
16
|
-
address?: string;
|
17
|
-
}[];
|
18
|
-
}): Promise<OperationSet>;
|
19
|
-
getOperationsToCancelTransaction(accountClusterId: string, operationSetId: string): Promise<OperationSet>;
|
20
|
-
isTransactionPreconditionSatisfied(accountClusterId: string, to: string, data: string, value?: bigint): Promise<boolean>;
|
21
|
-
isTypedDataPreconditionSatisfied(accountClusterId: string, data: string): Promise<boolean>;
|
22
|
-
sendSignedOperations(accountClusterId: string, signedOperations: SignedOperation[]): Promise<{
|
23
|
-
operationSetId: string;
|
24
|
-
operationResponses: OperationStatus[];
|
25
|
-
}>;
|
26
|
-
getOperationStatuses(operationIds: string[]): Promise<OperationStatus[]>;
|
27
|
-
estimateFiatCostToExecuteTransaction(to: string, data: string, value?: bigint): Promise<CurrencyAmount>;
|
28
|
-
estimateFiatCostToSignTypedData(data: string): Promise<CurrencyAmount>;
|
29
|
-
getOperationsToTransferToken(accountClusterId: string, standardizedTokenId: string, amount: bigint, recipient: {
|
30
|
-
chainId: bigint;
|
31
|
-
recipientAddress: string;
|
32
|
-
}, gasToken?: {
|
33
|
-
standardizedTokenId: string;
|
34
|
-
tokenSources?: {
|
35
|
-
chainId: bigint;
|
36
|
-
address?: string;
|
37
|
-
}[];
|
38
|
-
}): Promise<OperationSet>;
|
39
|
-
getOperationsToSwap(accountClusterId: string, swapType: QuoteType, input: {
|
40
|
-
standardizedTokenId: string;
|
41
|
-
amount?: bigint;
|
42
|
-
tokenSources?: {
|
43
|
-
chainId: bigint;
|
44
|
-
address?: string;
|
45
|
-
}[];
|
46
|
-
}, output: {
|
47
|
-
standardizedTokenId: string;
|
48
|
-
amount?: bigint;
|
49
|
-
tokenDestination?: {
|
50
|
-
chainId: bigint;
|
51
|
-
address?: string;
|
52
|
-
};
|
53
|
-
}, gasToken?: {
|
54
|
-
standardizedTokenId: string;
|
55
|
-
tokenSources?: {
|
56
|
-
chainId: bigint;
|
57
|
-
address?: string;
|
58
|
-
}[];
|
59
|
-
}): Promise<OperationSet>;
|
60
|
-
getQuote(accountClusterId: string, swapType: QuoteType, input: {
|
61
|
-
standardizedTokenId: string;
|
62
|
-
amount?: bigint;
|
63
|
-
tokenSources?: {
|
64
|
-
chainId: bigint;
|
65
|
-
address?: string;
|
66
|
-
}[];
|
67
|
-
}, output: {
|
68
|
-
standardizedTokenId: string;
|
69
|
-
amount?: bigint;
|
70
|
-
tokenDestination?: {
|
71
|
-
chainId: bigint;
|
72
|
-
address?: string;
|
73
|
-
};
|
74
|
-
}): Promise<OperationSet>;
|
75
|
-
getOperationsToBridge(accountClusterId: string, standardizedTokenId: string, amount: bigint, tokenSources?: {
|
76
|
-
chainId: bigint;
|
77
|
-
address?: string;
|
78
|
-
}[], tokenDestination?: {
|
79
|
-
chainId: bigint;
|
80
|
-
address?: string;
|
81
|
-
}, gasToken?: {
|
82
|
-
standardizedTokenId: string;
|
83
|
-
tokenSources?: {
|
84
|
-
chainId: bigint;
|
85
|
-
address?: string;
|
86
|
-
}[];
|
87
|
-
}): Promise<OperationSet>;
|
88
|
-
subscribeToOperationStatuses(ids?: string[], onOperationStatusesUpdateCallback?: (statusSummary: OperationStatusType, primaryOperationStatus?: OperationStatus, allOperationStatuses?: OperationStatus[]) => void, timout?: number): {
|
89
|
-
intervalId: NodeJS.Timeout | null;
|
90
|
-
};
|
91
|
-
sendOperationSet(accountClusterId: string, operationSet: OperationSet, signOperation: (operation: OnchainOperation) => Promise<SignedOperation | undefined>): Promise<{
|
92
|
-
success: boolean;
|
93
|
-
operationSetId?: string;
|
94
|
-
primaryOperationStatus?: OperationStatus;
|
95
|
-
operationResponses?: OperationStatus[];
|
96
|
-
}>;
|
97
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { IAccountClusterActions } from "./account_cluster.js";
|
2
|
-
import { IAdminActions } from "./admin.js";
|
3
|
-
import { IApplicationActions } from "./application.js";
|
4
|
-
import { IBlockchainActions } from "./blockchain.js";
|
5
|
-
import { IInstanceActions } from "./instance.js";
|
6
|
-
import { IOperationActions } from "./operation.js";
|
7
|
-
import { ITokenActions } from "./token.js";
|
8
|
-
export interface Orby extends IAccountClusterActions, IAdminActions, IApplicationActions, IInstanceActions, IOperationActions, ITokenActions, IBlockchainActions {
|
9
|
-
}
|
package/dist/interfaces/orby.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { StandardizedToken } from "../types.js";
|
2
|
-
export interface ITokenActions {
|
3
|
-
getStandardizedTokenIds(tokens: {
|
4
|
-
tokenAddress: string;
|
5
|
-
chainId: bigint;
|
6
|
-
}[]): Promise<string[]>;
|
7
|
-
getStandardizedTokens(tokens: {
|
8
|
-
tokenAddress: string;
|
9
|
-
chainId: bigint;
|
10
|
-
}[]): Promise<StandardizedToken[]>;
|
11
|
-
getFungibleTokenData(standardizedTokenIds: string[]): Promise<StandardizedToken[]>;
|
12
|
-
}
|
package/dist/interfaces/token.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|