@dynamic-labs-sdk/aptos 0.0.0 → 0.2.4
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/README.md +21 -0
- package/dist/AptosNetworkProvider.types.d.ts +8 -0
- package/dist/AptosNetworkProvider.types.d.ts.map +1 -0
- package/dist/AptosWalletAccount.types.d.ts +8 -0
- package/dist/AptosWalletAccount.types.d.ts.map +1 -0
- package/dist/AptosWalletProvider.types.d.ts +24 -0
- package/dist/AptosWalletProvider.types.d.ts.map +1 -0
- package/dist/addAptosExtension/addAptosExtension.d.ts +10 -0
- package/dist/addAptosExtension/addAptosExtension.d.ts.map +1 -0
- package/dist/addAptosExtension/index.d.ts +2 -0
- package/dist/addAptosExtension/index.d.ts.map +1 -0
- package/dist/addAptosWalletStandardExtension-C5kSd0qw.esm.js +253 -0
- package/dist/addAptosWalletStandardExtension-C5kSd0qw.esm.js.map +1 -0
- package/dist/addAptosWalletStandardExtension-Zvr1YUyy.cjs.js +270 -0
- package/dist/addAptosWalletStandardExtension-Zvr1YUyy.cjs.js.map +1 -0
- package/dist/errors/NotAptosProviderError/NotAptosProviderError.d.ts +8 -0
- package/dist/errors/NotAptosProviderError/NotAptosProviderError.d.ts.map +1 -0
- package/dist/errors/NotAptosProviderError/index.d.ts +2 -0
- package/dist/errors/NotAptosProviderError/index.d.ts.map +1 -0
- package/dist/exports/index.d.ts +12 -0
- package/dist/exports/index.d.ts.map +1 -0
- package/dist/exports/walletStandard.d.ts +2 -0
- package/dist/exports/walletStandard.d.ts.map +1 -0
- package/dist/getAptosClient/getAptosClient.d.ts +17 -0
- package/dist/getAptosClient/getAptosClient.d.ts.map +1 -0
- package/dist/getAptosClient/index.d.ts +2 -0
- package/dist/getAptosClient/index.d.ts.map +1 -0
- package/dist/index.cjs.js +120 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +113 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/isAptosNetworkProvider/index.d.ts +2 -0
- package/dist/isAptosNetworkProvider/index.d.ts.map +1 -0
- package/dist/isAptosNetworkProvider/isAptosNetworkProvider.d.ts +4 -0
- package/dist/isAptosNetworkProvider/isAptosNetworkProvider.d.ts.map +1 -0
- package/dist/isAptosWalletAccount/index.d.ts +2 -0
- package/dist/isAptosWalletAccount/index.d.ts.map +1 -0
- package/dist/isAptosWalletAccount/isAptosWalletAccount.d.ts +4 -0
- package/dist/isAptosWalletAccount/isAptosWalletAccount.d.ts.map +1 -0
- package/dist/isAptosWalletProvider/index.d.ts +2 -0
- package/dist/isAptosWalletProvider/index.d.ts.map +1 -0
- package/dist/isAptosWalletProvider/isAptosWalletProvider.d.ts +4 -0
- package/dist/isAptosWalletProvider/isAptosWalletProvider.d.ts.map +1 -0
- package/dist/registerAptosNetworkProviderBuilder/index.d.ts +2 -0
- package/dist/registerAptosNetworkProviderBuilder/index.d.ts.map +1 -0
- package/dist/registerAptosNetworkProviderBuilder/registerAptosNetworkProviderBuilder.d.ts +3 -0
- package/dist/registerAptosNetworkProviderBuilder/registerAptosNetworkProviderBuilder.d.ts.map +1 -0
- package/dist/signAndSubmitTransaction/index.d.ts +2 -0
- package/dist/signAndSubmitTransaction/index.d.ts.map +1 -0
- package/dist/signAndSubmitTransaction/signAndSubmitTransaction.d.ts +20 -0
- package/dist/signAndSubmitTransaction/signAndSubmitTransaction.d.ts.map +1 -0
- package/dist/signTransaction/index.d.ts +2 -0
- package/dist/signTransaction/index.d.ts.map +1 -0
- package/dist/signTransaction/signTransaction.d.ts +22 -0
- package/dist/signTransaction/signTransaction.d.ts.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/createAptosNetworkProvider/createAptosNetworkProvider.d.ts +4 -0
- package/dist/utils/createAptosNetworkProvider/createAptosNetworkProvider.d.ts.map +1 -0
- package/dist/utils/createAptosNetworkProvider/index.d.ts +2 -0
- package/dist/utils/createAptosNetworkProvider/index.d.ts.map +1 -0
- package/dist/utils/fetchAptosBalance/fetchAptosBalance.d.ts +8 -0
- package/dist/utils/fetchAptosBalance/fetchAptosBalance.d.ts.map +1 -0
- package/dist/utils/fetchAptosBalance/index.d.ts +2 -0
- package/dist/utils/fetchAptosBalance/index.d.ts.map +1 -0
- package/dist/walletStandard/addAptosWalletStandardExtension/addAptosWalletStandardExtension.d.ts +13 -0
- package/dist/walletStandard/addAptosWalletStandardExtension/addAptosWalletStandardExtension.d.ts.map +1 -0
- package/dist/walletStandard/addAptosWalletStandardExtension/index.d.ts +2 -0
- package/dist/walletStandard/addAptosWalletStandardExtension/index.d.ts.map +1 -0
- package/dist/walletStandard/utils/createWalletProviderFromAptosStandardWallet/createWalletProviderFromAptosStandardWallet.d.ts +10 -0
- package/dist/walletStandard/utils/createWalletProviderFromAptosStandardWallet/createWalletProviderFromAptosStandardWallet.d.ts.map +1 -0
- package/dist/walletStandard/utils/createWalletProviderFromAptosStandardWallet/index.d.ts +2 -0
- package/dist/walletStandard/utils/createWalletProviderFromAptosStandardWallet/index.d.ts.map +1 -0
- package/dist/walletStandard/utils/hasAllRequiredFeatures/hasAllRequiredFeatures.d.ts +3 -0
- package/dist/walletStandard/utils/hasAllRequiredFeatures/hasAllRequiredFeatures.d.ts.map +1 -0
- package/dist/walletStandard/utils/hasAllRequiredFeatures/index.d.ts +2 -0
- package/dist/walletStandard/utils/hasAllRequiredFeatures/index.d.ts.map +1 -0
- package/dist/walletStandard/utils/registerAptosStandardWallet/index.d.ts +2 -0
- package/dist/walletStandard/utils/registerAptosStandardWallet/index.d.ts.map +1 -0
- package/dist/walletStandard/utils/registerAptosStandardWallet/registerAptosStandardWallet.d.ts +4 -0
- package/dist/walletStandard/utils/registerAptosStandardWallet/registerAptosStandardWallet.d.ts.map +1 -0
- package/dist/walletStandard.cjs.js +9 -0
- package/dist/walletStandard.cjs.js.map +1 -0
- package/dist/walletStandard.esm.js +9 -0
- package/dist/walletStandard.esm.js.map +1 -0
- package/package.json +43 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,YAAM,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
import type { AptosNetworkProvider } from '../../AptosNetworkProvider.types';
|
|
3
|
+
export declare const createAptosNetworkProvider: (networkData: NetworkData) => AptosNetworkProvider;
|
|
4
|
+
//# sourceMappingURL=createAptosNetworkProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAptosNetworkProvider.d.ts","sourceRoot":"","sources":["../../../src/utils/createAptosNetworkProvider/createAptosNetworkProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAG7E,eAAO,MAAM,0BAA0B,gBACxB,WAAW,KACvB,oBASD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/createAptosNetworkProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NetworkData } from '@dynamic-labs-sdk/client';
|
|
2
|
+
type FetchAptosBalanceParams = {
|
|
3
|
+
address: string;
|
|
4
|
+
networkData: NetworkData;
|
|
5
|
+
};
|
|
6
|
+
export declare const fetchAptosBalance: ({ address, networkData, }: FetchAptosBalanceParams) => Promise<string | null>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=fetchAptosBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchAptosBalance.d.ts","sourceRoot":"","sources":["../../../src/utils/fetchAptosBalance/fetchAptosBalance.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,8BAG3B,uBAAuB,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAejD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/fetchAptosBalance/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/walletStandard/addAptosWalletStandardExtension/addAptosWalletStandardExtension.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const APTOS_WALLET_STANDARD_EXTENSION_KEY = "aptosWalletStandard";
|
|
2
|
+
/**
|
|
3
|
+
* Adds the Aptos Wallet Standard extension to the Dynamic client.
|
|
4
|
+
*
|
|
5
|
+
* This extension enables integration with wallets that implement the Aptos Wallet Standard (AIP-62),
|
|
6
|
+
* automatically detecting and registering compatible wallets for use with the Dynamic SDK.
|
|
7
|
+
*
|
|
8
|
+
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
9
|
+
*
|
|
10
|
+
* @returns A function that can be used to remove Aptos Wallet Standard register event listener that was added.
|
|
11
|
+
*/
|
|
12
|
+
export declare const addAptosWalletStandardExtension: (client?: import("@dynamic-labs-sdk/client").DynamicClient) => VoidFunction;
|
|
13
|
+
//# sourceMappingURL=addAptosWalletStandardExtension.d.ts.map
|
package/dist/walletStandard/addAptosWalletStandardExtension/addAptosWalletStandardExtension.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addAptosWalletStandardExtension.d.ts","sourceRoot":"","sources":["../../../src/walletStandard/addAptosWalletStandardExtension/addAptosWalletStandardExtension.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mCAAmC,wBAAwB,CAAC;AAEzE;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,iEAEzC,YA6BF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/walletStandard/addAptosWalletStandardExtension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AptosWallet } from '@aptos-labs/wallet-standard';
|
|
2
|
+
import { type DynamicClient } from '@dynamic-labs-sdk/client';
|
|
3
|
+
import type { AptosWalletProvider } from '../../../AptosWalletProvider.types';
|
|
4
|
+
type CreateWalletProviderFromAptosStandardWalletParams = {
|
|
5
|
+
dynamicClient: DynamicClient;
|
|
6
|
+
walletStandardWallet: AptosWallet;
|
|
7
|
+
};
|
|
8
|
+
export declare const createWalletProviderFromAptosStandardWallet: ({ dynamicClient, walletStandardWallet, }: CreateWalletProviderFromAptosStandardWalletParams) => AptosWalletProvider;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=createWalletProviderFromAptosStandardWallet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWalletProviderFromAptosStandardWallet.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/createWalletProviderFromAptosStandardWallet/createWalletProviderFromAptosStandardWallet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAGV,WAAW,EACZ,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,0BAA0B,CAAC;AAUlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,KAAK,iDAAiD,GAAG;IACvD,aAAa,EAAE,aAAa,CAAC;IAC7B,oBAAoB,EAAE,WAAW,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,2CAA2C,6CAGrD,iDAAiD,KAAG,mBA2StD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/createWalletProviderFromAptosStandardWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,MAAM,+CAA+C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasAllRequiredFeatures.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/hasAllRequiredFeatures/hasAllRequiredFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAEZ,MAAM,6BAA6B,CAAC;AAarC,eAAO,MAAM,sBAAsB,WAAY,WAAW,KAAG,OAI5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/hasAllRequiredFeatures/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/registerAptosStandardWallet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
package/dist/walletStandard/utils/registerAptosStandardWallet/registerAptosStandardWallet.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AptosWallet } from '@aptos-labs/wallet-standard';
|
|
2
|
+
import type { DynamicClient } from '@dynamic-labs-sdk/client';
|
|
3
|
+
export declare const registerAptosStandardWallet: (wallet: AptosWallet, client: DynamicClient) => void;
|
|
4
|
+
//# sourceMappingURL=registerAptosStandardWallet.d.ts.map
|
package/dist/walletStandard/utils/registerAptosStandardWallet/registerAptosStandardWallet.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerAptosStandardWallet.d.ts","sourceRoot":"","sources":["../../../../src/walletStandard/utils/registerAptosStandardWallet/registerAptosStandardWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,2BAA2B,WAC9B,WAAW,UACX,aAAa,SAetB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_addAptosWalletStandardExtension = require('./addAptosWalletStandardExtension-Zvr1YUyy.cjs.js');
|
|
2
|
+
let _dynamic_labs_sdk_assert_package_version = require("@dynamic-labs-sdk/assert-package-version");
|
|
3
|
+
|
|
4
|
+
//#region src/exports/walletStandard.ts
|
|
5
|
+
(0, _dynamic_labs_sdk_assert_package_version.assertPackageVersion)(require_addAptosWalletStandardExtension.name, require_addAptosWalletStandardExtension.version);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.addAptosWalletStandardExtension = require_addAptosWalletStandardExtension.addAptosWalletStandardExtension;
|
|
9
|
+
//# sourceMappingURL=walletStandard.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletStandard.cjs.js","names":["packageName","packageVersion"],"sources":["../src/exports/walletStandard.ts"],"sourcesContent":["import { assertPackageVersion } from '@dynamic-labs-sdk/assert-package-version';\n\nimport {\n name as packageName,\n version as packageVersion,\n} from '../../package.json';\nassertPackageVersion(packageName, packageVersion);\n\nexport { addAptosWalletStandardExtension } from '../walletStandard/addAptosWalletStandardExtension';\n"],"mappings":";;;;mEAMqBA,8CAAaC,gDAAe"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { n as name, r as version, t as addAptosWalletStandardExtension } from "./addAptosWalletStandardExtension-C5kSd0qw.esm.js";
|
|
2
|
+
import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
|
|
3
|
+
|
|
4
|
+
//#region src/exports/walletStandard.ts
|
|
5
|
+
assertPackageVersion(name, version);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { addAptosWalletStandardExtension };
|
|
9
|
+
//# sourceMappingURL=walletStandard.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletStandard.esm.js","names":["packageName","packageVersion"],"sources":["../src/exports/walletStandard.ts"],"sourcesContent":["import { assertPackageVersion } from '@dynamic-labs-sdk/assert-package-version';\n\nimport {\n name as packageName,\n version as packageVersion,\n} from '../../package.json';\nassertPackageVersion(packageName, packageVersion);\n\nexport { addAptosWalletStandardExtension } from '../walletStandard/addAptosWalletStandardExtension';\n"],"mappings":";;;;AAMA,qBAAqBA,MAAaC,QAAe"}
|
package/package.json
CHANGED
|
@@ -1 +1,43 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs-sdk/aptos",
|
|
3
|
+
"version": "0.2.4",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs.js",
|
|
6
|
+
"module": "./dist/index.esm.js",
|
|
7
|
+
"types": "./dist/exports/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/exports/index.d.ts",
|
|
15
|
+
"import": "./dist/index.esm.js",
|
|
16
|
+
"default": "./dist/index.cjs.js"
|
|
17
|
+
},
|
|
18
|
+
"./walletStandard": {
|
|
19
|
+
"types": "./dist/exports/walletStandard.d.ts",
|
|
20
|
+
"import": "./dist/walletStandard.esm.js",
|
|
21
|
+
"default": "./dist/walletStandard.cjs.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@aptos-labs/ts-sdk": "5.1.1",
|
|
26
|
+
"@aptos-labs/wallet-standard": "0.5.2",
|
|
27
|
+
"@dynamic-labs/sdk-api-core": "0.0.855",
|
|
28
|
+
"@dynamic-labs-sdk/assert-package-version": "0.2.4",
|
|
29
|
+
"@dynamic-labs-sdk/client": "0.2.4"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"eventemitter3": "5.0.1",
|
|
33
|
+
"vitest": "1.6.1"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "rm -rf dist && tsdown && pnpm exec tsc --emitDeclarationOnly -p ./tsconfig.lib.json",
|
|
37
|
+
"lint": "eslint .",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"test:watch": "vitest",
|
|
40
|
+
"test-with-coverage": "vitest run --coverage",
|
|
41
|
+
"check-versions": "pnpm --filter @tools/sync-package-versions run sync --check-only --package-filter aptos"
|
|
42
|
+
}
|
|
43
|
+
}
|