@hinkal/common 0.0.102 → 0.0.103
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 +3 -3
- package/{index-f5eNXqZp.mjs → index-COLpGMpe.mjs} +7503 -7490
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{utxoWorkerLogic-BFMMdUgE.mjs → utxoWorkerLogic-DyerYrK3.mjs} +1 -1
- package/{viteWorkerURL.constant-B4zHpxcT.mjs → viteWorkerURL.constant-DnU4hEv_.mjs} +1 -1
- package/{zkProofWorkerLogic-CtgrDfdp.mjs → zkProofWorkerLogic-DN4QUc_a.mjs} +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ const balances = await hinkal.getBalances();
|
|
|
51
51
|
5. A user can deposit to their shielded account using:
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
|
-
|
|
54
|
+
function deposit(erc20addresses:string[],amountChanges:bigint[]): Promise<TransactionObject>;
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
where erc20Addresses is an array of token addresses, and amountChanges represents the token amounts for the deposit.
|
|
@@ -60,7 +60,7 @@ where erc20Addresses is an array of token addresses, and amountChanges represent
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
|
-
|
|
63
|
+
function actionPrivateWallet( erc20Addresses:string[], amountChanges:bigint[], onChainCreation:boolean[], ops:string[]): Promise<TransactionObject>;
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
where onChainCreation indicates the amounts of tokens that are uncertain before the transaction is executed on-chain. The ops array is an encoded array of user operations.
|
|
@@ -82,5 +82,5 @@ If the user does not have an access token, one of the compliance providers shoul
|
|
|
82
82
|
Once the user has passed the check, they can mint an access token using:
|
|
83
83
|
```typescript
|
|
84
84
|
const { signatureData } = await hinkal.getAPI().getAccessTokenSignature(chainId, ethereumAddress, accessKey);
|
|
85
|
-
|
|
85
|
+
await mintAccessToken(this, signatureData);
|
|
86
86
|
```
|