diff --git a/bindings.go b/bindings.go index 12f84aa..b846579 100644 --- a/bindings.go +++ b/bindings.go @@ -718,12 +718,12 @@ func PilotPolicyGet(h C.uint64_t, networkID C.uint16_t) *C.char { } //export PilotPolicySet -func PilotPolicySet(h C.uint64_t, networkID C.uint16_t, policyJSON *C.char) *C.char { +func PilotPolicySet(h C.uint64_t, networkID C.uint16_t, policyJSON *C.char, adminToken *C.char) *C.char { d, err := driverFromHandle(h) if err != nil { return errJSON(err) } - r, err := d.PolicySet(uint16(networkID), []byte(C.GoString(policyJSON))) + r, err := d.PolicySet(uint16(networkID), []byte(C.GoString(policyJSON)), C.GoString(adminToken)) if err != nil { return errJSON(err) } diff --git a/go.mod b/go.mod index 5a889c1..d2d6651 100644 --- a/go.mod +++ b/go.mod @@ -4,16 +4,17 @@ go 1.25.10 require ( github.com/TeoSlayer/pilotprotocol v1.10.5 - github.com/pilot-protocol/common v0.4.3 - github.com/pilot-protocol/runtime v0.1.0 + github.com/pilot-protocol/common v0.4.8 + github.com/pilot-protocol/runtime v0.3.1 ) require ( github.com/coder/websocket v1.8.14 // indirect github.com/expr-lang/expr v1.17.8 // indirect - github.com/pilot-protocol/handshake v0.1.0 // indirect - github.com/pilot-protocol/policy v0.1.0 // indirect - github.com/pilot-protocol/trustedagents v0.1.0 // indirect + github.com/pilot-protocol/handshake v0.2.1 // indirect + github.com/pilot-protocol/policy v0.2.2 // indirect + github.com/pilot-protocol/trustedagents v0.2.3 // indirect + golang.org/x/sys v0.45.0 // indirect ) replace github.com/TeoSlayer/pilotprotocol => ../web4 diff --git a/go.sum b/go.sum index 54b0f43..219b302 100644 --- a/go.sum +++ b/go.sum @@ -2,3 +2,5 @@ github.com/coder/websocket v1.8.14 h1:9L0p0iKiNOibykf283eHkKUHHrpG7f65OE3BhhO7v9 github.com/coder/websocket v1.8.14/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg= github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM= github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4= +golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= +golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=