anymal-protocol 1.0.109 → 1.0.110

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 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();
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.109",
3
+ "version": "1.0.110",
4
4
  "description": "A React/TypeScript-based utility library for reusable functions and hooks inside of the Anymal Ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {