@vela-ventures/aosync-sdk-react 1.1.1 → 1.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/types.d.ts +1 -1
- package/dist/walletContext.js +2 -2
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface AOSyncSDKContext {
|
|
|
17
17
|
getSupportedChains: () => ChainType[];
|
|
18
18
|
getMultiChainAddresses: () => Promise<MultiChainWallet>;
|
|
19
19
|
getAllAddresses: () => Promise<string[]>;
|
|
20
|
-
getAddress: () => Promise<string | undefined>;
|
|
20
|
+
getAddress: (chain?: ChainType) => Promise<string | undefined>;
|
|
21
21
|
signMessage: (message: string | Uint8Array, chain?: ChainType) => Promise<string>;
|
|
22
22
|
signTransaction: (transaction: any, chain?: ChainType) => Promise<any>;
|
|
23
23
|
sendTransaction: (transaction: any, chain?: ChainType) => Promise<string>;
|
package/dist/walletContext.js
CHANGED
|
@@ -99,9 +99,9 @@ export function AOSyncProvider({ gatewayConfig = { host: "arweave.net", port: 44
|
|
|
99
99
|
throw error;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
-
const getAddress = () => __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
const getAddress = (chain) => __awaiter(this, void 0, void 0, function* () {
|
|
103
103
|
try {
|
|
104
|
-
return yield walletRef.current.getActiveAddress();
|
|
104
|
+
return yield walletRef.current.getActiveAddress(chain);
|
|
105
105
|
}
|
|
106
106
|
catch (error) {
|
|
107
107
|
console.error("Error getting address:", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vela-ventures/aosync-sdk-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@vela-ventures/ao-sync-sdk": "^1.2.
|
|
68
|
+
"@vela-ventures/ao-sync-sdk": "^1.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|