anymal-protocol 1.0.0 → 1.0.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/README.md ADDED
@@ -0,0 +1,21 @@
1
+ ## Anymal Protocol Package
2
+
3
+ ### This package includes functions used within the Anymal Ecosystem.
4
+
5
+ Build Process Steps
6
+
7
+ ### Step 1:
8
+
9
+ ``npm build``
10
+
11
+ ### Step 2: Set a new version
12
+
13
+ Patch Version: ``npm version patch``
14
+
15
+ Minor Version: ``npm version minor``
16
+
17
+ Major Version: ``npm version major``
18
+
19
+ ### Step 3: Publish the package
20
+
21
+ ``npm publish``
package/dist/index.d.mts CHANGED
@@ -3,4 +3,31 @@ declare function useVerifyAccount(): (pid: string, dbAuthToken: string, bundlerC
3
3
  message: string;
4
4
  }>;
5
5
 
6
- export { useVerifyAccount };
6
+ declare function useMintAnymalNFT(): (pid: string, nftId: string, dbAuthToken: string, validationContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
7
+ success: boolean;
8
+ message: string;
9
+ }>;
10
+
11
+ interface CreateAnymalInputData {
12
+ }
13
+ interface AnymalNftMetadataInputData {
14
+ name: string;
15
+ description: string;
16
+ image: string;
17
+ nft_id: string;
18
+ }
19
+
20
+ declare function useAddAnymalToDatabase(): (dbAuthToken: string, endpoint: string, anymalData: CreateAnymalInputData) => Promise<{
21
+ _docID: string | null;
22
+ success: boolean;
23
+ message: string;
24
+ }>;
25
+
26
+ declare function useDeleteAnymalFromDatabase(): (dbAuthToken: string, endpoint: string, anymalDocID: string) => Promise<void>;
27
+
28
+ declare function useSaveAnymalMetadata(): (idToken: string, publicKey: string, nftMetadataInput: AnymalNftMetadataInputData, authServiceBaseUrl: string) => Promise<{
29
+ success: boolean;
30
+ message: any;
31
+ }>;
32
+
33
+ export { type AnymalNftMetadataInputData, type CreateAnymalInputData, useAddAnymalToDatabase, useDeleteAnymalFromDatabase, useMintAnymalNFT, useSaveAnymalMetadata, useVerifyAccount };
package/dist/index.d.ts CHANGED
@@ -3,4 +3,31 @@ declare function useVerifyAccount(): (pid: string, dbAuthToken: string, bundlerC
3
3
  message: string;
4
4
  }>;
5
5
 
6
- export { useVerifyAccount };
6
+ declare function useMintAnymalNFT(): (pid: string, nftId: string, dbAuthToken: string, validationContractAddress: string, smartAccount: any, bundlerClient: any) => Promise<{
7
+ success: boolean;
8
+ message: string;
9
+ }>;
10
+
11
+ interface CreateAnymalInputData {
12
+ }
13
+ interface AnymalNftMetadataInputData {
14
+ name: string;
15
+ description: string;
16
+ image: string;
17
+ nft_id: string;
18
+ }
19
+
20
+ declare function useAddAnymalToDatabase(): (dbAuthToken: string, endpoint: string, anymalData: CreateAnymalInputData) => Promise<{
21
+ _docID: string | null;
22
+ success: boolean;
23
+ message: string;
24
+ }>;
25
+
26
+ declare function useDeleteAnymalFromDatabase(): (dbAuthToken: string, endpoint: string, anymalDocID: string) => Promise<void>;
27
+
28
+ declare function useSaveAnymalMetadata(): (idToken: string, publicKey: string, nftMetadataInput: AnymalNftMetadataInputData, authServiceBaseUrl: string) => Promise<{
29
+ success: boolean;
30
+ message: any;
31
+ }>;
32
+
33
+ export { type AnymalNftMetadataInputData, type CreateAnymalInputData, useAddAnymalToDatabase, useDeleteAnymalFromDatabase, useMintAnymalNFT, useSaveAnymalMetadata, useVerifyAccount };