@orb-labs/orby-core 0.0.3 → 0.0.5
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/README.md +42 -1
- package/dist/actions/account_cluster.d.ts +1 -1
- package/dist/actions/account_cluster.js +308 -121
- package/dist/actions/admin.js +115 -28
- package/dist/actions/application.js +68 -14
- package/dist/actions/instance.js +237 -72
- package/dist/actions/operation.d.ts +12 -6
- package/dist/actions/operation.js +242 -90
- package/dist/actions/token.js +107 -31
- package/dist/constants.d.ts +8 -0
- package/dist/constants.js +132 -36
- package/dist/entities/account.js +26 -28
- package/dist/entities/financial/account_balance.js +22 -24
- package/dist/entities/financial/asset.js +15 -17
- package/dist/entities/financial/currency.js +37 -25
- package/dist/entities/financial/currency_amount.js +79 -64
- package/dist/entities/financial/fungible_token.js +49 -34
- package/dist/entities/financial/fungible_token_amount.js +85 -70
- package/dist/entities/financial/non_fungible_token.js +45 -30
- package/dist/entities/financial/semi_fungible_token.js +45 -30
- package/dist/entities/library_request.js +19 -24
- package/dist/entities/state.js +67 -60
- package/dist/enums.js +34 -37
- package/dist/index.d.ts +1 -3
- package/dist/index.js +27 -46
- package/dist/interfaces/account_cluster.d.ts +1 -1
- package/dist/interfaces/account_cluster.js +1 -2
- package/dist/interfaces/admin.js +1 -2
- package/dist/interfaces/application.js +1 -2
- package/dist/interfaces/instance.js +1 -2
- package/dist/interfaces/operation.d.ts +5 -5
- package/dist/interfaces/operation.js +1 -2
- package/dist/interfaces/orby.js +1 -2
- package/dist/interfaces/token.js +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js +1 -2
- package/dist/utils/action_helpers.d.ts +22 -0
- package/dist/utils/action_helpers.js +270 -0
- package/dist/utils/utils.d.ts +5 -22
- package/dist/utils/utils.js +30 -279
- package/dist/utils/validateAndParseAddress.js +7 -11
- package/package.json +6 -1
package/dist/entities/state.js
CHANGED
@@ -1,105 +1,112 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
class State {
|
8
|
-
constructor(fungibleTokens, nonFungibleTokens, semiFungibleTokens) {
|
9
|
-
this.fungibleTokens = fungibleTokens.reduce((acc, amount) => {
|
1
|
+
import { FungibleTokenAmount } from "./financial/fungible_token_amount";
|
2
|
+
import { NonFungibleToken } from "./financial/non_fungible_token";
|
3
|
+
import { SemiFungibleToken } from "./financial/semi_fungible_token";
|
4
|
+
var State = /** @class */ (function () {
|
5
|
+
function State(fungibleTokens, nonFungibleTokens, semiFungibleTokens) {
|
6
|
+
this.fungibleTokens = fungibleTokens.reduce(function (acc, amount) {
|
10
7
|
acc.set(amount.token.identifier(), amount);
|
11
8
|
return acc;
|
12
9
|
}, new Map());
|
13
|
-
this.nonFungibleTokens = nonFungibleTokens.reduce((acc, token)
|
10
|
+
this.nonFungibleTokens = nonFungibleTokens.reduce(function (acc, token) {
|
14
11
|
acc.set(token.identifier(), token);
|
15
12
|
return acc;
|
16
13
|
}, new Map());
|
17
|
-
this.semiFungibleTokens = semiFungibleTokens.reduce((acc, token)
|
14
|
+
this.semiFungibleTokens = semiFungibleTokens.reduce(function (acc, token) {
|
18
15
|
acc.set(token.identifier(), token);
|
19
16
|
return acc;
|
20
17
|
}, new Map());
|
21
18
|
}
|
22
|
-
|
19
|
+
State.fromFungibleTokenAmounts = function (fungibleTokenAmounts) {
|
23
20
|
return new State(fungibleTokenAmounts, [], []);
|
24
|
-
}
|
25
|
-
|
21
|
+
};
|
22
|
+
State.fromTokenAndAmount = function (token, amount) {
|
26
23
|
if (!token || !amount) {
|
27
24
|
return undefined;
|
28
25
|
}
|
29
|
-
|
26
|
+
var fungibleTokenAmount = FungibleTokenAmount.fromRawAmount(token, amount);
|
30
27
|
return State.fromFungibleTokenAmounts([fungibleTokenAmount]);
|
31
|
-
}
|
32
|
-
getFungibleTokens() {
|
28
|
+
};
|
29
|
+
State.prototype.getFungibleTokens = function () {
|
33
30
|
return Array.from(this.fungibleTokens.values());
|
34
|
-
}
|
35
|
-
getNonFungibleTokens() {
|
31
|
+
};
|
32
|
+
State.prototype.getNonFungibleTokens = function () {
|
36
33
|
return Array.from(this.nonFungibleTokens.values());
|
37
|
-
}
|
38
|
-
getSemiFungibleTokens() {
|
34
|
+
};
|
35
|
+
State.prototype.getSemiFungibleTokens = function () {
|
39
36
|
return Array.from(this.semiFungibleTokens.values());
|
40
|
-
}
|
41
|
-
addTokens(fungibleTokens) {
|
42
|
-
|
43
|
-
|
44
|
-
|
37
|
+
};
|
38
|
+
State.prototype.addTokens = function (fungibleTokens) {
|
39
|
+
var _this = this;
|
40
|
+
fungibleTokens.forEach(function (amount) {
|
41
|
+
var identifier = amount.token.identifier();
|
42
|
+
var currentAmount = _this.fungibleTokens.get(identifier);
|
45
43
|
if (currentAmount) {
|
46
|
-
|
44
|
+
_this.fungibleTokens.set(identifier, currentAmount.add(amount));
|
47
45
|
}
|
48
46
|
else {
|
49
|
-
|
47
|
+
_this.fungibleTokens.set(identifier, amount);
|
50
48
|
}
|
51
49
|
});
|
52
50
|
return this;
|
53
|
-
}
|
54
|
-
addState(other) {
|
51
|
+
};
|
52
|
+
State.prototype.addState = function (other) {
|
53
|
+
var _this = this;
|
55
54
|
var _a;
|
56
|
-
(_a = other === null || other === void 0 ? void 0 : other.fungibleTokens) === null || _a === void 0 ? void 0 : _a.forEach((amount)
|
57
|
-
|
58
|
-
|
55
|
+
(_a = other === null || other === void 0 ? void 0 : other.fungibleTokens) === null || _a === void 0 ? void 0 : _a.forEach(function (amount) {
|
56
|
+
var identifier = amount.token.identifier();
|
57
|
+
var currentAmount = _this.fungibleTokens.get(identifier);
|
59
58
|
if (currentAmount) {
|
60
|
-
|
59
|
+
_this.fungibleTokens.set(identifier, currentAmount.add(amount));
|
61
60
|
}
|
62
61
|
else {
|
63
|
-
|
62
|
+
_this.fungibleTokens.set(identifier, amount);
|
64
63
|
}
|
65
64
|
});
|
66
65
|
return this;
|
67
|
-
}
|
68
|
-
deductState(other) {
|
69
|
-
|
70
|
-
|
71
|
-
|
66
|
+
};
|
67
|
+
State.prototype.deductState = function (other) {
|
68
|
+
var _this = this;
|
69
|
+
other.fungibleTokens.forEach(function (amount) {
|
70
|
+
var identifier = amount.token.identifier();
|
71
|
+
var currentAmount = _this.fungibleTokens.get(identifier);
|
72
72
|
if ((currentAmount === null || currentAmount === void 0 ? void 0 : currentAmount.toRawAmount()) > (amount === null || amount === void 0 ? void 0 : amount.toRawAmount())) {
|
73
|
-
|
73
|
+
_this.fungibleTokens.set(identifier, currentAmount.subtract(amount));
|
74
74
|
}
|
75
75
|
else if (currentAmount) {
|
76
|
-
|
76
|
+
_this.fungibleTokens.delete(identifier);
|
77
77
|
}
|
78
78
|
});
|
79
79
|
return this;
|
80
|
-
}
|
81
|
-
equals(other) {
|
80
|
+
};
|
81
|
+
State.prototype.equals = function (other) {
|
82
82
|
if (!other) {
|
83
83
|
return false;
|
84
84
|
}
|
85
85
|
return (this.fungibleTokens.size == other.fungibleTokens.size &&
|
86
|
-
Array.from(this.fungibleTokens.entries()).every((
|
87
|
-
|
86
|
+
Array.from(this.fungibleTokens.entries()).every(function (_a) {
|
87
|
+
var key = _a[0], value = _a[1];
|
88
|
+
var otherValue = other.fungibleTokens.get(key);
|
88
89
|
return otherValue && value.equals(otherValue);
|
89
90
|
}));
|
90
|
-
}
|
91
|
-
addStates(states) {
|
92
|
-
|
91
|
+
};
|
92
|
+
State.prototype.addStates = function (states) {
|
93
|
+
var _this = this;
|
94
|
+
states.forEach(function (state) { return _this.addState(state); });
|
93
95
|
return this;
|
94
|
-
}
|
95
|
-
|
96
|
-
return states.reduce((acc, state)
|
97
|
-
}
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
96
|
+
};
|
97
|
+
State.mergeStates = function (states) {
|
98
|
+
return states.reduce(function (acc, state) { return acc.addState(state); }, new State([], [], []));
|
99
|
+
};
|
100
|
+
State.toState = function (state) {
|
101
|
+
if (!state)
|
102
|
+
return undefined;
|
103
|
+
var fungibleTokenAmounts = state.fungibleTokenAmounts.map(function (ft) {
|
104
|
+
return FungibleTokenAmount.toFungibleTokenAmount(ft);
|
105
|
+
});
|
106
|
+
var nonFungibleTokenAmounts = state.nonFungibleTokenAmounts.map(function (nft) { return NonFungibleToken.toNonFungibleToken(nft); });
|
107
|
+
var semiFungibleTokenAmounts = state.semiFungibleTokenAmounts.map(function (sft) { return SemiFungibleToken.toSemiFungibleToken(sft); });
|
102
108
|
return new State(fungibleTokenAmounts, nonFungibleTokenAmounts, semiFungibleTokenAmounts);
|
103
|
-
}
|
104
|
-
|
105
|
-
|
109
|
+
};
|
110
|
+
return State;
|
111
|
+
}());
|
112
|
+
export { State };
|
package/dist/enums.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.LIBRARY_TYPE = exports.TimeIntervalUnits = exports.TokenAllowlistType = exports.BlockchainEnvironment = exports.ActivityStatus = exports.Order = exports.QuoteType = exports.OperationStatusType = exports.Category = exports.OperationType = exports.OperationDataFormat = exports.CreateOperationsStatus = exports.ChainSupportStatus = exports.VMType = exports.AccountType = exports.TokenType = exports.Blockchain = void 0;
|
4
|
-
var Blockchain;
|
1
|
+
export var Blockchain;
|
5
2
|
(function (Blockchain) {
|
6
3
|
Blockchain["ETHEREUM"] = "ethereum";
|
7
4
|
Blockchain["POLYGON"] = "polygon";
|
@@ -27,43 +24,43 @@ var Blockchain;
|
|
27
24
|
Blockchain["HARDHAT"] = "hardhat";
|
28
25
|
Blockchain["LOCAL_CHAIN_0"] = "local_chain_0";
|
29
26
|
Blockchain["LOCAL_CHAIN_1"] = "local_chain_1";
|
30
|
-
})(Blockchain || (
|
31
|
-
var TokenType;
|
27
|
+
})(Blockchain || (Blockchain = {}));
|
28
|
+
export var TokenType;
|
32
29
|
(function (TokenType) {
|
33
30
|
TokenType["FUNGIBLE_TOKEN"] = "FUNGIBLE_TOKEN";
|
34
31
|
TokenType["NON_FUNGIBLE_TOKEN"] = "NON_FUNGIBLE_TOKEN";
|
35
32
|
TokenType["SEMI_FUNGIBLE_TOKEN"] = "SEMI_FUNGIBLE_TOKEN";
|
36
33
|
TokenType["FIAT"] = "FIAT";
|
37
|
-
})(TokenType || (
|
38
|
-
var AccountType;
|
34
|
+
})(TokenType || (TokenType = {}));
|
35
|
+
export var AccountType;
|
39
36
|
(function (AccountType) {
|
40
37
|
AccountType["EOA"] = "EOA";
|
41
38
|
AccountType["SCA"] = "SCA";
|
42
|
-
})(AccountType || (
|
43
|
-
var VMType;
|
39
|
+
})(AccountType || (AccountType = {}));
|
40
|
+
export var VMType;
|
44
41
|
(function (VMType) {
|
45
42
|
VMType["EVM"] = "EVM";
|
46
|
-
})(VMType || (
|
47
|
-
var ChainSupportStatus;
|
43
|
+
})(VMType || (VMType = {}));
|
44
|
+
export var ChainSupportStatus;
|
48
45
|
(function (ChainSupportStatus) {
|
49
46
|
ChainSupportStatus["CHAIN_SUPPORTED"] = "CHAIN_SUPPORTED";
|
50
47
|
ChainSupportStatus["CHAIN_UNAVAILABLE"] = "CHAIN_UNAVAILABLE";
|
51
48
|
ChainSupportStatus["ACCOUNT_UNAVAILABLE"] = "ACCOUNT_UNAVAILABLE";
|
52
|
-
})(ChainSupportStatus || (
|
53
|
-
var CreateOperationsStatus;
|
49
|
+
})(ChainSupportStatus || (ChainSupportStatus = {}));
|
50
|
+
export var CreateOperationsStatus;
|
54
51
|
(function (CreateOperationsStatus) {
|
55
52
|
CreateOperationsStatus["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
56
53
|
CreateOperationsStatus["INTERNAL"] = "INTERNAL";
|
57
54
|
CreateOperationsStatus["INVALID_ARGUMENT"] = "INVALID_ARGUMENT";
|
58
55
|
CreateOperationsStatus["NO_EXECUTION_PATH"] = "NO_EXECUTION_PATH";
|
59
56
|
CreateOperationsStatus["SUCCESS"] = "SUCCESS";
|
60
|
-
})(CreateOperationsStatus || (
|
61
|
-
var OperationDataFormat;
|
57
|
+
})(CreateOperationsStatus || (CreateOperationsStatus = {}));
|
58
|
+
export var OperationDataFormat;
|
62
59
|
(function (OperationDataFormat) {
|
63
60
|
OperationDataFormat["TRANSACTION"] = "TRANSACTION";
|
64
61
|
OperationDataFormat["TYPED_DATA"] = "TYPED_DATA";
|
65
|
-
})(OperationDataFormat || (
|
66
|
-
var OperationType;
|
62
|
+
})(OperationDataFormat || (OperationDataFormat = {}));
|
63
|
+
export var OperationType;
|
67
64
|
(function (OperationType) {
|
68
65
|
OperationType["APPROVE_ERC20_TOKEN"] = "APPROVE_ERC20_TOKEN";
|
69
66
|
OperationType["CANCEL_OPERATION"] = "CANCEL_OPERATION";
|
@@ -72,8 +69,8 @@ var OperationType;
|
|
72
69
|
OperationType["GAS_ABSTRACTION"] = "GAS_ABSTRACTION";
|
73
70
|
OperationType["NATIVE_TOKEN_TRANSFER"] = "NATIVE_TOKEN_TRANSFER";
|
74
71
|
OperationType["SUBMIT_INTENT"] = "SUBMIT_INTENT";
|
75
|
-
})(OperationType || (
|
76
|
-
var Category;
|
72
|
+
})(OperationType || (OperationType = {}));
|
73
|
+
export var Category;
|
77
74
|
(function (Category) {
|
78
75
|
Category["SEND"] = "SEND";
|
79
76
|
Category["RECEIVE"] = "RECEIVE";
|
@@ -82,45 +79,45 @@ var Category;
|
|
82
79
|
Category["BRIDGE"] = "BRIDGE";
|
83
80
|
Category["FUNCTION_CALL"] = "FUNCTION_CALL";
|
84
81
|
Category["TYPED_DATA_SIGNATURE"] = "TYPED_DATA_SIGNATURE";
|
85
|
-
})(Category || (
|
86
|
-
var OperationStatusType;
|
82
|
+
})(Category || (Category = {}));
|
83
|
+
export var OperationStatusType;
|
87
84
|
(function (OperationStatusType) {
|
88
85
|
OperationStatusType["FAILED"] = "FAILED";
|
89
86
|
OperationStatusType["NOT_FOUND"] = "NOT_FOUND";
|
90
87
|
OperationStatusType["PENDING"] = "PENDING";
|
91
88
|
OperationStatusType["SUCCESSFUL"] = "SUCCESSFUL";
|
92
89
|
OperationStatusType["WAITING_PRECONDITION"] = "WAITING_PRECONDITION";
|
93
|
-
})(OperationStatusType || (
|
94
|
-
var QuoteType;
|
90
|
+
})(OperationStatusType || (OperationStatusType = {}));
|
91
|
+
export var QuoteType;
|
95
92
|
(function (QuoteType) {
|
96
93
|
QuoteType["EXACT_INPUT"] = "EXACT_INPUT";
|
97
94
|
QuoteType["EXACT_OUTPUT"] = "EXACT_OUTPUT";
|
98
|
-
})(QuoteType || (
|
99
|
-
var Order;
|
95
|
+
})(QuoteType || (QuoteType = {}));
|
96
|
+
export var Order;
|
100
97
|
(function (Order) {
|
101
98
|
Order["NEWEST"] = "NEWEST";
|
102
99
|
Order["OLDEST"] = "OLDEST";
|
103
|
-
})(Order || (
|
104
|
-
var ActivityStatus;
|
100
|
+
})(Order || (Order = {}));
|
101
|
+
export var ActivityStatus;
|
105
102
|
(function (ActivityStatus) {
|
106
103
|
ActivityStatus["CANCELLED"] = "CANCELLED";
|
107
104
|
ActivityStatus["FAILED"] = "FAILED";
|
108
105
|
ActivityStatus["PENDING"] = "PENDING";
|
109
106
|
ActivityStatus["SUCCESS"] = "SUCCESS";
|
110
|
-
})(ActivityStatus || (
|
111
|
-
var BlockchainEnvironment;
|
107
|
+
})(ActivityStatus || (ActivityStatus = {}));
|
108
|
+
export var BlockchainEnvironment;
|
112
109
|
(function (BlockchainEnvironment) {
|
113
110
|
BlockchainEnvironment["MAINNET"] = "MAINNET";
|
114
111
|
BlockchainEnvironment["TESTNET"] = "TESTNET";
|
115
|
-
})(BlockchainEnvironment || (
|
116
|
-
var TokenAllowlistType;
|
112
|
+
})(BlockchainEnvironment || (BlockchainEnvironment = {}));
|
113
|
+
export var TokenAllowlistType;
|
117
114
|
(function (TokenAllowlistType) {
|
118
115
|
TokenAllowlistType["ALL_TOKENS"] = "ALL_TOKENS";
|
119
116
|
TokenAllowlistType["ONLY_FUNGIBLE_TOKENS"] = "ONLY_FUNGIBLE_TOKENS";
|
120
117
|
TokenAllowlistType["ONLY_NON_FUNGIBLE_TOKENS"] = "ONLY_NON_FUNGIBLE_TOKENS";
|
121
118
|
TokenAllowlistType["ONLY_SEMI_FUNGIBLE_TOKENS"] = "ONLY_SEMI_FUNGIBLE_TOKENS";
|
122
|
-
})(TokenAllowlistType || (
|
123
|
-
var TimeIntervalUnits;
|
119
|
+
})(TokenAllowlistType || (TokenAllowlistType = {}));
|
120
|
+
export var TimeIntervalUnits;
|
124
121
|
(function (TimeIntervalUnits) {
|
125
122
|
TimeIntervalUnits["DAYS"] = "DAYS";
|
126
123
|
TimeIntervalUnits["FOREVER"] = "FOREVER";
|
@@ -129,9 +126,9 @@ var TimeIntervalUnits;
|
|
129
126
|
TimeIntervalUnits["MONTHS"] = "MONTHS";
|
130
127
|
TimeIntervalUnits["WEEKS"] = "WEEKS";
|
131
128
|
TimeIntervalUnits["YEARS"] = "YEARS";
|
132
|
-
})(TimeIntervalUnits || (
|
133
|
-
var LIBRARY_TYPE;
|
129
|
+
})(TimeIntervalUnits || (TimeIntervalUnits = {}));
|
130
|
+
export var LIBRARY_TYPE;
|
134
131
|
(function (LIBRARY_TYPE) {
|
135
132
|
LIBRARY_TYPE["VIEM"] = "VIEM";
|
136
133
|
LIBRARY_TYPE["ETHERS"] = "ETHERS";
|
137
|
-
})(LIBRARY_TYPE || (
|
134
|
+
})(LIBRARY_TYPE || (LIBRARY_TYPE = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1,50 +1,31 @@
|
|
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
1
|
// interfaces
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
2
|
+
export * from "./interfaces/account_cluster";
|
3
|
+
export * from "./interfaces/admin";
|
4
|
+
export * from "./interfaces/application";
|
5
|
+
export * from "./interfaces/instance";
|
6
|
+
export * from "./interfaces/operation";
|
7
|
+
export * from "./interfaces/token";
|
8
|
+
export * from "./interfaces/orby";
|
25
9
|
// actions
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
10
|
+
export * from "./actions/account_cluster";
|
11
|
+
export * from "./actions/admin";
|
12
|
+
export * from "./actions/application";
|
13
|
+
export * from "./actions/instance";
|
14
|
+
export * from "./actions/operation";
|
15
|
+
export * from "./actions/token";
|
32
16
|
// entities
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
17
|
+
export * from "./entities/financial/account_balance";
|
18
|
+
export * from "./entities/financial/asset";
|
19
|
+
export * from "./entities/financial/currency_amount";
|
20
|
+
export * from "./entities/financial/currency";
|
21
|
+
export * from "./entities/financial/fungible_token_amount";
|
22
|
+
export * from "./entities/financial/fungible_token";
|
23
|
+
export * from "./entities/financial/non_fungible_token";
|
24
|
+
export * from "./entities/financial/semi_fungible_token";
|
25
|
+
export * from "./entities/account";
|
26
|
+
export * from "./entities/state";
|
43
27
|
// enums, types and constants
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
__exportStar(require("./constants"), exports);
|
49
|
-
__exportStar(require("./enums"), exports);
|
50
|
-
__exportStar(require("./types"), exports);
|
28
|
+
export * from "./enums";
|
29
|
+
export * from "./types";
|
30
|
+
export * from "./constants";
|
31
|
+
export * from "./utils/utils";
|
@@ -17,6 +17,6 @@ export interface IAccountClusterActions {
|
|
17
17
|
address?: string;
|
18
18
|
}[]): Promise<Activity[]>;
|
19
19
|
getPortfolioOverview(accountClusterId: string): Promise<FungibleTokenOverview>;
|
20
|
-
getFungibleTokenPortfolio(accountClusterId: string): Promise<
|
20
|
+
getFungibleTokenPortfolio(accountClusterId: string): Promise<StandardizedBalance[]>;
|
21
21
|
getFungibleTokenBalances(accountClusterId: string, offset?: number, limit?: number, tokensToOmit?: string[]): Promise<StandardizedBalance[]>;
|
22
22
|
}
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
package/dist/interfaces/admin.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
@@ -14,7 +14,7 @@ export interface IOperationActions {
|
|
14
14
|
getOperationStatuses(operationIds: string[]): Promise<OperationStatus[]>;
|
15
15
|
estimateFiatCostToExecuteTransaction(to: string, data: string, value?: string): Promise<CurrencyAmount>;
|
16
16
|
estimateFiatCostToSignTypedData(data: string): Promise<CurrencyAmount>;
|
17
|
-
getOperationsToTransferToken(accountClusterId: string, standardizedTokenId: string, amount:
|
17
|
+
getOperationsToTransferToken(accountClusterId: string, standardizedTokenId: string, amount: bigint, recipient: {
|
18
18
|
chainId: bigint;
|
19
19
|
recipientAddress: string;
|
20
20
|
}, gasToken?: {
|
@@ -26,14 +26,14 @@ export interface IOperationActions {
|
|
26
26
|
}): Promise<OperationSet>;
|
27
27
|
getOperationsToSwap(accountClusterId: string, swapType: QuoteType, input: {
|
28
28
|
standardizedTokenId: string;
|
29
|
-
amount?:
|
29
|
+
amount?: bigint;
|
30
30
|
tokenSources?: {
|
31
31
|
chainId: string;
|
32
32
|
address?: string;
|
33
33
|
}[];
|
34
34
|
}, output: {
|
35
35
|
standardizedTokenId: string;
|
36
|
-
amount?:
|
36
|
+
amount?: bigint;
|
37
37
|
tokenDestination?: {
|
38
38
|
chainId: string;
|
39
39
|
address?: string;
|
@@ -47,14 +47,14 @@ export interface IOperationActions {
|
|
47
47
|
}): Promise<OperationSet>;
|
48
48
|
getQuote(accountClusterId: string, swapType: QuoteType, input: {
|
49
49
|
standardizedTokenId: string;
|
50
|
-
amount?:
|
50
|
+
amount?: bigint;
|
51
51
|
tokenSources?: {
|
52
52
|
chainId: string;
|
53
53
|
address?: string;
|
54
54
|
}[];
|
55
55
|
}, output: {
|
56
56
|
standardizedTokenId: string;
|
57
|
-
amount?:
|
57
|
+
amount?: bigint;
|
58
58
|
tokenDestination?: {
|
59
59
|
chainId: string;
|
60
60
|
address?: string;
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
package/dist/interfaces/orby.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
package/dist/interfaces/token.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|