Skip to content

Commit

Permalink
Add stashed.sui to custody (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolisliolios authored Sep 9, 2024
1 parent c222f74 commit 02a977c
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions scripts/transactions/mass-ops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ const run = async () => {

const tx = new TransactionBlock();

const NS_TYPE = `${config.packageId}::suins_registration::SuinsRegistration`;

// remove discount for NS objects
removeDiscountForType(tx, config, `${config.packageId}::suins_registration::SuinsRegistration`);
removeDiscountForType(tx, config, NS_TYPE);

// Transfer list of names to the specified wallet
const namesToTransfer = ['gateio.sui', 'bybit.sui', 'okx.sui', 'binance.sui', 'kucoin.sui'];
Expand All @@ -81,10 +83,21 @@ const run = async () => {
const stashedObj = reservedObjects.find(
(obj) => obj.data.content.fields.domain_name === 'stashed.sui',
);
tx.transferObjects(
[stashedObj!.data.objectId],
tx.pure.address('0x5a3afb4e2d6421488d4417f8cbdaf276079dd6f9c0195d8c8453c7a56d863194'),
);

const EnokiManagedObjects = {
packageId: '0x6c2c547abd69a924fc371c7ab3b4498f09c38e576374d1e653eb3f8879dbb57d',
custodyObject: '0xf7d22d9deca0032e43a2f9d340f14df9f6470532a31f9fe814bf74cfaccaa94c',
};

tx.moveCall({
target: `${EnokiManagedObjects.packageId}::managed::attach_object`,
arguments: [
tx.object(EnokiManagedObjects.custodyObject),
tx.object(stashedObj?.data.objectId!),
tx.pure.string('a3d77b61-b6fc-4a22-a29e-48a5ad620c38'),
],
typeArguments: [NS_TYPE],
});

// 100% free coupons with 1 claim for the list of addresses
for (const address of freeNamesAddresses) {
Expand Down

0 comments on commit 02a977c

Please sign in to comment.