Documentation ¶
Overview ¶
Copyright © 2023 Glif LTD
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD ¶
Copyright © 2023 Glif LTD
Index ¶
- Variables
- func AddressOrAccountNameToEVM(ctx context.Context, addr string) (common.Address, error)
- func AddressOrAccountNameToNative(ctx context.Context, addr string) (address.Address, error)
- func AddressesToStrings(addrs []address.Address) []string
- func Execute()
- func Exit(code int)
- func ToMinerID(ctx context.Context, addr string) (address.Address, error)
- type GitHubRelease
- type GitHubTag
- type MockFullNodeAPI
- type PaymentType
- type PoolType
Constants ¶
This section is empty.
Variables ¶
var CommitHash, GoPoolsHash = func() (string, string) {
var ch string
if info, ok := debug.ReadBuildInfo(); ok {
for _, setting := range info.Settings {
if setting.Key == "vcs.revision" {
ch = setting.Value
}
}
for _, dep := range info.Deps {
if dep.Path == "github.com/glifio/go-pools" {
return ch, dep.Version
}
}
}
return "", ""
}()
var ExitCode int
var PoolsSDK types.PoolsSDK
Functions ¶
func AddressesToStrings ¶
func AddressesToStrings(addrs []address.Address) []string
Types ¶
type GitHubRelease ¶
type GitHubRelease struct { TagName string `json:"tag_name"` PreRelease bool `json:"prerelease"` Draft bool `json:"draft"` }
GitHubRelease represents the structure of the release object from GitHub's API
type GitHubTag ¶
type GitHubTag struct { Object struct { SHA string `json:"sha"` } `json:"object"` }
GitHubTag represents the structure of the tag object, which includes the commit hash
type MockFullNodeAPI ¶
func (*MockFullNodeAPI) StateGetActor ¶
func (*MockFullNodeAPI) StateLookupID ¶
type PaymentType ¶
type PaymentType int
const ( Principal PaymentType = iota ToCurrent Custom )
func ParsePaymentType ¶
func ParsePaymentType(s string) (PaymentType, error)
func (PaymentType) String ¶
func (p PaymentType) String() string
Source Files ¶
- agent.go
- agent_admin_set_recovered.go
- agent_autopilot.go
- agent_autopilot_info.go
- agent_borrow.go
- agent_create.go
- agent_exit.go
- agent_history.go
- agent_id.go
- agent_import.go
- agent_info.go
- agent_liquidation_value.go
- agent_miners.go
- agent_miners_add.go
- agent_miners_change_owner.go
- agent_miners_change_worker.go
- agent_miners_confirm_worker.go
- agent_miners_list.go
- agent_miners_pull.go
- agent_miners_push.go
- agent_miners_reclaim.go
- agent_miners_remove.go
- agent_pay.go
- agent_pay_current.go
- agent_pay_custom.go
- agent_pay_principal.go
- agent_refresh_routes.go
- agent_withdraw.go
- ifil.go
- ifil_allowance.go
- ifil_approve.go
- ifil_balanceof.go
- ifil_minter.go
- ifil_price.go
- ifil_supply.go
- ifil_transfer.go
- info.go
- infpool.go
- infpool_avail_liquidity.go
- infpool_deposit_fil.go
- infpool_exit_reserve.go
- infpool_get_account.go
- infpool_get_agent_level.go
- infpool_redeem.go
- infpool_tfees_owed.go
- infpool_total_assets.go
- infpool_total_borrowed.go
- infpool_total_earnings.go
- infpool_util_rate.go
- infpool_withdraw.go
- mocks.go
- root.go
- utils.go
- wallet.go
- wallet_balance.go
- wallet_change_passphrase.go
- wallet_create_account.go
- wallet_create_agent_accounts.go
- wallet_export_account.go
- wallet_forward_fil.go
- wallet_import_account_encrypted.go
- wallet_import_account_raw.go
- wallet_label_account.go
- wallet_list.go
- wallet_migrate.go
- wallet_rm_account.go
- wfil.go
- wfil_alllowance.go
- wfil_balanceof.go