@typus/typus-sdk 1.1.56 → 1.1.57
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.
|
@@ -32,7 +32,7 @@ export declare function getWithdrawTx(tx: TransactionBlock, typusFrameworkOrigin
|
|
|
32
32
|
ctx: &mut TxContext,
|
|
33
33
|
)
|
|
34
34
|
*/
|
|
35
|
-
export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string,
|
|
35
|
+
export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], user: string, share?: string): TransactionBlock;
|
|
36
36
|
/**
|
|
37
37
|
public fun compound<D_TOKEN, B_TOKEN>(
|
|
38
38
|
registry: &mut Registry,
|
|
@@ -42,7 +42,7 @@ export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOri
|
|
|
42
42
|
ctx: &mut TxContext,
|
|
43
43
|
)
|
|
44
44
|
*/
|
|
45
|
-
export declare function getCompoundTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string,
|
|
45
|
+
export declare function getCompoundTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], user: string): TransactionBlock;
|
|
46
46
|
/**
|
|
47
47
|
public fun claim<D_TOKEN, B_TOKEN>(
|
|
48
48
|
registry: &mut Registry,
|
|
@@ -131,7 +131,7 @@ exports.getWithdrawTx = getWithdrawTx;
|
|
|
131
131
|
ctx: &mut TxContext,
|
|
132
132
|
)
|
|
133
133
|
*/
|
|
134
|
-
function getUnsubscribeTx(tx, typusFrameworkOriginPackageId,
|
|
134
|
+
function getUnsubscribeTx(tx, typusFrameworkOriginPackageId, packageId, typeArguments, registry, index, receipts, user, share) {
|
|
135
135
|
var result = tx.moveCall({
|
|
136
136
|
target: "".concat(packageId, "::tails_staking::unsubscribe"),
|
|
137
137
|
typeArguments: typeArguments,
|
|
@@ -146,10 +146,7 @@ function getUnsubscribeTx(tx, typusFrameworkOriginPackageId, typusFrameworkPacka
|
|
|
146
146
|
tx.pure(constants_1.CLOCK),
|
|
147
147
|
],
|
|
148
148
|
});
|
|
149
|
-
tx.
|
|
150
|
-
target: "".concat(typusFrameworkPackageId, "::vault::transfer_deposit_receipt"),
|
|
151
|
-
arguments: [tx.object(result[0]), tx.pure(user)],
|
|
152
|
-
});
|
|
149
|
+
tx.transferObjects([tx.object(result[0])], user);
|
|
153
150
|
return tx;
|
|
154
151
|
}
|
|
155
152
|
exports.getUnsubscribeTx = getUnsubscribeTx;
|
|
@@ -162,7 +159,7 @@ exports.getUnsubscribeTx = getUnsubscribeTx;
|
|
|
162
159
|
ctx: &mut TxContext,
|
|
163
160
|
)
|
|
164
161
|
*/
|
|
165
|
-
function getCompoundTx(tx, typusFrameworkOriginPackageId,
|
|
162
|
+
function getCompoundTx(tx, typusFrameworkOriginPackageId, packageId, typeArguments, registry, index, receipts, user) {
|
|
166
163
|
var result = tx.moveCall({
|
|
167
164
|
target: "".concat(packageId, "::tails_staking::compound"),
|
|
168
165
|
typeArguments: typeArguments,
|
|
@@ -176,10 +173,7 @@ function getCompoundTx(tx, typusFrameworkOriginPackageId, typusFrameworkPackageI
|
|
|
176
173
|
tx.object(constants_1.CLOCK),
|
|
177
174
|
],
|
|
178
175
|
});
|
|
179
|
-
tx.
|
|
180
|
-
target: "".concat(typusFrameworkPackageId, "::vault::transfer_deposit_receipt"),
|
|
181
|
-
arguments: [tx.object(result[0]), tx.pure(user)],
|
|
182
|
-
});
|
|
176
|
+
tx.transferObjects([tx.object(result[0])], user);
|
|
183
177
|
return tx;
|
|
184
178
|
}
|
|
185
179
|
exports.getCompoundTx = getCompoundTx;
|