lotus/api/v0api/permissioned.go

15 lines
376 B
Go
Raw Permalink Normal View History

2021-03-25 14:09:50 +00:00
package v0api
import (
"github.com/filecoin-project/go-jsonrpc/auth"
2022-06-14 15:00:51 +00:00
2021-03-25 14:09:50 +00:00
"github.com/filecoin-project/lotus/api"
)
func PermissionedFullAPI(a FullNode) FullNode {
var out FullNodeStruct
auth.PermissionedProxy(api.AllPermissions, api.DefaultPerms, a, &out.Internal)
auth.PermissionedProxy(api.AllPermissions, api.DefaultPerms, a, &out.CommonStruct.Internal)
return &out
}