@t2000/sdk 10.6.0 → 10.7.0
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 +6 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -9
- package/dist/index.d.ts +5 -9
- package/dist/index.js +7 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3918,10 +3918,10 @@ function bigintSqrt(n) {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
return prev;
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function createPoolV3(tx, args) {
|
|
3922
3922
|
const [tickLower, tickUpper] = fullRangeTickRange(tx);
|
|
3923
3923
|
return tx.moveCall({
|
|
3924
|
-
target: `${CETUS_CLMM_PUBLISHED_AT}::pool_creator::
|
|
3924
|
+
target: `${CETUS_CLMM_PUBLISHED_AT}::pool_creator::create_pool_v3`,
|
|
3925
3925
|
typeArguments: [args.coinTypeA, args.coinTypeB],
|
|
3926
3926
|
arguments: [
|
|
3927
3927
|
tx.object(CETUS_GLOBAL_CONFIG_ID),
|
|
@@ -3933,8 +3933,6 @@ function createPoolV2(tx, args) {
|
|
|
3933
3933
|
tickUpper,
|
|
3934
3934
|
args.coinA,
|
|
3935
3935
|
args.coinB,
|
|
3936
|
-
tx.object(args.metadataA),
|
|
3937
|
-
tx.object(args.metadataB),
|
|
3938
3936
|
tx.pure.bool(args.fixAmountA),
|
|
3939
3937
|
tx.object.clock()
|
|
3940
3938
|
]
|
|
@@ -4098,10 +4096,10 @@ async function buildAgentCoinModule(params) {
|
|
|
4098
4096
|
}
|
|
4099
4097
|
|
|
4100
4098
|
// src/capital/launch.ts
|
|
4101
|
-
var AGENT_CAPITAL_PACKAGE_ID = process.env.AGENT_CAPITAL_PACKAGE_ID ?? "
|
|
4102
|
-
var CAPITAL_REGISTRY_ID = process.env.CAPITAL_REGISTRY_ID ?? "
|
|
4099
|
+
var AGENT_CAPITAL_PACKAGE_ID = process.env.AGENT_CAPITAL_PACKAGE_ID ?? "0xa83ecc4e530594f8e184faf6a4c3da6791267f6791a653644d59e2e603c055b8";
|
|
4100
|
+
var CAPITAL_REGISTRY_ID = process.env.CAPITAL_REGISTRY_ID ?? "0xef4057baac856d65b47f14a1ba14211299637955ea5bc15d7708f6eef27ee0df";
|
|
4103
4101
|
var CAPITAL_REGISTRY_VERSION = Number(
|
|
4104
|
-
process.env.CAPITAL_REGISTRY_VERSION ??
|
|
4102
|
+
process.env.CAPITAL_REGISTRY_VERSION ?? 931861908
|
|
4105
4103
|
);
|
|
4106
4104
|
function assertDeployed() {
|
|
4107
4105
|
if (!AGENT_CAPITAL_PACKAGE_ID || !CAPITAL_REGISTRY_ID) {
|
|
@@ -4137,7 +4135,6 @@ async function buildPublishAgentCoinTx(args) {
|
|
|
4137
4135
|
});
|
|
4138
4136
|
return { tx, moduleName: mod.moduleName, otw: mod.otw };
|
|
4139
4137
|
}
|
|
4140
|
-
var USDC_COIN_METADATA_ID = "0x75cfbbf8c962d542e99a1d15731e6069f60a00db895407785b15d14f606f2b4a";
|
|
4141
4138
|
async function buildTokenizeTx(args) {
|
|
4142
4139
|
assertDeployed();
|
|
4143
4140
|
if (!utils.isValidSuiAddress(args.agent)) {
|
|
@@ -4182,12 +4179,9 @@ async function buildTokenizeTx(args) {
|
|
|
4182
4179
|
);
|
|
4183
4180
|
const usdcFirst = args.usdcFirst ?? false;
|
|
4184
4181
|
const sqrtPrice = usdcFirst ? sqrtPriceX64FromAmounts(args.lpUsdcAmount, AGENT_TOKEN_LP_ALLOCATION) : sqrtPriceX64FromAmounts(AGENT_TOKEN_LP_ALLOCATION, args.lpUsdcAmount);
|
|
4185
|
-
const
|
|
4186
|
-
const poolResult = createPoolV2(tx, {
|
|
4182
|
+
const poolResult = createPoolV3(tx, {
|
|
4187
4183
|
coinTypeA: usdcFirst ? exports.USDC_TYPE : args.coinType,
|
|
4188
4184
|
coinTypeB: usdcFirst ? args.coinType : exports.USDC_TYPE,
|
|
4189
|
-
metadataA: usdcFirst ? usdcMeta : args.coinMetadataId,
|
|
4190
|
-
metadataB: usdcFirst ? args.coinMetadataId : usdcMeta,
|
|
4191
4185
|
coinA: usdcFirst ? lpUsdc : lpCoin,
|
|
4192
4186
|
coinB: usdcFirst ? lpCoin : lpUsdc,
|
|
4193
4187
|
sqrtPriceX64: sqrtPrice,
|
|
@@ -4278,7 +4272,6 @@ exports.SuinsNotRegisteredError = SuinsNotRegisteredError;
|
|
|
4278
4272
|
exports.SuinsRpcError = SuinsRpcError;
|
|
4279
4273
|
exports.T2000 = T2000;
|
|
4280
4274
|
exports.T2000_OVERLAY_FEE_WALLET = T2000_OVERLAY_FEE_WALLET;
|
|
4281
|
-
exports.USDC_COIN_METADATA_ID = USDC_COIN_METADATA_ID;
|
|
4282
4275
|
exports.USDC_DECIMALS = USDC_DECIMALS;
|
|
4283
4276
|
exports.WRITE_APPENDER_REGISTRY = WRITE_APPENDER_REGISTRY;
|
|
4284
4277
|
exports.ZkLoginSigner = ZkLoginSigner;
|