@frak-labs/core-sdk 0.0.7 → 0.0.8
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/cdn/bundle.js +17 -31
- package/cdn/bundle.js.LICENSE.txt +10 -0
- package/dist/actions.cjs +1 -0
- package/dist/actions.d.cts +1285 -0
- package/dist/actions.d.ts +1285 -0
- package/dist/actions.js +1 -0
- package/dist/index.cjs +11 -487
- package/dist/index.d.cts +1152 -255
- package/dist/index.d.ts +1152 -255
- package/dist/index.js +11 -428
- package/dist/interactions.cjs +1 -0
- package/dist/{interactions/index.d.ts → interactions.d.cts} +182 -174
- package/dist/{interactions/index.d.cts → interactions.d.ts} +182 -174
- package/dist/interactions.js +1 -0
- package/package.json +14 -14
- package/dist/actions/index.cjs +0 -350
- package/dist/actions/index.d.cts +0 -501
- package/dist/actions/index.d.ts +0 -501
- package/dist/actions/index.js +0 -337
- package/dist/chunk-665P7NO4.cjs +0 -81
- package/dist/chunk-7YDJDVXY.cjs +0 -833
- package/dist/chunk-GTBCSNLF.js +0 -819
- package/dist/chunk-PHVGCFDX.cjs +0 -155
- package/dist/chunk-U2NTN5QZ.js +0 -75
- package/dist/chunk-VE6URIIJ.js +0 -149
- package/dist/context-D7aZDKLT.d.cts +0 -813
- package/dist/context-rDsQbSgB.d.ts +0 -813
- package/dist/interaction-CTQ5-kqe.d.cts +0 -43
- package/dist/interaction-CTQ5-kqe.d.ts +0 -43
- package/dist/interactions/index.cjs +0 -26
- package/dist/interactions/index.js +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Hex } from 'viem';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represent a prepared user interaction, ready to be sent on-chain via the wallet
|
|
5
|
-
*/
|
|
6
|
-
type PreparedInteraction = {
|
|
7
|
-
handlerTypeDenominator: Hex;
|
|
8
|
-
interactionData: Hex;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Parameters that will be used to send an interaction to the blockchain
|
|
12
|
-
* @inline
|
|
13
|
-
*/
|
|
14
|
-
type SendInteractionParamsType = {
|
|
15
|
-
/**
|
|
16
|
-
* The product id where this interaction has been made
|
|
17
|
-
* @defaultValue keccak256(toHex(window.location.host))
|
|
18
|
-
*/
|
|
19
|
-
productId?: Hex;
|
|
20
|
-
/**
|
|
21
|
-
* The prepared interaction, built from an Interaction Encoder
|
|
22
|
-
*/
|
|
23
|
-
interaction: PreparedInteraction;
|
|
24
|
-
/**
|
|
25
|
-
* A pre-computed interaction signature
|
|
26
|
-
* If none provided, the delegated interaction validator of your product will sign it (you can manage it in the business dashboard)
|
|
27
|
-
*
|
|
28
|
-
* @defaultValue undefined
|
|
29
|
-
*/
|
|
30
|
-
validation?: Hex;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Return type of the send interaction rpc request
|
|
34
|
-
* @group RPC Schema
|
|
35
|
-
*/
|
|
36
|
-
type SendInteractionReturnType = {
|
|
37
|
-
/**
|
|
38
|
-
* The id of the interaction in the interaction pool
|
|
39
|
-
*/
|
|
40
|
-
delegationId: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export type { PreparedInteraction as P, SendInteractionParamsType as S, SendInteractionReturnType as a };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Hex } from 'viem';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represent a prepared user interaction, ready to be sent on-chain via the wallet
|
|
5
|
-
*/
|
|
6
|
-
type PreparedInteraction = {
|
|
7
|
-
handlerTypeDenominator: Hex;
|
|
8
|
-
interactionData: Hex;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Parameters that will be used to send an interaction to the blockchain
|
|
12
|
-
* @inline
|
|
13
|
-
*/
|
|
14
|
-
type SendInteractionParamsType = {
|
|
15
|
-
/**
|
|
16
|
-
* The product id where this interaction has been made
|
|
17
|
-
* @defaultValue keccak256(toHex(window.location.host))
|
|
18
|
-
*/
|
|
19
|
-
productId?: Hex;
|
|
20
|
-
/**
|
|
21
|
-
* The prepared interaction, built from an Interaction Encoder
|
|
22
|
-
*/
|
|
23
|
-
interaction: PreparedInteraction;
|
|
24
|
-
/**
|
|
25
|
-
* A pre-computed interaction signature
|
|
26
|
-
* If none provided, the delegated interaction validator of your product will sign it (you can manage it in the business dashboard)
|
|
27
|
-
*
|
|
28
|
-
* @defaultValue undefined
|
|
29
|
-
*/
|
|
30
|
-
validation?: Hex;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Return type of the send interaction rpc request
|
|
34
|
-
* @group RPC Schema
|
|
35
|
-
*/
|
|
36
|
-
type SendInteractionReturnType = {
|
|
37
|
-
/**
|
|
38
|
-
* The id of the interaction in the interaction pool
|
|
39
|
-
*/
|
|
40
|
-
delegationId: string;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export type { PreparedInteraction as P, SendInteractionParamsType as S, SendInteractionReturnType as a };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkPHVGCFDX_cjs = require('../chunk-PHVGCFDX.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "PressInteractionEncoder", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkPHVGCFDX_cjs.PressInteractionEncoder; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "PurchaseInteractionEncoder", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkPHVGCFDX_cjs.PurchaseInteractionEncoder; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "ReferralInteractionEncoder", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkPHVGCFDX_cjs.ReferralInteractionEncoder; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "RetailInteractionEncoder", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkPHVGCFDX_cjs.RetailInteractionEncoder; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "WebShopInteractionEncoder", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkPHVGCFDX_cjs.WebShopInteractionEncoder; }
|
|
26
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PressInteractionEncoder, PurchaseInteractionEncoder, ReferralInteractionEncoder, RetailInteractionEncoder, WebShopInteractionEncoder } from '../chunk-VE6URIIJ.js';
|