@zkp2p/sdk 0.16.0-rc.2 → 0.16.0
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 +2 -4
- package/dist/build-metadata.json +2 -2
- package/dist/{chunk-HJBGLG7B.mjs → chunk-4UV5XMBU.mjs} +3 -3
- package/dist/{chunk-HJBGLG7B.mjs.map → chunk-4UV5XMBU.mjs.map} +1 -1
- package/dist/chunk-LBUSUTNI.mjs +12 -0
- package/dist/chunk-LBUSUTNI.mjs.map +1 -0
- package/dist/{currency-C5NRMALA.mjs → currency-6EFHONXS.mjs} +3 -3
- package/dist/{currency-C5NRMALA.mjs.map → currency-6EFHONXS.mjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/protocolViewerParsers-LD72M77T.mjs +5 -0
- package/dist/{protocolViewerParsers-BFM6TWI6.mjs.map → protocolViewerParsers-LD72M77T.mjs.map} +1 -1
- package/dist/react.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-WHTCQ6GA.mjs +0 -12
- package/dist/chunk-WHTCQ6GA.mjs.map +0 -1
- package/dist/protocolViewerParsers-BFM6TWI6.mjs +0 -5
package/README.md
CHANGED
|
@@ -11,15 +11,13 @@ New intents use EscrowV2 and OrchestratorV4. The SDK retains reads for historica
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install @zkp2p/sdk
|
|
14
|
+
npm install @zkp2p/sdk viem
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Version `0.16.0` on npm’s `latest` tag includes `createPeer()`. `viem` `^2.37.3` is a peer dependency. React (`>=16.8.0`) is optional and only needed for `@zkp2p/sdk/react`. Node.js runtimes need version 22 or later.
|
|
18
18
|
|
|
19
19
|
## Peer quickstart
|
|
20
20
|
|
|
21
|
-
Install the release candidate with `npm install @zkp2p/sdk@rc viem`.
|
|
22
|
-
|
|
23
21
|
### Sell Base USDC
|
|
24
22
|
|
|
25
23
|
```ts
|
package/dist/build-metadata.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"source": {
|
|
4
4
|
"repository": "zkp2p/zkp2p-clients",
|
|
5
|
-
"commitSha": "
|
|
5
|
+
"commitSha": "6318324893695eb4d5904438fb4c85cde4397a09",
|
|
6
6
|
"kind": "github",
|
|
7
7
|
"distributable": true
|
|
8
8
|
},
|
|
9
|
-
"sdkPackageVersion": "0.16.0
|
|
9
|
+
"sdkPackageVersion": "0.16.0",
|
|
10
10
|
"contractsPackageVersion": "0.4.4-rc.13",
|
|
11
11
|
"indexerSchemaPackageVersion": "0.23.0-rc.0",
|
|
12
12
|
"activeDisputeStack": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { currencyKeccak256, getCurrencyInfoFromHash } from './chunk-PMFXZGDQ.mjs';
|
|
2
|
-
import { __export } from './chunk-
|
|
2
|
+
import { __export } from './chunk-LBUSUTNI.mjs';
|
|
3
3
|
import { hexToBytes, keccak256, toBytes, bytesToHex } from 'viem';
|
|
4
4
|
|
|
5
5
|
// src/utils/bigint.ts
|
|
@@ -158562,5 +158562,5 @@ function enrichPvIntentView(view, chainId, env = "production") {
|
|
|
158562
158562
|
}
|
|
158563
158563
|
|
|
158564
158564
|
export { DISPUTE_PROTECTION_POLICY_ABI2 as DISPUTE_PROTECTION_POLICY_ABI, DISPUTE_PROTECTION_POLICY_V2_ABI2 as DISPUTE_PROTECTION_POLICY_V2_ABI, METHOD_NAME_TO_HASH, ORCHESTRATOR_V3_ABI2 as ORCHESTRATOR_V3_ABI, ORCHESTRATOR_V4_ABI2 as ORCHESTRATOR_V4_ABI, PAYMENT_PLATFORMS, STAKE_VAULT_ABI2 as STAKE_VAULT_ABI, STAKE_VAULT_V2_ABI2 as STAKE_VAULT_V2_ABI, SUPPORTED_PAYMENT_METHOD_HASHES, asciiToBytes32, baseStaging_default4 as baseStaging_default, base_default4 as base_default, enrichPvDepositView, enrichPvIntentView, ensureBytes32, getContracts, getDisputeProtectionPolicyContract, getDisputeProtectionPolicyV2Contract, getDisputeStackAbis, getGatingServiceAddress, getIntentGuardianContract, getKnownStakeVaultContracts, getOrchestratorV3Contract, getOrchestratorV4Contract, getPaymentMethodsCatalog, getRateManagerContracts, getStakeVaultContract, getStakeVaultV2Contract, hasIntentGuardian, matchesPaymentMethodNameAndHash, matchesQuotePaymentMethod, parseBigIntLike, parseDepositView, parseIntentView, pickAddress, resolveFiatCurrencyBytes32, resolvePaymentMethodHash, resolvePaymentMethodHashFromCatalog, resolvePaymentMethodNameFromHash };
|
|
158565
|
-
//# sourceMappingURL=chunk-
|
|
158566
|
-
//# sourceMappingURL=chunk-
|
|
158565
|
+
//# sourceMappingURL=chunk-4UV5XMBU.mjs.map
|
|
158566
|
+
//# sourceMappingURL=chunk-4UV5XMBU.mjs.map
|