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
|
|
|
|
}
|