@campnetwork/origin 1.0.1 → 1.2.0-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 +4 -4
- package/dist/core.cjs +102 -73
- package/dist/core.d.ts +37 -15
- package/dist/core.esm.d.ts +37 -15
- package/dist/core.esm.js +123 -94
- package/dist/react/index.esm.d.ts +37 -15
- package/dist/react/index.esm.js +2143 -1565
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -953,7 +953,7 @@ When minting or updating an IpNFT, the following constraints apply to the `Licen
|
|
|
953
953
|
|
|
954
954
|
- The price must be at least `1000000000000000` wei (0.001 $CAMP).
|
|
955
955
|
- The royaltyBps must be between `1` and `10000` (0.01% to 100%).
|
|
956
|
-
- The duration must be
|
|
956
|
+
- The duration must be between `86400` seconds and `2628000` seconds (1 day to 30 days).
|
|
957
957
|
|
|
958
958
|
### File Upload & Minting
|
|
959
959
|
|
|
@@ -1005,7 +1005,7 @@ Most methods mirror smart contract functions and require appropriate permissions
|
|
|
1005
1005
|
|
|
1006
1006
|
#### Marketplace Methods
|
|
1007
1007
|
|
|
1008
|
-
- `buyAccess(tokenId,
|
|
1008
|
+
- `buyAccess(buyer, tokenId, expectedPrice, expectedDuration, expectedPaymentToken, value?)`
|
|
1009
1009
|
- `hasAccess(tokenId, user)`
|
|
1010
1010
|
- `subscriptionExpiry(tokenId, user)`
|
|
1011
1011
|
|
|
@@ -1016,8 +1016,8 @@ Most methods mirror smart contract functions and require appropriate permissions
|
|
|
1016
1016
|
|
|
1017
1017
|
#### Smart Access & Data
|
|
1018
1018
|
|
|
1019
|
-
- `buyAccessSmart(tokenId)` — Buys access, handles payment approval and license details
|
|
1020
|
-
- `getData(tokenId)` — Fetches
|
|
1019
|
+
- `buyAccessSmart(tokenId)` — Buys access, handles payment approval and license details - **Recommended in place of buyAccess**
|
|
1020
|
+
- `getData(tokenId)` — Fetches the underlying IP for a given IPNFT if the user has purchased access to it
|
|
1021
1021
|
|
|
1022
1022
|
### User Data & Stats
|
|
1023
1023
|
|