anymal-protocol 1.0.109 → 1.0.111
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -8,7 +8,7 @@ declare function useVerifyAccount(): (pid: string, campaignId: string, dbAuthTok
|
|
|
8
8
|
|
|
9
9
|
declare function useVerifyWeb3AuthSession(): (idToken: string, publicKey: string, authServiceBaseUrl: string) => Promise<any>;
|
|
10
10
|
|
|
11
|
-
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string, baseWalletAddress: string) => Promise<any>;
|
|
11
|
+
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string, baseWalletAddress: string, requestedContext: string) => Promise<any>;
|
|
12
12
|
|
|
13
13
|
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string, pid: string) => Promise<any>;
|
|
14
14
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare function useVerifyAccount(): (pid: string, campaignId: string, dbAuthTok
|
|
|
8
8
|
|
|
9
9
|
declare function useVerifyWeb3AuthSession(): (idToken: string, publicKey: string, authServiceBaseUrl: string) => Promise<any>;
|
|
10
10
|
|
|
11
|
-
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string, baseWalletAddress: string) => Promise<any>;
|
|
11
|
+
declare function useCreateWeb3Account(): (idToken: string, publicKey: string, userPid: string, authServiceBaseUrl: string, baseWalletAddress: string, requestedContext: string) => Promise<any>;
|
|
12
12
|
|
|
13
13
|
declare function useFetchUserData(): (dbAuthToken: string, endpoint: string, pid: string) => Promise<any>;
|
|
14
14
|
|
package/dist/index.js
CHANGED
|
@@ -122,7 +122,7 @@ function useVerifyWeb3AuthSession() {
|
|
|
122
122
|
var import_react3 = require("react");
|
|
123
123
|
function useCreateWeb3Account() {
|
|
124
124
|
return (0, import_react3.useCallback)(
|
|
125
|
-
async (idToken, publicKey, userPid, authServiceBaseUrl, baseWalletAddress) => {
|
|
125
|
+
async (idToken, publicKey, userPid, authServiceBaseUrl, baseWalletAddress, requestedContext) => {
|
|
126
126
|
try {
|
|
127
127
|
const response = await fetch(`${authServiceBaseUrl}/create-account`, {
|
|
128
128
|
method: "POST",
|
|
@@ -133,7 +133,8 @@ function useCreateWeb3Account() {
|
|
|
133
133
|
body: JSON.stringify({
|
|
134
134
|
appPubKey: publicKey,
|
|
135
135
|
pid: userPid,
|
|
136
|
-
baseWalletAddress
|
|
136
|
+
baseWalletAddress,
|
|
137
|
+
requestedContext
|
|
137
138
|
})
|
|
138
139
|
});
|
|
139
140
|
return await response.json();
|
|
@@ -1829,8 +1830,8 @@ function useCreateOrganizationBase() {
|
|
|
1829
1830
|
],
|
|
1830
1831
|
maxPriorityFeePerGas: (0, import_viem4.parseGwei)("0.001"),
|
|
1831
1832
|
// Low priority fee
|
|
1832
|
-
maxFeePerGas: (0, import_viem4.parseGwei)("0.
|
|
1833
|
-
// Max fee cap
|
|
1833
|
+
maxFeePerGas: (0, import_viem4.parseGwei)("0.15")
|
|
1834
|
+
// Max fee cap -- keeps rising at random
|
|
1834
1835
|
});
|
|
1835
1836
|
const txReceipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1836
1837
|
hash: userOpHash
|
package/dist/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ function useVerifyWeb3AuthSession() {
|
|
|
59
59
|
import { useCallback as useCallback3 } from "react";
|
|
60
60
|
function useCreateWeb3Account() {
|
|
61
61
|
return useCallback3(
|
|
62
|
-
async (idToken, publicKey, userPid, authServiceBaseUrl, baseWalletAddress) => {
|
|
62
|
+
async (idToken, publicKey, userPid, authServiceBaseUrl, baseWalletAddress, requestedContext) => {
|
|
63
63
|
try {
|
|
64
64
|
const response = await fetch(`${authServiceBaseUrl}/create-account`, {
|
|
65
65
|
method: "POST",
|
|
@@ -70,7 +70,8 @@ function useCreateWeb3Account() {
|
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
appPubKey: publicKey,
|
|
72
72
|
pid: userPid,
|
|
73
|
-
baseWalletAddress
|
|
73
|
+
baseWalletAddress,
|
|
74
|
+
requestedContext
|
|
74
75
|
})
|
|
75
76
|
});
|
|
76
77
|
return await response.json();
|
|
@@ -1766,8 +1767,8 @@ function useCreateOrganizationBase() {
|
|
|
1766
1767
|
],
|
|
1767
1768
|
maxPriorityFeePerGas: parseGwei4("0.001"),
|
|
1768
1769
|
// Low priority fee
|
|
1769
|
-
maxFeePerGas: parseGwei4("0.
|
|
1770
|
-
// Max fee cap
|
|
1770
|
+
maxFeePerGas: parseGwei4("0.15")
|
|
1771
|
+
// Max fee cap -- keeps rising at random
|
|
1771
1772
|
});
|
|
1772
1773
|
const txReceipt = await bundlerClient.waitForUserOperationReceipt({
|
|
1773
1774
|
hash: userOpHash
|
package/package.json
CHANGED