mirror of
https://github.com/luxfi/precompile.git
synced 2026-09-24 00:26:21 +00:00
the corporate name is Lux Industries Inc
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// cross_chain_mining.go — atomic AI-mining claims for the 'AI'/'BLG' economy. Any L1/L2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// End-to-end tests for the atomic cross-chain mining methods. A mint is only
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package ai
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// achain_client.go — the precompile's handle to the node-LOCAL A-Chain (aivm)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// achain_submit_test.go — Pattern A (SubmitInferenceIntent) tests. Asserts: the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// achain_verify_test.go — Pattern B (VerifyInferenceReceipt) tests. The most
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// bridge.go — the dispatch + ABI decode for the two A-Chain inference bridge ops.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//go:build crossmodule
|
||||
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// crossmodule_test.go — RED-A cross-module byte-equality proof.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// decode_test.go — wire decode hardening for receipts, proofs, and the verify
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// errors.go — the bridge's error surface. Every error here makes the precompile
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// gas.go — flat, deterministic gas for the two bridge ops. Gas is a pure function
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// gas_test.go — gas accounting. Asserts the flat submit gas, the depth-scaled verify
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// harness_test.go — the shared test harness for the A-Chain inference bridge: a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// install_test.go — InstallAChainClient discipline: install-once (no late swap /
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// intent.go — the C->A inference INTENT and its deterministic id.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// module.go — the A-Chain inference BRIDGE precompile. It is a SEPARATE precompile
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// module_config_test.go — the module/config surface, the calldata refusal paths, and
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// native_achain_client.go is the C SIDE of the native C<->A inference seam — the
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// proof.go — the keccak merkle INCLUSION proof for a receipt under a committed
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// receipt.go — the A-Chain inference RECEIPT, its canonical encoding, and its hash.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// redteam_test.go — RED-A consensus-safety probes that go beyond Blue-A's own suite:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// state.go — the DURABLE C-side state of the inference bridge: the C->A OUTBOX
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// verify.go — the Pattern-B verification core. It is a PURE function of C-committed
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// wire_test.go — the SHARED WIRE SPEC cross-check. It pins intent_id and receipt_hash
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// zap_test.go — the ZAP transport is OFF the consensus-critical path. Asserts:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// blue — talk to Beluga's on-chain brain.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2024-2025, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2024-2025, Lux Industries Inc. All rights reserved.
|
||||
// See the file LICENSE for licensing terms.
|
||||
|
||||
package dead
|
||||
|
||||
+7
-7
@@ -15,9 +15,9 @@
|
||||
"fumadocs-mdx": "^14.1.1",
|
||||
"fumadocs-ui": "^16.0.0",
|
||||
"lucide-react": "^0.468.0",
|
||||
"next": "16.0.1",
|
||||
"react": "19.2.0",
|
||||
"react-dom": "19.2.0",
|
||||
"next": "16.3.3",
|
||||
"react": "19.2.8",
|
||||
"react-dom": "19.2.8",
|
||||
"shiki": "^1.27.2",
|
||||
"tailwind-merge": "^3.4.0",
|
||||
"tailwindcss": "^4.1.16",
|
||||
@@ -27,12 +27,12 @@
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4.1.16",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/react": "^19.0.1",
|
||||
"@types/react-dom": "^19.0.2",
|
||||
"@types/node": "26.4.0",
|
||||
"@types/react": "19.2.18",
|
||||
"@types/react-dom": "19.2.5",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"postcss": "^8.4.49",
|
||||
"typescript": "^5.7.2"
|
||||
"typescript": "7.0.2"
|
||||
},
|
||||
"packageManager": "[email protected]"
|
||||
}
|
||||
|
||||
+1
-1
@@ -174,5 +174,5 @@ contract PrivateBalance {
|
||||
|
||||
## License
|
||||
|
||||
Copyright (C) 2019-2024, Lux Partners Limited. All rights reserved.
|
||||
Copyright (C) 2019-2024, Lux Industries Inc. All rights reserved.
|
||||
See the file LICENSE for licensing terms.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2019-2024, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2019-2024, Lux Industries Inc. All rights reserved.
|
||||
// See the file LICENSE for licensing terms.
|
||||
|
||||
package fhe
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2019-2024, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2019-2024, Lux Industries Inc. All rights reserved.
|
||||
// See the file LICENSE for licensing terms.
|
||||
|
||||
// FHE operations for the EVM gateway precompile, backed by github.com/luxfi/fhe.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// fixture.go — the frozen reference model + prompt, identical to the C++/GPU fixture
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// Package inference is the deterministic int8 transformer that backs the AI-inference
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package inference
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// kernel_test.go — the integer kernels' edges: the two guards that stop a degenerate
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// luts.go — FROZEN integer LUTs, byte-identical to the GPU/C++ kernels
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// module.go — the AI-inference EVM precompile (0x0303), shared by the Lux/Zoo/Hanzo
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// module_config_test.go — the 0x0303 module surface: registration, the upgrade Config,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package inference
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
// Package modelregistry is the on-chain registry of the network's current AI model —
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package modelregistry
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package modelregistry
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (C) 2026, Lux Partners Limited. All rights reserved.
|
||||
// Copyright (C) 2026, Lux Industries Inc. All rights reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package modelregistry
|
||||
|
||||
Reference in New Issue
Block a user