mtok-relay 0.1.3 → 0.1.4
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/dist/mtok-relay.mjs +5 -1
- package/package.json +1 -1
package/dist/mtok-relay.mjs
CHANGED
|
@@ -2157,7 +2157,7 @@ var secp256k1 = createCurve({
|
|
|
2157
2157
|
}, sha256);
|
|
2158
2158
|
|
|
2159
2159
|
// node_modules/viem/_esm/errors/version.js
|
|
2160
|
-
var version = "2.54.
|
|
2160
|
+
var version = "2.54.4";
|
|
2161
2161
|
|
|
2162
2162
|
// node_modules/viem/_esm/errors/base.js
|
|
2163
2163
|
var errorConfig = {
|
|
@@ -4645,6 +4645,7 @@ function readRelayConfig({ argv = process.argv.slice(2), env = process.env } = {
|
|
|
4645
4645
|
const port = Number(flag(argv, "--port") ?? 8788);
|
|
4646
4646
|
const rpcFlag = flag(argv, "--rpc");
|
|
4647
4647
|
const settlementPubkeyFlag = flag(argv, "--settlement-pubkey");
|
|
4648
|
+
const sellerAgentId = flag(argv, "--seller-agent");
|
|
4648
4649
|
const outPrice = Number(flag(argv, "--out-price") ?? 0);
|
|
4649
4650
|
const inPrice = Number(flag(argv, "--in-price") ?? outPrice);
|
|
4650
4651
|
const redemptionFile = flag(argv, "--redemption-file") ?? env.RELAY_REDEMPTION_FILE ?? null;
|
|
@@ -4671,6 +4672,7 @@ function readRelayConfig({ argv = process.argv.slice(2), env = process.env } = {
|
|
|
4671
4672
|
return {
|
|
4672
4673
|
offerId,
|
|
4673
4674
|
model,
|
|
4675
|
+
sellerAgentId,
|
|
4674
4676
|
upstream,
|
|
4675
4677
|
apiBase,
|
|
4676
4678
|
port,
|
|
@@ -5134,6 +5136,8 @@ async function createRelayRuntime(config) {
|
|
|
5134
5136
|
paid = await verifier.verifyDrawPaid(drawPaidTxHash, {
|
|
5135
5137
|
contractAddress: platform.dripContractAddress,
|
|
5136
5138
|
buyerAgentId: buyerId,
|
|
5139
|
+
sellerAgentId: config.sellerAgentId,
|
|
5140
|
+
// when set, enforces the offer-owner match (#codex review)
|
|
5137
5141
|
bookingId,
|
|
5138
5142
|
offerId: config.offerId,
|
|
5139
5143
|
model: config.model,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mtok-relay",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Reference seller relay for mtok.market — accepts on-chain-prepaid chunk draws and serves inference from an upstream you control. Run with: npx mtok-relay --offer <id> --model <id> --upstream <url>.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|