@nightlylabs/dex-sdk 0.1.1 → 0.1.2
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 -9
- package/dist/index.js +7 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2159,20 +2159,18 @@ var TestFaucet = class _TestFaucet extends client_default {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
async initFaucet() {
|
|
2161
2161
|
const payload = await this.initFaucetPayload();
|
|
2162
|
-
|
|
2163
|
-
const tx = new import_ts_sdk3.MultiAgentTransaction(
|
|
2162
|
+
const tx = new import_ts_sdk3.SimpleTransaction(
|
|
2164
2163
|
await (0, import_ts_sdk3.generateRawTransaction)({
|
|
2165
2164
|
sender: this._apiKey.accountAddress,
|
|
2166
2165
|
aptosConfig: this._aptos.config,
|
|
2167
2166
|
payload
|
|
2168
|
-
})
|
|
2169
|
-
[]
|
|
2167
|
+
})
|
|
2170
2168
|
);
|
|
2171
2169
|
const signature = this._aptos.sign({
|
|
2172
2170
|
signer: this._apiKey,
|
|
2173
2171
|
transaction: tx
|
|
2174
2172
|
});
|
|
2175
|
-
return await this.
|
|
2173
|
+
return await this.submitSponsoredTransaction(tx, signature);
|
|
2176
2174
|
}
|
|
2177
2175
|
async mintTokenPayload(receiver, token, amount) {
|
|
2178
2176
|
return await (0, import_ts_sdk3.generateTransactionPayload)({
|
|
@@ -2190,19 +2188,18 @@ var TestFaucet = class _TestFaucet extends client_default {
|
|
|
2190
2188
|
}
|
|
2191
2189
|
async mintToken(receiver, token, amount) {
|
|
2192
2190
|
const payload = await this.mintTokenPayload(receiver, token, amount);
|
|
2193
|
-
const tx = new import_ts_sdk3.
|
|
2191
|
+
const tx = new import_ts_sdk3.SimpleTransaction(
|
|
2194
2192
|
await (0, import_ts_sdk3.generateRawTransaction)({
|
|
2195
2193
|
sender: this._apiKey.accountAddress,
|
|
2196
2194
|
aptosConfig: this._aptos.config,
|
|
2197
2195
|
payload
|
|
2198
|
-
})
|
|
2199
|
-
[]
|
|
2196
|
+
})
|
|
2200
2197
|
);
|
|
2201
2198
|
const signature = this._aptos.sign({
|
|
2202
2199
|
signer: this._apiKey,
|
|
2203
2200
|
transaction: tx
|
|
2204
2201
|
});
|
|
2205
|
-
return await this.
|
|
2202
|
+
return await this.submitSponsoredTransaction(tx, signature);
|
|
2206
2203
|
}
|
|
2207
2204
|
};
|
|
2208
2205
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.js
CHANGED
|
@@ -2088,7 +2088,7 @@ var faucetEntrypoints_default = ABI26;
|
|
|
2088
2088
|
import {
|
|
2089
2089
|
generateRawTransaction as generateRawTransaction2,
|
|
2090
2090
|
generateTransactionPayload as generateTransactionPayload2,
|
|
2091
|
-
|
|
2091
|
+
SimpleTransaction as SimpleTransaction2
|
|
2092
2092
|
} from "@aptos-labs/ts-sdk";
|
|
2093
2093
|
var TestFaucet = class _TestFaucet extends client_default {
|
|
2094
2094
|
constructor(connection, enableWs, url, apiKey) {
|
|
@@ -2113,20 +2113,18 @@ var TestFaucet = class _TestFaucet extends client_default {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
async initFaucet() {
|
|
2115
2115
|
const payload = await this.initFaucetPayload();
|
|
2116
|
-
|
|
2117
|
-
const tx = new MultiAgentTransaction2(
|
|
2116
|
+
const tx = new SimpleTransaction2(
|
|
2118
2117
|
await generateRawTransaction2({
|
|
2119
2118
|
sender: this._apiKey.accountAddress,
|
|
2120
2119
|
aptosConfig: this._aptos.config,
|
|
2121
2120
|
payload
|
|
2122
|
-
})
|
|
2123
|
-
[]
|
|
2121
|
+
})
|
|
2124
2122
|
);
|
|
2125
2123
|
const signature = this._aptos.sign({
|
|
2126
2124
|
signer: this._apiKey,
|
|
2127
2125
|
transaction: tx
|
|
2128
2126
|
});
|
|
2129
|
-
return await this.
|
|
2127
|
+
return await this.submitSponsoredTransaction(tx, signature);
|
|
2130
2128
|
}
|
|
2131
2129
|
async mintTokenPayload(receiver, token, amount) {
|
|
2132
2130
|
return await generateTransactionPayload2({
|
|
@@ -2144,19 +2142,18 @@ var TestFaucet = class _TestFaucet extends client_default {
|
|
|
2144
2142
|
}
|
|
2145
2143
|
async mintToken(receiver, token, amount) {
|
|
2146
2144
|
const payload = await this.mintTokenPayload(receiver, token, amount);
|
|
2147
|
-
const tx = new
|
|
2145
|
+
const tx = new SimpleTransaction2(
|
|
2148
2146
|
await generateRawTransaction2({
|
|
2149
2147
|
sender: this._apiKey.accountAddress,
|
|
2150
2148
|
aptosConfig: this._aptos.config,
|
|
2151
2149
|
payload
|
|
2152
|
-
})
|
|
2153
|
-
[]
|
|
2150
|
+
})
|
|
2154
2151
|
);
|
|
2155
2152
|
const signature = this._aptos.sign({
|
|
2156
2153
|
signer: this._apiKey,
|
|
2157
2154
|
transaction: tx
|
|
2158
2155
|
});
|
|
2159
|
-
return await this.
|
|
2156
|
+
return await this.submitSponsoredTransaction(tx, signature);
|
|
2160
2157
|
}
|
|
2161
2158
|
};
|
|
2162
2159
|
export {
|