mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
- k8s.io/{api,apimachinery,client-go} v0.35.1 → v0.36.1: fixes
autoscaling/v2beta1 + scheduling/v1alpha1 missing-package error
(api transitively bumped to v0.36.1 dropped them; client-go
v0.36.1 scheme/register.go matches).
- luxfi/gpu v1.0.1 → v1.0.4: ABI v14 mldsa_verify_batch /
slhdsa_verify_batch signatures (per-element msg_lens + msg_width_hint).
- internal/mocks/pclient.go: drop ExportKey method (sdk/api archived
in commit 99e0c5f; api.UserPass was tied to retired keystore API)
+ drop unused secp256k1 import.
The mock was autogenerated from a stale sdk/[email protected] — the api
package was extracted out of sdk in 2026-01 ("sdk: align API split").
ExportKey is dead code in cli; no caller exercises the mocked method.
141 lines
4.1 KiB
Go
141 lines
4.1 KiB
Go
// Code generated by mockery v2.26.1. DO NOT EDIT.
|
|
// Note: Mocks may need regeneration when API changes
|
|
|
|
package mocks
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/luxfi/ids"
|
|
"github.com/luxfi/rpc"
|
|
"github.com/luxfi/sdk/platformvm"
|
|
"github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// PClient is an autogenerated mock type for the PClient type
|
|
type PClient struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// GetCurrentValidators provides a mock function with given fields: ctx, chainID, nodeIDs, options
|
|
func (m *PClient) GetCurrentValidators(ctx context.Context, chainID ids.ID, nodeIDs []ids.NodeID, options ...rpc.Option) ([]platformvm.ClientPermissionlessValidator, error) {
|
|
args := []interface{}{ctx, chainID, nodeIDs}
|
|
for _, opt := range options {
|
|
args = append(args, opt)
|
|
}
|
|
ret := m.Called(args...)
|
|
|
|
var r0 []platformvm.ClientPermissionlessValidator
|
|
if rf, ok := ret.Get(0).(func(context.Context, ids.ID, []ids.NodeID) []platformvm.ClientPermissionlessValidator); ok {
|
|
r0 = rf(ctx, chainID, nodeIDs)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]platformvm.ClientPermissionlessValidator)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, ids.ID, []ids.NodeID) error); ok {
|
|
r1 = rf(ctx, chainID, nodeIDs)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// GetAtomicUTXOs provides a mock function with given fields: ctx, addrs, sourceChain, limit, startAddress, startUTXOID, options
|
|
func (m *PClient) GetAtomicUTXOs(ctx context.Context, addrs []ids.ShortID, sourceChain string, limit uint32, startAddress ids.ShortID, startUTXOID ids.ID, options ...rpc.Option) ([][]byte, ids.ShortID, ids.ID, error) {
|
|
args := []interface{}{ctx, addrs, sourceChain, limit, startAddress, startUTXOID}
|
|
for _, opt := range options {
|
|
args = append(args, opt)
|
|
}
|
|
ret := m.Called(args...)
|
|
|
|
var r0 [][]byte
|
|
if rf, ok := ret.Get(0).(func(context.Context, []ids.ShortID, string, uint32, ids.ShortID, ids.ID) [][]byte); ok {
|
|
r0 = rf(ctx, addrs, sourceChain, limit, startAddress, startUTXOID)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([][]byte)
|
|
}
|
|
}
|
|
|
|
var r1 ids.ShortID
|
|
if rf, ok := ret.Get(1).(func(context.Context, []ids.ShortID, string, uint32, ids.ShortID, ids.ID) ids.ShortID); ok {
|
|
r1 = rf(ctx, addrs, sourceChain, limit, startAddress, startUTXOID)
|
|
} else {
|
|
r1 = ret.Get(1).(ids.ShortID)
|
|
}
|
|
|
|
var r2 ids.ID
|
|
if rf, ok := ret.Get(2).(func(context.Context, []ids.ShortID, string, uint32, ids.ShortID, ids.ID) ids.ID); ok {
|
|
r2 = rf(ctx, addrs, sourceChain, limit, startAddress, startUTXOID)
|
|
} else {
|
|
r2 = ret.Get(2).(ids.ID)
|
|
}
|
|
|
|
var r3 error
|
|
if rf, ok := ret.Get(3).(func(context.Context, []ids.ShortID, string, uint32, ids.ShortID, ids.ID) error); ok {
|
|
r3 = rf(ctx, addrs, sourceChain, limit, startAddress, startUTXOID)
|
|
} else {
|
|
r3 = ret.Error(3)
|
|
}
|
|
|
|
return r0, r1, r2, r3
|
|
}
|
|
|
|
// GetBalance provides a mock function with given fields: ctx, addrs, options
|
|
func (m *PClient) GetBalance(ctx context.Context, addrs []ids.ShortID, options ...rpc.Option) (*platformvm.GetBalanceResponse, error) {
|
|
args := []interface{}{ctx, addrs}
|
|
for _, opt := range options {
|
|
args = append(args, opt)
|
|
}
|
|
ret := m.Called(args...)
|
|
|
|
var r0 *platformvm.GetBalanceResponse
|
|
if rf, ok := ret.Get(0).(func(context.Context, []ids.ShortID) *platformvm.GetBalanceResponse); ok {
|
|
r0 = rf(ctx, addrs)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*platformvm.GetBalanceResponse)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, []ids.ShortID) error); ok {
|
|
r1 = rf(ctx, addrs)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// GetBlock provides a mock function with given fields: ctx, blockID, options
|
|
func (m *PClient) GetBlock(ctx context.Context, blockID ids.ID, options ...rpc.Option) ([]byte, error) {
|
|
args := []interface{}{ctx, blockID}
|
|
for _, opt := range options {
|
|
args = append(args, opt)
|
|
}
|
|
ret := m.Called(args...)
|
|
|
|
var r0 []byte
|
|
if rf, ok := ret.Get(0).(func(context.Context, ids.ID) []byte); ok {
|
|
r0 = rf(ctx, blockID)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).([]byte)
|
|
}
|
|
}
|
|
|
|
var r1 error
|
|
if rf, ok := ret.Get(1).(func(context.Context, ids.ID) error); ok {
|
|
r1 = rf(ctx, blockID)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|