@mmt-finance/clmm-sui-sdk 1.0.0-beta.1
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/LICENSE +21 -0
- package/README.md +88 -0
- package/dist/package.json +84 -0
- package/dist/src/config.d.ts +48 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +46 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/constants/claim-routes.d.ts +2 -0
- package/dist/src/constants/claim-routes.d.ts.map +1 -0
- package/dist/src/constants/claim-routes.js +622 -0
- package/dist/src/constants/claim-routes.js.map +1 -0
- package/dist/src/constants/constans.d.ts +32 -0
- package/dist/src/constants/constans.d.ts.map +1 -0
- package/dist/src/constants/constans.js +40 -0
- package/dist/src/constants/constans.js.map +1 -0
- package/dist/src/errors/errors.d.ts +86 -0
- package/dist/src/errors/errors.d.ts.map +1 -0
- package/dist/src/errors/errors.js +106 -0
- package/dist/src/errors/errors.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +49 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/interfaces/base-module.d.ts +5 -0
- package/dist/src/interfaces/base-module.d.ts.map +1 -0
- package/dist/src/interfaces/base-module.js +3 -0
- package/dist/src/interfaces/base-module.js.map +1 -0
- package/dist/src/modules/aggregator-module.d.ts +18 -0
- package/dist/src/modules/aggregator-module.d.ts.map +1 -0
- package/dist/src/modules/aggregator-module.js +114 -0
- package/dist/src/modules/aggregator-module.js.map +1 -0
- package/dist/src/modules/pool-module.d.ts +148 -0
- package/dist/src/modules/pool-module.d.ts.map +1 -0
- package/dist/src/modules/pool-module.js +879 -0
- package/dist/src/modules/pool-module.js.map +1 -0
- package/dist/src/modules/position-module.d.ts +59 -0
- package/dist/src/modules/position-module.d.ts.map +1 -0
- package/dist/src/modules/position-module.js +526 -0
- package/dist/src/modules/position-module.js.map +1 -0
- package/dist/src/modules/route-module.d.ts +23 -0
- package/dist/src/modules/route-module.d.ts.map +1 -0
- package/dist/src/modules/route-module.js +206 -0
- package/dist/src/modules/route-module.js.map +1 -0
- package/dist/src/sdk.d.ts +32 -0
- package/dist/src/sdk.d.ts.map +1 -0
- package/dist/src/sdk.js +67 -0
- package/dist/src/sdk.js.map +1 -0
- package/dist/src/types/aggregator-types.d.ts +15 -0
- package/dist/src/types/aggregator-types.d.ts.map +1 -0
- package/dist/src/types/aggregator-types.js +3 -0
- package/dist/src/types/aggregator-types.js.map +1 -0
- package/dist/src/types/clmm-types.d.ts +150 -0
- package/dist/src/types/clmm-types.d.ts.map +1 -0
- package/dist/src/types/clmm-types.js +3 -0
- package/dist/src/types/clmm-types.js.map +1 -0
- package/dist/src/types.d.ts +169 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +10 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils/coin-utils.d.ts +26 -0
- package/dist/src/utils/coin-utils.d.ts.map +1 -0
- package/dist/src/utils/coin-utils.js +167 -0
- package/dist/src/utils/coin-utils.js.map +1 -0
- package/dist/src/utils/common.d.ts +5 -0
- package/dist/src/utils/common.d.ts.map +1 -0
- package/dist/src/utils/common.js +28 -0
- package/dist/src/utils/common.js.map +1 -0
- package/dist/src/utils/math/common-math.d.ts +52 -0
- package/dist/src/utils/math/common-math.d.ts.map +1 -0
- package/dist/src/utils/math/common-math.js +209 -0
- package/dist/src/utils/math/common-math.js.map +1 -0
- package/dist/src/utils/math/tick-math.d.ts +33 -0
- package/dist/src/utils/math/tick-math.d.ts.map +1 -0
- package/dist/src/utils/math/tick-math.js +332 -0
- package/dist/src/utils/math/tick-math.js.map +1 -0
- package/dist/src/utils/mvr/mvr-cache-local.d.ts +19 -0
- package/dist/src/utils/mvr/mvr-cache-local.d.ts.map +1 -0
- package/dist/src/utils/mvr/mvr-cache-local.js +48 -0
- package/dist/src/utils/mvr/mvr-cache-local.js.map +1 -0
- package/dist/src/utils/mvr/mvr-cache-local.test.d.ts +2 -0
- package/dist/src/utils/mvr/mvr-cache-local.test.d.ts.map +1 -0
- package/dist/src/utils/mvr/mvr-cache-local.test.js +87 -0
- package/dist/src/utils/mvr/mvr-cache-local.test.js.map +1 -0
- package/dist/src/utils/mvr/mvr-named-packages-plugin.d.ts +46 -0
- package/dist/src/utils/mvr/mvr-named-packages-plugin.d.ts.map +1 -0
- package/dist/src/utils/mvr/mvr-named-packages-plugin.js +121 -0
- package/dist/src/utils/mvr/mvr-named-packages-plugin.js.map +1 -0
- package/dist/src/utils/mvr/utils.d.ts +35 -0
- package/dist/src/utils/mvr/utils.d.ts.map +1 -0
- package/dist/src/utils/mvr/utils.js +209 -0
- package/dist/src/utils/mvr/utils.js.map +1 -0
- package/dist/src/utils/pool-utils.d.ts +53 -0
- package/dist/src/utils/pool-utils.d.ts.map +1 -0
- package/dist/src/utils/pool-utils.js +267 -0
- package/dist/src/utils/pool-utils.js.map +1 -0
- package/dist/src/utils/position-utils.d.ts +19 -0
- package/dist/src/utils/position-utils.d.ts.map +1 -0
- package/dist/src/utils/position-utils.js +35 -0
- package/dist/src/utils/position-utils.js.map +1 -0
- package/dist/tsconfig.json +34 -0
- package/package.json +84 -0
- package/src/config.ts +42 -0
- package/src/constants/claim-routes.ts +619 -0
- package/src/constants/constans.ts +62 -0
- package/src/errors/errors.ts +117 -0
- package/src/index.ts +9 -0
- package/src/interfaces/base-module.ts +5 -0
- package/src/modules/aggregator-module.ts +129 -0
- package/src/modules/pool-module.ts +1255 -0
- package/src/modules/position-module.ts +626 -0
- package/src/modules/route-module.ts +274 -0
- package/src/sdk.ts +92 -0
- package/src/types/aggregator-types.ts +15 -0
- package/src/types/clmm-types.ts +166 -0
- package/src/types.ts +191 -0
- package/src/utils/coin-utils.ts +219 -0
- package/src/utils/common.ts +28 -0
- package/src/utils/math/common-math.ts +233 -0
- package/src/utils/math/tick-math.ts +414 -0
- package/src/utils/mvr/mvr-cache-local.test.ts +105 -0
- package/src/utils/mvr/mvr-cache-local.ts +63 -0
- package/src/utils/mvr/mvr-named-packages-plugin.ts +204 -0
- package/src/utils/mvr/utils.ts +254 -0
- package/src/utils/pool-utils.ts +356 -0
- package/src/utils/position-utils.ts +63 -0
- package/tsconfig.json +34 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 rize
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# MMT Finance CLMM SDK
|
|
2
|
+
|
|
3
|
+
`@mmt-finance/clmm-sdk` is the official TypeScript SDK for integrating with
|
|
4
|
+
MMT Finance CLMM for developers. Please visit
|
|
5
|
+
[MMT Developer Docs](https://developers.mmt.finance/clmm-sdk/integrations)
|
|
6
|
+
for detailed guideline.
|
|
7
|
+
|
|
8
|
+
## Getting Started
|
|
9
|
+
|
|
10
|
+
### Installation
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm i @mmt-finance/clmm-sdk
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Configuration
|
|
17
|
+
|
|
18
|
+
Our SDK has pre-configured network settings that allows you to connect to MMT CLMM
|
|
19
|
+
on both mainnet and testnet.
|
|
20
|
+
You can utilize the src/sdk NEW method to swiftly initialize the configuration.
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { MmtSDK } from '@mmt-finance/clmm-sdk';
|
|
24
|
+
|
|
25
|
+
const mmtClmmSDK = MmtSDK.NEW({
|
|
26
|
+
network: 'mainnet',
|
|
27
|
+
});
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Now, you can start using MMT SDK.
|
|
31
|
+
|
|
32
|
+
### Supported Features
|
|
33
|
+
|
|
34
|
+
- [Retrieve pool data](https://developers.mmt.finance/features/read-pool-data)
|
|
35
|
+
- [Retrieve user data](https://developers.mmt.finance/features/read-user-data)
|
|
36
|
+
- [Swap](https://developers.mmt.finance/features/swap)
|
|
37
|
+
- [Open and Add Liquidity](https://developers.mmt.finance/features/open-and-add-liquidity)
|
|
38
|
+
- [Position Management](https://developers.mmt.finance/features/position-management)
|
|
39
|
+
- [Claim Fees and Rewards](https://developers.mmt.finance/features/claim-fees-and-rewards)
|
|
40
|
+
- [Close Position](https://developers.mmt.finance/features/close-position)
|
|
41
|
+
|
|
42
|
+
For a full detailed technical integration doc, please visit
|
|
43
|
+
[MMT Developer Docs](https://developers.mmt.finance/clmm-sdk/integrations).
|
|
44
|
+
|
|
45
|
+
### Examples
|
|
46
|
+
|
|
47
|
+
A comprehensive set of examples has been provided to demonstrate the fundamental usage of the SDK.
|
|
48
|
+
Please refer to the detailed guidelines for further information [example](examples/README.md)
|
|
49
|
+
|
|
50
|
+
## Development Guidelines
|
|
51
|
+
|
|
52
|
+
To ensure the quality, maintainability, and consistency of the SDK, we follow a strict set of development guidelines. All contributors are expected to adhere to these standards.
|
|
53
|
+
|
|
54
|
+
### 1. Code Style & Linting
|
|
55
|
+
|
|
56
|
+
We enforce code style using **ESLint** (based on Airbnb config) and **Prettier**.
|
|
57
|
+
|
|
58
|
+
- **Linting**: Run `yarn run lint` to check for issues.
|
|
59
|
+
- **Formatting**: Run `yarn run prettier:fix` to automatically format code.
|
|
60
|
+
- **IDE Setup**: Configure your editor to run Prettier on save and display ESLint errors.
|
|
61
|
+
|
|
62
|
+
### 2. Naming Conventions
|
|
63
|
+
|
|
64
|
+
- **Files**: kebab-case (e.g., `pool-utils.ts`, `clmm-sdk.ts`).
|
|
65
|
+
- **Classes/Interfaces/Types**: PascalCase (e.g., `ClmmSdk`, `PoolConfig`).
|
|
66
|
+
- **Variables/Functions**: camelCase (e.g., `getPoolData`, `tokenAmount`).
|
|
67
|
+
- **Constants**: UPPER_SNAKE_CASE for global constants (e.g., `MAX_TICK_INDEX`).
|
|
68
|
+
- **Private Members**: Private functions or properties should start with `_` (e.g., `_internalCalculate`).
|
|
69
|
+
|
|
70
|
+
### 3. Function Parameters
|
|
71
|
+
|
|
72
|
+
- **Object Params**: Use an object (interface) for arguments if a function takes more than 3 parameters.
|
|
73
|
+
|
|
74
|
+
### 4. Git & Commits
|
|
75
|
+
|
|
76
|
+
We use husky & commitlint.
|
|
77
|
+
Format: `<type>(<scope>): <description>`
|
|
78
|
+
|
|
79
|
+
- **feat**: A new feature
|
|
80
|
+
- **fix**: A bug fix
|
|
81
|
+
- **docs**: Documentation only changes
|
|
82
|
+
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, etc)
|
|
83
|
+
- **refactor**: A code change that neither fixes a bug nor adds a feature
|
|
84
|
+
- **perf**: A code change that improves performance
|
|
85
|
+
- **test**: Adding missing tests or correcting existing tests
|
|
86
|
+
- **chore**: Changes to the build process or auxiliary tools
|
|
87
|
+
|
|
88
|
+
Example: `feat(pool): add support for fetching tick data`
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mmt-finance/clmm-sui-sdk",
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "Momentum SDK to access the Momentum CLMM",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"author": "Momentum Finance",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/**/*",
|
|
10
|
+
"src/**/*",
|
|
11
|
+
"tsconfig.json"
|
|
12
|
+
],
|
|
13
|
+
"exclude": [
|
|
14
|
+
"src/scripts/**/*"
|
|
15
|
+
],
|
|
16
|
+
"source": "./src/index.ts",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@anatine/esbuild-decorators": "^0.2.19",
|
|
22
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
23
|
+
"@mysten/sui": "1.28.2",
|
|
24
|
+
"@types/bn.js": "^5.1.5",
|
|
25
|
+
"@types/jest": "^29.5.14",
|
|
26
|
+
"@types/node": "^20.14.11",
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
28
|
+
"@typescript-eslint/parser": "^6.19.1",
|
|
29
|
+
"bn.js": "^5.2.1",
|
|
30
|
+
"branch-name-lint": "^2.1.1",
|
|
31
|
+
"commitlint": "^19.7.1",
|
|
32
|
+
"decimal.js": "^10.5.0",
|
|
33
|
+
"eslint": "^8.56.0",
|
|
34
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
35
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
36
|
+
"eslint-config-prettier": "^9.1.0",
|
|
37
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
38
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
39
|
+
"eslint-plugin-import": "^2.29.1",
|
|
40
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
41
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
42
|
+
"husky": "^9.1.7",
|
|
43
|
+
"jest": "^29.7.0",
|
|
44
|
+
"lint-staged": "^16.2.7",
|
|
45
|
+
"prettier": "^3.5.3",
|
|
46
|
+
"ts-jest": "^29.2.6",
|
|
47
|
+
"ts-node": "^10.9.2",
|
|
48
|
+
"tsconfig-paths": "^4.2.0",
|
|
49
|
+
"tsup": "^8.3.5",
|
|
50
|
+
"typescript": "^5.5.3",
|
|
51
|
+
"yalc": "^1.0.0-pre.53"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"prepare": "husky",
|
|
55
|
+
"build": "rm -rf dist && yarn generate-claim-routes && tsc --project tsconfig.build.json",
|
|
56
|
+
"lint": "eslint . --ext .ts,.tsx",
|
|
57
|
+
"lint-fix": "eslint . --ext .ts,.tsx --fix",
|
|
58
|
+
"start": "ts-node -r tsconfig-paths/register scripts/index.ts",
|
|
59
|
+
"test": "jest",
|
|
60
|
+
"prettier:fix": "npx prettier --write '**/*.{js,ts,json}' --log-level error",
|
|
61
|
+
"release": "yarn build && yarn publish",
|
|
62
|
+
"scripts": "ts-node",
|
|
63
|
+
"generate-claim-routes": "ts-node scripts/get-claim-routes.ts"
|
|
64
|
+
},
|
|
65
|
+
"lint-staged": {
|
|
66
|
+
"*.{ts,tsx}": [
|
|
67
|
+
"eslint --fix",
|
|
68
|
+
"prettier --write"
|
|
69
|
+
],
|
|
70
|
+
"*.{js,json,md}": [
|
|
71
|
+
"prettier --write"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"@mysten/sui": "^1.28.2",
|
|
76
|
+
"axios": "^1.4.0",
|
|
77
|
+
"bn.js": "^5.2.1",
|
|
78
|
+
"decimal.js": "^10.4.3"
|
|
79
|
+
},
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"@syntsugar/cc-graph": "^0.1.1",
|
|
82
|
+
"tslib": "^2.8.1"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const MainnetConfig: {
|
|
2
|
+
clmm: {
|
|
3
|
+
packageId: string;
|
|
4
|
+
publishedAt: string;
|
|
5
|
+
aclId: string;
|
|
6
|
+
adminCapId: string;
|
|
7
|
+
slippageCheckPackageId: string;
|
|
8
|
+
globalConfigId: string;
|
|
9
|
+
versionId: string;
|
|
10
|
+
mvrName: string;
|
|
11
|
+
};
|
|
12
|
+
mmtApiUrl: string;
|
|
13
|
+
suiClientUrl: string;
|
|
14
|
+
mvrEndpoint: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const TestnetConfig: {
|
|
17
|
+
clmm: {
|
|
18
|
+
packageId: string;
|
|
19
|
+
publishedAt: string;
|
|
20
|
+
aclId: string;
|
|
21
|
+
adminCapId: string;
|
|
22
|
+
slippageCheckPackageId: string;
|
|
23
|
+
globalConfigId: string;
|
|
24
|
+
versionId: string;
|
|
25
|
+
mvrName: string;
|
|
26
|
+
};
|
|
27
|
+
mmtApiUrl: string;
|
|
28
|
+
suiClientUrl: string;
|
|
29
|
+
mvrEndpoint: string;
|
|
30
|
+
};
|
|
31
|
+
export declare class Config {
|
|
32
|
+
static getDefaultConfig(network: string): {
|
|
33
|
+
clmm: {
|
|
34
|
+
packageId: string;
|
|
35
|
+
publishedAt: string;
|
|
36
|
+
aclId: string;
|
|
37
|
+
adminCapId: string;
|
|
38
|
+
slippageCheckPackageId: string;
|
|
39
|
+
globalConfigId: string;
|
|
40
|
+
versionId: string;
|
|
41
|
+
mvrName: string;
|
|
42
|
+
};
|
|
43
|
+
mmtApiUrl: string;
|
|
44
|
+
suiClientUrl: string;
|
|
45
|
+
mvrEndpoint: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAczB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAczB,CAAC;AACF,qBAAa,MAAM;IACjB,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;CASxC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Config = exports.TestnetConfig = exports.MainnetConfig = void 0;
|
|
4
|
+
exports.MainnetConfig = {
|
|
5
|
+
clmm: {
|
|
6
|
+
packageId: '0xcf60a40f45d46fc1e828871a647c1e25a0915dec860d2662eb10fdb382c3c1d1',
|
|
7
|
+
publishedAt: '0x70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860',
|
|
8
|
+
aclId: '0xe7f25417d58cd086a64e3daed2ef04d065b606458becce33871f6d3e8b35db9d',
|
|
9
|
+
adminCapId: '0x11d573677fee08613bc4e089252945753445ad710ac3e8e4b61d4f8281907118',
|
|
10
|
+
slippageCheckPackageId: '0x8add2f0f8bc9748687639d7eb59b2172ba09a0172d9e63c029e23a7dbdb6abe6',
|
|
11
|
+
globalConfigId: '0x9889f38f107f5807d34c547828f4a1b4d814450005a4517a58a1ad476458abfc',
|
|
12
|
+
versionId: '0x2375a0b1ec12010aaea3b2545acfa2ad34cfbba03ce4b59f4c39e1e25eed1b2a',
|
|
13
|
+
mvrName: '@mmt/clmm-core',
|
|
14
|
+
},
|
|
15
|
+
mmtApiUrl: 'https://api.mmt.finance',
|
|
16
|
+
suiClientUrl: 'https://fullnode.mainnet.sui.io',
|
|
17
|
+
mvrEndpoint: 'https://mainnet.mvr.mystenlabs.com',
|
|
18
|
+
};
|
|
19
|
+
exports.TestnetConfig = {
|
|
20
|
+
clmm: {
|
|
21
|
+
packageId: '0xd7c99e1546b1fc87a6489afdc08bcece4ae1340cbd8efd2ab152ad71dea0f0f2',
|
|
22
|
+
publishedAt: '0xd7c99e1546b1fc87a6489afdc08bcece4ae1340cbd8efd2ab152ad71dea0f0f2',
|
|
23
|
+
aclId: '0xb3ffc02f50b866b8b29a3b6005f21d16ad386e33c20d384ee21610ba754ba899',
|
|
24
|
+
adminCapId: '0x6a271f877a36c75e48120af09124fed1ce3464caf3254307f7ded086ff2120c9',
|
|
25
|
+
slippageCheckPackageId: '0xfd6a45c396a90811fd93efaf585cc95c29aecd079c87822893f1e97e3fee8c50',
|
|
26
|
+
globalConfigId: '0x3c4385bf373c7997a953ee548f45188d9f1ca4284ec835467688d8ee276e1af7',
|
|
27
|
+
versionId: '0x83ea3e3e7384efd6b524ff973e4b627cd84d190c45d3f4fd9f5f4fc6c95fd26b',
|
|
28
|
+
mvrName: '',
|
|
29
|
+
},
|
|
30
|
+
mmtApiUrl: 'https://api-dev.mmt.finance',
|
|
31
|
+
suiClientUrl: 'https://fullnode.testnet.sui.io:443',
|
|
32
|
+
mvrEndpoint: 'https://testnet.mvr.mystenlabs.com',
|
|
33
|
+
};
|
|
34
|
+
class Config {
|
|
35
|
+
static getDefaultConfig(network) {
|
|
36
|
+
const config = network === 'mainnet' ? exports.MainnetConfig : exports.TestnetConfig;
|
|
37
|
+
return {
|
|
38
|
+
clmm: config.clmm,
|
|
39
|
+
mmtApiUrl: config.mmtApiUrl,
|
|
40
|
+
suiClientUrl: config.suiClientUrl,
|
|
41
|
+
mvrEndpoint: config.mvrEndpoint,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Config = Config;
|
|
46
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,SAAS,EAAE,oEAAoE;QAC/E,WAAW,EAAE,oEAAoE;QACjF,KAAK,EAAE,oEAAoE;QAC3E,UAAU,EAAE,oEAAoE;QAChF,sBAAsB,EAAE,oEAAoE;QAC5F,cAAc,EAAE,oEAAoE;QACpF,SAAS,EAAE,oEAAoE;QAC/E,OAAO,EAAE,gBAAgB;KAC1B;IACD,SAAS,EAAE,yBAAyB;IACpC,YAAY,EAAE,iCAAiC;IAC/C,WAAW,EAAE,oCAAoC;CAClD,CAAC;AAEW,QAAA,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,SAAS,EAAE,oEAAoE;QAC/E,WAAW,EAAE,oEAAoE;QACjF,KAAK,EAAE,oEAAoE;QAC3E,UAAU,EAAE,oEAAoE;QAChF,sBAAsB,EAAE,oEAAoE;QAC5F,cAAc,EAAE,oEAAoE;QACpF,SAAS,EAAE,oEAAoE;QAC/E,OAAO,EAAE,EAAE;KACZ;IACD,SAAS,EAAE,6BAA6B;IACxC,YAAY,EAAE,qCAAqC;IACnD,WAAW,EAAE,oCAAoC;CAClD,CAAC;AACF,MAAa,MAAM;IACjB,MAAM,CAAC,gBAAgB,CAAC,OAAe;QACrC,MAAM,MAAM,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAa,CAAC,CAAC,CAAC,qBAAa,CAAC;QACrE,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC,CAAC;IACJ,CAAC;CACF;AAVD,wBAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claim-routes.d.ts","sourceRoot":"","sources":["../../../src/constants/claim-routes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAqmBjE,CAAC"}
|