@flop-labs/sdk 0.0.0-stage → 0.5.1
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/CHANGELOG.md +391 -0
- package/LICENSE +238 -0
- package/README.md +673 -2
- package/dist/a2a/agent-card.d.ts +106 -0
- package/dist/a2a/agent-card.d.ts.map +1 -0
- package/dist/a2a/agent-card.js +131 -0
- package/dist/a2a/agent-card.js.map +1 -0
- package/dist/a2a/index.d.ts +11 -0
- package/dist/a2a/index.d.ts.map +1 -0
- package/dist/a2a/index.js +11 -0
- package/dist/a2a/index.js.map +1 -0
- package/dist/a2a/task-lifecycle.d.ts +41 -0
- package/dist/a2a/task-lifecycle.d.ts.map +1 -0
- package/dist/a2a/task-lifecycle.js +60 -0
- package/dist/a2a/task-lifecycle.js.map +1 -0
- package/dist/a2a/types.d.ts +96 -0
- package/dist/a2a/types.d.ts.map +1 -0
- package/dist/a2a/types.js +23 -0
- package/dist/a2a/types.js.map +1 -0
- package/dist/a2a-cjs/agent-card.js +137 -0
- package/dist/a2a-cjs/agent-card.js.map +1 -0
- package/dist/a2a-cjs/index.js +23 -0
- package/dist/a2a-cjs/index.js.map +1 -0
- package/dist/a2a-cjs/package.json +1 -0
- package/dist/a2a-cjs/task-lifecycle.js +64 -0
- package/dist/a2a-cjs/task-lifecycle.js.map +1 -0
- package/dist/a2a-cjs/types.js +26 -0
- package/dist/a2a-cjs/types.js.map +1 -0
- package/dist/adaptor.d.ts +39 -0
- package/dist/adaptor.d.ts.map +1 -0
- package/dist/adaptor.js +130 -0
- package/dist/adaptor.js.map +1 -0
- package/dist/agent/errors.d.ts +95 -0
- package/dist/agent/errors.d.ts.map +1 -0
- package/dist/agent/errors.js +132 -0
- package/dist/agent/errors.js.map +1 -0
- package/dist/agent/task-delegation.d.ts +283 -0
- package/dist/agent/task-delegation.d.ts.map +1 -0
- package/dist/agent/task-delegation.js +413 -0
- package/dist/agent/task-delegation.js.map +1 -0
- package/dist/agent/types.d.ts +19 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +7 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/agent-wallet.d.ts +197 -0
- package/dist/agent-wallet.d.ts.map +1 -0
- package/dist/agent-wallet.js +391 -0
- package/dist/agent-wallet.js.map +1 -0
- package/dist/amhl.d.ts +61 -0
- package/dist/amhl.d.ts.map +1 -0
- package/dist/amhl.js +161 -0
- package/dist/amhl.js.map +1 -0
- package/dist/attestation.d.ts +126 -0
- package/dist/attestation.d.ts.map +1 -0
- package/dist/attestation.js +287 -0
- package/dist/attestation.js.map +1 -0
- package/dist/bip340-adaptor.d.ts +8 -0
- package/dist/bip340-adaptor.d.ts.map +1 -0
- package/dist/bip340-adaptor.js +129 -0
- package/dist/bip340-adaptor.js.map +1 -0
- package/dist/btc-relayer.d.ts +42 -0
- package/dist/btc-relayer.d.ts.map +1 -0
- package/dist/btc-relayer.js +40 -0
- package/dist/btc-relayer.js.map +1 -0
- package/dist/bundle/index.esm.js +2 -0
- package/dist/bundle/index.esm.js.map +1 -0
- package/dist/bundle/index.umd.cjs +2 -0
- package/dist/bundle/index.umd.cjs.map +1 -0
- package/dist/capability-claim-sink.d.ts +5 -0
- package/dist/capability-claim-sink.d.ts.map +1 -0
- package/dist/capability-claim-sink.js +6 -0
- package/dist/capability-claim-sink.js.map +1 -0
- package/dist/chain-text.d.ts +3 -0
- package/dist/chain-text.d.ts.map +1 -0
- package/dist/chain-text.js +27 -0
- package/dist/chain-text.js.map +1 -0
- package/dist/chain.d.ts +63 -0
- package/dist/chain.d.ts.map +1 -0
- package/dist/chain.js +100 -0
- package/dist/chain.js.map +1 -0
- package/dist/client.d.ts +368 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +870 -0
- package/dist/client.js.map +1 -0
- package/dist/compute-channel/adaptor-settlement.d.ts +19 -0
- package/dist/compute-channel/adaptor-settlement.d.ts.map +1 -0
- package/dist/compute-channel/adaptor-settlement.js +40 -0
- package/dist/compute-channel/adaptor-settlement.js.map +1 -0
- package/dist/compute-channel/agent-client.d.ts +141 -0
- package/dist/compute-channel/agent-client.d.ts.map +1 -0
- package/dist/compute-channel/agent-client.js +265 -0
- package/dist/compute-channel/agent-client.js.map +1 -0
- package/dist/compute-channel/agent-driver.d.ts +59 -0
- package/dist/compute-channel/agent-driver.d.ts.map +1 -0
- package/dist/compute-channel/agent-driver.js +351 -0
- package/dist/compute-channel/agent-driver.js.map +1 -0
- package/dist/compute-channel/chain.d.ts +245 -0
- package/dist/compute-channel/chain.d.ts.map +1 -0
- package/dist/compute-channel/chain.js +490 -0
- package/dist/compute-channel/chain.js.map +1 -0
- package/dist/compute-channel/chat-render.d.ts +21 -0
- package/dist/compute-channel/chat-render.d.ts.map +1 -0
- package/dist/compute-channel/chat-render.js +87 -0
- package/dist/compute-channel/chat-render.js.map +1 -0
- package/dist/compute-channel/crypto.d.ts +19 -0
- package/dist/compute-channel/crypto.d.ts.map +1 -0
- package/dist/compute-channel/crypto.js +52 -0
- package/dist/compute-channel/crypto.js.map +1 -0
- package/dist/compute-channel/da.d.ts +111 -0
- package/dist/compute-channel/da.d.ts.map +1 -0
- package/dist/compute-channel/da.js +320 -0
- package/dist/compute-channel/da.js.map +1 -0
- package/dist/compute-channel/deepseek-v41.d.ts +56 -0
- package/dist/compute-channel/deepseek-v41.d.ts.map +1 -0
- package/dist/compute-channel/deepseek-v41.js +267 -0
- package/dist/compute-channel/deepseek-v41.js.map +1 -0
- package/dist/compute-channel/direct-session-chain.d.ts +3 -0
- package/dist/compute-channel/direct-session-chain.d.ts.map +1 -0
- package/dist/compute-channel/direct-session-chain.js +271 -0
- package/dist/compute-channel/direct-session-chain.js.map +1 -0
- package/dist/compute-channel/direct-session.d.ts +78 -0
- package/dist/compute-channel/direct-session.d.ts.map +1 -0
- package/dist/compute-channel/direct-session.js +241 -0
- package/dist/compute-channel/direct-session.js.map +1 -0
- package/dist/compute-channel/dispute.d.ts +103 -0
- package/dist/compute-channel/dispute.d.ts.map +1 -0
- package/dist/compute-channel/dispute.js +314 -0
- package/dist/compute-channel/dispute.js.map +1 -0
- package/dist/compute-channel/fcu-admission.d.ts +37 -0
- package/dist/compute-channel/fcu-admission.d.ts.map +1 -0
- package/dist/compute-channel/fcu-admission.js +53 -0
- package/dist/compute-channel/fcu-admission.js.map +1 -0
- package/dist/compute-channel/fcu-agent.d.ts +27 -0
- package/dist/compute-channel/fcu-agent.d.ts.map +1 -0
- package/dist/compute-channel/fcu-agent.js +35 -0
- package/dist/compute-channel/fcu-agent.js.map +1 -0
- package/dist/compute-channel/fcu-policy.d.ts +67 -0
- package/dist/compute-channel/fcu-policy.d.ts.map +1 -0
- package/dist/compute-channel/fcu-policy.js +121 -0
- package/dist/compute-channel/fcu-policy.js.map +1 -0
- package/dist/compute-channel/fcu-profile.d.ts +56 -0
- package/dist/compute-channel/fcu-profile.d.ts.map +1 -0
- package/dist/compute-channel/fcu-profile.js +100 -0
- package/dist/compute-channel/fcu-profile.js.map +1 -0
- package/dist/compute-channel/fcu-serving.d.ts +146 -0
- package/dist/compute-channel/fcu-serving.d.ts.map +1 -0
- package/dist/compute-channel/fcu-serving.js +350 -0
- package/dist/compute-channel/fcu-serving.js.map +1 -0
- package/dist/compute-channel/fcu-sla.d.ts +88 -0
- package/dist/compute-channel/fcu-sla.d.ts.map +1 -0
- package/dist/compute-channel/fcu-sla.js +154 -0
- package/dist/compute-channel/fcu-sla.js.map +1 -0
- package/dist/compute-channel/fcu-store-node.d.ts +10 -0
- package/dist/compute-channel/fcu-store-node.d.ts.map +1 -0
- package/dist/compute-channel/fcu-store-node.js +98 -0
- package/dist/compute-channel/fcu-store-node.js.map +1 -0
- package/dist/compute-channel/fcu-timing.d.ts +34 -0
- package/dist/compute-channel/fcu-timing.d.ts.map +1 -0
- package/dist/compute-channel/fcu-timing.js +79 -0
- package/dist/compute-channel/fcu-timing.js.map +1 -0
- package/dist/compute-channel/flop-meter.d.ts +96 -0
- package/dist/compute-channel/flop-meter.d.ts.map +1 -0
- package/dist/compute-channel/flop-meter.js +210 -0
- package/dist/compute-channel/flop-meter.js.map +1 -0
- package/dist/compute-channel/flop-submitter.d.ts +40 -0
- package/dist/compute-channel/flop-submitter.d.ts.map +1 -0
- package/dist/compute-channel/flop-submitter.js +124 -0
- package/dist/compute-channel/flop-submitter.js.map +1 -0
- package/dist/compute-channel/hybrid-candidate.d.ts +22 -0
- package/dist/compute-channel/hybrid-candidate.d.ts.map +1 -0
- package/dist/compute-channel/hybrid-candidate.js +155 -0
- package/dist/compute-channel/hybrid-candidate.js.map +1 -0
- package/dist/compute-channel/hybrid-metering.d.ts +36 -0
- package/dist/compute-channel/hybrid-metering.d.ts.map +1 -0
- package/dist/compute-channel/hybrid-metering.js +69 -0
- package/dist/compute-channel/hybrid-metering.js.map +1 -0
- package/dist/compute-channel/hybrid.d.ts +16 -0
- package/dist/compute-channel/hybrid.d.ts.map +1 -0
- package/dist/compute-channel/hybrid.js +98 -0
- package/dist/compute-channel/hybrid.js.map +1 -0
- package/dist/compute-channel/index.d.ts +55 -0
- package/dist/compute-channel/index.d.ts.map +1 -0
- package/dist/compute-channel/index.js +56 -0
- package/dist/compute-channel/index.js.map +1 -0
- package/dist/compute-channel/lane-producer.d.ts +92 -0
- package/dist/compute-channel/lane-producer.d.ts.map +1 -0
- package/dist/compute-channel/lane-producer.js +265 -0
- package/dist/compute-channel/lane-producer.js.map +1 -0
- package/dist/compute-channel/layered.d.ts +77 -0
- package/dist/compute-channel/layered.d.ts.map +1 -0
- package/dist/compute-channel/layered.js +220 -0
- package/dist/compute-channel/layered.js.map +1 -0
- package/dist/compute-channel/lineage.d.ts +19 -0
- package/dist/compute-channel/lineage.d.ts.map +1 -0
- package/dist/compute-channel/lineage.js +28 -0
- package/dist/compute-channel/lineage.js.map +1 -0
- package/dist/compute-channel/miner-host.d.ts +329 -0
- package/dist/compute-channel/miner-host.d.ts.map +1 -0
- package/dist/compute-channel/miner-host.js +880 -0
- package/dist/compute-channel/miner-host.js.map +1 -0
- package/dist/compute-channel/model-config.d.ts +87 -0
- package/dist/compute-channel/model-config.d.ts.map +1 -0
- package/dist/compute-channel/model-config.js +697 -0
- package/dist/compute-channel/model-config.js.map +1 -0
- package/dist/compute-channel/offers.d.ts +57 -0
- package/dist/compute-channel/offers.d.ts.map +1 -0
- package/dist/compute-channel/offers.js +182 -0
- package/dist/compute-channel/offers.js.map +1 -0
- package/dist/compute-channel/peer-info.d.ts +15 -0
- package/dist/compute-channel/peer-info.d.ts.map +1 -0
- package/dist/compute-channel/peer-info.js +33 -0
- package/dist/compute-channel/peer-info.js.map +1 -0
- package/dist/compute-channel/point-claim-sink.d.ts +5 -0
- package/dist/compute-channel/point-claim-sink.d.ts.map +1 -0
- package/dist/compute-channel/point-claim-sink.js +6 -0
- package/dist/compute-channel/point-claim-sink.js.map +1 -0
- package/dist/compute-channel/protocol.d.ts +243 -0
- package/dist/compute-channel/protocol.d.ts.map +1 -0
- package/dist/compute-channel/protocol.js +249 -0
- package/dist/compute-channel/protocol.js.map +1 -0
- package/dist/compute-channel/runtime-storage.d.ts +6 -0
- package/dist/compute-channel/runtime-storage.d.ts.map +1 -0
- package/dist/compute-channel/runtime-storage.js +11 -0
- package/dist/compute-channel/runtime-storage.js.map +1 -0
- package/dist/compute-channel/sampled-audit.d.ts +24 -0
- package/dist/compute-channel/sampled-audit.d.ts.map +1 -0
- package/dist/compute-channel/sampled-audit.js +97 -0
- package/dist/compute-channel/sampled-audit.js.map +1 -0
- package/dist/compute-channel/session-auth.d.ts +6 -0
- package/dist/compute-channel/session-auth.d.ts.map +1 -0
- package/dist/compute-channel/session-auth.js +23 -0
- package/dist/compute-channel/session-auth.js.map +1 -0
- package/dist/compute-channel/session-estimate.d.ts +103 -0
- package/dist/compute-channel/session-estimate.d.ts.map +1 -0
- package/dist/compute-channel/session-estimate.js +140 -0
- package/dist/compute-channel/session-estimate.js.map +1 -0
- package/dist/compute-channel/session-prior-bank.d.ts +61 -0
- package/dist/compute-channel/session-prior-bank.d.ts.map +1 -0
- package/dist/compute-channel/session-prior-bank.js +74 -0
- package/dist/compute-channel/session-prior-bank.js.map +1 -0
- package/dist/compute-channel/session-prior.d.ts +145 -0
- package/dist/compute-channel/session-prior.d.ts.map +1 -0
- package/dist/compute-channel/session-prior.js +325 -0
- package/dist/compute-channel/session-prior.js.map +1 -0
- package/dist/compute-channel/session-store.d.ts +51 -0
- package/dist/compute-channel/session-store.d.ts.map +1 -0
- package/dist/compute-channel/session-store.js +186 -0
- package/dist/compute-channel/session-store.js.map +1 -0
- package/dist/compute-channel/session.d.ts +120 -0
- package/dist/compute-channel/session.d.ts.map +1 -0
- package/dist/compute-channel/session.js +232 -0
- package/dist/compute-channel/session.js.map +1 -0
- package/dist/compute-channel/toploc-checker.d.ts +384 -0
- package/dist/compute-channel/toploc-checker.d.ts.map +1 -0
- package/dist/compute-channel/toploc-checker.js +794 -0
- package/dist/compute-channel/toploc-checker.js.map +1 -0
- package/dist/compute-channel/toploc-completion-rpc.d.ts +26 -0
- package/dist/compute-channel/toploc-completion-rpc.d.ts.map +1 -0
- package/dist/compute-channel/toploc-completion-rpc.js +391 -0
- package/dist/compute-channel/toploc-completion-rpc.js.map +1 -0
- package/dist/compute-channel/toploc-completion.d.ts +109 -0
- package/dist/compute-channel/toploc-completion.d.ts.map +1 -0
- package/dist/compute-channel/toploc-completion.js +301 -0
- package/dist/compute-channel/toploc-completion.js.map +1 -0
- package/dist/compute-channel/toploc-evidence.d.ts +185 -0
- package/dist/compute-channel/toploc-evidence.d.ts.map +1 -0
- package/dist/compute-channel/toploc-evidence.js +299 -0
- package/dist/compute-channel/toploc-evidence.js.map +1 -0
- package/dist/compute-channel/toploc-gumbel.d.ts +149 -0
- package/dist/compute-channel/toploc-gumbel.d.ts.map +1 -0
- package/dist/compute-channel/toploc-gumbel.js +245 -0
- package/dist/compute-channel/toploc-gumbel.js.map +1 -0
- package/dist/compute-channel/toploc.d.ts +63 -0
- package/dist/compute-channel/toploc.d.ts.map +1 -0
- package/dist/compute-channel/toploc.js +197 -0
- package/dist/compute-channel/toploc.js.map +1 -0
- package/dist/compute-channel/transcript.d.ts +127 -0
- package/dist/compute-channel/transcript.d.ts.map +1 -0
- package/dist/compute-channel/transcript.js +279 -0
- package/dist/compute-channel/transcript.js.map +1 -0
- package/dist/compute-channel/transport-http.d.ts +223 -0
- package/dist/compute-channel/transport-http.d.ts.map +1 -0
- package/dist/compute-channel/transport-http.js +661 -0
- package/dist/compute-channel/transport-http.js.map +1 -0
- package/dist/connect.d.ts +4 -0
- package/dist/connect.d.ts.map +1 -0
- package/dist/connect.js +24 -0
- package/dist/connect.js.map +1 -0
- package/dist/coordination.d.ts +341 -0
- package/dist/coordination.d.ts.map +1 -0
- package/dist/coordination.js +483 -0
- package/dist/coordination.js.map +1 -0
- package/dist/da-client.d.ts +124 -0
- package/dist/da-client.d.ts.map +1 -0
- package/dist/da-client.js +127 -0
- package/dist/da-client.js.map +1 -0
- package/dist/discovery/capabilities.d.ts +129 -0
- package/dist/discovery/capabilities.d.ts.map +1 -0
- package/dist/discovery/capabilities.js +398 -0
- package/dist/discovery/capabilities.js.map +1 -0
- package/dist/discovery/discovery-service.d.ts +476 -0
- package/dist/discovery/discovery-service.d.ts.map +1 -0
- package/dist/discovery/discovery-service.js +996 -0
- package/dist/discovery/discovery-service.js.map +1 -0
- package/dist/discovery/examples.d.ts +50 -0
- package/dist/discovery/examples.d.ts.map +1 -0
- package/dist/discovery/examples.js +163 -0
- package/dist/discovery/examples.js.map +1 -0
- package/dist/discovery/fee-estimation.d.ts +550 -0
- package/dist/discovery/fee-estimation.d.ts.map +1 -0
- package/dist/discovery/fee-estimation.js +921 -0
- package/dist/discovery/fee-estimation.js.map +1 -0
- package/dist/discovery/index.d.ts +38 -0
- package/dist/discovery/index.d.ts.map +1 -0
- package/dist/discovery/index.js +32 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/discovery/metered-pricing.d.ts +100 -0
- package/dist/discovery/metered-pricing.d.ts.map +1 -0
- package/dist/discovery/metered-pricing.js +150 -0
- package/dist/discovery/metered-pricing.js.map +1 -0
- package/dist/discovery/priority.d.ts +16 -0
- package/dist/discovery/priority.d.ts.map +1 -0
- package/dist/discovery/priority.js +17 -0
- package/dist/discovery/priority.js.map +1 -0
- package/dist/discovery/scoring.d.ts +231 -0
- package/dist/discovery/scoring.d.ts.map +1 -0
- package/dist/discovery/scoring.js +354 -0
- package/dist/discovery/scoring.js.map +1 -0
- package/dist/ecdsa-adaptor.d.ts +72 -0
- package/dist/ecdsa-adaptor.d.ts.map +1 -0
- package/dist/ecdsa-adaptor.js +351 -0
- package/dist/ecdsa-adaptor.js.map +1 -0
- package/dist/errors.d.ts +98 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +190 -0
- package/dist/errors.js.map +1 -0
- package/dist/escrow.d.ts +116 -0
- package/dist/escrow.d.ts.map +1 -0
- package/dist/escrow.js +172 -0
- package/dist/escrow.js.map +1 -0
- package/dist/evm-relayer.d.ts +12 -0
- package/dist/evm-relayer.d.ts.map +1 -0
- package/dist/evm-relayer.js +25 -0
- package/dist/evm-relayer.js.map +1 -0
- package/dist/experimental.d.ts +3 -0
- package/dist/experimental.d.ts.map +1 -0
- package/dist/experimental.js +3 -0
- package/dist/experimental.js.map +1 -0
- package/dist/faucet.d.ts +146 -0
- package/dist/faucet.d.ts.map +1 -0
- package/dist/faucet.js +300 -0
- package/dist/faucet.js.map +1 -0
- package/dist/finality-status.d.ts +21 -0
- package/dist/finality-status.d.ts.map +1 -0
- package/dist/finality-status.js +10 -0
- package/dist/finality-status.js.map +1 -0
- package/dist/generated-client/capabilities.d.ts +83 -0
- package/dist/generated-client/capabilities.d.ts.map +1 -0
- package/dist/generated-client/capabilities.js +87 -0
- package/dist/generated-client/capabilities.js.map +1 -0
- package/dist/generated-client/cli.d.ts +3 -0
- package/dist/generated-client/cli.d.ts.map +1 -0
- package/dist/generated-client/cli.js +33 -0
- package/dist/generated-client/cli.js.map +1 -0
- package/dist/generated-client/errors.d.ts +13 -0
- package/dist/generated-client/errors.d.ts.map +1 -0
- package/dist/generated-client/errors.js +23 -0
- package/dist/generated-client/errors.js.map +1 -0
- package/dist/generated-client/factory.d.ts +28 -0
- package/dist/generated-client/factory.d.ts.map +1 -0
- package/dist/generated-client/factory.js +182 -0
- package/dist/generated-client/factory.js.map +1 -0
- package/dist/generated-client/generator.d.ts +9 -0
- package/dist/generated-client/generator.d.ts.map +1 -0
- package/dist/generated-client/generator.js +80 -0
- package/dist/generated-client/generator.js.map +1 -0
- package/dist/generated-client/index.d.ts +11 -0
- package/dist/generated-client/index.d.ts.map +1 -0
- package/dist/generated-client/index.js +6 -0
- package/dist/generated-client/index.js.map +1 -0
- package/dist/generated-client/profile.d.ts +166 -0
- package/dist/generated-client/profile.d.ts.map +1 -0
- package/dist/generated-client/profile.js +158 -0
- package/dist/generated-client/profile.js.map +1 -0
- package/dist/generated-client/templates/agent-chat.d.ts +16 -0
- package/dist/generated-client/templates/agent-chat.d.ts.map +1 -0
- package/dist/generated-client/templates/agent-chat.js +12 -0
- package/dist/generated-client/templates/agent-chat.js.map +1 -0
- package/dist/generated-client/templates/index.d.ts +4 -0
- package/dist/generated-client/templates/index.d.ts.map +1 -0
- package/dist/generated-client/templates/index.js +4 -0
- package/dist/generated-client/templates/index.js.map +1 -0
- package/dist/generated-client/templates/miner-operator.d.ts +16 -0
- package/dist/generated-client/templates/miner-operator.d.ts.map +1 -0
- package/dist/generated-client/templates/miner-operator.js +12 -0
- package/dist/generated-client/templates/miner-operator.js.map +1 -0
- package/dist/generated-client/templates/model-publisher.d.ts +21 -0
- package/dist/generated-client/templates/model-publisher.d.ts.map +1 -0
- package/dist/generated-client/templates/model-publisher.js +13 -0
- package/dist/generated-client/templates/model-publisher.js.map +1 -0
- package/dist/hardware.d.ts +68 -0
- package/dist/hardware.d.ts.map +1 -0
- package/dist/hardware.js +222 -0
- package/dist/hardware.js.map +1 -0
- package/dist/htlc-appraisal.d.ts +4 -0
- package/dist/htlc-appraisal.d.ts.map +1 -0
- package/dist/htlc-appraisal.js +25 -0
- package/dist/htlc-appraisal.js.map +1 -0
- package/dist/index.d.ts +114 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +144 -0
- package/dist/index.js.map +1 -0
- package/dist/inference-purchase.d.ts +40 -0
- package/dist/inference-purchase.d.ts.map +1 -0
- package/dist/inference-purchase.js +43 -0
- package/dist/inference-purchase.js.map +1 -0
- package/dist/miner-admission.d.ts +124 -0
- package/dist/miner-admission.d.ts.map +1 -0
- package/dist/miner-admission.js +259 -0
- package/dist/miner-admission.js.map +1 -0
- package/dist/model-loader/canonical.d.ts +79 -0
- package/dist/model-loader/canonical.d.ts.map +1 -0
- package/dist/model-loader/canonical.js +116 -0
- package/dist/model-loader/canonical.js.map +1 -0
- package/dist/model-loader/dir.d.ts +26 -0
- package/dist/model-loader/dir.d.ts.map +1 -0
- package/dist/model-loader/dir.js +109 -0
- package/dist/model-loader/dir.js.map +1 -0
- package/dist/model-loader/dmverity.d.ts +78 -0
- package/dist/model-loader/dmverity.d.ts.map +1 -0
- package/dist/model-loader/dmverity.js +141 -0
- package/dist/model-loader/dmverity.js.map +1 -0
- package/dist/model-loader/download-state.d.ts +24 -0
- package/dist/model-loader/download-state.d.ts.map +1 -0
- package/dist/model-loader/download-state.js +99 -0
- package/dist/model-loader/download-state.js.map +1 -0
- package/dist/model-loader/fetch.d.ts +51 -0
- package/dist/model-loader/fetch.d.ts.map +1 -0
- package/dist/model-loader/fetch.js +410 -0
- package/dist/model-loader/fetch.js.map +1 -0
- package/dist/model-loader/file-table.d.ts +38 -0
- package/dist/model-loader/file-table.d.ts.map +1 -0
- package/dist/model-loader/file-table.js +106 -0
- package/dist/model-loader/file-table.js.map +1 -0
- package/dist/model-loader/hf-preflight.d.ts +65 -0
- package/dist/model-loader/hf-preflight.d.ts.map +1 -0
- package/dist/model-loader/hf-preflight.js +179 -0
- package/dist/model-loader/hf-preflight.js.map +1 -0
- package/dist/model-loader/index.d.ts +27 -0
- package/dist/model-loader/index.d.ts.map +1 -0
- package/dist/model-loader/index.js +21 -0
- package/dist/model-loader/index.js.map +1 -0
- package/dist/model-loader/registry.d.ts +24 -0
- package/dist/model-loader/registry.d.ts.map +1 -0
- package/dist/model-loader/registry.js +99 -0
- package/dist/model-loader/registry.js.map +1 -0
- package/dist/model-loader/types.d.ts +101 -0
- package/dist/model-loader/types.d.ts.map +1 -0
- package/dist/model-loader/types.js +13 -0
- package/dist/model-loader/types.js.map +1 -0
- package/dist/model-loader/verify.d.ts +83 -0
- package/dist/model-loader/verify.d.ts.map +1 -0
- package/dist/model-loader/verify.js +138 -0
- package/dist/model-loader/verify.js.map +1 -0
- package/dist/model-qualification.d.ts +79 -0
- package/dist/model-qualification.d.ts.map +1 -0
- package/dist/model-qualification.js +135 -0
- package/dist/model-qualification.js.map +1 -0
- package/dist/near-relayer.d.ts +30 -0
- package/dist/near-relayer.d.ts.map +1 -0
- package/dist/near-relayer.js +81 -0
- package/dist/near-relayer.js.map +1 -0
- package/dist/paid-storage/bytes.d.ts +21 -0
- package/dist/paid-storage/bytes.d.ts.map +1 -0
- package/dist/paid-storage/bytes.js +71 -0
- package/dist/paid-storage/bytes.js.map +1 -0
- package/dist/paid-storage/chain.d.ts +20 -0
- package/dist/paid-storage/chain.d.ts.map +1 -0
- package/dist/paid-storage/chain.js +182 -0
- package/dist/paid-storage/chain.js.map +1 -0
- package/dist/paid-storage/client.d.ts +161 -0
- package/dist/paid-storage/client.d.ts.map +1 -0
- package/dist/paid-storage/client.js +1038 -0
- package/dist/paid-storage/client.js.map +1 -0
- package/dist/paid-storage/cloudflare.d.ts +4 -0
- package/dist/paid-storage/cloudflare.d.ts.map +1 -0
- package/dist/paid-storage/cloudflare.js +9 -0
- package/dist/paid-storage/cloudflare.js.map +1 -0
- package/dist/paid-storage/codec.d.ts +8 -0
- package/dist/paid-storage/codec.d.ts.map +1 -0
- package/dist/paid-storage/codec.js +92 -0
- package/dist/paid-storage/codec.js.map +1 -0
- package/dist/paid-storage/crypto.d.ts +27 -0
- package/dist/paid-storage/crypto.d.ts.map +1 -0
- package/dist/paid-storage/crypto.js +91 -0
- package/dist/paid-storage/crypto.js.map +1 -0
- package/dist/paid-storage/heads.d.ts +26 -0
- package/dist/paid-storage/heads.d.ts.map +1 -0
- package/dist/paid-storage/heads.js +208 -0
- package/dist/paid-storage/heads.js.map +1 -0
- package/dist/paid-storage/index.d.ts +14 -0
- package/dist/paid-storage/index.d.ts.map +1 -0
- package/dist/paid-storage/index.js +7 -0
- package/dist/paid-storage/index.js.map +1 -0
- package/dist/paid-storage/memory-wire.d.ts +85 -0
- package/dist/paid-storage/memory-wire.d.ts.map +1 -0
- package/dist/paid-storage/memory-wire.js +147 -0
- package/dist/paid-storage/memory-wire.js.map +1 -0
- package/dist/paid-storage/node-store.d.ts +9 -0
- package/dist/paid-storage/node-store.d.ts.map +1 -0
- package/dist/paid-storage/node-store.js +34 -0
- package/dist/paid-storage/node-store.js.map +1 -0
- package/dist/paid-storage/profile.d.ts +21 -0
- package/dist/paid-storage/profile.d.ts.map +1 -0
- package/dist/paid-storage/profile.js +22 -0
- package/dist/paid-storage/profile.js.map +1 -0
- package/dist/paid-storage/store.d.ts +18 -0
- package/dist/paid-storage/store.d.ts.map +1 -0
- package/dist/paid-storage/store.js +32 -0
- package/dist/paid-storage/store.js.map +1 -0
- package/dist/paid-storage/transport.d.ts +70 -0
- package/dist/paid-storage/transport.d.ts.map +1 -0
- package/dist/paid-storage/transport.js +140 -0
- package/dist/paid-storage/transport.js.map +1 -0
- package/dist/paid-storage/vouchers.d.ts +75 -0
- package/dist/paid-storage/vouchers.d.ts.map +1 -0
- package/dist/paid-storage/vouchers.js +239 -0
- package/dist/paid-storage/vouchers.js.map +1 -0
- package/dist/paid-storage-wire.d.ts +11 -0
- package/dist/paid-storage-wire.d.ts.map +1 -0
- package/dist/paid-storage-wire.js +184 -0
- package/dist/paid-storage-wire.js.map +1 -0
- package/dist/point-claims.d.ts +40 -0
- package/dist/point-claims.d.ts.map +1 -0
- package/dist/point-claims.js +98 -0
- package/dist/point-claims.js.map +1 -0
- package/dist/quickstart.d.ts +307 -0
- package/dist/quickstart.d.ts.map +1 -0
- package/dist/quickstart.js +536 -0
- package/dist/quickstart.js.map +1 -0
- package/dist/react/context.d.ts +10 -0
- package/dist/react/context.d.ts.map +1 -0
- package/dist/react/context.js +16 -0
- package/dist/react/context.js.map +1 -0
- package/dist/react/hooks.d.ts +206 -0
- package/dist/react/hooks.d.ts.map +1 -0
- package/dist/react/hooks.js +560 -0
- package/dist/react/hooks.js.map +1 -0
- package/dist/react/index.d.ts +4 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/provider.d.ts +18 -0
- package/dist/react/provider.d.ts.map +1 -0
- package/dist/react/provider.js +17 -0
- package/dist/react/provider.js.map +1 -0
- package/dist/relayer.d.ts +122 -0
- package/dist/relayer.d.ts.map +1 -0
- package/dist/relayer.js +203 -0
- package/dist/relayer.js.map +1 -0
- package/dist/runtime-compatibility.d.ts +8 -0
- package/dist/runtime-compatibility.d.ts.map +1 -0
- package/dist/runtime-compatibility.js +23 -0
- package/dist/runtime-compatibility.js.map +1 -0
- package/dist/session-manager.d.ts +197 -0
- package/dist/session-manager.d.ts.map +1 -0
- package/dist/session-manager.js +429 -0
- package/dist/session-manager.js.map +1 -0
- package/dist/solana-ptlc.d.ts +64 -0
- package/dist/solana-ptlc.d.ts.map +1 -0
- package/dist/solana-ptlc.js +137 -0
- package/dist/solana-ptlc.js.map +1 -0
- package/dist/staking-client.d.ts +103 -0
- package/dist/staking-client.d.ts.map +1 -0
- package/dist/staking-client.js +308 -0
- package/dist/staking-client.js.map +1 -0
- package/dist/staking-types.d.ts +203 -0
- package/dist/staking-types.d.ts.map +1 -0
- package/dist/staking-types.js +16 -0
- package/dist/staking-types.js.map +1 -0
- package/dist/submit-tx.d.ts +14 -0
- package/dist/submit-tx.d.ts.map +1 -0
- package/dist/submit-tx.js +25 -0
- package/dist/submit-tx.js.map +1 -0
- package/dist/templates/index.d.ts +52 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +123 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/ton/index.d.ts +52 -0
- package/dist/ton/index.d.ts.map +1 -0
- package/dist/ton/index.js +163 -0
- package/dist/ton/index.js.map +1 -0
- package/dist/ton-relayer.d.ts +26 -0
- package/dist/ton-relayer.d.ts.map +1 -0
- package/dist/ton-relayer.js +22 -0
- package/dist/ton-relayer.js.map +1 -0
- package/dist/tracing.d.ts +48 -0
- package/dist/tracing.d.ts.map +1 -0
- package/dist/tracing.js +108 -0
- package/dist/tracing.js.map +1 -0
- package/dist/transaction-signer.d.ts +13 -0
- package/dist/transaction-signer.d.ts.map +1 -0
- package/dist/transaction-signer.js +13 -0
- package/dist/transaction-signer.js.map +1 -0
- package/dist/trust-root.d.ts +56 -0
- package/dist/trust-root.d.ts.map +1 -0
- package/dist/trust-root.js +28 -0
- package/dist/trust-root.js.map +1 -0
- package/dist/types.d.ts +201 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/validator-staking-client.d.ts +87 -0
- package/dist/validator-staking-client.d.ts.map +1 -0
- package/dist/validator-staking-client.js +226 -0
- package/dist/validator-staking-client.js.map +1 -0
- package/dist/virtuals-acp.d.ts +149 -0
- package/dist/virtuals-acp.d.ts.map +1 -0
- package/dist/virtuals-acp.js +418 -0
- package/dist/virtuals-acp.js.map +1 -0
- package/dist/wallet-manager.d.ts +199 -0
- package/dist/wallet-manager.d.ts.map +1 -0
- package/dist/wallet-manager.js +425 -0
- package/dist/wallet-manager.js.map +1 -0
- package/dist/wallets/burner.d.ts +45 -0
- package/dist/wallets/burner.d.ts.map +1 -0
- package/dist/wallets/burner.js +58 -0
- package/dist/wallets/burner.js.map +1 -0
- package/dist/wallets/index.d.ts +26 -0
- package/dist/wallets/index.d.ts.map +1 -0
- package/dist/wallets/index.js +20 -0
- package/dist/wallets/index.js.map +1 -0
- package/dist/wallets/injected.d.ts +22 -0
- package/dist/wallets/injected.d.ts.map +1 -0
- package/dist/wallets/injected.js +45 -0
- package/dist/wallets/injected.js.map +1 -0
- package/dist/wallets/ledger.d.ts +76 -0
- package/dist/wallets/ledger.d.ts.map +1 -0
- package/dist/wallets/ledger.js +106 -0
- package/dist/wallets/ledger.js.map +1 -0
- package/dist/wallets/near.d.ts +69 -0
- package/dist/wallets/near.d.ts.map +1 -0
- package/dist/wallets/near.js +101 -0
- package/dist/wallets/near.js.map +1 -0
- package/dist/wallets/types.d.ts +42 -0
- package/dist/wallets/types.d.ts.map +1 -0
- package/dist/wallets/types.js +31 -0
- package/dist/wallets/types.js.map +1 -0
- package/dist/wallets/walletconnect.d.ts +38 -0
- package/dist/wallets/walletconnect.d.ts.map +1 -0
- package/dist/wallets/walletconnect.js +94 -0
- package/dist/wallets/walletconnect.js.map +1 -0
- package/dist/watch-transaction.d.ts +26 -0
- package/dist/watch-transaction.d.ts.map +1 -0
- package/dist/watch-transaction.js +91 -0
- package/dist/watch-transaction.js.map +1 -0
- package/dist/weak-subjectivity.d.ts +213 -0
- package/dist/weak-subjectivity.d.ts.map +1 -0
- package/dist/weak-subjectivity.js +389 -0
- package/dist/weak-subjectivity.js.map +1 -0
- package/dist/x402-types/channel-types.d.ts +78 -0
- package/dist/x402-types/channel-types.d.ts.map +1 -0
- package/dist/x402-types/channel-types.js +5 -0
- package/dist/x402-types/channel-types.js.map +1 -0
- package/dist/x402-types/exact-flop.d.ts +29 -0
- package/dist/x402-types/exact-flop.d.ts.map +1 -0
- package/dist/x402-types/exact-flop.js +64 -0
- package/dist/x402-types/exact-flop.js.map +1 -0
- package/dist/x402-types/index.d.ts +65 -0
- package/dist/x402-types/index.d.ts.map +1 -0
- package/dist/x402-types/index.js +26 -0
- package/dist/x402-types/index.js.map +1 -0
- package/dist/x402.d.ts +113 -0
- package/dist/x402.d.ts.map +1 -0
- package/dist/x402.js +218 -0
- package/dist/x402.js.map +1 -0
- package/package.json +172 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@flop-labs/sdk` are documented here.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.5.1] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- An explicit Pi Durable A2A card profile for authenticated text tasks, with unsupported
|
|
15
|
+
payment rails and optional capabilities omitted; generic card defaults remain unchanged.
|
|
16
|
+
|
|
17
|
+
- Authenticated prior-finalization and terminal compute/receipt/fence checkpoints
|
|
18
|
+
for FCU claim ordering and miner capacity release, with rejecting conformance cases.
|
|
19
|
+
|
|
20
|
+
- FCU verified late/missing-timing delivery accounting and finalized-only SLA claim
|
|
21
|
+
transitions with original-beneficiary snapshots, reserve encumbrance and atomic
|
|
22
|
+
settlement ports. Native reserve funding and production adapters remain gated.
|
|
23
|
+
|
|
24
|
+
- Ratified FCU admission/cutoff/finality checks, immutable qualification policy,
|
|
25
|
+
miner-wide CAS capacity ledger and conservative two-operator timing verification.
|
|
26
|
+
These require authenticated adapters and leave activation off.
|
|
27
|
+
|
|
28
|
+
- Fresh enclave info-proof and channel-authentication helpers, with injected peer transports,
|
|
29
|
+
redirect refusal, bounded responses and explicit miner readiness.
|
|
30
|
+
|
|
31
|
+
- FCU calendar delivery series D+1 through D+14 at noon UTC, with D+7 default,
|
|
32
|
+
capacity-based quantities and separate scheduled/delivering/window-ended display.
|
|
33
|
+
Calendar dates replace the provisional elapsed-time booking cap; window expiry
|
|
34
|
+
does not settle financial claims or roll old rights into a new series.
|
|
35
|
+
|
|
36
|
+
- Activation-gated FCU service-profile commitments and signed bounded admission,
|
|
37
|
+
holder coordination with durable pending-work accounting, independent timing
|
|
38
|
+
verification ports, pause/drain controls and an agent request client. New primary
|
|
39
|
+
delivery uses the fourteen UTC-calendar noon series; duration remains separate.
|
|
40
|
+
- Node-only `FcuFileStore` for local qualification journals and CPU agent/session
|
|
41
|
+
conformance tests. These additions do not qualify a GPU, supply a production
|
|
42
|
+
registry/clock adapter or activate FCU.
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- Reconcile direct-session cooperative settlement using finalized matching claims;
|
|
47
|
+
preserve payment HTTP failures, faucet refusals, and local delegation outcomes.
|
|
48
|
+
- Route package bug reports to the public network issue forms.
|
|
49
|
+
|
|
50
|
+
- Distinguish exact finalized dispatch failures from unconfirmed transaction
|
|
51
|
+
outcomes, retaining transaction/block/call identity for safe miner recovery.
|
|
52
|
+
- Align README onboarding connection, HTLC, wallet creation/funding and settlement
|
|
53
|
+
examples with the public API, and typecheck the actual onboarding snippets against it.
|
|
54
|
+
|
|
55
|
+
- Clarify and test `FaucetClient.healthCheck()` as HTTP readiness, including false
|
|
56
|
+
for an unchecked caller classification on a live faucet; it is not a funding gate.
|
|
57
|
+
|
|
58
|
+
- Bound initial RPC connections and transaction watches; report terminal watch
|
|
59
|
+
statuses as unconfirmed, release subscriptions and preserve finalized-state recovery.
|
|
60
|
+
- Decode registry text as strict UTF-8 while retaining hash identities and surface lookup errors.
|
|
61
|
+
- Preserve faucet 503 status, refusal reason and server retry timing.
|
|
62
|
+
|
|
63
|
+
- Serve qualified retired FCU profiles through the ratified registry contract,
|
|
64
|
+
reject unqualified/emergency-paused execution, and require authenticated sold
|
|
65
|
+
history bounds that fit the complete quota and serving store before initialization.
|
|
66
|
+
- Verify FCU execution before pinning late or inconclusive output. Retain absolute
|
|
67
|
+
timing bounds and verified work across restart, reject contradictory refinements,
|
|
68
|
+
and preserve reservations and receipt checkpoints when verification fails.
|
|
69
|
+
|
|
70
|
+
### Changed
|
|
71
|
+
|
|
72
|
+
- Admit runtime spec 1014014 (built from b451ae9a2, PR #3744: `max_active_reservations_base` 4 to 400,
|
|
73
|
+
D-0540; call, storage and receipt encodings unchanged). Devnet has run it since block 3,105,608,
|
|
74
|
+
where every SDK client stopped with `RUNTIME_INCOMPATIBLE`; the exported range now ends at
|
|
75
|
+
1014014 and still admits only the listed versions.
|
|
76
|
+
|
|
77
|
+
- `buyInferenceSession` now requires a persisted purchase intent or an awaited
|
|
78
|
+
`onPrepared` callback. `prepareInferenceSession` exposes the channel nonce, identity
|
|
79
|
+
and receipt key before submission. Retries retain that identity and stop on an
|
|
80
|
+
existing finalized channel instead of replaying off-chain turns. This API tightening
|
|
81
|
+
requires a breaking-change release; do not republish the existing version.
|
|
82
|
+
|
|
83
|
+
- Qualify candidate runtime 1,014,013 additive native FCU profile/status calls with
|
|
84
|
+
actual metadata codec checks; keep unsupported future versions rejected.
|
|
85
|
+
|
|
86
|
+
## [0.4.0] - 2026-10-28
|
|
87
|
+
|
|
88
|
+
### Added
|
|
89
|
+
|
|
90
|
+
- List, fill and cancel whole FCU holder-rights sales using exact native-FLOP
|
|
91
|
+
amounts, immutable listing identifiers and signed buyer budgets (spec1014009).
|
|
92
|
+
|
|
93
|
+
- `content-v1` model identity (D-0535): `preflightHuggingFace` builds a pinned revision's
|
|
94
|
+
`(path, size, sha256)` table, `content_root`, packed image size and DA chunk count from hub
|
|
95
|
+
metadata without downloading weights, refusing an LFS entry that has no SHA-256. Root configs
|
|
96
|
+
and the safetensors index are fetched even when LFS-stored, and checked against their hash.
|
|
97
|
+
`readSafetensorsHeaders` reads shard headers by Range, and `storedTensorElements` counts them.
|
|
98
|
+
- `fetchHuggingFaceToDir({ files })` checks each file against that table while it streams and
|
|
99
|
+
stops at the first mismatch.
|
|
100
|
+
- DA file table (`encodeModelFileTable`, `decodeModelFileTable`, `splitImage`): a DA mirror that
|
|
101
|
+
names a table loads the packed image back as files, each re-hashed. A table that does not hash
|
|
102
|
+
to the registered root is refused before the image is fetched.
|
|
103
|
+
- `rootScheme`, `normalizeRoot`, `paddedSize`, `contentRootOfEntries` and `DA_CHUNK_SIZE` exports.
|
|
104
|
+
- Candidate qualification lifecycle client with finalized status, bounded funding,
|
|
105
|
+
explicit miner acknowledgement, checker verdicts, cancellation and refunds.
|
|
106
|
+
- `parseMeteringConfig` labels three more FP8 declarations `fp8`, with the activation dtype
|
|
107
|
+
unchanged: `quant_method: compressed-tensors` (8-bit float weights per tensor, channel or block,
|
|
108
|
+
8-bit float or absent activations), `fbgemm_fp8`, and `quant_method: modelopt` with
|
|
109
|
+
`quant_algo: FP8` in `config.json`, which must agree with `hf_quant_config.json` when both are
|
|
110
|
+
present. Per-tensor `quant_method: fp8` without `weight_block_size` (AutoFP8, AMD Quark) is
|
|
111
|
+
labeled too. INT8, NVFP4, MXFP8, sparsity, rotation transforms and any unknown field still throw
|
|
112
|
+
a `ModelConfigError` naming the field.
|
|
113
|
+
- `computeChannel` meters the `layered-v1` architecture family: per-layer sliding-window or
|
|
114
|
+
full attention with dense or MoE (shared-expert) FFNs, under its own domain-tagged
|
|
115
|
+
`arch_hash`. `parseMeteringConfig` maps Mellum configs and fails closed on unknown
|
|
116
|
+
config keys, duplicate layer kinds, inconsistent window settings and the named deferred
|
|
117
|
+
families; `estimateSession` splits layered FLOPs.
|
|
118
|
+
- `MinerSessionInfo.image` carries the miner's reported image version and revision from
|
|
119
|
+
`/session/info`, when present.
|
|
120
|
+
- `computeChannel.notifyMinerPrepareRetirement` seals and certifies the exact
|
|
121
|
+
signed final claim without submitting settlement or paying the miner.
|
|
122
|
+
|
|
123
|
+
- Runtime-mirrored session DA allocation limits and fixed-width transcript signature validation. Production workers register evidence before signed RS publication and recheck full-dispute retention after proof generation.
|
|
124
|
+
|
|
125
|
+
- `runDirectSession` opens on a named miner using an offer or force-open, verifies receipts,
|
|
126
|
+
settles cooperatively with a forced fallback, and refunds failed opens.
|
|
127
|
+
|
|
128
|
+
- `computeChannel.sessionPrior` gives P50/P90/P99 of a session's `G_n` on a target arch, each with the recorded session at that rank, ready for `estimateSession`: it resamples 2,000 bundled whole sessions with a seeded PRNG and ranks their per-session `G_n` sums, optionally swapping in the exact first-prompt token count. `computeChannel.reforecastSession` updates those quantiles mid-run from the turns observed so far. The bundled bank comes from the CC-BY-4.0 `nebius/SWE-rebench-openhands-trajectories` dataset (attribution in `SESSION_PRIOR_SOURCE`); it reflects Qwen3-Coder on OpenHands over Python issues only. `computeChannel.calibrateSessionPrior` turns about ten probe sessions of the target configuration into a log offset on Σ `G_n`, shrunk toward an effort-flag prior (`EFFORT_OFFSET_PRIOR`, overridable strength); both functions require that calibration or an explicit `uncalibrated: true`, and report `calibrated` on the result.
|
|
129
|
+
- `computeChannel.estimateSession` sizes a session before opening it: per-turn and total `G_n` from the chain meter, the matmul/attention split, the minimum channel lifetime under the miner's calibration cap, how many channels the turn and duration bounds require, and each channel's escrow at a catalog `flop_per_gn`, raised to the chain's per-turn settlement tariff and a standing offer's `minEscrow`. `computeChannel.turnProfile` builds the per-turn profile from per-turn totals.
|
|
130
|
+
- `FeeEstimator` takes an optional `metering` input (`MeteredPricing`: arch, miner cap, catalog `flop_per_gn`, block time). With it, `estimateFee` prices the request with `computeChannel.estimateSession`, the escrow compute-channel settlement charges (`G_n × flop_per_gn`, raised to `minEscrowRaw` when given), and returns that result as `metered`. Selection helpers take `inputTokens`, `outputTokens` and `meteringByModel` (`MeteredSelection`).
|
|
131
|
+
- `meteredPricing` builds that `MeteredPricing` from its sources: the arch from the checkpoint's verified `config.json`, the cap from the miner's `/session/info` calibration, `flop_per_gn` (kept as the decimal string) from that miner's live catalog price, with `MeteredPricing.expiresAtMs` set to the earlier of that price's `expires_at` and the miner's calibration lease end (the fee estimators refuse pricing past it), and the runtime constants `babe.expectedBlockTime`, `computeChannel.basePerTurn` and `computeChannel.maxSettlementTurns` (`readMeteringChainParams`). It throws `FeeEstimationError` code `METERING_UNAVAILABLE` for an expired, not-yet-effective, zero, ambiguous or other-miner price, a miner whose `/session/info` is not ready, a calibration that is not ready, has no positive cap or has no unexpired lease, an unparsable config, or a miner whose served identity (hash, slug, registry model and version, precision, decode policy, backend model) differs from the catalog record; nothing is defaulted.
|
|
132
|
+
- `ModelDiscoveryService.meteringByModel(models)` prices discovered models through a `setMeteringProvider` source (`IMeteringSourceProvider`) and returns the priced `models`, their `meteringByModel` map for the budget paths, and the `withdrawn` models with reasons. With a budget, `autoSelectWithFeeEstimate`, `ModelDiscoveryService.selectWithBudget` (which now takes `MeteredSelection`) and the standalone `selectWithBudget` choose among the discovered candidates that have a `meteringByModel` entry whose price has not expired. They no longer price the top-ranked model first.
|
|
133
|
+
They also no longer pre-filter discovery by the size-based `maxCost` estimate, so the budget is compared only with the metered escrow.
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
|
|
137
|
+
- Qualify spec1014011 for funding-time FCU economic snapshots; future/gap
|
|
138
|
+
runtime versions continue to reject. Forward call encodings remain unchanged.
|
|
139
|
+
|
|
140
|
+
- Qualify combined preactivation spec1014010; keep exact-version admission.
|
|
141
|
+
|
|
142
|
+
- Admit fractional-holder candidate spec1014008 after actual-metadata and
|
|
143
|
+
compatibility checks; unqualified gaps and future versions still reject.
|
|
144
|
+
|
|
145
|
+
- Forward draw calls and aggregate-allocation events use integer u128 units;
|
|
146
|
+
forward signing domains advance to v3. Terms carry quota and durationSeconds.
|
|
147
|
+
Six-decimal FCU parsing and formatting use integer atoms without rounding.
|
|
148
|
+
- Support the preactivation integer-accounting candidate 1.14.7 / spec 1014007
|
|
149
|
+
(transaction version 2). Unqualified gap/future runtime versions stay rejected.
|
|
150
|
+
|
|
151
|
+
- Admit source candidate 1.14.5 / spec 1,014,005 for the preactivation FCU
|
|
152
|
+
name replacement; retain exact-version admission and reject unqualified upgrades.
|
|
153
|
+
|
|
154
|
+
- `verifyModelWeights`, `verifyModelDir`, `verifyMirror` and `loadVerifiedModel` accept a
|
|
155
|
+
registered root equal to either the content root (`content-v1`) or the dm-verity root
|
|
156
|
+
(`verity-v1`). Results report the matched `scheme` and add `computedContentRoot`.
|
|
157
|
+
`expectedVerityRoot` keeps its name and now holds the registered root under either scheme.
|
|
158
|
+
`verifyMirror` checks a Hugging Face repo against its published sha256 table while it downloads.
|
|
159
|
+
- Source compatibility with candidate runtime 1.14.4 / spec 1,014,004 while
|
|
160
|
+
retaining the previously qualified runtime versions.
|
|
161
|
+
- Licensed under `MIT OR Apache-2.0`, at your option (previously Apache-2.0 only). `LICENSE` carries both texts.
|
|
162
|
+
- **Breaking:** every budget decision now needs metering. `estimateFee` with `maxBudget` throws `FeeEstimationError` code `METERING_REQUIRED` when `metering` is absent, and `TOKEN_SPLIT_REQUIRED` when `metering` lacks explicit `inputTokens`/`outputTokens`. The same applies to `selectWithinBudget`, `selectModelWithinBudget`, `estimateInferenceFee`, `autoSelectWithFeeEstimate` and `selectWithBudget` whenever they get a budget. The token-rate tables priced an 8B model about 480× below metered cost (at the runtime base price of 0.003 FLOP/`G_n`), so their `withinBudget: true` approved work the budget could not cover. Without metering, estimates remain display-only.
|
|
163
|
+
- Metered fees have no priority, congestion, network-fee or floor terms, and do not include channel transaction fees. `minFee`, `maxFee` and `recommendedFee` equal the escrow. Budgets are compared in raw units against the exact escrow (`escrowRaw`, which includes a standing offer's `minEscrowRaw`).
|
|
164
|
+
|
|
165
|
+
- The Virtuals ACP bridge passes the gateway executor a job-scoped `X-Correlation-ID`
|
|
166
|
+
(`<request id>:job`) as a new optional fourth `FlopInferenceExecutor` argument, in place of
|
|
167
|
+
the per-request id. It is stable across delivery retries and differs per job, so the
|
|
168
|
+
gateway labels each ACP job as one task. An executor called without it sends no
|
|
169
|
+
correlation id.
|
|
170
|
+
|
|
171
|
+
### Fixed
|
|
172
|
+
|
|
173
|
+
- `sealForwardBidClaims` accepts both the durable registration seal and the later entropy-ready seal event. Call it again after BABE entropy becomes available before revealing a claim.
|
|
174
|
+
- `parseMeteringConfig` labels a block `quant_method: fp8` (with `weight_block_size`) only in the
|
|
175
|
+
reviewed Qwen layout: `activation_scheme: dynamic`, optional `fmt: e4m3`,
|
|
176
|
+
`weight_block_size: [128, 128]`, and `modules_to_not_convert` limited to `lm_head`, the norms and
|
|
177
|
+
the MoE router. Any other key or value, such as DeepSeek-V4.1's `expert_dtype: fp4`, now throws a
|
|
178
|
+
`ModelConfigError` naming the field instead of labelling the checkpoint plain 8-bit FP8.
|
|
179
|
+
- `submitTx`, the agent-wallet `submitTx` and `FlopClient.submitAndWait` reject with
|
|
180
|
+
`CircuitBreakerTrippedError` (code `CIRCUIT_BREAKER_TRIPPED`) when the extrinsic emits
|
|
181
|
+
`flopSessionKeys.CircuitBreakerTripped`. The runtime now returns `Ok` for the tripping call
|
|
182
|
+
so its latch persists; without this check the SDK would report it as a completed payment.
|
|
183
|
+
- Resumable Hugging Face downloads sync staged files through a writable handle, so they no
|
|
184
|
+
longer fail with `EPERM` on Windows.
|
|
185
|
+
- Model registry readers accept query-only finalized views, allowing cold model loading to keep checkpoint and architecture approval on one snapshot.
|
|
186
|
+
- `parseMeteringConfig` reads NVIDIA ModelOpt `hf_quant_config.json` as a second argument: FP8 is labeled `fp8`, any other declared algorithm or a disagreement with `config.json` throws, so such checkpoints are no longer metered as unquantized BF16. Model-loader results (`VerificationResult`, `LoadVerifiedModelResult`, `MeasuredDir`, `inspectHuggingFace`) carry the file from the verified read, or `null` when the tree has none.
|
|
187
|
+
- **Breaking:** `MeteringModelSources` requires `hfQuantConfigJson` (bytes or `null`). `meteredPricing` withdraws pricing (`METERING_UNAVAILABLE`) when it is missing or names an algorithm the meter cannot label.
|
|
188
|
+
|
|
189
|
+
- Named-miner sessions send a 256-token completion budget by default instead of allowing
|
|
190
|
+
backend context-length generation to exceed the turn deadline. `maxTokens` overrides it
|
|
191
|
+
and rejects invalid values before chain access. Settlement waits for finalized calibration
|
|
192
|
+
allowance, rechecks cap changes before forced fallback, and refunds expired channels even
|
|
193
|
+
after verified output. Cooperative delivery and concurrent finalized-event discovery share
|
|
194
|
+
one 60-second deadline instead of an unbounded sequential catch-up scan.
|
|
195
|
+
- Admit runtime spec 1014003 (built from 903545036, PR #3096: compute-channel `register_session_evidence` (call 41) with its event, errors, storage map and `MaxSessionActivationBytes` constant; existing pallet, call and storage indices and encodings unchanged) alongside 1013000, 1014000, 1014001 and 1014002. Devnet has run it since block 1,841,098, where every SDK client stopped with `RUNTIME_INCOMPATIBLE`; the exported range now ends at 1014003 and still admits only the listed versions.
|
|
196
|
+
- Admit runtime spec 1014002 (the #2637 devnet fast path: the devnet build verifies dense-GDN hybrid metering receipts under a bounded weight) alongside 1013000, 1014000 and 1014001, so clients keep working across the devnet upgrade; the exported range now ends at 1014002 and still admits only the listed versions.
|
|
197
|
+
- Admit runtime spec 1014001 (built from de4e2779d, PR #2803: staking freezes, sponsored registration bonds, matured-only unbonding release) alongside 1013000 and 1014000, so clients keep working across the devnet upgrade; the exported range now ends at 1014001 and still admits only the listed versions.
|
|
198
|
+
|
|
199
|
+
### Deprecated
|
|
200
|
+
|
|
201
|
+
- `BASE_COST_PER_1K_TOKENS` and the `gflops` option (fixed 0.01 FLOP/GFLOP). `gflops` is rejected together with `metering`.
|
|
202
|
+
|
|
203
|
+
## [0.3.0] - 2026-10-16
|
|
204
|
+
|
|
205
|
+
### Removed
|
|
206
|
+
|
|
207
|
+
- Vendored x402 batch-voucher API, which did not implement cryptographic signing or verification.
|
|
208
|
+
|
|
209
|
+
### Fixed
|
|
210
|
+
|
|
211
|
+
- Admit exactly the qualified runtime specs 1013000 and 1014000 (registrar PR #2726), including live upgrades; exported bounds describe the envelope and do not admit intermediate or unqualified versions.
|
|
212
|
+
|
|
213
|
+
- The Virtuals ACP bridge names a pooled `pending` gateway checkpoint instead of reporting a missing settlement receipt; per-request settlement for API keys is #2733.
|
|
214
|
+
- `require("@flop-labs/sdk")` and the `./browser` require condition load the UMD bundle as
|
|
215
|
+
CommonJS (`dist/bundle/index.umd.cjs`). Under the package's `"type": "module"` the `.js`
|
|
216
|
+
bundle loaded as an ES module and exported nothing.
|
|
217
|
+
- `flop-client-gen --help` prints its usage and exits 0.
|
|
218
|
+
- Reject unsupported runtime spec versions on connect and runtime upgrades; generated clients check compatibility by default.
|
|
219
|
+
- Preserve opaque paid-memory policy scope bytes when constructing native SCALE storage keys.
|
|
220
|
+
- Config-only hybrid candidates leave complete checkpoint parameter totals unknown while preserving active text metering; registration requires a stored-parameter census.
|
|
221
|
+
- Require the existing GET/PUT operation authentication before cached completion
|
|
222
|
+
and transactionally reread completion or retirement, rejecting unsupported kinds.
|
|
223
|
+
- Complete retained paid GET content from authenticated historical admission/head,
|
|
224
|
+
issuance and result records when fresh admission is unavailable. Failed requests
|
|
225
|
+
retain their full exposure; legacy records retain their original replay contract.
|
|
226
|
+
- Reject fresh PUT CPU capacities below the native placement's eight-unit minimum
|
|
227
|
+
held allowance without assuming provider coefficients or complete feasibility.
|
|
228
|
+
- Continue reconciling later original signed GET capsules after a classified HTTP
|
|
229
|
+
failure or corrupt response, retaining failed capsules and propagating local
|
|
230
|
+
integrity, storage and cancellation failures.
|
|
231
|
+
|
|
232
|
+
- Qualify fresh paid-memory PUTs against finalized payer work limits, including
|
|
233
|
+
shard ingress, placement-record/attestation disk writes, and the exact owner-auth
|
|
234
|
+
header plus all three signature attempts before payment-state persistence.
|
|
235
|
+
- Reconcile interrupted paid-memory GETs from authenticated original signed requests,
|
|
236
|
+
retaining verified ranges atomically with acknowledgements before result persistence.
|
|
237
|
+
- Refresh unpaid memory request contexts atomically with voucher issuance after a
|
|
238
|
+
context-only restart. Signed requests keep their exact original bytes; expired
|
|
239
|
+
voucher-only requests retain exposure and reject new owner signatures.
|
|
240
|
+
|
|
241
|
+
- Sampled TOPLOC checks bind selected activations to authenticated leaf hashes and
|
|
242
|
+
require the complete per-turn G_n sum to match the claimed aggregate. Quantum
|
|
243
|
+
planning carries overshoot without reusing one crossing turn across windows.
|
|
244
|
+
- Already accepted paid-memory CAS certificates can finish finalized proof acknowledgment
|
|
245
|
+
after policy revocation without new signatures, shard work or CAS propagation. Recovery
|
|
246
|
+
requires producer-authenticated context and intact original payment accounting; legacy
|
|
247
|
+
or uncertified writes still require fresh admission.
|
|
248
|
+
|
|
249
|
+
- Completed degraded memory reads replay only client-authenticated original requests
|
|
250
|
+
after owner policy revocation, without fresh admission or replacement signing.
|
|
251
|
+
Legacy records without replay authority/capsules retain their unresolved lane fences.
|
|
252
|
+
|
|
253
|
+
- `getMinimumStake` returns the larger of the live validator baseline and
|
|
254
|
+
value-coupled floor, rejecting unavailable queries instead of reporting zero.
|
|
255
|
+
Registration guidance reflects the exact minimum bond and spendable surplus.
|
|
256
|
+
|
|
257
|
+
- HTLC creation returns the matching on-chain creation event ID for ordinary, work-bound, delegated, and cross-chain calls, allowing purchase receipts to compare canonical identities.
|
|
258
|
+
|
|
259
|
+
- Verified HTLC inference receipts require authenticated quote digests and work units. The quote hash is the stored hardware evidence digest; legacy and relayer settlements remain status records.
|
|
260
|
+
|
|
261
|
+
- TON claims check RPC chain time as well as the host clock before disclosing a
|
|
262
|
+
witness, preserving the expiry margin even when either clock lags.
|
|
263
|
+
- TON claim confirmation walks transaction history so later calls cannot hide a
|
|
264
|
+
successful payout, including inactive escrows whose latest transaction requires
|
|
265
|
+
archival history; retries retain exact witness and principal checks.
|
|
266
|
+
- Reference-work meters and session aggregation reject values outside their wire widths.
|
|
267
|
+
- The miner- and validator-staking clients now look pallets up under polkadot-js's
|
|
268
|
+
camelCase names (`minerStaking`, `blockRewards`, `validators`). Every staking
|
|
269
|
+
extrinsic threw, and every staking query read as empty: `getMinerInfo` returned
|
|
270
|
+
`null` for a registered miner.
|
|
271
|
+
- The `devnet` profile's RPC (`FLOP_NETWORK_PROFILES.devnet.rpc`, `FLOP_ENDPOINTS.devnet`)
|
|
272
|
+
now points at `wss://rpc.devnet.flop.network`, the public RPC of the devnet-ts chain
|
|
273
|
+
(genesis `0x99c172c0…8be2d631`), its faucet at `https://faucet.flop.network`, and its
|
|
274
|
+
gateway at the public `https://api.flop.network` instead of the tailnet-only
|
|
275
|
+
`http://gateway.ts.flop.network`. The previous RPC default, `ws://node.ts.flop.network:9944`,
|
|
276
|
+
was a single node that no longer exists.
|
|
277
|
+
- x402's type-only re-exports no longer become missing runtime exports when SDK
|
|
278
|
+
examples run directly through `tsx`.
|
|
279
|
+
- Miner registration checks now use the metadata-backed `minerStaking.miners`
|
|
280
|
+
storage accessor instead of the Rust-only `miner_info` getter name.
|
|
281
|
+
- secp256k1 adaptor signatures now use the Noble Curves v2 API and verify
|
|
282
|
+
pre-hashed inference digests without hashing them a second time.
|
|
283
|
+
- Session-owner HTLC execution now supplies the monotonic session nonce to
|
|
284
|
+
`executeViaSession`, matching the runtime's four-argument
|
|
285
|
+
`execute_via_session` extrinsic (INV-S01) so metadata encoding and submission
|
|
286
|
+
no longer fail before the HTLC is created. Adds `getSessionNonce`.
|
|
287
|
+
- `listSessions` now scans the full session map in bounded pages capped at
|
|
288
|
+
`filter.limit` (default 1000) instead of loading every entry at once, so an
|
|
289
|
+
unfiltered scan on a chain with many sessions cannot OOM or stall the caller.
|
|
290
|
+
|
|
291
|
+
### Added
|
|
292
|
+
|
|
293
|
+
- Optional `QuickStartConfig.referral` and `FaucetConfig.referral` codes forwarded to the faucet for first-funding attribution.
|
|
294
|
+
|
|
295
|
+
- Add successful every-turn TOPLOC replay claims and canonical historical verification of independently qualified quorum inclusion and positive standard-spot payment.
|
|
296
|
+
|
|
297
|
+
- Inactive Qwen3.8 hybrid descriptor and checked reference-work candidate with
|
|
298
|
+
shared source/profile commitments and rejection KATs. Existing paid admission
|
|
299
|
+
and ModelArch V1 remain unchanged.
|
|
300
|
+
|
|
301
|
+
- `inspectHuggingFace` resolves an immutable inventory and bounded config before weight transfer. `fetchHuggingFaceToDir` supports an external `resumeState` receipt with hashed file reuse and pending-rename crash recovery.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
- Opt-in miner turn-evidence persistence before transcript/fence mutation, for
|
|
305
|
+
private encrypted replay and retirement handoff without changing receipt bytes.
|
|
306
|
+
- Hash-verified whole-blob retrieval on `HttpValidatorDa` for watchtower DA reads
|
|
307
|
+
and the miner host's existing publication reuse checks.
|
|
308
|
+
- Value-proportional compute-channel audit planner and explicit sampled TOPLOC
|
|
309
|
+
watchtower mode using leaves bound to an independently authenticated settlement
|
|
310
|
+
final root, including force-settled co-signed prefixes with an unacked tail;
|
|
311
|
+
replay input bytes must match each authenticated leaf's input hash. Every-turn
|
|
312
|
+
checking remains the default (#2170).
|
|
313
|
+
- Experimental owner-only paid memory with client-side encrypted manifests/content,
|
|
314
|
+
single-parity coding, durable vouchers and authenticated head/checkpoint verification.
|
|
315
|
+
The DevnetUnratified profile is limited to valueless development networks.
|
|
316
|
+
|
|
317
|
+
- `FlopChainSubmitter` can wait for finality so shared signer lanes retain nonce ownership.
|
|
318
|
+
- `ChannelSession.chatTurn` accepts an optional durability callback after cryptographic
|
|
319
|
+
verification and before acknowledgements, allowing gateways to persist funding intent.
|
|
320
|
+
|
|
321
|
+
- HTLC creation accepts an explicit registered appraisal tuple (profile ID/version, model and measurement hashes) encoded as 100 SCALE bytes. Missing requirements and the old simulator value fail before submission.
|
|
322
|
+
|
|
323
|
+
- Optional HTLC work commitments and receipt claims through the authenticated redemption path; status reads expose the stored TEE quote digest. Claimant metadata alone is not verifier evidence.
|
|
324
|
+
|
|
325
|
+
- Solana Kit client for the native-SOL point-lock escrow, with finalized witness
|
|
326
|
+
reads and relayer sinks for Solana ↔ FLOP swaps (testnet only; unaudited).
|
|
327
|
+
- Opt-in structured chat v2 with signed rendering context, native token-ID
|
|
328
|
+
commitments, and receipt validation before accepting or acknowledging a turn.
|
|
329
|
+
- TON point-lock escrow client (`@flop-labs/sdk/ton`) and witness relayer sinks for
|
|
330
|
+
FLOP ↔ TON swaps using the same secp256k1 scalar, with required negotiated
|
|
331
|
+
funder, payee, principal and deadline terms in both relay directions and a
|
|
332
|
+
canonical initial-state address check before trusting escrow storage.
|
|
333
|
+
- `computeChannel.SessionChainSubmitter`: an agent key (session-keys delegate)
|
|
334
|
+
opens and recovers compute channels for an owner wallet by wrapping each call in
|
|
335
|
+
`execute_via_session`. The owner is the channel's agent and funds the escrow; the
|
|
336
|
+
delegate pays fees. Escrow and top-ups are declared as session spend, and calls
|
|
337
|
+
without a declared spend are refused.
|
|
338
|
+
- Opt-in current x402 v2 A2A extension declaration for cards whose task-payment
|
|
339
|
+
handler is live.
|
|
340
|
+
- Public `@flop-labs/sdk/a2a` export for server-side Agent Card serialization.
|
|
341
|
+
- Virtuals ACP v2 provider bridge for idempotent verified-inference delivery via
|
|
342
|
+
the existing FLOP gateway/x402 path, gated on the gateway's `x_flop_receipt`
|
|
343
|
+
compute-channel settlement evidence (model identity, channel/settlement
|
|
344
|
+
references, and charge conservation).
|
|
345
|
+
- Versioned generated-client profiles, a fail-closed capability factory, deterministic
|
|
346
|
+
TypeScript generator, and maintained chat/publisher/operator templates. The factory
|
|
347
|
+
returns a client only once chain identity is verified by a genesis pin or a live
|
|
348
|
+
service comparison, and delegated sessions expose only capabilities whose writes
|
|
349
|
+
route through the session pallet.
|
|
350
|
+
- Provider-grade compute-channel chat envelopes, ordered output/tool-call frames,
|
|
351
|
+
and terminal receipts binding native token usage and model identity.
|
|
352
|
+
- Compute-channel standing-offer signing/opening plus `forceOpen`, `forceAck`,
|
|
353
|
+
and `expireForceOpen` chain-client parity.
|
|
354
|
+
- Bonded forward-CRU offer, bid/claim, divisible-unit transfer, shared-draw,
|
|
355
|
+
and pull-distribution helpers with fail-closed delegated-spend checks.
|
|
356
|
+
|
|
357
|
+
### Changed
|
|
358
|
+
|
|
359
|
+
- The package ships its README, changelog and license, and the README links to public
|
|
360
|
+
documentation instead of repository-only files.
|
|
361
|
+
- TON x402 payments require a gateway challenge id and payer in both the proof
|
|
362
|
+
and the transfer comment; the Telegram example sends this binding.
|
|
363
|
+
|
|
364
|
+
- ACP gateway model discovery uses the shared public HTTP client and structural
|
|
365
|
+
contracts, preserving anonymous requests, cancellation, and ACP failure codes.
|
|
366
|
+
|
|
367
|
+
- Compute-channel settlements now carry an explicit leaf version, use deployment-bound channel IDs
|
|
368
|
+
and tagged receipts, and persist FCC4 transcript records; malformed/legacy handling follows the
|
|
369
|
+
public Appendix F vector corpus.
|
|
370
|
+
- HTTP session transport now collects the verified chunk stream; Mode-A opens
|
|
371
|
+
require the committed agent key and authoritative on-chain channel state.
|
|
372
|
+
- Standing-offer and acceptance signers now require the target genesis hash,
|
|
373
|
+
preventing replay across chain generations and networks.
|
|
374
|
+
- Trust-root hardware calibration entries now expose aggregate host GPU
|
|
375
|
+
inventory as `(SKU, count)` pairs.
|
|
376
|
+
|
|
377
|
+
## [0.2.0] - 2026-07-24
|
|
378
|
+
|
|
379
|
+
### Added
|
|
380
|
+
|
|
381
|
+
- Canonical four-network profiles and endpoint inference.
|
|
382
|
+
- Faucet chain identity, explicit routing, and rate-limit metadata.
|
|
383
|
+
- On-chain session enumeration.
|
|
384
|
+
- Session-owner HTLC execution with fail-closed budget checks.
|
|
385
|
+
- Connected-client construction from decoded encrypted keypairs.
|
|
386
|
+
- High-level external signer support for extensions, WalletConnect, Ledger, and MPC.
|
|
387
|
+
- Correct Ledger payload encoding plus gated emulator signing coverage.
|
|
388
|
+
|
|
389
|
+
[Unreleased]: https://github.com/flop-labs/flop-core/compare/sdk-v0.3.0...HEAD
|
|
390
|
+
[0.3.0]: https://github.com/flop-labs/flop-core/compare/sdk-v0.2.0...sdk-v0.3.0
|
|
391
|
+
[0.2.0]: https://github.com/flop-labs/flop-core/compare/services-v0.0.0-devnet.20260724.2...sdk-v0.2.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
Copyright (c) 2025-2026 The FLOP Network Contributors
|
|
2
|
+
|
|
3
|
+
This package is licensed under either of
|
|
4
|
+
|
|
5
|
+
* the MIT license (first text below), or
|
|
6
|
+
* the Apache License, Version 2.0 (second text below)
|
|
7
|
+
|
|
8
|
+
at your option.
|
|
9
|
+
|
|
10
|
+
SPDX-License-Identifier: MIT OR Apache-2.0
|
|
11
|
+
|
|
12
|
+
================================================================================
|
|
13
|
+
|
|
14
|
+
MIT License
|
|
15
|
+
|
|
16
|
+
Copyright (c) 2025-2026 The FLOP Network Contributors
|
|
17
|
+
|
|
18
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
20
|
+
in the Software without restriction, including without limitation the rights
|
|
21
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
22
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
23
|
+
furnished to do so, subject to the following conditions:
|
|
24
|
+
|
|
25
|
+
The above copyright notice and this permission notice shall be included in all
|
|
26
|
+
copies or substantial portions of the Software.
|
|
27
|
+
|
|
28
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
29
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
30
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
31
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
32
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
33
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
34
|
+
SOFTWARE.
|
|
35
|
+
|
|
36
|
+
================================================================================
|
|
37
|
+
|
|
38
|
+
Apache License
|
|
39
|
+
Version 2.0, January 2004
|
|
40
|
+
http://www.apache.org/licenses/
|
|
41
|
+
|
|
42
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
43
|
+
|
|
44
|
+
1. Definitions.
|
|
45
|
+
|
|
46
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
47
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
48
|
+
|
|
49
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
50
|
+
the copyright owner that is granting the License.
|
|
51
|
+
|
|
52
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
53
|
+
other entities that control, are controlled by, or are under common
|
|
54
|
+
control with that entity. For the purposes of this definition,
|
|
55
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
56
|
+
direction or management of such entity, whether by contract or
|
|
57
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
58
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
59
|
+
|
|
60
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
61
|
+
exercising permissions granted by this License.
|
|
62
|
+
|
|
63
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
64
|
+
including but not limited to software source code, documentation
|
|
65
|
+
source, and configuration files.
|
|
66
|
+
|
|
67
|
+
"Object" form shall mean any form resulting from mechanical
|
|
68
|
+
transformation or translation of a Source form, including but
|
|
69
|
+
not limited to compiled object code, generated documentation,
|
|
70
|
+
and conversions to other media types.
|
|
71
|
+
|
|
72
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
73
|
+
Object form, made available under the License, as indicated by a
|
|
74
|
+
copyright notice that is included in or attached to the work
|
|
75
|
+
(an example is provided in the Appendix below).
|
|
76
|
+
|
|
77
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
78
|
+
form, that is based on (or derived from) the Work and for which the
|
|
79
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
80
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
81
|
+
of this License, Derivative Works shall not include works that remain
|
|
82
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
83
|
+
the Work and Derivative Works thereof.
|
|
84
|
+
|
|
85
|
+
"Contribution" shall mean any work of authorship, including
|
|
86
|
+
the original version of the Work and any modifications or additions
|
|
87
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
88
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
89
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
90
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
91
|
+
means any form of electronic, verbal, or written communication sent
|
|
92
|
+
to the Licensor or its representatives, including but not limited to
|
|
93
|
+
communication on electronic mailing lists, source code control systems,
|
|
94
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
95
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
96
|
+
excluding communication that is conspicuously marked or otherwise
|
|
97
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
98
|
+
|
|
99
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
100
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
101
|
+
subsequently incorporated within the Work.
|
|
102
|
+
|
|
103
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
104
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
105
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
106
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
107
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
108
|
+
Work and such Derivative Works in Source or Object form.
|
|
109
|
+
|
|
110
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
111
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
112
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
113
|
+
(except as stated in this section) patent license to make, have made,
|
|
114
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
115
|
+
where such license applies only to those patent claims licensable
|
|
116
|
+
by such Contributor that are necessarily infringed by their
|
|
117
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
118
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
119
|
+
institute patent litigation against any entity (including a
|
|
120
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
121
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
122
|
+
or contributory patent infringement, then any patent licenses
|
|
123
|
+
granted to You under this License for that Work shall terminate
|
|
124
|
+
as of the date such litigation is filed.
|
|
125
|
+
|
|
126
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
127
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
128
|
+
modifications, and in Source or Object form, provided that You
|
|
129
|
+
meet the following conditions:
|
|
130
|
+
|
|
131
|
+
(a) You must give any other recipients of the Work or
|
|
132
|
+
Derivative Works a copy of this License; and
|
|
133
|
+
|
|
134
|
+
(b) You must cause any modified files to carry prominent notices
|
|
135
|
+
stating that You changed the files; and
|
|
136
|
+
|
|
137
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
138
|
+
that You distribute, all copyright, patent, trademark, and
|
|
139
|
+
attribution notices from the Source form of the Work,
|
|
140
|
+
excluding those notices that do not pertain to any part of
|
|
141
|
+
the Derivative Works; and
|
|
142
|
+
|
|
143
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
144
|
+
distribution, then any Derivative Works that You distribute must
|
|
145
|
+
include a readable copy of the attribution notices contained
|
|
146
|
+
within such NOTICE file, excluding those notices that do not
|
|
147
|
+
pertain to any part of the Derivative Works, in at least one
|
|
148
|
+
of the following places: within a NOTICE text file distributed
|
|
149
|
+
as part of the Derivative Works; within the Source form or
|
|
150
|
+
documentation, if provided along with the Derivative Works; or,
|
|
151
|
+
within a display generated by the Derivative Works, if and
|
|
152
|
+
wherever such third-party notices normally appear. The contents
|
|
153
|
+
of the NOTICE file are for informational purposes only and
|
|
154
|
+
do not modify the License. You may add Your own attribution
|
|
155
|
+
notices within Derivative Works that You distribute, alongside
|
|
156
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
157
|
+
that such additional attribution notices cannot be construed
|
|
158
|
+
as modifying the License.
|
|
159
|
+
|
|
160
|
+
You may add Your own copyright statement to Your modifications and
|
|
161
|
+
may provide additional or different license terms and conditions
|
|
162
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
163
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
164
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
165
|
+
the conditions stated in this License.
|
|
166
|
+
|
|
167
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
168
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
169
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
170
|
+
this License, without any additional terms or conditions.
|
|
171
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
172
|
+
the terms of any separate license agreement you may have executed
|
|
173
|
+
with Licensor regarding such Contributions.
|
|
174
|
+
|
|
175
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
176
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
177
|
+
except as required for reasonable and customary use in describing the
|
|
178
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
179
|
+
|
|
180
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
181
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
182
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
183
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
184
|
+
implied, including, without limitation, any warranties or conditions
|
|
185
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
186
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
187
|
+
appropriateness of using or redistributing the Work and assume any
|
|
188
|
+
risks associated with Your exercise of permissions under this License.
|
|
189
|
+
|
|
190
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
191
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
192
|
+
unless required by applicable law (such as deliberate and grossly
|
|
193
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
194
|
+
liable to You for damages, including any direct, indirect, special,
|
|
195
|
+
incidental, or consequential damages of any character arising as a
|
|
196
|
+
result of this License or out of the use or inability to use the
|
|
197
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
198
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
199
|
+
other commercial damages or losses), even if such Contributor
|
|
200
|
+
has been advised of the possibility of such damages.
|
|
201
|
+
|
|
202
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
203
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
204
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
205
|
+
or other liability obligations and/or rights consistent with this
|
|
206
|
+
License. However, in accepting such obligations, You may act only
|
|
207
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
208
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
209
|
+
defend, and hold each Contributor harmless for any liability
|
|
210
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
211
|
+
of your accepting any such warranty or additional liability.
|
|
212
|
+
|
|
213
|
+
END OF TERMS AND CONDITIONS
|
|
214
|
+
|
|
215
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
216
|
+
|
|
217
|
+
To apply the Apache License to your work, attach the following
|
|
218
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
219
|
+
replaced with your own identifying information. (Don't include
|
|
220
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
221
|
+
comment syntax for the file format. We also recommend that a
|
|
222
|
+
file or class name and description of purpose be included on the
|
|
223
|
+
same "printed page" as the copyright notice for easier
|
|
224
|
+
identification within third-party archives.
|
|
225
|
+
|
|
226
|
+
Copyright [yyyy] [name of copyright owner]
|
|
227
|
+
|
|
228
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
229
|
+
you may not use this file except in compliance with the License.
|
|
230
|
+
You may obtain a copy of the License at
|
|
231
|
+
|
|
232
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
233
|
+
|
|
234
|
+
Unless required by applicable law or agreed to in writing, software
|
|
235
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
236
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
237
|
+
See the License for the specific language governing permissions and
|
|
238
|
+
limitations under the License.
|