mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
graphvm: G-Chain is read-only (graphql.go explicitly rejects `mutation`
operations). Wires NoUserTxPolicy{} so any attempted user-tx is refused
at the boundary. Field + Initialize gate added; fee.Validate ensures
the policy choice is sound at boot.
oraclevm + relayvm: these chains are thin re-export shims of the
canonical impls in luxfi/oracle/vm and luxfi/relay/vm (which already
have feegate.go). Added in-file pointers documenting where the gate
lives, so future readers don't add a duplicate stub here.
Closes the FeePolicy migration: every VM in luxfi/chains/ either has
its own feegate.go (8 VMs), points to the canonical impl (oraclevm +
relayvm), or is exempt via native gas (evm). The matrix at
node/CLAUDE.md FeePolicy section is now complete.
16 lines
641 B
Go
16 lines
641 B
Go
// Copyright (C) 2019-2026, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package relayvm
|
|
|
|
// FeePolicy lives at the canonical impl in luxfi/relay/vm. This package
|
|
// is a thin re-export shim (see relayvm.go header); the gate is wired
|
|
// there and re-exported via the type alias `VM = relayvm.VM`, so any
|
|
// caller that constructs a VM through this shim transitively gets the
|
|
// NoUserTxPolicy{} declared in ~/work/lux/relay/vm/feegate.go.
|
|
//
|
|
// See:
|
|
// - relayvm.go: re-export shim
|
|
// - ~/work/lux/relay/vm/feegate.go: canonical NoUserTxPolicy
|
|
// - ~/work/lux/node/CLAUDE.md FeePolicy section
|