@metamask-previews/money-account-controller 0.1.0-preview-6e596eb → 0.1.0-preview-61580fcee
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.cjs +1 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -10
- package/dist/money-account-balance-service/constants.cjs +0 -23
- package/dist/money-account-balance-service/constants.cjs.map +0 -1
- package/dist/money-account-balance-service/constants.d.cts +0 -21
- package/dist/money-account-balance-service/constants.d.cts.map +0 -1
- package/dist/money-account-balance-service/constants.d.mts +0 -21
- package/dist/money-account-balance-service/constants.d.mts.map +0 -1
- package/dist/money-account-balance-service/constants.mjs +0 -20
- package/dist/money-account-balance-service/constants.mjs.map +0 -1
- package/dist/money-account-balance-service/errors.cjs +0 -11
- package/dist/money-account-balance-service/errors.cjs.map +0 -1
- package/dist/money-account-balance-service/errors.d.cts +0 -4
- package/dist/money-account-balance-service/errors.d.cts.map +0 -1
- package/dist/money-account-balance-service/errors.d.mts +0 -4
- package/dist/money-account-balance-service/errors.d.mts.map +0 -1
- package/dist/money-account-balance-service/errors.mjs +0 -7
- package/dist/money-account-balance-service/errors.mjs.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.cjs +0 -8
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.cjs.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.d.cts +0 -61
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.d.cts.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.d.mts +0 -61
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.d.mts.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.mjs +0 -7
- package/dist/money-account-balance-service/money-account-balance-service-method-action-types.mjs.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service.cjs +0 -227
- package/dist/money-account-balance-service/money-account-balance-service.cjs.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service.d.cts +0 -150
- package/dist/money-account-balance-service/money-account-balance-service.d.cts.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service.d.mts +0 -150
- package/dist/money-account-balance-service/money-account-balance-service.d.mts.map +0 -1
- package/dist/money-account-balance-service/money-account-balance-service.mjs +0 -223
- package/dist/money-account-balance-service/money-account-balance-service.mjs.map +0 -1
- package/dist/money-account-balance-service/requestNormalization.cjs +0 -38
- package/dist/money-account-balance-service/requestNormalization.cjs.map +0 -1
- package/dist/money-account-balance-service/requestNormalization.d.cts +0 -12
- package/dist/money-account-balance-service/requestNormalization.d.cts.map +0 -1
- package/dist/money-account-balance-service/requestNormalization.d.mts +0 -12
- package/dist/money-account-balance-service/requestNormalization.d.mts.map +0 -1
- package/dist/money-account-balance-service/requestNormalization.mjs +0 -34
- package/dist/money-account-balance-service/requestNormalization.mjs.map +0 -1
- package/dist/money-account-balance-service/response.types.cjs +0 -3
- package/dist/money-account-balance-service/response.types.cjs.map +0 -1
- package/dist/money-account-balance-service/response.types.d.cts +0 -54
- package/dist/money-account-balance-service/response.types.d.cts.map +0 -1
- package/dist/money-account-balance-service/response.types.d.mts +0 -54
- package/dist/money-account-balance-service/response.types.d.mts.map +0 -1
- package/dist/money-account-balance-service/response.types.mjs +0 -2
- package/dist/money-account-balance-service/response.types.mjs.map +0 -1
- package/dist/money-account-balance-service/structs.cjs +0 -36
- package/dist/money-account-balance-service/structs.cjs.map +0 -1
- package/dist/money-account-balance-service/structs.d.cts +0 -88
- package/dist/money-account-balance-service/structs.d.cts.map +0 -1
- package/dist/money-account-balance-service/structs.d.mts +0 -88
- package/dist/money-account-balance-service/structs.d.mts.map +0 -1
- package/dist/money-account-balance-service/structs.mjs +0 -33
- package/dist/money-account-balance-service/structs.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getDefaultMoneyAccountControllerState = exports.controllerName = exports.MoneyAccountController = exports.isMoneyKeyring = void 0;
|
|
4
4
|
var utils_1 = require("./utils.cjs");
|
|
5
5
|
Object.defineProperty(exports, "isMoneyKeyring", { enumerable: true, get: function () { return utils_1.isMoneyKeyring; } });
|
|
6
6
|
var MoneyAccountController_1 = require("./MoneyAccountController.cjs");
|
|
7
7
|
Object.defineProperty(exports, "MoneyAccountController", { enumerable: true, get: function () { return MoneyAccountController_1.MoneyAccountController; } });
|
|
8
8
|
Object.defineProperty(exports, "controllerName", { enumerable: true, get: function () { return MoneyAccountController_1.controllerName; } });
|
|
9
9
|
Object.defineProperty(exports, "getDefaultMoneyAccountControllerState", { enumerable: true, get: function () { return MoneyAccountController_1.getDefaultMoneyAccountControllerState; } });
|
|
10
|
-
var money_account_balance_service_1 = require("./money-account-balance-service/money-account-balance-service.cjs");
|
|
11
|
-
Object.defineProperty(exports, "MoneyAccountBalanceService", { enumerable: true, get: function () { return money_account_balance_service_1.MoneyAccountBalanceService; } });
|
|
12
|
-
Object.defineProperty(exports, "moneyAccountBalanceServiceName", { enumerable: true, get: function () { return money_account_balance_service_1.serviceName; } });
|
|
13
10
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,qCAAyC;AAAhC,uGAAA,cAAc,OAAA;AACvB,uEAIkC;AAHhC,gIAAA,sBAAsB,OAAA;AACtB,wHAAA,cAAc,OAAA;AACd,+IAAA,qCAAqC,OAAA
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,qCAAyC;AAAhC,uGAAA,cAAc,OAAA;AACvB,uEAIkC;AAHhC,gIAAA,sBAAsB,OAAA;AACtB,wHAAA,cAAc,OAAA;AACd,+IAAA,qCAAqC,OAAA","sourcesContent":["export type { MoneyAccount } from './types';\nexport { isMoneyKeyring } from './utils';\nexport {\n MoneyAccountController,\n controllerName,\n getDefaultMoneyAccountControllerState,\n} from './MoneyAccountController';\nexport type {\n MoneyAccountControllerState,\n MoneyAccountControllerGetStateAction,\n MoneyAccountControllerActions,\n MoneyAccountControllerStateChangeEvent,\n MoneyAccountControllerEvents,\n MoneyAccountControllerMessenger,\n} from './MoneyAccountController';\nexport type {\n MoneyAccountControllerClearStateAction,\n MoneyAccountControllerCreateMoneyAccountAction,\n MoneyAccountControllerGetMoneyAccountAction,\n} from './MoneyAccountController-method-action-types';\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,4 @@ export { isMoneyKeyring } from "./utils.cjs";
|
|
|
3
3
|
export { MoneyAccountController, controllerName, getDefaultMoneyAccountControllerState, } from "./MoneyAccountController.cjs";
|
|
4
4
|
export type { MoneyAccountControllerState, MoneyAccountControllerGetStateAction, MoneyAccountControllerActions, MoneyAccountControllerStateChangeEvent, MoneyAccountControllerEvents, MoneyAccountControllerMessenger, } from "./MoneyAccountController.cjs";
|
|
5
5
|
export type { MoneyAccountControllerClearStateAction, MoneyAccountControllerCreateMoneyAccountAction, MoneyAccountControllerGetMoneyAccountAction, } from "./MoneyAccountController-method-action-types.cjs";
|
|
6
|
-
export { MoneyAccountBalanceService, serviceName as moneyAccountBalanceServiceName, } from "./money-account-balance-service/money-account-balance-service.cjs";
|
|
7
|
-
export type { MoneyAccountBalanceServiceActions, MoneyAccountBalanceServiceEvents, MoneyAccountBalanceServiceMessenger, } from "./money-account-balance-service/money-account-balance-service.cjs";
|
|
8
|
-
export type { MoneyAccountBalanceServiceGetMusdBalanceAction, MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction, MoneyAccountBalanceServiceGetExchangeRateAction, MoneyAccountBalanceServiceGetMusdEquivalentValueAction, MoneyAccountBalanceServiceGetVaultApyAction, } from "./money-account-balance-service/money-account-balance-service-method-action-types.cjs";
|
|
9
|
-
export type { Erc20BalanceResponse, ExchangeRateResponse, MusdEquivalentValueResponse, VaultApyResponse, } from "./money-account-balance-service/response.types.cjs";
|
|
10
6
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,EAAE,cAAc,EAAE,oBAAgB;AACzC,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,qCAAqC,GACtC,qCAAiC;AAClC,YAAY,EACV,2BAA2B,EAC3B,oCAAoC,EACpC,6BAA6B,EAC7B,sCAAsC,EACtC,4BAA4B,EAC5B,+BAA+B,GAChC,qCAAiC;AAClC,YAAY,EACV,sCAAsC,EACtC,8CAA8C,EAC9C,2CAA2C,GAC5C,yDAAqD
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,EAAE,cAAc,EAAE,oBAAgB;AACzC,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,qCAAqC,GACtC,qCAAiC;AAClC,YAAY,EACV,2BAA2B,EAC3B,oCAAoC,EACpC,6BAA6B,EAC7B,sCAAsC,EACtC,4BAA4B,EAC5B,+BAA+B,GAChC,qCAAiC;AAClC,YAAY,EACV,sCAAsC,EACtC,8CAA8C,EAC9C,2CAA2C,GAC5C,yDAAqD"}
|
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,4 @@ export { isMoneyKeyring } from "./utils.mjs";
|
|
|
3
3
|
export { MoneyAccountController, controllerName, getDefaultMoneyAccountControllerState, } from "./MoneyAccountController.mjs";
|
|
4
4
|
export type { MoneyAccountControllerState, MoneyAccountControllerGetStateAction, MoneyAccountControllerActions, MoneyAccountControllerStateChangeEvent, MoneyAccountControllerEvents, MoneyAccountControllerMessenger, } from "./MoneyAccountController.mjs";
|
|
5
5
|
export type { MoneyAccountControllerClearStateAction, MoneyAccountControllerCreateMoneyAccountAction, MoneyAccountControllerGetMoneyAccountAction, } from "./MoneyAccountController-method-action-types.mjs";
|
|
6
|
-
export { MoneyAccountBalanceService, serviceName as moneyAccountBalanceServiceName, } from "./money-account-balance-service/money-account-balance-service.mjs";
|
|
7
|
-
export type { MoneyAccountBalanceServiceActions, MoneyAccountBalanceServiceEvents, MoneyAccountBalanceServiceMessenger, } from "./money-account-balance-service/money-account-balance-service.mjs";
|
|
8
|
-
export type { MoneyAccountBalanceServiceGetMusdBalanceAction, MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction, MoneyAccountBalanceServiceGetExchangeRateAction, MoneyAccountBalanceServiceGetMusdEquivalentValueAction, MoneyAccountBalanceServiceGetVaultApyAction, } from "./money-account-balance-service/money-account-balance-service-method-action-types.mjs";
|
|
9
|
-
export type { Erc20BalanceResponse, ExchangeRateResponse, MusdEquivalentValueResponse, VaultApyResponse, } from "./money-account-balance-service/response.types.mjs";
|
|
10
6
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,EAAE,cAAc,EAAE,oBAAgB;AACzC,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,qCAAqC,GACtC,qCAAiC;AAClC,YAAY,EACV,2BAA2B,EAC3B,oCAAoC,EACpC,6BAA6B,EAC7B,sCAAsC,EACtC,4BAA4B,EAC5B,+BAA+B,GAChC,qCAAiC;AAClC,YAAY,EACV,sCAAsC,EACtC,8CAA8C,EAC9C,2CAA2C,GAC5C,yDAAqD
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,EAAE,cAAc,EAAE,oBAAgB;AACzC,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,qCAAqC,GACtC,qCAAiC;AAClC,YAAY,EACV,2BAA2B,EAC3B,oCAAoC,EACpC,6BAA6B,EAC7B,sCAAsC,EACtC,4BAA4B,EAC5B,+BAA+B,GAChC,qCAAiC;AAClC,YAAY,EACV,sCAAsC,EACtC,8CAA8C,EAC9C,2CAA2C,GAC5C,yDAAqD"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { isMoneyKeyring } from "./utils.mjs";
|
|
2
2
|
export { MoneyAccountController, controllerName, getDefaultMoneyAccountControllerState } from "./MoneyAccountController.mjs";
|
|
3
|
-
export { MoneyAccountBalanceService, serviceName as moneyAccountBalanceServiceName } from "./money-account-balance-service/money-account-balance-service.mjs";
|
|
4
3
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,oBAAgB;AACzC,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,qCAAqC,EACtC,qCAAiC
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,oBAAgB;AACzC,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,qCAAqC,EACtC,qCAAiC","sourcesContent":["export type { MoneyAccount } from './types';\nexport { isMoneyKeyring } from './utils';\nexport {\n MoneyAccountController,\n controllerName,\n getDefaultMoneyAccountControllerState,\n} from './MoneyAccountController';\nexport type {\n MoneyAccountControllerState,\n MoneyAccountControllerGetStateAction,\n MoneyAccountControllerActions,\n MoneyAccountControllerStateChangeEvent,\n MoneyAccountControllerEvents,\n MoneyAccountControllerMessenger,\n} from './MoneyAccountController';\nexport type {\n MoneyAccountControllerClearStateAction,\n MoneyAccountControllerCreateMoneyAccountAction,\n MoneyAccountControllerGetMoneyAccountAction,\n} from './MoneyAccountController-method-action-types';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/money-account-controller",
|
|
3
|
-
"version": "0.1.0-preview-
|
|
3
|
+
"version": "0.1.0-preview-61580fcee",
|
|
4
4
|
"description": "MetaMask Money account controller",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -49,30 +49,22 @@
|
|
|
49
49
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@ethersproject/contracts": "^5.7.0",
|
|
53
|
-
"@ethersproject/providers": "^5.7.0",
|
|
54
52
|
"@metamask/accounts-controller": "^37.2.0",
|
|
55
53
|
"@metamask/base-controller": "^9.0.1",
|
|
56
|
-
"@metamask/base-data-service": "^0.1.1",
|
|
57
|
-
"@metamask/controller-utils": "^11.20.0",
|
|
58
54
|
"@metamask/eth-money-keyring": "^2.0.0",
|
|
59
55
|
"@metamask/keyring-api": "^21.6.0",
|
|
60
56
|
"@metamask/keyring-controller": "^25.2.0",
|
|
61
57
|
"@metamask/messenger": "^1.1.1",
|
|
62
|
-
"@metamask/metamask-eth-abis": "^3.1.1",
|
|
63
|
-
"@metamask/network-controller": "^30.0.1",
|
|
64
|
-
"@metamask/superstruct": "^3.1.0",
|
|
65
|
-
"@metamask/utils": "^11.9.0",
|
|
66
58
|
"async-mutex": "^0.5.0"
|
|
67
59
|
},
|
|
68
60
|
"devDependencies": {
|
|
69
61
|
"@metamask/auto-changelog": "^3.4.4",
|
|
70
62
|
"@metamask/keyring-utils": "^3.1.0",
|
|
63
|
+
"@metamask/utils": "^11.9.0",
|
|
71
64
|
"@ts-bridge/cli": "^0.6.4",
|
|
72
65
|
"@types/jest": "^29.5.14",
|
|
73
66
|
"deepmerge": "^4.2.2",
|
|
74
67
|
"jest": "^29.7.0",
|
|
75
|
-
"nock": "^13.3.1",
|
|
76
68
|
"ts-jest": "^29.2.5",
|
|
77
69
|
"tsx": "^4.20.5",
|
|
78
70
|
"typedoc": "^0.25.13",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ACCOUNTANT_ABI = exports.DEFAULT_VEDA_API_NETWORK_NAME = exports.VEDA_API_NETWORK_NAMES = exports.VEDA_PERFORMANCE_API_BASE_URL = void 0;
|
|
4
|
-
exports.VEDA_PERFORMANCE_API_BASE_URL = 'https://api.sevenseas.capital';
|
|
5
|
-
exports.VEDA_API_NETWORK_NAMES = {
|
|
6
|
-
'0xa4b1': 'arbitrum',
|
|
7
|
-
};
|
|
8
|
-
exports.DEFAULT_VEDA_API_NETWORK_NAME = exports.VEDA_API_NETWORK_NAMES['0xa4b1'];
|
|
9
|
-
/**
|
|
10
|
-
* Minimal ABI for the Veda Accountant's `getRate()` function (selector 0x679aefce).
|
|
11
|
-
* Returns the exchange rate between vault shares (musdSHFvd) and the
|
|
12
|
-
* underlying asset (mUSD) as a uint256.
|
|
13
|
-
*/
|
|
14
|
-
exports.ACCOUNTANT_ABI = [
|
|
15
|
-
{
|
|
16
|
-
inputs: [],
|
|
17
|
-
name: 'getRate',
|
|
18
|
-
outputs: [{ internalType: 'uint256', name: 'rate', type: 'uint256' }],
|
|
19
|
-
stateMutability: 'view',
|
|
20
|
-
type: 'function',
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
//# sourceMappingURL=constants.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/money-account-balance-service/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAEhE,QAAA,sBAAsB,GAAwB;IACzD,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEW,QAAA,6BAA6B,GAAG,8BAAsB,CAAC,QAAQ,CAAC,CAAC;AAE9E;;;;GAIG;AACU,QAAA,cAAc,GAAG;IAC5B;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC","sourcesContent":["import { Hex } from '@metamask/utils';\n\nexport const VEDA_PERFORMANCE_API_BASE_URL = 'https://api.sevenseas.capital';\n\nexport const VEDA_API_NETWORK_NAMES: Record<Hex, string> = {\n '0xa4b1': 'arbitrum',\n};\n\nexport const DEFAULT_VEDA_API_NETWORK_NAME = VEDA_API_NETWORK_NAMES['0xa4b1'];\n\n/**\n * Minimal ABI for the Veda Accountant's `getRate()` function (selector 0x679aefce).\n * Returns the exchange rate between vault shares (musdSHFvd) and the\n * underlying asset (mUSD) as a uint256.\n */\nexport const ACCOUNTANT_ABI = [\n {\n inputs: [],\n name: 'getRate',\n outputs: [{ internalType: 'uint256', name: 'rate', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n] as const;\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Hex } from "@metamask/utils";
|
|
2
|
-
export declare const VEDA_PERFORMANCE_API_BASE_URL = "https://api.sevenseas.capital";
|
|
3
|
-
export declare const VEDA_API_NETWORK_NAMES: Record<Hex, string>;
|
|
4
|
-
export declare const DEFAULT_VEDA_API_NETWORK_NAME: string;
|
|
5
|
-
/**
|
|
6
|
-
* Minimal ABI for the Veda Accountant's `getRate()` function (selector 0x679aefce).
|
|
7
|
-
* Returns the exchange rate between vault shares (musdSHFvd) and the
|
|
8
|
-
* underlying asset (mUSD) as a uint256.
|
|
9
|
-
*/
|
|
10
|
-
export declare const ACCOUNTANT_ABI: readonly [{
|
|
11
|
-
readonly inputs: readonly [];
|
|
12
|
-
readonly name: "getRate";
|
|
13
|
-
readonly outputs: readonly [{
|
|
14
|
-
readonly internalType: "uint256";
|
|
15
|
-
readonly name: "rate";
|
|
16
|
-
readonly type: "uint256";
|
|
17
|
-
}];
|
|
18
|
-
readonly stateMutability: "view";
|
|
19
|
-
readonly type: "function";
|
|
20
|
-
}];
|
|
21
|
-
//# sourceMappingURL=constants.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/money-account-balance-service/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,wBAAwB;AAEtC,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAEtD,CAAC;AAEF,eAAO,MAAM,6BAA6B,QAAmC,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;EAQjB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Hex } from "@metamask/utils";
|
|
2
|
-
export declare const VEDA_PERFORMANCE_API_BASE_URL = "https://api.sevenseas.capital";
|
|
3
|
-
export declare const VEDA_API_NETWORK_NAMES: Record<Hex, string>;
|
|
4
|
-
export declare const DEFAULT_VEDA_API_NETWORK_NAME: string;
|
|
5
|
-
/**
|
|
6
|
-
* Minimal ABI for the Veda Accountant's `getRate()` function (selector 0x679aefce).
|
|
7
|
-
* Returns the exchange rate between vault shares (musdSHFvd) and the
|
|
8
|
-
* underlying asset (mUSD) as a uint256.
|
|
9
|
-
*/
|
|
10
|
-
export declare const ACCOUNTANT_ABI: readonly [{
|
|
11
|
-
readonly inputs: readonly [];
|
|
12
|
-
readonly name: "getRate";
|
|
13
|
-
readonly outputs: readonly [{
|
|
14
|
-
readonly internalType: "uint256";
|
|
15
|
-
readonly name: "rate";
|
|
16
|
-
readonly type: "uint256";
|
|
17
|
-
}];
|
|
18
|
-
readonly stateMutability: "view";
|
|
19
|
-
readonly type: "function";
|
|
20
|
-
}];
|
|
21
|
-
//# sourceMappingURL=constants.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/money-account-balance-service/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,wBAAwB;AAEtC,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAEtD,CAAC;AAEF,eAAO,MAAM,6BAA6B,QAAmC,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;EAQjB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const VEDA_PERFORMANCE_API_BASE_URL = 'https://api.sevenseas.capital';
|
|
2
|
-
export const VEDA_API_NETWORK_NAMES = {
|
|
3
|
-
'0xa4b1': 'arbitrum',
|
|
4
|
-
};
|
|
5
|
-
export const DEFAULT_VEDA_API_NETWORK_NAME = VEDA_API_NETWORK_NAMES['0xa4b1'];
|
|
6
|
-
/**
|
|
7
|
-
* Minimal ABI for the Veda Accountant's `getRate()` function (selector 0x679aefce).
|
|
8
|
-
* Returns the exchange rate between vault shares (musdSHFvd) and the
|
|
9
|
-
* underlying asset (mUSD) as a uint256.
|
|
10
|
-
*/
|
|
11
|
-
export const ACCOUNTANT_ABI = [
|
|
12
|
-
{
|
|
13
|
-
inputs: [],
|
|
14
|
-
name: 'getRate',
|
|
15
|
-
outputs: [{ internalType: 'uint256', name: 'rate', type: 'uint256' }],
|
|
16
|
-
stateMutability: 'view',
|
|
17
|
-
type: 'function',
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
|
-
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/money-account-balance-service/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,6BAA6B,GAAG,+BAA+B,CAAC;AAE7E,MAAM,CAAC,MAAM,sBAAsB,GAAwB;IACzD,QAAQ,EAAE,UAAU;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACrE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC","sourcesContent":["import { Hex } from '@metamask/utils';\n\nexport const VEDA_PERFORMANCE_API_BASE_URL = 'https://api.sevenseas.capital';\n\nexport const VEDA_API_NETWORK_NAMES: Record<Hex, string> = {\n '0xa4b1': 'arbitrum',\n};\n\nexport const DEFAULT_VEDA_API_NETWORK_NAME = VEDA_API_NETWORK_NAMES['0xa4b1'];\n\n/**\n * Minimal ABI for the Veda Accountant's `getRate()` function (selector 0x679aefce).\n * Returns the exchange rate between vault shares (musdSHFvd) and the\n * underlying asset (mUSD) as a uint256.\n */\nexport const ACCOUNTANT_ABI = [\n {\n inputs: [],\n name: 'getRate',\n outputs: [{ internalType: 'uint256', name: 'rate', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n] as const;\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VedaResponseValidationError = void 0;
|
|
4
|
-
class VedaResponseValidationError extends Error {
|
|
5
|
-
constructor(message) {
|
|
6
|
-
super(message ?? 'Malformed response received from Veda API');
|
|
7
|
-
this.name = 'VedaResponseValidationError';
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.VedaResponseValidationError = VedaResponseValidationError;
|
|
11
|
-
//# sourceMappingURL=errors.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.cjs","sourceRoot":"","sources":["../../src/money-account-balance-service/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,2BAA4B,SAAQ,KAAK;IACpD,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,2CAA2C,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AALD,kEAKC","sourcesContent":["export class VedaResponseValidationError extends Error {\n constructor(message?: string) {\n super(message ?? 'Malformed response received from Veda API');\n this.name = 'VedaResponseValidationError';\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.cts","sourceRoot":"","sources":["../../src/money-account-balance-service/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,2BAA4B,SAAQ,KAAK;gBACxC,OAAO,CAAC,EAAE,MAAM;CAI7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../../src/money-account-balance-service/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,2BAA4B,SAAQ,KAAK;gBACxC,OAAO,CAAC,EAAE,MAAM;CAI7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.mjs","sourceRoot":"","sources":["../../src/money-account-balance-service/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,2BAA4B,SAAQ,KAAK;IACpD,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,IAAI,2CAA2C,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF","sourcesContent":["export class VedaResponseValidationError extends Error {\n constructor(message?: string) {\n super(message ?? 'Malformed response received from Veda API');\n this.name = 'VedaResponseValidationError';\n }\n}\n"]}
|
package/dist/money-account-balance-service/money-account-balance-service-method-action-types.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// TODO: This file is supposed to be auto generated. Verify that this generates correctly. The first iteration (seen here) was generated by agent.
|
|
3
|
-
/**
|
|
4
|
-
* This file is auto generated.
|
|
5
|
-
* Do not edit manually.
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
//# sourceMappingURL=money-account-balance-service-method-action-types.cjs.map
|
package/dist/money-account-balance-service/money-account-balance-service-method-action-types.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"money-account-balance-service-method-action-types.cjs","sourceRoot":"","sources":["../../src/money-account-balance-service/money-account-balance-service-method-action-types.ts"],"names":[],"mappings":";AAAA,kJAAkJ;AAClJ;;;GAGG","sourcesContent":["// TODO: This file is supposed to be auto generated. Verify that this generates correctly. The first iteration (seen here) was generated by agent.\n/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MoneyAccountBalanceService } from './money-account-balance-service';\n\n/**\n * Fetches the mUSD ERC-20 balance for the given account address via RPC.\n *\n * @param accountAddress - The Money account's address.\n * @returns The mUSD balance as a raw uint256 string.\n */\nexport type MoneyAccountBalanceServiceGetMusdBalanceAction = {\n type: `MoneyAccountBalanceService:getMusdBalance`;\n handler: MoneyAccountBalanceService['getMusdBalance'];\n};\n\n/**\n * Fetches the musdSHFvd (Veda vault share) ERC-20 balance for the given\n * account address via RPC.\n *\n * @param accountAddress - The Money account's address.\n * @returns The musdSHFvd balance as a raw uint256 string.\n */\nexport type MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction = {\n type: `MoneyAccountBalanceService:getMusdSHFvdBalance`;\n handler: MoneyAccountBalanceService['getMusdSHFvdBalance'];\n};\n\n/**\n * Fetches the current exchange rate from the Veda Accountant contract via RPC.\n *\n * @returns The exchange rate as a raw uint256 string.\n */\nexport type MoneyAccountBalanceServiceGetExchangeRateAction = {\n type: `MoneyAccountBalanceService:getExchangeRate`;\n handler: MoneyAccountBalanceService['getExchangeRate'];\n};\n\n/**\n * Computes the mUSD-equivalent value of the account's musdSHFvd holdings.\n * Internally fetches the musdSHFvd balance and exchange rate (using cached\n * values when available), then multiplies them.\n *\n * @param accountAddress - The Money account's address.\n * @returns The musdSHFvd balance, exchange rate, and computed mUSD-equivalent value.\n */\nexport type MoneyAccountBalanceServiceGetMusdEquivalentValueAction = {\n type: `MoneyAccountBalanceService:getMusdEquivalentValue`;\n handler: MoneyAccountBalanceService['getMusdEquivalentValue'];\n};\n\n/**\n * Fetches the vault's APY and fee breakdown from the Veda performance REST API.\n *\n * @returns The 7-day trailing net APY, fees, and per-position breakdown.\n */\nexport type MoneyAccountBalanceServiceGetVaultApyAction = {\n type: `MoneyAccountBalanceService:getVaultApy`;\n handler: MoneyAccountBalanceService['getVaultApy'];\n};\n\n/**\n * Union of all MoneyAccountBalanceService action types.\n */\nexport type MoneyAccountBalanceServiceMethodActions =\n | MoneyAccountBalanceServiceGetMusdBalanceAction\n | MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction\n | MoneyAccountBalanceServiceGetExchangeRateAction\n | MoneyAccountBalanceServiceGetMusdEquivalentValueAction\n | MoneyAccountBalanceServiceGetVaultApyAction;\n"]}
|
package/dist/money-account-balance-service/money-account-balance-service-method-action-types.d.cts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is auto generated.
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import type { MoneyAccountBalanceService } from "./money-account-balance-service.cjs";
|
|
6
|
-
/**
|
|
7
|
-
* Fetches the mUSD ERC-20 balance for the given account address via RPC.
|
|
8
|
-
*
|
|
9
|
-
* @param accountAddress - The Money account's address.
|
|
10
|
-
* @returns The mUSD balance as a raw uint256 string.
|
|
11
|
-
*/
|
|
12
|
-
export type MoneyAccountBalanceServiceGetMusdBalanceAction = {
|
|
13
|
-
type: `MoneyAccountBalanceService:getMusdBalance`;
|
|
14
|
-
handler: MoneyAccountBalanceService['getMusdBalance'];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Fetches the musdSHFvd (Veda vault share) ERC-20 balance for the given
|
|
18
|
-
* account address via RPC.
|
|
19
|
-
*
|
|
20
|
-
* @param accountAddress - The Money account's address.
|
|
21
|
-
* @returns The musdSHFvd balance as a raw uint256 string.
|
|
22
|
-
*/
|
|
23
|
-
export type MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction = {
|
|
24
|
-
type: `MoneyAccountBalanceService:getMusdSHFvdBalance`;
|
|
25
|
-
handler: MoneyAccountBalanceService['getMusdSHFvdBalance'];
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Fetches the current exchange rate from the Veda Accountant contract via RPC.
|
|
29
|
-
*
|
|
30
|
-
* @returns The exchange rate as a raw uint256 string.
|
|
31
|
-
*/
|
|
32
|
-
export type MoneyAccountBalanceServiceGetExchangeRateAction = {
|
|
33
|
-
type: `MoneyAccountBalanceService:getExchangeRate`;
|
|
34
|
-
handler: MoneyAccountBalanceService['getExchangeRate'];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Computes the mUSD-equivalent value of the account's musdSHFvd holdings.
|
|
38
|
-
* Internally fetches the musdSHFvd balance and exchange rate (using cached
|
|
39
|
-
* values when available), then multiplies them.
|
|
40
|
-
*
|
|
41
|
-
* @param accountAddress - The Money account's address.
|
|
42
|
-
* @returns The musdSHFvd balance, exchange rate, and computed mUSD-equivalent value.
|
|
43
|
-
*/
|
|
44
|
-
export type MoneyAccountBalanceServiceGetMusdEquivalentValueAction = {
|
|
45
|
-
type: `MoneyAccountBalanceService:getMusdEquivalentValue`;
|
|
46
|
-
handler: MoneyAccountBalanceService['getMusdEquivalentValue'];
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Fetches the vault's APY and fee breakdown from the Veda performance REST API.
|
|
50
|
-
*
|
|
51
|
-
* @returns The 7-day trailing net APY, fees, and per-position breakdown.
|
|
52
|
-
*/
|
|
53
|
-
export type MoneyAccountBalanceServiceGetVaultApyAction = {
|
|
54
|
-
type: `MoneyAccountBalanceService:getVaultApy`;
|
|
55
|
-
handler: MoneyAccountBalanceService['getVaultApy'];
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Union of all MoneyAccountBalanceService action types.
|
|
59
|
-
*/
|
|
60
|
-
export type MoneyAccountBalanceServiceMethodActions = MoneyAccountBalanceServiceGetMusdBalanceAction | MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction | MoneyAccountBalanceServiceGetExchangeRateAction | MoneyAccountBalanceServiceGetMusdEquivalentValueAction | MoneyAccountBalanceServiceGetVaultApyAction;
|
|
61
|
-
//# sourceMappingURL=money-account-balance-service-method-action-types.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"money-account-balance-service-method-action-types.d.cts","sourceRoot":"","sources":["../../src/money-account-balance-service/money-account-balance-service-method-action-types.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,4CAAwC;AAElF;;;;;GAKG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,2CAA2C,CAAC;IAClD,OAAO,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;CACvD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,gDAAgD,CAAC;IACvD,OAAO,EAAE,0BAA0B,CAAC,qBAAqB,CAAC,CAAC;CAC5D,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,EAAE,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,sDAAsD,GAAG;IACnE,IAAI,EAAE,mDAAmD,CAAC;IAC1D,OAAO,EAAE,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;CAC/D,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,0BAA0B,CAAC,aAAa,CAAC,CAAC;CACpD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAC/C,8CAA8C,GAC9C,mDAAmD,GACnD,+CAA+C,GAC/C,sDAAsD,GACtD,2CAA2C,CAAC"}
|
package/dist/money-account-balance-service/money-account-balance-service-method-action-types.d.mts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is auto generated.
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import type { MoneyAccountBalanceService } from "./money-account-balance-service.mjs";
|
|
6
|
-
/**
|
|
7
|
-
* Fetches the mUSD ERC-20 balance for the given account address via RPC.
|
|
8
|
-
*
|
|
9
|
-
* @param accountAddress - The Money account's address.
|
|
10
|
-
* @returns The mUSD balance as a raw uint256 string.
|
|
11
|
-
*/
|
|
12
|
-
export type MoneyAccountBalanceServiceGetMusdBalanceAction = {
|
|
13
|
-
type: `MoneyAccountBalanceService:getMusdBalance`;
|
|
14
|
-
handler: MoneyAccountBalanceService['getMusdBalance'];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Fetches the musdSHFvd (Veda vault share) ERC-20 balance for the given
|
|
18
|
-
* account address via RPC.
|
|
19
|
-
*
|
|
20
|
-
* @param accountAddress - The Money account's address.
|
|
21
|
-
* @returns The musdSHFvd balance as a raw uint256 string.
|
|
22
|
-
*/
|
|
23
|
-
export type MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction = {
|
|
24
|
-
type: `MoneyAccountBalanceService:getMusdSHFvdBalance`;
|
|
25
|
-
handler: MoneyAccountBalanceService['getMusdSHFvdBalance'];
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Fetches the current exchange rate from the Veda Accountant contract via RPC.
|
|
29
|
-
*
|
|
30
|
-
* @returns The exchange rate as a raw uint256 string.
|
|
31
|
-
*/
|
|
32
|
-
export type MoneyAccountBalanceServiceGetExchangeRateAction = {
|
|
33
|
-
type: `MoneyAccountBalanceService:getExchangeRate`;
|
|
34
|
-
handler: MoneyAccountBalanceService['getExchangeRate'];
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Computes the mUSD-equivalent value of the account's musdSHFvd holdings.
|
|
38
|
-
* Internally fetches the musdSHFvd balance and exchange rate (using cached
|
|
39
|
-
* values when available), then multiplies them.
|
|
40
|
-
*
|
|
41
|
-
* @param accountAddress - The Money account's address.
|
|
42
|
-
* @returns The musdSHFvd balance, exchange rate, and computed mUSD-equivalent value.
|
|
43
|
-
*/
|
|
44
|
-
export type MoneyAccountBalanceServiceGetMusdEquivalentValueAction = {
|
|
45
|
-
type: `MoneyAccountBalanceService:getMusdEquivalentValue`;
|
|
46
|
-
handler: MoneyAccountBalanceService['getMusdEquivalentValue'];
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Fetches the vault's APY and fee breakdown from the Veda performance REST API.
|
|
50
|
-
*
|
|
51
|
-
* @returns The 7-day trailing net APY, fees, and per-position breakdown.
|
|
52
|
-
*/
|
|
53
|
-
export type MoneyAccountBalanceServiceGetVaultApyAction = {
|
|
54
|
-
type: `MoneyAccountBalanceService:getVaultApy`;
|
|
55
|
-
handler: MoneyAccountBalanceService['getVaultApy'];
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Union of all MoneyAccountBalanceService action types.
|
|
59
|
-
*/
|
|
60
|
-
export type MoneyAccountBalanceServiceMethodActions = MoneyAccountBalanceServiceGetMusdBalanceAction | MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction | MoneyAccountBalanceServiceGetExchangeRateAction | MoneyAccountBalanceServiceGetMusdEquivalentValueAction | MoneyAccountBalanceServiceGetVaultApyAction;
|
|
61
|
-
//# sourceMappingURL=money-account-balance-service-method-action-types.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"money-account-balance-service-method-action-types.d.mts","sourceRoot":"","sources":["../../src/money-account-balance-service/money-account-balance-service-method-action-types.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,4CAAwC;AAElF;;;;;GAKG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,2CAA2C,CAAC;IAClD,OAAO,EAAE,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;CACvD,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,gDAAgD,CAAC;IACvD,OAAO,EAAE,0BAA0B,CAAC,qBAAqB,CAAC,CAAC;CAC5D,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,4CAA4C,CAAC;IACnD,OAAO,EAAE,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;CACxD,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,sDAAsD,GAAG;IACnE,IAAI,EAAE,mDAAmD,CAAC;IAC1D,OAAO,EAAE,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;CAC/D,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,0BAA0B,CAAC,aAAa,CAAC,CAAC;CACpD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAC/C,8CAA8C,GAC9C,mDAAmD,GACnD,+CAA+C,GAC/C,sDAAsD,GACtD,2CAA2C,CAAC"}
|
package/dist/money-account-balance-service/money-account-balance-service-method-action-types.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// TODO: This file is supposed to be auto generated. Verify that this generates correctly. The first iteration (seen here) was generated by agent.
|
|
2
|
-
/**
|
|
3
|
-
* This file is auto generated.
|
|
4
|
-
* Do not edit manually.
|
|
5
|
-
*/
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=money-account-balance-service-method-action-types.mjs.map
|
package/dist/money-account-balance-service/money-account-balance-service-method-action-types.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"money-account-balance-service-method-action-types.mjs","sourceRoot":"","sources":["../../src/money-account-balance-service/money-account-balance-service-method-action-types.ts"],"names":[],"mappings":"AAAA,kJAAkJ;AAClJ;;;GAGG","sourcesContent":["// TODO: This file is supposed to be auto generated. Verify that this generates correctly. The first iteration (seen here) was generated by agent.\n/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { MoneyAccountBalanceService } from './money-account-balance-service';\n\n/**\n * Fetches the mUSD ERC-20 balance for the given account address via RPC.\n *\n * @param accountAddress - The Money account's address.\n * @returns The mUSD balance as a raw uint256 string.\n */\nexport type MoneyAccountBalanceServiceGetMusdBalanceAction = {\n type: `MoneyAccountBalanceService:getMusdBalance`;\n handler: MoneyAccountBalanceService['getMusdBalance'];\n};\n\n/**\n * Fetches the musdSHFvd (Veda vault share) ERC-20 balance for the given\n * account address via RPC.\n *\n * @param accountAddress - The Money account's address.\n * @returns The musdSHFvd balance as a raw uint256 string.\n */\nexport type MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction = {\n type: `MoneyAccountBalanceService:getMusdSHFvdBalance`;\n handler: MoneyAccountBalanceService['getMusdSHFvdBalance'];\n};\n\n/**\n * Fetches the current exchange rate from the Veda Accountant contract via RPC.\n *\n * @returns The exchange rate as a raw uint256 string.\n */\nexport type MoneyAccountBalanceServiceGetExchangeRateAction = {\n type: `MoneyAccountBalanceService:getExchangeRate`;\n handler: MoneyAccountBalanceService['getExchangeRate'];\n};\n\n/**\n * Computes the mUSD-equivalent value of the account's musdSHFvd holdings.\n * Internally fetches the musdSHFvd balance and exchange rate (using cached\n * values when available), then multiplies them.\n *\n * @param accountAddress - The Money account's address.\n * @returns The musdSHFvd balance, exchange rate, and computed mUSD-equivalent value.\n */\nexport type MoneyAccountBalanceServiceGetMusdEquivalentValueAction = {\n type: `MoneyAccountBalanceService:getMusdEquivalentValue`;\n handler: MoneyAccountBalanceService['getMusdEquivalentValue'];\n};\n\n/**\n * Fetches the vault's APY and fee breakdown from the Veda performance REST API.\n *\n * @returns The 7-day trailing net APY, fees, and per-position breakdown.\n */\nexport type MoneyAccountBalanceServiceGetVaultApyAction = {\n type: `MoneyAccountBalanceService:getVaultApy`;\n handler: MoneyAccountBalanceService['getVaultApy'];\n};\n\n/**\n * Union of all MoneyAccountBalanceService action types.\n */\nexport type MoneyAccountBalanceServiceMethodActions =\n | MoneyAccountBalanceServiceGetMusdBalanceAction\n | MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction\n | MoneyAccountBalanceServiceGetExchangeRateAction\n | MoneyAccountBalanceServiceGetMusdEquivalentValueAction\n | MoneyAccountBalanceServiceGetVaultApyAction;\n"]}
|