@typus/typus-sdk 1.2.87 → 1.2.88
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.
|
@@ -68,6 +68,31 @@ export declare function getReduceFundTx(input: {
|
|
|
68
68
|
reduceFromIncentive: boolean;
|
|
69
69
|
user: string;
|
|
70
70
|
}): TransactionBlock;
|
|
71
|
+
/**
|
|
72
|
+
public fun public_refresh_deposit_snapshot<D_TOKEN, B_TOKEN>(
|
|
73
|
+
typus_ecosystem_version: &TypusEcosystemVersion,
|
|
74
|
+
typus_user_registry: &mut TypusUserRegistry,
|
|
75
|
+
typus_leaderboard_registry: &mut TypusLeaderboardRegistry,
|
|
76
|
+
registry: &mut Registry,
|
|
77
|
+
index: u64,
|
|
78
|
+
receipts: vector<TypusDepositReceipt>,
|
|
79
|
+
clock: &Clock,
|
|
80
|
+
ctx: &mut TxContext,
|
|
81
|
+
): (TypusDepositReceipt, vector<u64>) {
|
|
82
|
+
*/
|
|
83
|
+
export declare function getRefreshDepositSnapshotTx(input: {
|
|
84
|
+
tx: TransactionBlock;
|
|
85
|
+
typusEcosystemVersion: string;
|
|
86
|
+
typusUserRegistry: string;
|
|
87
|
+
typusLeaderboardRegistry: string;
|
|
88
|
+
typusFrameworkOriginPackageId: string;
|
|
89
|
+
typusDovSinglePackageId: string;
|
|
90
|
+
typusDovSingleRegistry: string;
|
|
91
|
+
typeArguments: string[];
|
|
92
|
+
index: string;
|
|
93
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
94
|
+
user: string;
|
|
95
|
+
}): TransactionBlock;
|
|
71
96
|
/**
|
|
72
97
|
public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(
|
|
73
98
|
registry: &mut Registry,
|
|
@@ -16,7 +16,7 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
16
16
|
return ar;
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.getRebateTx = exports.getMultiTransferBidReceiptTx = exports.getTransferBidReceiptTx = exports.getExerciseTx = exports.getNewBidTx = exports.getReduceFundTx = exports.getRaiseFundTx = void 0;
|
|
19
|
+
exports.getRebateTx = exports.getMultiTransferBidReceiptTx = exports.getTransferBidReceiptTx = exports.getExerciseTx = exports.getNewBidTx = exports.getRefreshDepositSnapshotTx = exports.getReduceFundTx = exports.getRaiseFundTx = void 0;
|
|
20
20
|
var transactions_1 = require("@mysten/sui.js/transactions");
|
|
21
21
|
var constants_1 = require("../../constants");
|
|
22
22
|
/**
|
|
@@ -131,6 +131,39 @@ function getReduceFundTx(input) {
|
|
|
131
131
|
return input.tx;
|
|
132
132
|
}
|
|
133
133
|
exports.getReduceFundTx = getReduceFundTx;
|
|
134
|
+
/**
|
|
135
|
+
public fun public_refresh_deposit_snapshot<D_TOKEN, B_TOKEN>(
|
|
136
|
+
typus_ecosystem_version: &TypusEcosystemVersion,
|
|
137
|
+
typus_user_registry: &mut TypusUserRegistry,
|
|
138
|
+
typus_leaderboard_registry: &mut TypusLeaderboardRegistry,
|
|
139
|
+
registry: &mut Registry,
|
|
140
|
+
index: u64,
|
|
141
|
+
receipts: vector<TypusDepositReceipt>,
|
|
142
|
+
clock: &Clock,
|
|
143
|
+
ctx: &mut TxContext,
|
|
144
|
+
): (TypusDepositReceipt, vector<u64>) {
|
|
145
|
+
*/
|
|
146
|
+
function getRefreshDepositSnapshotTx(input) {
|
|
147
|
+
var result = input.tx.moveCall({
|
|
148
|
+
target: "".concat(input.typusDovSinglePackageId, "::tds_user_entry::public_refresh_deposit_snapshot"),
|
|
149
|
+
typeArguments: input.typeArguments,
|
|
150
|
+
arguments: [
|
|
151
|
+
input.tx.object(input.typusEcosystemVersion),
|
|
152
|
+
input.tx.object(input.typusUserRegistry),
|
|
153
|
+
input.tx.object(input.typusLeaderboardRegistry),
|
|
154
|
+
input.tx.object(input.typusDovSingleRegistry),
|
|
155
|
+
input.tx.pure(input.index),
|
|
156
|
+
input.tx.makeMoveVec({
|
|
157
|
+
type: "".concat(input.typusFrameworkOriginPackageId, "::vault::TypusDepositReceipt"),
|
|
158
|
+
objects: input.receipts.map(function (receipt) { return input.tx.object(receipt); }),
|
|
159
|
+
}),
|
|
160
|
+
input.tx.pure(constants_1.CLOCK),
|
|
161
|
+
],
|
|
162
|
+
});
|
|
163
|
+
input.tx.transferObjects([input.tx.object(result[0])], input.user);
|
|
164
|
+
return input.tx;
|
|
165
|
+
}
|
|
166
|
+
exports.getRefreshDepositSnapshotTx = getRefreshDepositSnapshotTx;
|
|
134
167
|
/**
|
|
135
168
|
public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(
|
|
136
169
|
registry: &mut Registry,
|