@railblock/opencommodity-sdk 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +2 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -83,6 +83,8 @@ await client.cancelListing(1);
83
83
 
84
84
  ### Marketplace registration
85
85
 
86
+ Marketplace operators can configure their own marketplace fee percentage. Protocol, listing, and buy-side fees continue to route to the contract treasury.
87
+
86
88
  ```ts
87
89
  const client = new OpenCommodity({
88
90
  apiKey: process.env.OPENCOMMODITY_API_KEY,
@@ -94,10 +96,7 @@ const client = new OpenCommodity({
94
96
  });
95
97
 
96
98
  const marketplace = await client.registerMarketplace({
97
- name: "Main",
98
- wallet: "0xYourWalletAddress",
99
99
  fee_percent: 1.5,
100
- escrow_enabled: true,
101
100
  });
102
101
 
103
102
  await client.updateMarketplaceFee(marketplace.marketplaceId, 2.0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railblock/opencommodity-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TypeScript SDK for the OpenCommodity Protocol API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",