anymal-protocol 1.0.96 → 1.0.98
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +2 -5
- package/dist/index.mjs +2 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -305,6 +305,12 @@ declare const convertToActionDefinition: (fr: any) => ActionDefinition;
|
|
|
305
305
|
declare const convertToMultipleActionRecords: (frs: ActionRecord[]) => ActionRecord[];
|
|
306
306
|
declare const convertToMultipleActionDefinitions: (frs: ActionDefinition[]) => ActionDefinition[];
|
|
307
307
|
|
|
308
|
+
interface ActionReferral {
|
|
309
|
+
referralCampaign?: string;
|
|
310
|
+
referralSourceType?: ActionSourceType;
|
|
311
|
+
referralActionId?: string;
|
|
312
|
+
referralSourcePid?: string;
|
|
313
|
+
}
|
|
308
314
|
/**
|
|
309
315
|
* Base fields sent with every action
|
|
310
316
|
*/
|
|
@@ -320,6 +326,7 @@ interface BaseActionPayload {
|
|
|
320
326
|
userAgent?: string;
|
|
321
327
|
locale?: string;
|
|
322
328
|
};
|
|
329
|
+
referral?: ActionReferral;
|
|
323
330
|
}
|
|
324
331
|
/**
|
|
325
332
|
* Payload for GraphQL-based actions
|
|
@@ -435,4 +442,4 @@ declare function useClaimOrgActionReward(): (orgContractAddress: string, rewarda
|
|
|
435
442
|
|
|
436
443
|
declare function useSubmitContractAction(): (idToken: string, pid: string, source: ActionSourceType, endpoint: string, payload: ActionPayload) => Promise<SubmitResponse> | undefined;
|
|
437
444
|
|
|
438
|
-
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
|
445
|
+
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, type ActionReferral, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
package/dist/index.d.ts
CHANGED
|
@@ -305,6 +305,12 @@ declare const convertToActionDefinition: (fr: any) => ActionDefinition;
|
|
|
305
305
|
declare const convertToMultipleActionRecords: (frs: ActionRecord[]) => ActionRecord[];
|
|
306
306
|
declare const convertToMultipleActionDefinitions: (frs: ActionDefinition[]) => ActionDefinition[];
|
|
307
307
|
|
|
308
|
+
interface ActionReferral {
|
|
309
|
+
referralCampaign?: string;
|
|
310
|
+
referralSourceType?: ActionSourceType;
|
|
311
|
+
referralActionId?: string;
|
|
312
|
+
referralSourcePid?: string;
|
|
313
|
+
}
|
|
308
314
|
/**
|
|
309
315
|
* Base fields sent with every action
|
|
310
316
|
*/
|
|
@@ -320,6 +326,7 @@ interface BaseActionPayload {
|
|
|
320
326
|
userAgent?: string;
|
|
321
327
|
locale?: string;
|
|
322
328
|
};
|
|
329
|
+
referral?: ActionReferral;
|
|
323
330
|
}
|
|
324
331
|
/**
|
|
325
332
|
* Payload for GraphQL-based actions
|
|
@@ -435,4 +442,4 @@ declare function useClaimOrgActionReward(): (orgContractAddress: string, rewarda
|
|
|
435
442
|
|
|
436
443
|
declare function useSubmitContractAction(): (idToken: string, pid: string, source: ActionSourceType, endpoint: string, payload: ActionPayload) => Promise<SubmitResponse> | undefined;
|
|
437
444
|
|
|
438
|
-
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
|
445
|
+
export { AUTH_API_ENDPOINTS, type ActionDefinition, type ActionPayload, type ActionRecord, type ActionReferral, ActionSourceType, ActionStatus, ActionType, type AnymalNftMetadataInputData, type AuthEnvelope, type ContractActionPayload, type CreateAnymalInputData, type ExternalActionPayload, type GraphQLActionPayload, type JWTOptions, type MarketplaceActionPayload, MarketplacePaymentType, NETWORK_HOSTS, Network, type NotificationData, type NotificationEventData, type SubmitResponse, type WishlistPurchaseActionPayload, convertToActionDefinition, convertToActionRecord, convertToMultipleActionDefinitions, convertToMultipleActionRecords, createAuthEnvelope, fetchAnymals, generateAppSignature, generateBytes32Nonce, generateJWT, loadExistingSecp256k1PrivateKey, serializePublicKeyCompressed, submitAction, useAddAnymalToDatabase, useApproveKibbleToken, useApproveOrgPartialPayment, useClaimActionReward, useClaimOrgActionReward, useCreateOrganizationAppData, useCreateOrganizationBase, useCreateUserAppData, useCreateWeb3Account, useDeleteAnymalFromDatabase, useFetchActionDefinitions, useFetchActions, useFetchAnymals, useFetchBalance, useFetchNotifications, useFetchUserData, useMintAnymalNFT, useProcessOrgPartialKibblePayment, useProcessPartialKibblePayment, useSaveAnymalMetadata, useSubmitContractAction, useUpdateAnymalWithNFT, useUpdateOrgWalletAddress, useUpdateUserAsVerified, useUpdateUserEmail, useUpdateUserName, useUpdateUserPid, useUploadAnymalImage, useVerifyAccount, useVerifyWeb3AuthSession };
|
package/dist/index.js
CHANGED
|
@@ -1740,7 +1740,6 @@ function useApproveKibbleToken() {
|
|
|
1740
1740
|
// amount to approve
|
|
1741
1741
|
]
|
|
1742
1742
|
});
|
|
1743
|
-
console.log("About to call sendUserOperation");
|
|
1744
1743
|
const userOpHash = await bundlerClient.sendUserOperation({
|
|
1745
1744
|
account: smartAccount,
|
|
1746
1745
|
calls: [
|
|
@@ -1752,14 +1751,11 @@ function useApproveKibbleToken() {
|
|
|
1752
1751
|
maxPriorityFeePerGas: (0, import_viem3.parseGwei)("0.001")
|
|
1753
1752
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1754
1753
|
});
|
|
1755
|
-
console.log("sendUserOperation has been called");
|
|
1756
|
-
console.log("About to call waitForUserOperationReceipt");
|
|
1757
1754
|
await bundlerClient.waitForUserOperationReceipt({
|
|
1758
1755
|
hash: userOpHash,
|
|
1759
1756
|
timeout: 3e4,
|
|
1760
1757
|
retryCount: 10
|
|
1761
1758
|
});
|
|
1762
|
-
console.log("waitForUserOperationReceipt has been called");
|
|
1763
1759
|
return {
|
|
1764
1760
|
success: true,
|
|
1765
1761
|
message: "Approval transaction completed successfully."
|
|
@@ -2486,7 +2482,8 @@ function useSubmitContractAction() {
|
|
|
2486
2482
|
clientInfo: {
|
|
2487
2483
|
userAgent: navigator.userAgent,
|
|
2488
2484
|
locale: navigator.language
|
|
2489
|
-
}
|
|
2485
|
+
},
|
|
2486
|
+
referral: payload.referral
|
|
2490
2487
|
};
|
|
2491
2488
|
switch (payload.source) {
|
|
2492
2489
|
case "GRAPHQL" /* GRAPHQL */:
|
package/dist/index.mjs
CHANGED
|
@@ -1677,7 +1677,6 @@ function useApproveKibbleToken() {
|
|
|
1677
1677
|
// amount to approve
|
|
1678
1678
|
]
|
|
1679
1679
|
});
|
|
1680
|
-
console.log("About to call sendUserOperation");
|
|
1681
1680
|
const userOpHash = await bundlerClient.sendUserOperation({
|
|
1682
1681
|
account: smartAccount,
|
|
1683
1682
|
calls: [
|
|
@@ -1689,14 +1688,11 @@ function useApproveKibbleToken() {
|
|
|
1689
1688
|
maxPriorityFeePerGas: parseGwei3("0.001")
|
|
1690
1689
|
// maxFeePerGas: parseGwei("0.01"),
|
|
1691
1690
|
});
|
|
1692
|
-
console.log("sendUserOperation has been called");
|
|
1693
|
-
console.log("About to call waitForUserOperationReceipt");
|
|
1694
1691
|
await bundlerClient.waitForUserOperationReceipt({
|
|
1695
1692
|
hash: userOpHash,
|
|
1696
1693
|
timeout: 3e4,
|
|
1697
1694
|
retryCount: 10
|
|
1698
1695
|
});
|
|
1699
|
-
console.log("waitForUserOperationReceipt has been called");
|
|
1700
1696
|
return {
|
|
1701
1697
|
success: true,
|
|
1702
1698
|
message: "Approval transaction completed successfully."
|
|
@@ -2343,7 +2339,8 @@ function useSubmitContractAction() {
|
|
|
2343
2339
|
clientInfo: {
|
|
2344
2340
|
userAgent: navigator.userAgent,
|
|
2345
2341
|
locale: navigator.language
|
|
2346
|
-
}
|
|
2342
|
+
},
|
|
2343
|
+
referral: payload.referral
|
|
2347
2344
|
};
|
|
2348
2345
|
switch (payload.source) {
|
|
2349
2346
|
case "GRAPHQL" /* GRAPHQL */:
|
package/package.json
CHANGED