From 2def92f87da6b233cca1a21d8075521346272245 Mon Sep 17 00:00:00 2001 From: Eric Mokaya <4112301+ziscky@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:13:46 +0300 Subject: [PATCH] feat: lotus v1.30.0-rc3 (#276) * feat: lotus v1.30.0-rc3 * feat: regen mocks * fix: use correct filecoin-lib version * test: update start and end blocks * chore: go mod tidy --- go.mod | 4 +- go.sum | 8 +- rosetta/services/mocks/fullnode_mock.go | 354 ++++++++++-------- .../tests/rosetta-config-PR-calibration.json | 4 +- 4 files changed, 196 insertions(+), 174 deletions(-) diff --git a/go.mod b/go.mod index 812b63d..9e43cfd 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/filecoin-project/go-f3 v0.7.1 github.com/filecoin-project/go-jsonrpc v0.6.0 github.com/filecoin-project/go-state-types v0.15.0-rc1 - github.com/filecoin-project/lotus v1.30.0-rc2 + github.com/filecoin-project/lotus v1.30.0-rc3 github.com/filecoin-project/specs-actors/v8 v8.0.1 github.com/google/uuid v1.6.0 github.com/ipfs/go-block-format v0.2.0 @@ -22,7 +22,7 @@ require ( github.com/multiformats/go-multihash v0.2.3 github.com/orcaman/concurrent-map v1.0.0 github.com/stretchr/testify v1.9.0 - github.com/zondax/rosetta-filecoin-lib v1.3000.1-rc2 + github.com/zondax/rosetta-filecoin-lib v1.3000.0-rc3 gotest.tools v2.2.0+incompatible ) diff --git a/go.sum b/go.sum index 566eabc..0c53498 100644 --- a/go.sum +++ b/go.sum @@ -127,8 +127,8 @@ github.com/filecoin-project/go-state-types v0.1.0/go.mod h1:ezYnPf0bNkTsDibL/psS github.com/filecoin-project/go-state-types v0.1.6/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q= github.com/filecoin-project/go-state-types v0.15.0-rc1 h1:tfXvhMAAo4jBQIEM1AjQzDCbwqvsxVMOLhIcDYf10fA= github.com/filecoin-project/go-state-types v0.15.0-rc1/go.mod h1:YcWoJE/24XGEL6w9FjUoMBu7+eHEkgwKnkGZkTBX9TE= -github.com/filecoin-project/lotus v1.30.0-rc2 h1:LLzMnb6dqxN5QHj4IAvDpFPYp8InXY8fvcTGr4uhpnw= -github.com/filecoin-project/lotus v1.30.0-rc2/go.mod h1:gXQFTK6OpJIjg2yWnYsf0awszREDffb/X+LPCDmZkwI= +github.com/filecoin-project/lotus v1.30.0-rc3 h1:pRMWd2TMWJbpWfj4jF4lbrnb7LD8+dcUonR0C0bLRw0= +github.com/filecoin-project/lotus v1.30.0-rc3/go.mod h1:A48LDh6u4h60SpcUQHgzKS66qA35hJNHut6uDvTO6ew= github.com/filecoin-project/specs-actors v0.9.13/go.mod h1:TS1AW/7LbG+615j4NsjMK1qlpAwaFsG9w0V2tg2gSao= github.com/filecoin-project/specs-actors v0.9.15-0.20220514164640-94e0d5e123bd/go.mod h1:pjGEe3QlWtK20ju/aFRsiArbMX6Cn8rqEhhsiCM9xYE= github.com/filecoin-project/specs-actors v0.9.15 h1:3VpKP5/KaDUHQKAMOg4s35g/syDaEBueKLws0vbsjMc= @@ -713,8 +713,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zondax/rosetta-filecoin-lib v1.3000.1-rc2 h1:53Yb9/7kiFb8UkP99JTlBUqf+tobZ0Rv2MImoOgBl6M= -github.com/zondax/rosetta-filecoin-lib v1.3000.1-rc2/go.mod h1:NqNqp8bBEd9r/QXhaVsBorEzEwuKGsWjzeeFzYHn7fU= +github.com/zondax/rosetta-filecoin-lib v1.3000.0-rc3 h1:IOgiHV1lgvWiXvcrSymOIg1qw3UR21A3oJuFbsjRgw8= +github.com/zondax/rosetta-filecoin-lib v1.3000.0-rc3/go.mod h1:igMoJOcuzhePAqFzmvgNPmznjSLq0iS479lizQTzXjg= gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b h1:CzigHMRySiX3drau9C6Q5CAbNIApmLdat5jPMqChvDA= gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b/go.mod h1:/y/V339mxv2sZmYYR64O07VuCpdNZqCTwO8ZcouTMI8= gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 h1:qwDnMxjkyLmAFgcfgTnfJrmYKWhHnci3GjDqcZp1M3Q= diff --git a/rosetta/services/mocks/fullnode_mock.go b/rosetta/services/mocks/fullnode_mock.go index 221a44a..23d25f0 100644 --- a/rosetta/services/mocks/fullnode_mock.go +++ b/rosetta/services/mocks/fullnode_mock.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.43.2. DO NOT EDIT. +// Code generated by mockery v2.46.3. DO NOT EDIT. package mocks @@ -14,14 +14,10 @@ import ( auth "github.com/filecoin-project/go-jsonrpc/auth" - big "github.com/filecoin-project/go-state-types/big" - bitfield "github.com/filecoin-project/go-bitfield" blocks "github.com/ipfs/go-block-format" - builtinminer "github.com/filecoin-project/lotus/chain/actors/builtin/miner" - certs "github.com/filecoin-project/go-f3/certs" cid "github.com/ipfs/go-cid" @@ -48,7 +44,7 @@ import ( metrics "github.com/libp2p/go-libp2p/core/metrics" - miner "github.com/filecoin-project/go-state-types/builtin/v13/miner" + miner "github.com/filecoin-project/lotus/chain/actors/builtin/miner" mock "github.com/stretchr/testify/mock" @@ -66,9 +62,7 @@ import ( uuid "github.com/google/uuid" - v9miner "github.com/filecoin-project/go-state-types/builtin/v9/miner" - - verifreg "github.com/filecoin-project/go-state-types/builtin/v9/verifreg" + verifreg "github.com/filecoin-project/lotus/chain/actors/builtin/verifreg" ) // FullNode is an autogenerated mock type for the FullNode type @@ -859,22 +853,22 @@ func (_m *FullNode) ChainStatObj(ctx context.Context, obj cid.Cid, base cid.Cid) } // ChainTipSetWeight provides a mock function with given fields: _a0, _a1 -func (_m *FullNode) ChainTipSetWeight(_a0 context.Context, _a1 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) ChainTipSetWeight(_a0 context.Context, _a1 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { panic("no return value specified for ChainTipSetWeight") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1) } - if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, types.TipSetKey) error); ok { @@ -1249,24 +1243,22 @@ func (_m *FullNode) EthGetBlockByHash(ctx context.Context, blkHash ethtypes.EthH } // EthGetBlockByNumber provides a mock function with given fields: ctx, blkNum, fullTxInfo -func (_m *FullNode) EthGetBlockByNumber(ctx context.Context, blkNum string, fullTxInfo bool) (*ethtypes.EthBlock, error) { +func (_m *FullNode) EthGetBlockByNumber(ctx context.Context, blkNum string, fullTxInfo bool) (ethtypes.EthBlock, error) { ret := _m.Called(ctx, blkNum, fullTxInfo) if len(ret) == 0 { panic("no return value specified for EthGetBlockByNumber") } - var r0 *ethtypes.EthBlock + var r0 ethtypes.EthBlock var r1 error - if rf, ok := ret.Get(0).(func(context.Context, string, bool) (*ethtypes.EthBlock, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, string, bool) (ethtypes.EthBlock, error)); ok { return rf(ctx, blkNum, fullTxInfo) } - if rf, ok := ret.Get(0).(func(context.Context, string, bool) *ethtypes.EthBlock); ok { + if rf, ok := ret.Get(0).(func(context.Context, string, bool) ethtypes.EthBlock); ok { r0 = rf(ctx, blkNum, fullTxInfo) } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*ethtypes.EthBlock) - } + r0 = ret.Get(0).(ethtypes.EthBlock) } if rf, ok := ret.Get(1).(func(context.Context, string, bool) error); ok { @@ -2484,6 +2476,36 @@ func (_m *FullNode) F3IsRunning(ctx context.Context) (bool, error) { return r0, r1 } +// F3ListParticipants provides a mock function with given fields: ctx +func (_m *FullNode) F3ListParticipants(ctx context.Context) ([]api.F3Participant, error) { + ret := _m.Called(ctx) + + if len(ret) == 0 { + panic("no return value specified for F3ListParticipants") + } + + var r0 []api.F3Participant + var r1 error + if rf, ok := ret.Get(0).(func(context.Context) ([]api.F3Participant, error)); ok { + return rf(ctx) + } + if rf, ok := ret.Get(0).(func(context.Context) []api.F3Participant); ok { + r0 = rf(ctx) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]api.F3Participant) + } + } + + if rf, ok := ret.Get(1).(func(context.Context) error); ok { + r1 = rf(ctx) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // F3Participate provides a mock function with given fields: ctx, ticket func (_m *FullNode) F3Participate(ctx context.Context, ticket api.F3ParticipationTicket) (api.F3ParticipationLease, error) { ret := _m.Called(ctx, ticket) @@ -2543,22 +2565,22 @@ func (_m *FullNode) FilecoinAddressToEthAddress(ctx context.Context, p jsonrpc.R } // GasEstimateFeeCap provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) GasEstimateFeeCap(_a0 context.Context, _a1 *types.Message, _a2 int64, _a3 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) GasEstimateFeeCap(_a0 context.Context, _a1 *types.Message, _a2 int64, _a3 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { panic("no return value specified for GasEstimateFeeCap") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, *types.Message, int64, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, *types.Message, int64, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, *types.Message, int64, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, *types.Message, int64, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, *types.Message, int64, types.TipSetKey) error); ok { @@ -2599,22 +2621,22 @@ func (_m *FullNode) GasEstimateGasLimit(_a0 context.Context, _a1 *types.Message, } // GasEstimateGasPremium provides a mock function with given fields: _a0, nblocksincl, sender, gaslimit, tsk -func (_m *FullNode) GasEstimateGasPremium(_a0 context.Context, nblocksincl uint64, sender address.Address, gaslimit int64, tsk types.TipSetKey) (big.Int, error) { +func (_m *FullNode) GasEstimateGasPremium(_a0 context.Context, nblocksincl uint64, sender address.Address, gaslimit int64, tsk types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, nblocksincl, sender, gaslimit, tsk) if len(ret) == 0 { panic("no return value specified for GasEstimateGasPremium") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, uint64, address.Address, int64, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, uint64, address.Address, int64, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, nblocksincl, sender, gaslimit, tsk) } - if rf, ok := ret.Get(0).(func(context.Context, uint64, address.Address, int64, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, uint64, address.Address, int64, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, nblocksincl, sender, gaslimit, tsk) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, uint64, address.Address, int64, types.TipSetKey) error); ok { @@ -2793,7 +2815,7 @@ func (_m *FullNode) LogSetLevel(_a0 context.Context, _a1 string, _a2 string) err } // MarketAddBalance provides a mock function with given fields: ctx, wallet, addr, amt -func (_m *FullNode) MarketAddBalance(ctx context.Context, wallet address.Address, addr address.Address, amt big.Int) (cid.Cid, error) { +func (_m *FullNode) MarketAddBalance(ctx context.Context, wallet address.Address, addr address.Address, amt types.BigInt) (cid.Cid, error) { ret := _m.Called(ctx, wallet, addr, amt) if len(ret) == 0 { @@ -2802,16 +2824,16 @@ func (_m *FullNode) MarketAddBalance(ctx context.Context, wallet address.Address var r0 cid.Cid var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) (cid.Cid, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) (cid.Cid, error)); ok { return rf(ctx, wallet, addr, amt) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) cid.Cid); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) cid.Cid); ok { r0 = rf(ctx, wallet, addr, amt) } else { r0 = ret.Get(0).(cid.Cid) } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, big.Int) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, types.BigInt) error); ok { r1 = rf(ctx, wallet, addr, amt) } else { r1 = ret.Error(1) @@ -2821,22 +2843,22 @@ func (_m *FullNode) MarketAddBalance(ctx context.Context, wallet address.Address } // MarketGetReserved provides a mock function with given fields: ctx, addr -func (_m *FullNode) MarketGetReserved(ctx context.Context, addr address.Address) (big.Int, error) { +func (_m *FullNode) MarketGetReserved(ctx context.Context, addr address.Address) (types.BigInt, error) { ret := _m.Called(ctx, addr) if len(ret) == 0 { panic("no return value specified for MarketGetReserved") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address) (types.BigInt, error)); ok { return rf(ctx, addr) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address) types.BigInt); ok { r0 = rf(ctx, addr) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, address.Address) error); ok { @@ -2849,7 +2871,7 @@ func (_m *FullNode) MarketGetReserved(ctx context.Context, addr address.Address) } // MarketReleaseFunds provides a mock function with given fields: ctx, addr, amt -func (_m *FullNode) MarketReleaseFunds(ctx context.Context, addr address.Address, amt big.Int) error { +func (_m *FullNode) MarketReleaseFunds(ctx context.Context, addr address.Address, amt types.BigInt) error { ret := _m.Called(ctx, addr, amt) if len(ret) == 0 { @@ -2857,7 +2879,7 @@ func (_m *FullNode) MarketReleaseFunds(ctx context.Context, addr address.Address } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, big.Int) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.BigInt) error); ok { r0 = rf(ctx, addr, amt) } else { r0 = ret.Error(0) @@ -2867,7 +2889,7 @@ func (_m *FullNode) MarketReleaseFunds(ctx context.Context, addr address.Address } // MarketReserveFunds provides a mock function with given fields: ctx, wallet, addr, amt -func (_m *FullNode) MarketReserveFunds(ctx context.Context, wallet address.Address, addr address.Address, amt big.Int) (cid.Cid, error) { +func (_m *FullNode) MarketReserveFunds(ctx context.Context, wallet address.Address, addr address.Address, amt types.BigInt) (cid.Cid, error) { ret := _m.Called(ctx, wallet, addr, amt) if len(ret) == 0 { @@ -2876,16 +2898,16 @@ func (_m *FullNode) MarketReserveFunds(ctx context.Context, wallet address.Addre var r0 cid.Cid var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) (cid.Cid, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) (cid.Cid, error)); ok { return rf(ctx, wallet, addr, amt) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) cid.Cid); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) cid.Cid); ok { r0 = rf(ctx, wallet, addr, amt) } else { r0 = ret.Get(0).(cid.Cid) } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, big.Int) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, types.BigInt) error); ok { r1 = rf(ctx, wallet, addr, amt) } else { r1 = ret.Error(1) @@ -2895,7 +2917,7 @@ func (_m *FullNode) MarketReserveFunds(ctx context.Context, wallet address.Addre } // MarketWithdraw provides a mock function with given fields: ctx, wallet, addr, amt -func (_m *FullNode) MarketWithdraw(ctx context.Context, wallet address.Address, addr address.Address, amt big.Int) (cid.Cid, error) { +func (_m *FullNode) MarketWithdraw(ctx context.Context, wallet address.Address, addr address.Address, amt types.BigInt) (cid.Cid, error) { ret := _m.Called(ctx, wallet, addr, amt) if len(ret) == 0 { @@ -2904,16 +2926,16 @@ func (_m *FullNode) MarketWithdraw(ctx context.Context, wallet address.Address, var r0 cid.Cid var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) (cid.Cid, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) (cid.Cid, error)); ok { return rf(ctx, wallet, addr, amt) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) cid.Cid); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) cid.Cid); ok { r0 = rf(ctx, wallet, addr, amt) } else { r0 = ret.Get(0).(cid.Cid) } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, big.Int) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, types.BigInt) error); ok { r1 = rf(ctx, wallet, addr, amt) } else { r1 = ret.Error(1) @@ -3553,7 +3575,7 @@ func (_m *FullNode) MsigApprove(_a0 context.Context, _a1 address.Address, _a2 ui } // MsigApproveTxnHash provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8 -func (_m *FullNode) MsigApproveTxnHash(_a0 context.Context, _a1 address.Address, _a2 uint64, _a3 address.Address, _a4 address.Address, _a5 big.Int, _a6 address.Address, _a7 uint64, _a8 []byte) (*api.MessagePrototype, error) { +func (_m *FullNode) MsigApproveTxnHash(_a0 context.Context, _a1 address.Address, _a2 uint64, _a3 address.Address, _a4 address.Address, _a5 types.BigInt, _a6 address.Address, _a7 uint64, _a8 []byte) (*api.MessagePrototype, error) { ret := _m.Called(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8) if len(ret) == 0 { @@ -3562,10 +3584,10 @@ func (_m *FullNode) MsigApproveTxnHash(_a0 context.Context, _a1 address.Address, var r0 *api.MessagePrototype var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, address.Address, big.Int, address.Address, uint64, []byte) (*api.MessagePrototype, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, address.Address, types.BigInt, address.Address, uint64, []byte) (*api.MessagePrototype, error)); ok { return rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, address.Address, big.Int, address.Address, uint64, []byte) *api.MessagePrototype); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, address.Address, types.BigInt, address.Address, uint64, []byte) *api.MessagePrototype); ok { r0 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8) } else { if ret.Get(0) != nil { @@ -3573,7 +3595,7 @@ func (_m *FullNode) MsigApproveTxnHash(_a0 context.Context, _a1 address.Address, } } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, uint64, address.Address, address.Address, big.Int, address.Address, uint64, []byte) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, uint64, address.Address, address.Address, types.BigInt, address.Address, uint64, []byte) error); ok { r1 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8) } else { r1 = ret.Error(1) @@ -3613,7 +3635,7 @@ func (_m *FullNode) MsigCancel(_a0 context.Context, _a1 address.Address, _a2 uin } // MsigCancelTxnHash provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7 -func (_m *FullNode) MsigCancelTxnHash(_a0 context.Context, _a1 address.Address, _a2 uint64, _a3 address.Address, _a4 big.Int, _a5 address.Address, _a6 uint64, _a7 []byte) (*api.MessagePrototype, error) { +func (_m *FullNode) MsigCancelTxnHash(_a0 context.Context, _a1 address.Address, _a2 uint64, _a3 address.Address, _a4 types.BigInt, _a5 address.Address, _a6 uint64, _a7 []byte) (*api.MessagePrototype, error) { ret := _m.Called(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7) if len(ret) == 0 { @@ -3622,10 +3644,10 @@ func (_m *FullNode) MsigCancelTxnHash(_a0 context.Context, _a1 address.Address, var r0 *api.MessagePrototype var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, big.Int, address.Address, uint64, []byte) (*api.MessagePrototype, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, types.BigInt, address.Address, uint64, []byte) (*api.MessagePrototype, error)); ok { return rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, big.Int, address.Address, uint64, []byte) *api.MessagePrototype); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, uint64, address.Address, types.BigInt, address.Address, uint64, []byte) *api.MessagePrototype); ok { r0 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7) } else { if ret.Get(0) != nil { @@ -3633,7 +3655,7 @@ func (_m *FullNode) MsigCancelTxnHash(_a0 context.Context, _a1 address.Address, } } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, uint64, address.Address, big.Int, address.Address, uint64, []byte) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, uint64, address.Address, types.BigInt, address.Address, uint64, []byte) error); ok { r1 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7) } else { r1 = ret.Error(1) @@ -3643,7 +3665,7 @@ func (_m *FullNode) MsigCancelTxnHash(_a0 context.Context, _a1 address.Address, } // MsigCreate provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6 -func (_m *FullNode) MsigCreate(_a0 context.Context, _a1 uint64, _a2 []address.Address, _a3 abi.ChainEpoch, _a4 big.Int, _a5 address.Address, _a6 big.Int) (*api.MessagePrototype, error) { +func (_m *FullNode) MsigCreate(_a0 context.Context, _a1 uint64, _a2 []address.Address, _a3 abi.ChainEpoch, _a4 types.BigInt, _a5 address.Address, _a6 types.BigInt) (*api.MessagePrototype, error) { ret := _m.Called(_a0, _a1, _a2, _a3, _a4, _a5, _a6) if len(ret) == 0 { @@ -3652,10 +3674,10 @@ func (_m *FullNode) MsigCreate(_a0 context.Context, _a1 uint64, _a2 []address.Ad var r0 *api.MessagePrototype var r1 error - if rf, ok := ret.Get(0).(func(context.Context, uint64, []address.Address, abi.ChainEpoch, big.Int, address.Address, big.Int) (*api.MessagePrototype, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, uint64, []address.Address, abi.ChainEpoch, types.BigInt, address.Address, types.BigInt) (*api.MessagePrototype, error)); ok { return rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6) } - if rf, ok := ret.Get(0).(func(context.Context, uint64, []address.Address, abi.ChainEpoch, big.Int, address.Address, big.Int) *api.MessagePrototype); ok { + if rf, ok := ret.Get(0).(func(context.Context, uint64, []address.Address, abi.ChainEpoch, types.BigInt, address.Address, types.BigInt) *api.MessagePrototype); ok { r0 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6) } else { if ret.Get(0) != nil { @@ -3663,7 +3685,7 @@ func (_m *FullNode) MsigCreate(_a0 context.Context, _a1 uint64, _a2 []address.Ad } } - if rf, ok := ret.Get(1).(func(context.Context, uint64, []address.Address, abi.ChainEpoch, big.Int, address.Address, big.Int) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, uint64, []address.Address, abi.ChainEpoch, types.BigInt, address.Address, types.BigInt) error); ok { r1 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6) } else { r1 = ret.Error(1) @@ -3673,22 +3695,22 @@ func (_m *FullNode) MsigCreate(_a0 context.Context, _a1 uint64, _a2 []address.Ad } // MsigGetAvailableBalance provides a mock function with given fields: _a0, _a1, _a2 -func (_m *FullNode) MsigGetAvailableBalance(_a0 context.Context, _a1 address.Address, _a2 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) MsigGetAvailableBalance(_a0 context.Context, _a1 address.Address, _a2 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { panic("no return value specified for MsigGetAvailableBalance") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1, _a2) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, address.Address, types.TipSetKey) error); ok { @@ -3731,22 +3753,22 @@ func (_m *FullNode) MsigGetPending(_a0 context.Context, _a1 address.Address, _a2 } // MsigGetVested provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) MsigGetVested(_a0 context.Context, _a1 address.Address, _a2 types.TipSetKey, _a3 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) MsigGetVested(_a0 context.Context, _a1 address.Address, _a2 types.TipSetKey, _a3 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { panic("no return value specified for MsigGetVested") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, address.Address, types.TipSetKey, types.TipSetKey) error); ok { @@ -3787,7 +3809,7 @@ func (_m *FullNode) MsigGetVestingSchedule(_a0 context.Context, _a1 address.Addr } // MsigPropose provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6 -func (_m *FullNode) MsigPropose(_a0 context.Context, _a1 address.Address, _a2 address.Address, _a3 big.Int, _a4 address.Address, _a5 uint64, _a6 []byte) (*api.MessagePrototype, error) { +func (_m *FullNode) MsigPropose(_a0 context.Context, _a1 address.Address, _a2 address.Address, _a3 types.BigInt, _a4 address.Address, _a5 uint64, _a6 []byte) (*api.MessagePrototype, error) { ret := _m.Called(_a0, _a1, _a2, _a3, _a4, _a5, _a6) if len(ret) == 0 { @@ -3796,10 +3818,10 @@ func (_m *FullNode) MsigPropose(_a0 context.Context, _a1 address.Address, _a2 ad var r0 *api.MessagePrototype var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int, address.Address, uint64, []byte) (*api.MessagePrototype, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt, address.Address, uint64, []byte) (*api.MessagePrototype, error)); ok { return rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int, address.Address, uint64, []byte) *api.MessagePrototype); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt, address.Address, uint64, []byte) *api.MessagePrototype); ok { r0 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6) } else { if ret.Get(0) != nil { @@ -3807,7 +3829,7 @@ func (_m *FullNode) MsigPropose(_a0 context.Context, _a1 address.Address, _a2 ad } } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, big.Int, address.Address, uint64, []byte) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, types.BigInt, address.Address, uint64, []byte) error); ok { r1 = rf(_a0, _a1, _a2, _a3, _a4, _a5, _a6) } else { r1 = ret.Error(1) @@ -4723,7 +4745,7 @@ func (_m *FullNode) PaychCollect(_a0 context.Context, _a1 address.Address) (cid. } // PaychFund provides a mock function with given fields: ctx, from, to, amt -func (_m *FullNode) PaychFund(ctx context.Context, from address.Address, to address.Address, amt big.Int) (*api.ChannelInfo, error) { +func (_m *FullNode) PaychFund(ctx context.Context, from address.Address, to address.Address, amt types.BigInt) (*api.ChannelInfo, error) { ret := _m.Called(ctx, from, to, amt) if len(ret) == 0 { @@ -4732,10 +4754,10 @@ func (_m *FullNode) PaychFund(ctx context.Context, from address.Address, to addr var r0 *api.ChannelInfo var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) (*api.ChannelInfo, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) (*api.ChannelInfo, error)); ok { return rf(ctx, from, to, amt) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int) *api.ChannelInfo); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt) *api.ChannelInfo); ok { r0 = rf(ctx, from, to, amt) } else { if ret.Get(0) != nil { @@ -4743,7 +4765,7 @@ func (_m *FullNode) PaychFund(ctx context.Context, from address.Address, to addr } } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, big.Int) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, types.BigInt) error); ok { r1 = rf(ctx, from, to, amt) } else { r1 = ret.Error(1) @@ -4753,7 +4775,7 @@ func (_m *FullNode) PaychFund(ctx context.Context, from address.Address, to addr } // PaychGet provides a mock function with given fields: ctx, from, to, amt, opts -func (_m *FullNode) PaychGet(ctx context.Context, from address.Address, to address.Address, amt big.Int, opts api.PaychGetOpts) (*api.ChannelInfo, error) { +func (_m *FullNode) PaychGet(ctx context.Context, from address.Address, to address.Address, amt types.BigInt, opts api.PaychGetOpts) (*api.ChannelInfo, error) { ret := _m.Called(ctx, from, to, amt, opts) if len(ret) == 0 { @@ -4762,10 +4784,10 @@ func (_m *FullNode) PaychGet(ctx context.Context, from address.Address, to addre var r0 *api.ChannelInfo var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int, api.PaychGetOpts) (*api.ChannelInfo, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt, api.PaychGetOpts) (*api.ChannelInfo, error)); ok { return rf(ctx, from, to, amt, opts) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, big.Int, api.PaychGetOpts) *api.ChannelInfo); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, address.Address, types.BigInt, api.PaychGetOpts) *api.ChannelInfo); ok { r0 = rf(ctx, from, to, amt, opts) } else { if ret.Get(0) != nil { @@ -4773,7 +4795,7 @@ func (_m *FullNode) PaychGet(ctx context.Context, from address.Address, to addre } } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, big.Int, api.PaychGetOpts) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, address.Address, types.BigInt, api.PaychGetOpts) error); ok { r1 = rf(ctx, from, to, amt, opts) } else { r1 = ret.Error(1) @@ -4929,25 +4951,25 @@ func (_m *FullNode) PaychStatus(_a0 context.Context, _a1 address.Address) (*api. } // PaychVoucherAdd provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4 -func (_m *FullNode) PaychVoucherAdd(_a0 context.Context, _a1 address.Address, _a2 *paych.SignedVoucher, _a3 []byte, _a4 big.Int) (big.Int, error) { +func (_m *FullNode) PaychVoucherAdd(_a0 context.Context, _a1 address.Address, _a2 *paych.SignedVoucher, _a3 []byte, _a4 types.BigInt) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2, _a3, _a4) if len(ret) == 0 { panic("no return value specified for PaychVoucherAdd") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, *paych.SignedVoucher, []byte, big.Int) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, *paych.SignedVoucher, []byte, types.BigInt) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2, _a3, _a4) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, *paych.SignedVoucher, []byte, big.Int) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, *paych.SignedVoucher, []byte, types.BigInt) types.BigInt); ok { r0 = rf(_a0, _a1, _a2, _a3, _a4) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, *paych.SignedVoucher, []byte, big.Int) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, *paych.SignedVoucher, []byte, types.BigInt) error); ok { r1 = rf(_a0, _a1, _a2, _a3, _a4) } else { r1 = ret.Error(1) @@ -5003,7 +5025,7 @@ func (_m *FullNode) PaychVoucherCheckValid(_a0 context.Context, _a1 address.Addr } // PaychVoucherCreate provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) PaychVoucherCreate(_a0 context.Context, _a1 address.Address, _a2 big.Int, _a3 uint64) (*api.VoucherCreateResult, error) { +func (_m *FullNode) PaychVoucherCreate(_a0 context.Context, _a1 address.Address, _a2 types.BigInt, _a3 uint64) (*api.VoucherCreateResult, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { @@ -5012,10 +5034,10 @@ func (_m *FullNode) PaychVoucherCreate(_a0 context.Context, _a1 address.Address, var r0 *api.VoucherCreateResult var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, big.Int, uint64) (*api.VoucherCreateResult, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.BigInt, uint64) (*api.VoucherCreateResult, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, big.Int, uint64) *api.VoucherCreateResult); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.BigInt, uint64) *api.VoucherCreateResult); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { if ret.Get(0) != nil { @@ -5023,7 +5045,7 @@ func (_m *FullNode) PaychVoucherCreate(_a0 context.Context, _a1 address.Address, } } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, big.Int, uint64) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, types.BigInt, uint64) error); ok { r1 = rf(_a0, _a1, _a2, _a3) } else { r1 = ret.Error(1) @@ -5313,23 +5335,23 @@ func (_m *FullNode) StateCall(_a0 context.Context, _a1 *types.Message, _a2 types } // StateChangedActors provides a mock function with given fields: _a0, _a1, _a2 -func (_m *FullNode) StateChangedActors(_a0 context.Context, _a1 cid.Cid, _a2 cid.Cid) (map[string]types.ActorV5, error) { +func (_m *FullNode) StateChangedActors(_a0 context.Context, _a1 cid.Cid, _a2 cid.Cid) (map[string]types.Actor, error) { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { panic("no return value specified for StateChangedActors") } - var r0 map[string]types.ActorV5 + var r0 map[string]types.Actor var r1 error - if rf, ok := ret.Get(0).(func(context.Context, cid.Cid, cid.Cid) (map[string]types.ActorV5, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, cid.Cid, cid.Cid) (map[string]types.Actor, error)); ok { return rf(_a0, _a1, _a2) } - if rf, ok := ret.Get(0).(func(context.Context, cid.Cid, cid.Cid) map[string]types.ActorV5); ok { + if rf, ok := ret.Get(0).(func(context.Context, cid.Cid, cid.Cid) map[string]types.Actor); ok { r0 = rf(_a0, _a1, _a2) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(map[string]types.ActorV5) + r0 = ret.Get(0).(map[string]types.Actor) } } @@ -5343,22 +5365,22 @@ func (_m *FullNode) StateChangedActors(_a0 context.Context, _a1 cid.Cid, _a2 cid } // StateCirculatingSupply provides a mock function with given fields: _a0, _a1 -func (_m *FullNode) StateCirculatingSupply(_a0 context.Context, _a1 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) StateCirculatingSupply(_a0 context.Context, _a1 types.TipSetKey) (abi.TokenAmount, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { panic("no return value specified for StateCirculatingSupply") } - var r0 big.Int + var r0 abi.TokenAmount var r1 error - if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) (abi.TokenAmount, error)); ok { return rf(_a0, _a1) } - if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) abi.TokenAmount); ok { r0 = rf(_a0, _a1) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(abi.TokenAmount) } if rf, ok := ret.Get(1).(func(context.Context, types.TipSetKey) error); ok { @@ -5517,23 +5539,23 @@ func (_m *FullNode) StateEncodeParams(ctx context.Context, toActCode cid.Cid, me } // StateGetActor provides a mock function with given fields: ctx, actor, tsk -func (_m *FullNode) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.ActorV5, error) { +func (_m *FullNode) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error) { ret := _m.Called(ctx, actor, tsk) if len(ret) == 0 { panic("no return value specified for StateGetActor") } - var r0 *types.ActorV5 + var r0 *types.Actor var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (*types.ActorV5, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (*types.Actor, error)); ok { return rf(ctx, actor, tsk) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) *types.ActorV5); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) *types.Actor); ok { r0 = rf(ctx, actor, tsk) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*types.ActorV5) + r0 = ret.Get(0).(*types.Actor) } } @@ -6289,22 +6311,22 @@ func (_m *FullNode) StateMinerAllocated(_a0 context.Context, _a1 address.Address } // StateMinerAvailableBalance provides a mock function with given fields: _a0, _a1, _a2 -func (_m *FullNode) StateMinerAvailableBalance(_a0 context.Context, _a1 address.Address, _a2 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) StateMinerAvailableBalance(_a0 context.Context, _a1 address.Address, _a2 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { panic("no return value specified for StateMinerAvailableBalance") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1, _a2) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, address.Address, types.TipSetKey) error); ok { @@ -6403,25 +6425,25 @@ func (_m *FullNode) StateMinerInfo(_a0 context.Context, _a1 address.Address, _a2 } // StateMinerInitialPledgeCollateral provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) StateMinerInitialPledgeCollateral(_a0 context.Context, _a1 address.Address, _a2 v9miner.SectorPreCommitInfo, _a3 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) StateMinerInitialPledgeCollateral(_a0 context.Context, _a1 address.Address, _a2 miner.SectorPreCommitInfo, _a3 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { panic("no return value specified for StateMinerInitialPledgeCollateral") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, v9miner.SectorPreCommitInfo, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, v9miner.SectorPreCommitInfo, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, v9miner.SectorPreCommitInfo, types.TipSetKey) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) error); ok { r1 = rf(_a0, _a1, _a2, _a3) } else { r1 = ret.Error(1) @@ -6431,22 +6453,22 @@ func (_m *FullNode) StateMinerInitialPledgeCollateral(_a0 context.Context, _a1 a } // StateMinerInitialPledgeForSector provides a mock function with given fields: ctx, sectorDuration, sectorSize, verifiedSize, tsk -func (_m *FullNode) StateMinerInitialPledgeForSector(ctx context.Context, sectorDuration abi.ChainEpoch, sectorSize abi.SectorSize, verifiedSize uint64, tsk types.TipSetKey) (big.Int, error) { +func (_m *FullNode) StateMinerInitialPledgeForSector(ctx context.Context, sectorDuration abi.ChainEpoch, sectorSize abi.SectorSize, verifiedSize uint64, tsk types.TipSetKey) (types.BigInt, error) { ret := _m.Called(ctx, sectorDuration, sectorSize, verifiedSize, tsk) if len(ret) == 0 { panic("no return value specified for StateMinerInitialPledgeForSector") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, abi.ChainEpoch, abi.SectorSize, uint64, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, abi.ChainEpoch, abi.SectorSize, uint64, types.TipSetKey) (types.BigInt, error)); ok { return rf(ctx, sectorDuration, sectorSize, verifiedSize, tsk) } - if rf, ok := ret.Get(0).(func(context.Context, abi.ChainEpoch, abi.SectorSize, uint64, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, abi.ChainEpoch, abi.SectorSize, uint64, types.TipSetKey) types.BigInt); ok { r0 = rf(ctx, sectorDuration, sectorSize, verifiedSize, tsk) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, abi.ChainEpoch, abi.SectorSize, uint64, types.TipSetKey) error); ok { @@ -6519,25 +6541,25 @@ func (_m *FullNode) StateMinerPower(_a0 context.Context, _a1 address.Address, _a } // StateMinerPreCommitDepositForPower provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) StateMinerPreCommitDepositForPower(_a0 context.Context, _a1 address.Address, _a2 v9miner.SectorPreCommitInfo, _a3 types.TipSetKey) (big.Int, error) { +func (_m *FullNode) StateMinerPreCommitDepositForPower(_a0 context.Context, _a1 address.Address, _a2 miner.SectorPreCommitInfo, _a3 types.TipSetKey) (types.BigInt, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { panic("no return value specified for StateMinerPreCommitDepositForPower") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, v9miner.SectorPreCommitInfo, types.TipSetKey) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) (types.BigInt, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, v9miner.SectorPreCommitInfo, types.TipSetKey) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) types.BigInt); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } - if rf, ok := ret.Get(1).(func(context.Context, address.Address, v9miner.SectorPreCommitInfo, types.TipSetKey) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) error); ok { r1 = rf(_a0, _a1, _a2, _a3) } else { r1 = ret.Error(1) @@ -6719,22 +6741,22 @@ func (_m *FullNode) StateNetworkName(_a0 context.Context) (dtypes.NetworkName, e } // StateNetworkVersion provides a mock function with given fields: _a0, _a1 -func (_m *FullNode) StateNetworkVersion(_a0 context.Context, _a1 types.TipSetKey) (go_state_typesnetwork.Version, error) { +func (_m *FullNode) StateNetworkVersion(_a0 context.Context, _a1 types.TipSetKey) (apitypes.NetworkVersion, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { panic("no return value specified for StateNetworkVersion") } - var r0 go_state_typesnetwork.Version + var r0 apitypes.NetworkVersion var r1 error - if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) (go_state_typesnetwork.Version, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) (apitypes.NetworkVersion, error)); ok { return rf(_a0, _a1) } - if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) go_state_typesnetwork.Version); ok { + if rf, ok := ret.Get(0).(func(context.Context, types.TipSetKey) apitypes.NetworkVersion); ok { r0 = rf(_a0, _a1) } else { - r0 = ret.Get(0).(go_state_typesnetwork.Version) + r0 = ret.Get(0).(apitypes.NetworkVersion) } if rf, ok := ret.Get(1).(func(context.Context, types.TipSetKey) error); ok { @@ -6837,23 +6859,23 @@ func (_m *FullNode) StateSearchMsg(ctx context.Context, from types.TipSetKey, ms } // StateSectorExpiration provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) StateSectorExpiration(_a0 context.Context, _a1 address.Address, _a2 abi.SectorNumber, _a3 types.TipSetKey) (*builtinminer.SectorExpiration, error) { +func (_m *FullNode) StateSectorExpiration(_a0 context.Context, _a1 address.Address, _a2 abi.SectorNumber, _a3 types.TipSetKey) (*miner.SectorExpiration, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { panic("no return value specified for StateSectorExpiration") } - var r0 *builtinminer.SectorExpiration + var r0 *miner.SectorExpiration var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*builtinminer.SectorExpiration, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*miner.SectorExpiration, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) *builtinminer.SectorExpiration); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) *miner.SectorExpiration); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*builtinminer.SectorExpiration) + r0 = ret.Get(0).(*miner.SectorExpiration) } } @@ -6897,23 +6919,23 @@ func (_m *FullNode) StateSectorGetInfo(_a0 context.Context, _a1 address.Address, } // StateSectorPartition provides a mock function with given fields: ctx, maddr, sectorNumber, tok -func (_m *FullNode) StateSectorPartition(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tok types.TipSetKey) (*builtinminer.SectorLocation, error) { +func (_m *FullNode) StateSectorPartition(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tok types.TipSetKey) (*miner.SectorLocation, error) { ret := _m.Called(ctx, maddr, sectorNumber, tok) if len(ret) == 0 { panic("no return value specified for StateSectorPartition") } - var r0 *builtinminer.SectorLocation + var r0 *miner.SectorLocation var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*builtinminer.SectorLocation, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*miner.SectorLocation, error)); ok { return rf(ctx, maddr, sectorNumber, tok) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) *builtinminer.SectorLocation); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) *miner.SectorLocation); ok { r0 = rf(ctx, maddr, sectorNumber, tok) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*builtinminer.SectorLocation) + r0 = ret.Get(0).(*miner.SectorLocation) } } @@ -6927,23 +6949,23 @@ func (_m *FullNode) StateSectorPartition(ctx context.Context, maddr address.Addr } // StateSectorPreCommitInfo provides a mock function with given fields: _a0, _a1, _a2, _a3 -func (_m *FullNode) StateSectorPreCommitInfo(_a0 context.Context, _a1 address.Address, _a2 abi.SectorNumber, _a3 types.TipSetKey) (*v9miner.SectorPreCommitOnChainInfo, error) { +func (_m *FullNode) StateSectorPreCommitInfo(_a0 context.Context, _a1 address.Address, _a2 abi.SectorNumber, _a3 types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) { ret := _m.Called(_a0, _a1, _a2, _a3) if len(ret) == 0 { panic("no return value specified for StateSectorPreCommitInfo") } - var r0 *v9miner.SectorPreCommitOnChainInfo + var r0 *miner.SectorPreCommitOnChainInfo var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*v9miner.SectorPreCommitOnChainInfo, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error)); ok { return rf(_a0, _a1, _a2, _a3) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) *v9miner.SectorPreCommitOnChainInfo); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) *miner.SectorPreCommitOnChainInfo); ok { r0 = rf(_a0, _a1, _a2, _a3) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*v9miner.SectorPreCommitOnChainInfo) + r0 = ret.Get(0).(*miner.SectorPreCommitOnChainInfo) } } @@ -6985,23 +7007,23 @@ func (_m *FullNode) StateVMCirculatingSupplyInternal(_a0 context.Context, _a1 ty } // StateVerifiedClientStatus provides a mock function with given fields: ctx, addr, tsk -func (_m *FullNode) StateVerifiedClientStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*big.Int, error) { +func (_m *FullNode) StateVerifiedClientStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, error) { ret := _m.Called(ctx, addr, tsk) if len(ret) == 0 { panic("no return value specified for StateVerifiedClientStatus") } - var r0 *big.Int + var r0 *abi.StoragePower var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (*big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (*abi.StoragePower, error)); ok { return rf(ctx, addr, tsk) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) *big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) *abi.StoragePower); ok { r0 = rf(ctx, addr, tsk) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*big.Int) + r0 = ret.Get(0).(*abi.StoragePower) } } @@ -7043,23 +7065,23 @@ func (_m *FullNode) StateVerifiedRegistryRootKey(ctx context.Context, tsk types. } // StateVerifierStatus provides a mock function with given fields: ctx, addr, tsk -func (_m *FullNode) StateVerifierStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*big.Int, error) { +func (_m *FullNode) StateVerifierStatus(ctx context.Context, addr address.Address, tsk types.TipSetKey) (*abi.StoragePower, error) { ret := _m.Called(ctx, addr, tsk) if len(ret) == 0 { panic("no return value specified for StateVerifierStatus") } - var r0 *big.Int + var r0 *abi.StoragePower var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (*big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) (*abi.StoragePower, error)); ok { return rf(ctx, addr, tsk) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) *big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address, types.TipSetKey) *abi.StoragePower); ok { r0 = rf(ctx, addr, tsk) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*big.Int) + r0 = ret.Get(0).(*abi.StoragePower) } } @@ -7367,22 +7389,22 @@ func (_m *FullNode) Version(_a0 context.Context) (api.APIVersion, error) { } // WalletBalance provides a mock function with given fields: _a0, _a1 -func (_m *FullNode) WalletBalance(_a0 context.Context, _a1 address.Address) (big.Int, error) { +func (_m *FullNode) WalletBalance(_a0 context.Context, _a1 address.Address) (types.BigInt, error) { ret := _m.Called(_a0, _a1) if len(ret) == 0 { panic("no return value specified for WalletBalance") } - var r0 big.Int + var r0 types.BigInt var r1 error - if rf, ok := ret.Get(0).(func(context.Context, address.Address) (big.Int, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address) (types.BigInt, error)); ok { return rf(_a0, _a1) } - if rf, ok := ret.Get(0).(func(context.Context, address.Address) big.Int); ok { + if rf, ok := ret.Get(0).(func(context.Context, address.Address) types.BigInt); ok { r0 = rf(_a0, _a1) } else { - r0 = ret.Get(0).(big.Int) + r0 = ret.Get(0).(types.BigInt) } if rf, ok := ret.Get(1).(func(context.Context, address.Address) error); ok { diff --git a/rosetta/tests/rosetta-config-PR-calibration.json b/rosetta/tests/rosetta-config-PR-calibration.json index 5da0648..1ab8268 100644 --- a/rosetta/tests/rosetta-config-PR-calibration.json +++ b/rosetta/tests/rosetta-config-PR-calibration.json @@ -29,9 +29,9 @@ "balance_tracking_disabled": false, "coin_tracking_disabled": false, "status_port": 9090, - "start_index": 2054579, + "start_index": 2112318, "end_conditions": { - "index": 2055079 + "index": 2113318 } } } \ No newline at end of file