@aptos-labs/ts-sdk 7.3.0 → 7.5.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/LICENSE +43 -43
- package/README.md +19 -20
- package/dist/api/account/abstraction.d.ts +10 -0
- package/dist/api/account/abstraction.d.ts.map +1 -1
- package/dist/api/account/abstraction.js +19 -6
- package/dist/api/account/abstraction.js.map +1 -1
- package/dist/api/ans.d.ts +9 -0
- package/dist/api/ans.d.ts.map +1 -1
- package/dist/api/ans.js +5 -0
- package/dist/api/ans.js.map +1 -1
- package/dist/api/coin.d.ts +2 -0
- package/dist/api/coin.d.ts.map +1 -1
- package/dist/api/coin.js +1 -0
- package/dist/api/coin.js.map +1 -1
- package/dist/api/digitalAsset.d.ts +30 -0
- package/dist/api/digitalAsset.d.ts.map +1 -1
- package/dist/api/digitalAsset.js +15 -0
- package/dist/api/digitalAsset.js.map +1 -1
- package/dist/api/fungibleAsset.d.ts +4 -0
- package/dist/api/fungibleAsset.d.ts.map +1 -1
- package/dist/api/fungibleAsset.js +2 -0
- package/dist/api/fungibleAsset.js.map +1 -1
- package/dist/api/keyless.d.ts +38 -1
- package/dist/api/keyless.d.ts.map +1 -1
- package/dist/api/keyless.js +29 -1
- package/dist/api/keyless.js.map +1 -1
- package/dist/api/transaction.d.ts +41 -1
- package/dist/api/transaction.d.ts.map +1 -1
- package/dist/api/transaction.js +42 -2
- package/dist/api/transaction.js.map +1 -1
- package/dist/api/transactionSubmission/build.d.ts +7 -5
- package/dist/api/transactionSubmission/build.d.ts.map +1 -1
- package/dist/api/transactionSubmission/build.js +13 -5
- package/dist/api/transactionSubmission/build.js.map +1 -1
- package/dist/api/transactionSubmission/simulate.d.ts +7 -3
- package/dist/api/transactionSubmission/simulate.d.ts.map +1 -1
- package/dist/api/transactionSubmission/simulate.js +7 -3
- package/dist/api/transactionSubmission/simulate.js.map +1 -1
- package/dist/bcs/serializable/moveStructs.d.ts +72 -28
- package/dist/bcs/serializable/moveStructs.d.ts.map +1 -1
- package/dist/bcs/serializable/moveStructs.js +76 -28
- package/dist/bcs/serializable/moveStructs.js.map +1 -1
- package/dist/functions/keyless.d.ts +1 -1
- package/dist/functions/keyless.d.ts.map +1 -1
- package/dist/functions/keyless.js +1 -1
- package/dist/functions/keyless.js.map +1 -1
- package/dist/functions/transaction.d.ts +1 -1
- package/dist/functions/transaction.d.ts.map +1 -1
- package/dist/functions/transaction.js +1 -1
- package/dist/functions/transaction.js.map +1 -1
- package/dist/internal/abstraction.d.ts +35 -0
- package/dist/internal/abstraction.d.ts.map +1 -1
- package/dist/internal/abstraction.js +38 -3
- package/dist/internal/abstraction.js.map +1 -1
- package/dist/internal/account.d.ts +6 -0
- package/dist/internal/account.d.ts.map +1 -1
- package/dist/internal/account.js +55 -37
- package/dist/internal/account.js.map +1 -1
- package/dist/internal/ans.d.ts +11 -0
- package/dist/internal/ans.d.ts.map +1 -1
- package/dist/internal/ans.js +19 -7
- package/dist/internal/ans.js.map +1 -1
- package/dist/internal/coin.d.ts +2 -0
- package/dist/internal/coin.d.ts.map +1 -1
- package/dist/internal/coin.js +3 -1
- package/dist/internal/coin.js.map +1 -1
- package/dist/internal/digitalAsset.d.ts +30 -0
- package/dist/internal/digitalAsset.d.ts.map +1 -1
- package/dist/internal/digitalAsset.js +45 -15
- package/dist/internal/digitalAsset.js.map +1 -1
- package/dist/internal/fungibleAsset.d.ts +4 -0
- package/dist/internal/fungibleAsset.d.ts.map +1 -1
- package/dist/internal/fungibleAsset.js +6 -2
- package/dist/internal/fungibleAsset.js.map +1 -1
- package/dist/internal/keyless.d.ts +39 -1
- package/dist/internal/keyless.d.ts.map +1 -1
- package/dist/internal/keyless.js +71 -13
- package/dist/internal/keyless.js.map +1 -1
- package/dist/internal/transaction.d.ts +24 -1
- package/dist/internal/transaction.d.ts.map +1 -1
- package/dist/internal/transaction.js +125 -4
- package/dist/internal/transaction.js.map +1 -1
- package/dist/internal/transactionSubmission.d.ts +2 -0
- package/dist/internal/transactionSubmission.d.ts.map +1 -1
- package/dist/internal/transactionSubmission.js +3 -1
- package/dist/internal/transactionSubmission.js.map +1 -1
- package/dist/transactions/management/transactionWorker.d.ts +10 -6
- package/dist/transactions/management/transactionWorker.d.ts.map +1 -1
- package/dist/transactions/management/transactionWorker.js +28 -24
- package/dist/transactions/management/transactionWorker.js.map +1 -1
- package/dist/transactions/transactionBuilder/index.d.ts +1 -0
- package/dist/transactions/transactionBuilder/index.d.ts.map +1 -1
- package/dist/transactions/transactionBuilder/index.js +1 -0
- package/dist/transactions/transactionBuilder/index.js.map +1 -1
- package/dist/transactions/transactionBuilder/scriptAbi.d.ts +10 -0
- package/dist/transactions/transactionBuilder/scriptAbi.d.ts.map +1 -0
- package/dist/transactions/transactionBuilder/scriptAbi.js +863 -0
- package/dist/transactions/transactionBuilder/scriptAbi.js.map +1 -0
- package/dist/transactions/transactionBuilder/transactionBuilder.d.ts.map +1 -1
- package/dist/transactions/transactionBuilder/transactionBuilder.js +65 -1
- package/dist/transactions/transactionBuilder/transactionBuilder.js.map +1 -1
- package/dist/transactions/types.d.ts +9 -4
- package/dist/transactions/types.d.ts.map +1 -1
- package/dist/types/keyless.d.ts +2 -2
- package/dist/types/keyless.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils/const.d.ts +11 -0
- package/dist/utils/const.d.ts.map +1 -1
- package/dist/utils/const.js +11 -0
- package/dist/utils/const.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +26 -25
- package/src/api/account/abstraction.ts +23 -6
- package/src/api/ans.ts +9 -0
- package/src/api/coin.ts +2 -0
- package/src/api/digitalAsset.ts +30 -0
- package/src/api/fungibleAsset.ts +4 -0
- package/src/api/keyless.ts +39 -1
- package/src/api/transaction.ts +48 -1
- package/src/api/transactionSubmission/build.ts +16 -6
- package/src/api/transactionSubmission/simulate.ts +7 -3
- package/src/bcs/serializable/moveStructs.ts +80 -28
- package/src/functions/keyless.ts +1 -0
- package/src/functions/transaction.ts +1 -0
- package/src/internal/abstraction.ts +41 -3
- package/src/internal/account.ts +60 -38
- package/src/internal/ans.ts +25 -7
- package/src/internal/coin.ts +4 -1
- package/src/internal/digitalAsset.ts +60 -9
- package/src/internal/fungibleAsset.ts +8 -2
- package/src/internal/keyless.ts +91 -14
- package/src/internal/transaction.ts +154 -4
- package/src/internal/transactionSubmission.ts +4 -1
- package/src/transactions/management/transactionWorker.ts +35 -23
- package/src/transactions/transactionBuilder/index.ts +1 -0
- package/src/transactions/transactionBuilder/scriptAbi.ts +1145 -0
- package/src/transactions/transactionBuilder/transactionBuilder.ts +91 -6
- package/src/transactions/types.ts +10 -4
- package/src/types/keyless.ts +2 -2
- package/src/types/types.ts +2 -2
- package/src/utils/const.ts +12 -0
- package/src/version.ts +1 -1
package/LICENSE
CHANGED
|
@@ -5,64 +5,64 @@ Parts of the project are originally copyright © Meta Platforms, Inc.
|
|
|
5
5
|
|
|
6
6
|
-----------------------------------------------------------------------------
|
|
7
7
|
|
|
8
|
-
“Licensed Work” shall mean the work of authorship, whether in source code or
|
|
9
|
-
object code form or otherwise, made available under this license, as
|
|
10
|
-
indicated by a notice that is included in or attached to the work.
|
|
8
|
+
“Licensed Work” shall mean the work of authorship, whether in source code or
|
|
9
|
+
object code form or otherwise, made available under this license, as
|
|
10
|
+
indicated by a notice that is included in or attached to the work.
|
|
11
11
|
|
|
12
|
-
Aptos Foundation (the “Licensor”) hereby grants you the right to copy,
|
|
12
|
+
Aptos Foundation (the “Licensor”) hereby grants you the right to copy,
|
|
13
13
|
modify, create derivative
|
|
14
|
-
works, redistribute, and make non-production and non-commercial use of the
|
|
15
|
-
Licensed Work solely for your internal purposes. Without limiting the
|
|
16
|
-
generality of the foregoing, you may not use the Licensed Work (or any
|
|
17
|
-
information therein) for the purpose of creating, publishing, deploying,
|
|
18
|
-
launching or offering any blockchain or protocols (whether in mainnet,
|
|
19
|
-
testnet, devnet, beta or alpha versions) outside of personal, non-production
|
|
14
|
+
works, redistribute, and make non-production and non-commercial use of the
|
|
15
|
+
Licensed Work solely for your internal purposes. Without limiting the
|
|
16
|
+
generality of the foregoing, you may not use the Licensed Work (or any
|
|
17
|
+
information therein) for the purpose of creating, publishing, deploying,
|
|
18
|
+
launching or offering any blockchain or protocols (whether in mainnet,
|
|
19
|
+
testnet, devnet, beta or alpha versions) outside of personal, non-production
|
|
20
20
|
and non-commercial environments.
|
|
21
21
|
|
|
22
|
-
Notwithstanding the foregoing, on the date that is 4 years after
|
|
23
|
-
the date that the Licensor has publicly uploaded the specific code of the
|
|
24
|
-
Licensed Work that you are using (the “Change Date”), the license herein
|
|
25
|
-
shall automatically terminate and you shall have the right to then use the
|
|
22
|
+
Notwithstanding the foregoing, on the date that is 4 years after
|
|
23
|
+
the date that the Licensor has publicly uploaded the specific code of the
|
|
24
|
+
Licensed Work that you are using (the “Change Date”), the license herein
|
|
25
|
+
shall automatically terminate and you shall have the right to then use the
|
|
26
26
|
Licensed Work pursuant to the terms of the Apache 2.0 license.
|
|
27
27
|
|
|
28
|
-
In addition, notwithstanding the foregoing, you may additionally use the
|
|
29
|
-
software included in the repositories available at this link
|
|
30
|
-
(https://docs.google.com/spreadsheets/d/1YXfK8bpXNbXUhRtH1hZAaZGdDPyM-ppoKuh6hoLC3Cs/edit?gid=0#gid=0)
|
|
31
|
-
for production commercial uses (the “Additional Use Grant
|
|
32
|
-
Software”), but solely to the extent if such uses are (i) for an application
|
|
33
|
-
built exclusively on the Aptos protocol and (ii) not Competing Uses.
|
|
34
|
-
“Competing Use” means any use of the Additional Use Grant Software in any
|
|
35
|
-
product, protocol, application or service that is made available to third
|
|
36
|
-
parties and that (i) (a) substitutes for use of Aptos protocol or (b) is
|
|
37
|
-
related to the development of a layer 1 or layer 2 blockchain, (ii) offers
|
|
38
|
-
similar functionality as the Aptos protocol or (iii) is built on or using a
|
|
28
|
+
In addition, notwithstanding the foregoing, you may additionally use the
|
|
29
|
+
software included in the repositories available at this link
|
|
30
|
+
(https://docs.google.com/spreadsheets/d/1YXfK8bpXNbXUhRtH1hZAaZGdDPyM-ppoKuh6hoLC3Cs/edit?gid=0#gid=0)
|
|
31
|
+
for production commercial uses (the “Additional Use Grant
|
|
32
|
+
Software”), but solely to the extent if such uses are (i) for an application
|
|
33
|
+
built exclusively on the Aptos protocol and (ii) not Competing Uses.
|
|
34
|
+
“Competing Use” means any use of the Additional Use Grant Software in any
|
|
35
|
+
product, protocol, application or service that is made available to third
|
|
36
|
+
parties and that (i) (a) substitutes for use of Aptos protocol or (b) is
|
|
37
|
+
related to the development of a layer 1 or layer 2 blockchain, (ii) offers
|
|
38
|
+
similar functionality as the Aptos protocol or (iii) is built on or using a
|
|
39
39
|
protocol other than Aptos protocol.
|
|
40
40
|
|
|
41
|
-
All copies of the original and modified Licensed Work, and derivative works
|
|
42
|
-
of the Licensed Work, are subject to this License. This License applies
|
|
43
|
-
separately for each version of the Licensed Work and the Change Date may
|
|
41
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
42
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
43
|
+
separately for each version of the Licensed Work and the Change Date may
|
|
44
44
|
vary for each version of the Licensed Work released by Licensor.
|
|
45
45
|
|
|
46
|
-
You must conspicuously display this License on each original or modified
|
|
47
|
-
copy of the Licensed Work. If you receive the Licensed Work in original or
|
|
48
|
-
modified form from a third party, the terms and conditions set forth in this
|
|
46
|
+
You must conspicuously display this License on each original or modified
|
|
47
|
+
copy of the Licensed Work. If you receive the Licensed Work in original or
|
|
48
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
49
49
|
License apply to your use of that work.
|
|
50
50
|
|
|
51
|
-
Any use of the Licensed Work in violation of this License will automatically
|
|
52
|
-
terminate your rights under this License for the current and all other
|
|
53
|
-
versions of the Licensed Work. You may contact Aptos Foundation if you are
|
|
51
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
52
|
+
terminate your rights under this License for the current and all other
|
|
53
|
+
versions of the Licensed Work. You may contact Aptos Foundation if you are
|
|
54
54
|
interested in seeking a commercial license.
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
This License does not grant you any right in any trademark or logo of
|
|
58
|
-
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
57
|
+
This License does not grant you any right in any trademark or logo of
|
|
58
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
59
59
|
Licensor as expressly required by this License).
|
|
60
60
|
|
|
61
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
62
|
-
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
63
|
-
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
64
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
65
|
-
TITLE. TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, LICENSOR SHALL
|
|
66
|
-
NOT BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY LOST PROFITS, LOSS OF
|
|
67
|
-
REVENUE OR BUSINESS, COST OF COVER OR ANY INCIDENTAL, SPECIAL OR
|
|
61
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
62
|
+
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
63
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
64
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
65
|
+
TITLE. TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, LICENSOR SHALL
|
|
66
|
+
NOT BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY LOST PROFITS, LOSS OF
|
|
67
|
+
REVENUE OR BUSINESS, COST OF COVER OR ANY INCIDENTAL, SPECIAL OR
|
|
68
68
|
CONSEQUENTIAL DAMAGES OF ANY KIND AND NATURE.
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ For comprehensive guides, tutorials, and API reference, visit [aptos.dev](https:
|
|
|
13
13
|
- **[Quickstart Guide](https://aptos.dev/en/build/sdks/ts-sdk/quickstart)** - Get up and running quickly
|
|
14
14
|
- **[SDK Tutorials](https://aptos.dev/en/build/sdks/ts-sdk)** - Step-by-step tutorials
|
|
15
15
|
- **[API Reference](https://aptos-labs.github.io/aptos-ts-sdk/)** - Complete API documentation
|
|
16
|
-
- **[Examples](
|
|
16
|
+
- **[Examples](../../examples/README.md)** - Code examples and sample applications
|
|
17
17
|
|
|
18
18
|
## Installation
|
|
19
19
|
|
|
@@ -178,43 +178,43 @@ const account = Account.fromDerivationPath({ path, mnemonic });
|
|
|
178
178
|
* This example shows how to use the Aptos SDK to send a transaction.
|
|
179
179
|
* Don't forget to install @aptos-labs/ts-sdk before running this example!
|
|
180
180
|
*/
|
|
181
|
-
|
|
181
|
+
|
|
182
182
|
import {
|
|
183
183
|
Account,
|
|
184
184
|
Aptos,
|
|
185
185
|
AptosConfig,
|
|
186
186
|
Network,
|
|
187
187
|
} from "@aptos-labs/ts-sdk";
|
|
188
|
-
|
|
188
|
+
|
|
189
189
|
async function example() {
|
|
190
190
|
console.log("This example will create two accounts (Alice and Bob) and send a transaction transferring APT to Bob's account.");
|
|
191
|
-
|
|
191
|
+
|
|
192
192
|
// 0. Setup the client and test accounts
|
|
193
193
|
const config = new AptosConfig({ network: Network.TESTNET });
|
|
194
194
|
const aptos = new Aptos(config);
|
|
195
|
-
|
|
195
|
+
|
|
196
196
|
let alice = Account.generate();
|
|
197
197
|
let bob = Account.generate();
|
|
198
|
-
|
|
198
|
+
|
|
199
199
|
console.log("=== Addresses ===\n");
|
|
200
200
|
console.log(`Alice's address is: ${alice.accountAddress}`);
|
|
201
201
|
console.log(`Bob's address is: ${bob.accountAddress}`);
|
|
202
|
-
|
|
202
|
+
|
|
203
203
|
console.log("\n=== Funding accounts ===\n");
|
|
204
204
|
await aptos.faucet.fundAccount({
|
|
205
205
|
accountAddress: alice.accountAddress,
|
|
206
206
|
amount: 100_000_000,
|
|
207
|
-
});
|
|
207
|
+
});
|
|
208
208
|
await aptos.faucet.fundAccount({
|
|
209
209
|
accountAddress: bob.accountAddress,
|
|
210
210
|
amount: 100,
|
|
211
211
|
});
|
|
212
212
|
console.log("Funded Alice and Bob's accounts!")
|
|
213
|
-
|
|
213
|
+
|
|
214
214
|
// 1. Build
|
|
215
215
|
console.log("\n=== 1. Building the transaction ===\n");
|
|
216
216
|
const transaction = await aptos.transaction.build.simple({
|
|
217
|
-
sender: alice
|
|
217
|
+
sender: alice,
|
|
218
218
|
data: {
|
|
219
219
|
// All transactions on Aptos are implemented via smart contracts.
|
|
220
220
|
function: "0x1::aptos_account::transfer",
|
|
@@ -222,15 +222,14 @@ async function example() {
|
|
|
222
222
|
},
|
|
223
223
|
});
|
|
224
224
|
console.log("Built the transaction!")
|
|
225
|
-
|
|
225
|
+
|
|
226
226
|
// 2. Simulate (Optional)
|
|
227
227
|
console.log("\n === 2. Simulating Response (Optional) === \n")
|
|
228
228
|
const [userTransactionResponse] = await aptos.transaction.simulate.simple({
|
|
229
|
-
signerPublicKey: alice.publicKey,
|
|
230
229
|
transaction,
|
|
231
230
|
});
|
|
232
231
|
console.log(userTransactionResponse)
|
|
233
|
-
|
|
232
|
+
|
|
234
233
|
// 3. Sign
|
|
235
234
|
console.log("\n=== 3. Signing transaction ===\n");
|
|
236
235
|
const senderAuthenticator = aptos.transaction.sign({
|
|
@@ -238,22 +237,22 @@ async function example() {
|
|
|
238
237
|
transaction,
|
|
239
238
|
});
|
|
240
239
|
console.log("Signed the transaction!")
|
|
241
|
-
|
|
240
|
+
|
|
242
241
|
// 4. Submit
|
|
243
242
|
console.log("\n=== 4. Submitting transaction ===\n");
|
|
244
243
|
const submittedTransaction = await aptos.transaction.submit.simple({
|
|
245
244
|
transaction,
|
|
246
245
|
senderAuthenticator,
|
|
247
246
|
});
|
|
248
|
-
|
|
247
|
+
|
|
249
248
|
console.log(`Submitted transaction hash: ${submittedTransaction.hash}`);
|
|
250
|
-
|
|
249
|
+
|
|
251
250
|
// 5. Wait for results
|
|
252
251
|
console.log("\n=== 5. Waiting for result of transaction ===\n");
|
|
253
252
|
const executedTransaction = await aptos.transaction.waitForTransaction({ transactionHash: submittedTransaction.hash });
|
|
254
253
|
console.log(executedTransaction)
|
|
255
254
|
};
|
|
256
|
-
|
|
255
|
+
|
|
257
256
|
example();
|
|
258
257
|
```
|
|
259
258
|
|
|
@@ -358,9 +357,9 @@ If neither of these describes what you would like to contribute, check out the [
|
|
|
358
357
|
## Running unit tests
|
|
359
358
|
|
|
360
359
|
```
|
|
361
|
-
pnpm test
|
|
362
|
-
vitest run tests/unit
|
|
363
|
-
vitest run keyless.test.ts
|
|
360
|
+
pnpm --filter @aptos-labs/ts-sdk test # Run all tests (unit + e2e)
|
|
361
|
+
pnpm --filter @aptos-labs/ts-sdk exec vitest run tests/unit # Run unit tests only
|
|
362
|
+
pnpm --filter @aptos-labs/ts-sdk exec vitest run tests/unit/keyless.test.ts # Run a specific test file
|
|
364
363
|
```
|
|
365
364
|
|
|
366
365
|
[npm-image-version]: https://img.shields.io/npm/v/%40aptos-labs%2Fts-sdk.svg
|
|
@@ -21,12 +21,14 @@ export declare class AccountAbstraction {
|
|
|
21
21
|
*
|
|
22
22
|
* @param args.accountAddress - The account to add the authentication function to.
|
|
23
23
|
* @param args.authenticationFunction - The authentication function info to add.
|
|
24
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
24
25
|
* @param args.options - The options for the transaction.
|
|
25
26
|
* @returns A transaction to add the authentication function to the account.
|
|
26
27
|
*/
|
|
27
28
|
addAuthenticationFunctionTransaction(args: {
|
|
28
29
|
accountAddress: AccountAddressInput;
|
|
29
30
|
authenticationFunction: MoveFunctionId;
|
|
31
|
+
withFeePayer?: boolean;
|
|
30
32
|
options?: InputGenerateTransactionOptions;
|
|
31
33
|
}): Promise<import("../../transactions/index.js").SimpleTransaction>;
|
|
32
34
|
/**
|
|
@@ -45,12 +47,14 @@ export declare class AccountAbstraction {
|
|
|
45
47
|
*
|
|
46
48
|
* @param args.accountAddress - The account to remove the authentication function from.
|
|
47
49
|
* @param args.authenticationFunction - The authentication function info to remove.
|
|
50
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
48
51
|
* @param args.options - The options for the transaction.
|
|
49
52
|
* @returns A transaction to remove the authentication function from the account.
|
|
50
53
|
*/
|
|
51
54
|
removeAuthenticationFunctionTransaction(args: {
|
|
52
55
|
accountAddress: AccountAddressInput;
|
|
53
56
|
authenticationFunction: MoveFunctionId;
|
|
57
|
+
withFeePayer?: boolean;
|
|
54
58
|
options?: InputGenerateTransactionOptions;
|
|
55
59
|
}): Promise<import("../../transactions/index.js").SimpleTransaction>;
|
|
56
60
|
/**
|
|
@@ -67,11 +71,13 @@ export declare class AccountAbstraction {
|
|
|
67
71
|
* ```
|
|
68
72
|
*
|
|
69
73
|
* @param args.accountAddress - The account to remove the authenticator from.
|
|
74
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
70
75
|
* @param args.options - The options for the transaction.
|
|
71
76
|
* @returns A transaction to remove the authenticator from the account.
|
|
72
77
|
*/
|
|
73
78
|
removeDispatchableAuthenticatorTransaction(args: {
|
|
74
79
|
accountAddress: AccountAddressInput;
|
|
80
|
+
withFeePayer?: boolean;
|
|
75
81
|
options?: InputGenerateTransactionOptions;
|
|
76
82
|
}): Promise<import("../../transactions/index.js").SimpleTransaction>;
|
|
77
83
|
/**
|
|
@@ -139,12 +145,14 @@ export declare class AccountAbstraction {
|
|
|
139
145
|
*
|
|
140
146
|
* @param args.accountAddress - The account to enable account abstraction for.
|
|
141
147
|
* @param args.authenticationFunction - The authentication function info to use.
|
|
148
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
142
149
|
* @param args.options - The options for the transaction.
|
|
143
150
|
* @returns A transaction to enable account abstraction for the account.
|
|
144
151
|
*/
|
|
145
152
|
enableAccountAbstractionTransaction: (args: {
|
|
146
153
|
accountAddress: AccountAddressInput;
|
|
147
154
|
authenticationFunction: MoveFunctionId;
|
|
155
|
+
withFeePayer?: boolean;
|
|
148
156
|
options?: InputGenerateTransactionOptions;
|
|
149
157
|
}) => Promise<import("../../transactions/index.js").SimpleTransaction>;
|
|
150
158
|
/**
|
|
@@ -164,12 +172,14 @@ export declare class AccountAbstraction {
|
|
|
164
172
|
*
|
|
165
173
|
* @param args.accountAddress - The account to disable account abstraction for.
|
|
166
174
|
* @param args.authenticationFunction - The authentication function info to remove.
|
|
175
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
167
176
|
* @param args.options - The options for the transaction.
|
|
168
177
|
* @returns A transaction to disable account abstraction for the account.
|
|
169
178
|
*/
|
|
170
179
|
disableAccountAbstractionTransaction: (args: {
|
|
171
180
|
accountAddress: AccountAddressInput;
|
|
172
181
|
authenticationFunction?: MoveFunctionId;
|
|
182
|
+
withFeePayer?: boolean;
|
|
173
183
|
options?: InputGenerateTransactionOptions;
|
|
174
184
|
}) => Promise<import("../../transactions/index.js").SimpleTransaction>;
|
|
175
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstraction.d.ts","sourceRoot":"","sources":["../../../src/api/account/abstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAO1E,OAAO,EAAE,+BAA+B,EAAkB,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAAa,kBAAkB;IACjB,QAAQ,CAAC,MAAM,EAAE,WAAW;IAAxC,YAAqB,MAAM,EA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Ac,EAAE,mBAAmB,CAAC;QACpC,sBAAsB,EAAE,cAAc,CAAC;KACxC,sBAWC;IAEF;;;;;;;;;;;;;;;;;;;OAmBG;IACI,mCAAmC,SApLc;QACtD,cAAc,EAAE,mBAAmB,CAAC;QACpC,sBAAsB,EAAE,cAAc,CAAC;QACvC,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,OAAO,CAAC,EAAE,+BAA+B,CAAC;KAC3C,sEA+KsF;IAEvF;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,oCAAoC,SAAgB;QACzD,cAAc,EAAE,mBAAmB,CAAC;QACpC,sBAAsB,CAAC,EAAE,cAAc,CAAC;QACxC,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,OAAO,CAAC,EAAE,+BAA+B,CAAC;KAC3C,sEAWC;CACH"}
|
|
@@ -24,15 +24,17 @@ export class AccountAbstraction {
|
|
|
24
24
|
*
|
|
25
25
|
* @param args.accountAddress - The account to add the authentication function to.
|
|
26
26
|
* @param args.authenticationFunction - The authentication function info to add.
|
|
27
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
27
28
|
* @param args.options - The options for the transaction.
|
|
28
29
|
* @returns A transaction to add the authentication function to the account.
|
|
29
30
|
*/
|
|
30
31
|
async addAuthenticationFunctionTransaction(args) {
|
|
31
|
-
const { accountAddress, authenticationFunction, options } = args;
|
|
32
|
+
const { accountAddress, authenticationFunction, withFeePayer, options } = args;
|
|
32
33
|
return addAuthenticationFunctionTransaction({
|
|
33
34
|
aptosConfig: this.config,
|
|
34
35
|
authenticationFunction,
|
|
35
36
|
sender: accountAddress,
|
|
37
|
+
withFeePayer,
|
|
36
38
|
options,
|
|
37
39
|
});
|
|
38
40
|
}
|
|
@@ -52,15 +54,17 @@ export class AccountAbstraction {
|
|
|
52
54
|
*
|
|
53
55
|
* @param args.accountAddress - The account to remove the authentication function from.
|
|
54
56
|
* @param args.authenticationFunction - The authentication function info to remove.
|
|
57
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
55
58
|
* @param args.options - The options for the transaction.
|
|
56
59
|
* @returns A transaction to remove the authentication function from the account.
|
|
57
60
|
*/
|
|
58
61
|
async removeAuthenticationFunctionTransaction(args) {
|
|
59
|
-
const { accountAddress, authenticationFunction, options } = args;
|
|
62
|
+
const { accountAddress, authenticationFunction, withFeePayer, options } = args;
|
|
60
63
|
return removeAuthenticationFunctionTransaction({
|
|
61
64
|
aptosConfig: this.config,
|
|
62
65
|
sender: accountAddress,
|
|
63
66
|
authenticationFunction,
|
|
67
|
+
withFeePayer,
|
|
64
68
|
options,
|
|
65
69
|
});
|
|
66
70
|
}
|
|
@@ -78,12 +82,18 @@ export class AccountAbstraction {
|
|
|
78
82
|
* ```
|
|
79
83
|
*
|
|
80
84
|
* @param args.accountAddress - The account to remove the authenticator from.
|
|
85
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
81
86
|
* @param args.options - The options for the transaction.
|
|
82
87
|
* @returns A transaction to remove the authenticator from the account.
|
|
83
88
|
*/
|
|
84
89
|
async removeDispatchableAuthenticatorTransaction(args) {
|
|
85
|
-
const { accountAddress, options } = args;
|
|
86
|
-
return removeDispatchableAuthenticatorTransaction({
|
|
90
|
+
const { accountAddress, withFeePayer, options } = args;
|
|
91
|
+
return removeDispatchableAuthenticatorTransaction({
|
|
92
|
+
aptosConfig: this.config,
|
|
93
|
+
sender: accountAddress,
|
|
94
|
+
withFeePayer,
|
|
95
|
+
options,
|
|
96
|
+
});
|
|
87
97
|
}
|
|
88
98
|
/**
|
|
89
99
|
* Gets the dispatchable authentication function for the account.
|
|
@@ -164,6 +174,7 @@ export class AccountAbstraction {
|
|
|
164
174
|
*
|
|
165
175
|
* @param args.accountAddress - The account to enable account abstraction for.
|
|
166
176
|
* @param args.authenticationFunction - The authentication function info to use.
|
|
177
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
167
178
|
* @param args.options - The options for the transaction.
|
|
168
179
|
* @returns A transaction to enable account abstraction for the account.
|
|
169
180
|
*/
|
|
@@ -185,19 +196,21 @@ export class AccountAbstraction {
|
|
|
185
196
|
*
|
|
186
197
|
* @param args.accountAddress - The account to disable account abstraction for.
|
|
187
198
|
* @param args.authenticationFunction - The authentication function info to remove.
|
|
199
|
+
* @param args.withFeePayer - Whether the transaction should use a fee payer.
|
|
188
200
|
* @param args.options - The options for the transaction.
|
|
189
201
|
* @returns A transaction to disable account abstraction for the account.
|
|
190
202
|
*/
|
|
191
203
|
disableAccountAbstractionTransaction = async (args) => {
|
|
192
|
-
const { accountAddress, authenticationFunction, options } = args;
|
|
204
|
+
const { accountAddress, authenticationFunction, withFeePayer, options } = args;
|
|
193
205
|
if (authenticationFunction) {
|
|
194
206
|
return this.removeAuthenticationFunctionTransaction({
|
|
195
207
|
accountAddress,
|
|
196
208
|
authenticationFunction,
|
|
209
|
+
withFeePayer,
|
|
197
210
|
options,
|
|
198
211
|
});
|
|
199
212
|
}
|
|
200
|
-
return this.removeDispatchableAuthenticatorTransaction({ accountAddress, options });
|
|
213
|
+
return this.removeDispatchableAuthenticatorTransaction({ accountAddress, withFeePayer, options });
|
|
201
214
|
};
|
|
202
215
|
}
|
|
203
216
|
//# sourceMappingURL=abstraction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstraction.js","sourceRoot":"","sources":["../../../src/api/account/abstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAuB,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EACL,oCAAoC,EACpC,uCAAuC,EACvC,0CAA0C,GAC3C,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAmC,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,MAAM,OAAO,kBAAkB;IACR,MAAM;IAA3B,YAAqB,MAAmB;sBAAnB,MAA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AC,sBAAsB,CAAC,CAAC;QAClG,OAAO,CACL,aAAa,EAAE,IAAI,CACjB,CAAC,YAAY,EAAE,EAAE,CACf,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,aAAa,CAAC;YAC3E,UAAU,KAAK,YAAY,CAAC,UAAU;YACtC,YAAY,KAAK,YAAY,CAAC,YAAY,CAC7C,IAAI,KAAK,CACX,CAAC;IACJ,CAAC,CAAC;IAEF;;;;;;;;;;;;;;;;;;;OAmBG;IACI,mCAAmC,GAAG,IAAI,CAAC,oCAAoC,CAAC;IAEvF;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,oCAAoC,GAAG,KAAK,EAAE,IAKpD,EAAE,EAAE;QACH,MAAM,EAAE,cAAc,EAAE,sBAAsB,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC/E,IAAI,sBAAsB,EAAE,CAAC;YAC3B,OAAO,IAAI,CAAC,uCAAuC,CAAC;gBAClD,cAAc;gBACd,sBAAsB;gBACtB,YAAY;gBACZ,OAAO;aACR,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,0CAA0C,CAAC,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC,CAAC;CACH"}
|
package/dist/api/ans.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export declare class ANS {
|
|
|
131
131
|
* @param args.sender - The account initiating the transaction.
|
|
132
132
|
* @param args.name - A string representing the domain or subdomain name (e.g., "test.aptos").
|
|
133
133
|
* @param args.address - The AccountAddressInput of the address to set the domain or subdomain to.
|
|
134
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
134
135
|
* @param args.options - Optional settings for generating the transaction.
|
|
135
136
|
*
|
|
136
137
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -164,6 +165,7 @@ export declare class ANS {
|
|
|
164
165
|
sender: AccountAddressInput;
|
|
165
166
|
name: string;
|
|
166
167
|
address: AccountAddressInput;
|
|
168
|
+
withFeePayer?: boolean;
|
|
167
169
|
options?: InputGenerateTransactionOptions;
|
|
168
170
|
}): Promise<{
|
|
169
171
|
transaction: SimpleTransaction;
|
|
@@ -176,6 +178,7 @@ export declare class ANS {
|
|
|
176
178
|
* @param args - The arguments for clearing the target address.
|
|
177
179
|
* @param args.sender - The account initiating the transaction.
|
|
178
180
|
* @param args.name - A string representing the domain or subdomain name (e.g., "test.aptos").
|
|
181
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
179
182
|
* @param args.options - Optional settings for generating the transaction.
|
|
180
183
|
*
|
|
181
184
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -206,6 +209,7 @@ export declare class ANS {
|
|
|
206
209
|
clearTargetAddress(args: {
|
|
207
210
|
sender: AccountAddressInput;
|
|
208
211
|
name: string;
|
|
212
|
+
withFeePayer?: boolean;
|
|
209
213
|
options?: InputGenerateTransactionOptions;
|
|
210
214
|
}): Promise<{
|
|
211
215
|
transaction: SimpleTransaction;
|
|
@@ -245,6 +249,7 @@ export declare class ANS {
|
|
|
245
249
|
* @param args - The arguments for setting the primary name.
|
|
246
250
|
* @param args.sender - The sender account.
|
|
247
251
|
* @param args.name - A string representing the name to set as primary (e.g., "test.aptos").
|
|
252
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
248
253
|
* @param args.options - Optional transaction options.
|
|
249
254
|
*
|
|
250
255
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -271,6 +276,7 @@ export declare class ANS {
|
|
|
271
276
|
setPrimaryName(args: {
|
|
272
277
|
sender: AccountAddressInput;
|
|
273
278
|
name?: string;
|
|
279
|
+
withFeePayer?: boolean;
|
|
274
280
|
options?: InputGenerateTransactionOptions;
|
|
275
281
|
}): Promise<{
|
|
276
282
|
transaction: SimpleTransaction;
|
|
@@ -296,6 +302,7 @@ export declare class ANS {
|
|
|
296
302
|
* be used.
|
|
297
303
|
* @param args.toAddress optional - The address to send the domain name to. If not provided, the transaction will be sent to the
|
|
298
304
|
* router.
|
|
305
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
299
306
|
*
|
|
300
307
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
301
308
|
*
|
|
@@ -335,6 +342,7 @@ export declare class ANS {
|
|
|
335
342
|
* @param args.sender - The sender account, which must be the domain owner.
|
|
336
343
|
* @param args.name - A string representing the domain to renew. Subdomains cannot be renewed.
|
|
337
344
|
* @param args.years - The number of years to renew the name. Currently, only one year is permitted.
|
|
345
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
338
346
|
* @param args.options - Optional transaction options.
|
|
339
347
|
*
|
|
340
348
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -363,6 +371,7 @@ export declare class ANS {
|
|
|
363
371
|
sender: AccountAddressInput;
|
|
364
372
|
name: string;
|
|
365
373
|
years?: 1;
|
|
374
|
+
withFeePayer?: boolean;
|
|
366
375
|
options?: InputGenerateTransactionOptions;
|
|
367
376
|
}): Promise<{
|
|
368
377
|
transaction: SimpleTransaction;
|
package/dist/api/ans.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ans.d.ts","sourceRoot":"","sources":["../../src/api/ans.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EACL,sBAAsB,EAYtB,qBAAqB,EACrB,wBAAwB,EAGxB,mBAAmB,EAEnB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,+BAA+B,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACG,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAE7F;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACG,iBAAiB,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAEjG;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACG,oBAAoB,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAEvG;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACG,mBAAmB,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAErG;CACF"}
|
package/dist/api/ans.js
CHANGED
|
@@ -130,6 +130,7 @@ export class ANS {
|
|
|
130
130
|
* @param args.sender - The account initiating the transaction.
|
|
131
131
|
* @param args.name - A string representing the domain or subdomain name (e.g., "test.aptos").
|
|
132
132
|
* @param args.address - The AccountAddressInput of the address to set the domain or subdomain to.
|
|
133
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
133
134
|
* @param args.options - Optional settings for generating the transaction.
|
|
134
135
|
*
|
|
135
136
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -169,6 +170,7 @@ export class ANS {
|
|
|
169
170
|
* @param args - The arguments for clearing the target address.
|
|
170
171
|
* @param args.sender - The account initiating the transaction.
|
|
171
172
|
* @param args.name - A string representing the domain or subdomain name (e.g., "test.aptos").
|
|
173
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
172
174
|
* @param args.options - Optional settings for generating the transaction.
|
|
173
175
|
*
|
|
174
176
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -233,6 +235,7 @@ export class ANS {
|
|
|
233
235
|
* @param args - The arguments for setting the primary name.
|
|
234
236
|
* @param args.sender - The sender account.
|
|
235
237
|
* @param args.name - A string representing the name to set as primary (e.g., "test.aptos").
|
|
238
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
236
239
|
* @param args.options - Optional transaction options.
|
|
237
240
|
*
|
|
238
241
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
@@ -279,6 +282,7 @@ export class ANS {
|
|
|
279
282
|
* be used.
|
|
280
283
|
* @param args.toAddress optional - The address to send the domain name to. If not provided, the transaction will be sent to the
|
|
281
284
|
* router.
|
|
285
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
282
286
|
*
|
|
283
287
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
|
284
288
|
*
|
|
@@ -317,6 +321,7 @@ export class ANS {
|
|
|
317
321
|
* @param args.sender - The sender account, which must be the domain owner.
|
|
318
322
|
* @param args.name - A string representing the domain to renew. Subdomains cannot be renewed.
|
|
319
323
|
* @param args.years - The number of years to renew the name. Currently, only one year is permitted.
|
|
324
|
+
* @param args.withFeePayer - Whether to build a fee-payer transaction.
|
|
320
325
|
* @param args.options - Optional transaction options.
|
|
321
326
|
*
|
|
322
327
|
* @returns An object containing the transaction and the InputEntryFunctionData
|
package/dist/api/ans.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ans.js","sourceRoot":"","sources":["../../src/api/ans.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,sCAAsC;AAGtC,OAAO,EAEL,aAAa,EACb,eAAe,EACf,YAAY,EACZ,cAAc,EACd,cAAc,EACd,gB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;;;;;;;;;OAoCG;IACH,KAAK,CAAC,oBAAoB,CAAC,IAA8B;QACvD,OAAO,oBAAoB,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;IACH,KAAK,CAAC,mBAAmB,CAAC,IAA6B;QACrD,OAAO,mBAAmB,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
package/dist/api/coin.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare class Coin {
|
|
|
41
41
|
* @param args.recipient The recipient account address.
|
|
42
42
|
* @param args.amount The amount of coins to transfer.
|
|
43
43
|
* @param args.coinType Optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin.
|
|
44
|
+
* @param args.withFeePayer Whether to build a fee-payer transaction.
|
|
44
45
|
* @param args.options Optional. Additional options for generating the transaction.
|
|
45
46
|
*
|
|
46
47
|
* @returns SimpleTransaction
|
|
@@ -71,6 +72,7 @@ export declare class Coin {
|
|
|
71
72
|
recipient: AccountAddressInput;
|
|
72
73
|
amount: AnyNumber;
|
|
73
74
|
coinType?: MoveStructId;
|
|
75
|
+
withFeePayer?: boolean;
|
|
74
76
|
options?: InputGenerateTransactionOptions;
|
|
75
77
|
}): Promise<SimpleTransaction>;
|
|
76
78
|
}
|
package/dist/api/coin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../src/api/coin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;GAGG;AACH,qBAAa,IAAI;IAsBH,QAAQ,CAAC,MAAM,EAAE,WAAW;IArBxC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAqB,MAAM,EAAE,WAAW,EAAI;IAE5C
|
|
1
|
+
{"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../src/api/coin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;GAGG;AACH,qBAAa,IAAI;IAsBH,QAAQ,CAAC,MAAM,EAAE,WAAW;IArBxC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAqB,MAAM,EAAE,WAAW,EAAI;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACG,uBAAuB,CAAC,IAAI,EAAE;QAClC,MAAM,EAAE,mBAAmB,CAAC;QAC5B,SAAS,EAAE,mBAAmB,CAAC;QAC/B,MAAM,EAAE,SAAS,CAAC;QAClB,QAAQ,CAAC,EAAE,YAAY,CAAC;QACxB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,OAAO,CAAC,EAAE,+BAA+B,CAAC;KAC3C,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAE7B;CACF"}
|
package/dist/api/coin.js
CHANGED
|
@@ -41,6 +41,7 @@ export class Coin {
|
|
|
41
41
|
* @param args.recipient The recipient account address.
|
|
42
42
|
* @param args.amount The amount of coins to transfer.
|
|
43
43
|
* @param args.coinType Optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin.
|
|
44
|
+
* @param args.withFeePayer Whether to build a fee-payer transaction.
|
|
44
45
|
* @param args.options Optional. Additional options for generating the transaction.
|
|
45
46
|
*
|
|
46
47
|
* @returns SimpleTransaction
|
package/dist/api/coin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coin.js","sourceRoot":"","sources":["../../src/api/coin.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,sCAAsC;AAGtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAM9D;;;GAGG;AACH,MAAM,OAAO,IAAI;IAsBM,MAAM;IArB3B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAqB,MAAmB;sBAAnB,MAAM;IAAgB,CAAC;IAE5C
|
|
1
|
+
{"version":3,"file":"coin.js","sourceRoot":"","sources":["../../src/api/coin.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,sCAAsC;AAGtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAM9D;;;GAGG;AACH,MAAM,OAAO,IAAI;IAsBM,MAAM;IArB3B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAqB,MAAmB;sBAAnB,MAAM;IAAgB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,KAAK,CAAC,uBAAuB,CAAC,IAO7B;QACC,OAAO,uBAAuB,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|