align SDK to v0.73.1
This commit is contained in:
parent
bdf6240ed8
commit
86d0678274
2 changed files with 110 additions and 68 deletions
|
@ -32,6 +32,7 @@ type Fee struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type File struct {
|
type File struct {
|
||||||
|
AddedOn int64 `json:"added_on"`
|
||||||
BlobsCompleted uint64 `json:"blobs_completed"`
|
BlobsCompleted uint64 `json:"blobs_completed"`
|
||||||
BlobsInStream uint64 `json:"blobs_in_stream"`
|
BlobsInStream uint64 `json:"blobs_in_stream"`
|
||||||
BlobsRemaining uint64 `json:"blobs_remaining"`
|
BlobsRemaining uint64 `json:"blobs_remaining"`
|
||||||
|
@ -46,12 +47,16 @@ type File struct {
|
||||||
DownloadPath string `json:"download_path"`
|
DownloadPath string `json:"download_path"`
|
||||||
FileName string `json:"file_name"`
|
FileName string `json:"file_name"`
|
||||||
Height int `json:"height"`
|
Height int `json:"height"`
|
||||||
|
IsFullyReflected bool `json:"is_fully_reflected"`
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
Metadata *lbryschema.Claim `json:"protobuf"`
|
Metadata *lbryschema.Claim `json:"protobuf"`
|
||||||
MimeType string `json:"mime_type"`
|
MimeType string `json:"mime_type"`
|
||||||
Nout int `json:"nout"`
|
Nout int `json:"nout"`
|
||||||
Outpoint string `json:"outpoint"`
|
Outpoint string `json:"outpoint"`
|
||||||
PointsPaid decimal.Decimal `json:"points_paid"`
|
PointsPaid decimal.Decimal `json:"points_paid"`
|
||||||
|
Protobuf string `json:"protobuf"`
|
||||||
|
PurchaseReceipt interface{} `json:"purchase_receipt"`
|
||||||
|
ReflectorProgress int `json:"reflector_progress"`
|
||||||
SdHash string `json:"sd_hash"`
|
SdHash string `json:"sd_hash"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Stopped bool `json:"stopped"`
|
Stopped bool `json:"stopped"`
|
||||||
|
@ -63,6 +68,7 @@ type File struct {
|
||||||
TotalBytes uint64 `json:"total_bytes"`
|
TotalBytes uint64 `json:"total_bytes"`
|
||||||
TotalBytesLowerBound uint64 `json:"total_bytes_lower_bound"`
|
TotalBytesLowerBound uint64 `json:"total_bytes_lower_bound"`
|
||||||
Txid string `json:"txid"`
|
Txid string `json:"txid"`
|
||||||
|
UploadingToReflector bool `json:"uploading_to_reflector"`
|
||||||
WrittenBytes uint64 `json:"written_bytes"`
|
WrittenBytes uint64 `json:"written_bytes"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,20 +189,6 @@ type FileListResponse struct {
|
||||||
TotalPages uint64 `json:"total_pages"`
|
TotalPages uint64 `json:"total_pages"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type WalletListResponse []string
|
|
||||||
|
|
||||||
type BlobAnnounceResponse bool
|
|
||||||
|
|
||||||
type WalletPrefillAddressesResponse struct {
|
|
||||||
Broadcast bool `json:"broadcast"`
|
|
||||||
Complete bool `json:"complete"`
|
|
||||||
Hex string `json:"hex"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type WalletNewAddressResponse string
|
|
||||||
|
|
||||||
type WalletUnusedAddressResponse string
|
|
||||||
|
|
||||||
type Account struct {
|
type Account struct {
|
||||||
AddressGenerator struct {
|
AddressGenerator struct {
|
||||||
Change struct {
|
Change struct {
|
||||||
|
@ -220,8 +212,8 @@ type Account struct {
|
||||||
Preferences *struct {
|
Preferences *struct {
|
||||||
Theme string `json:"theme"`
|
Theme string `json:"theme"`
|
||||||
} `json:"preferences,omitempty"`
|
} `json:"preferences,omitempty"`
|
||||||
PublicKey string `json:"public_key"`
|
|
||||||
PrivateKey *string `json:"private_key,omitempty"`
|
PrivateKey *string `json:"private_key,omitempty"`
|
||||||
|
PublicKey string `json:"public_key"`
|
||||||
Seed *string `json:"seed,omitempty"`
|
Seed *string `json:"seed,omitempty"`
|
||||||
Satoshis uint64 `json:"satoshis"`
|
Satoshis uint64 `json:"satoshis"`
|
||||||
}
|
}
|
||||||
|
@ -234,27 +226,37 @@ type AccountListResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type AccountBalanceResponse struct {
|
type AccountBalanceResponse struct {
|
||||||
Available decimal.Decimal `json:"available"`
|
Available decimal.Decimal `json:"available"`
|
||||||
Reserved decimal.Decimal `json:"reserved"`
|
Reserved decimal.Decimal `json:"reserved"`
|
||||||
ReservedSubtotals *decimal.Decimal `json:"reserved_subtotals"`
|
ReservedSubtotals struct {
|
||||||
Total decimal.Decimal `json:"total"`
|
Claims decimal.Decimal `json:"claims"`
|
||||||
|
Supports decimal.Decimal `json:"supports"`
|
||||||
|
Tips decimal.Decimal `json:"tips"`
|
||||||
|
} `json:"reserved_subtotals"`
|
||||||
|
Total decimal.Decimal `json:"total"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Transaction struct {
|
type Transaction struct {
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
Amount string `json:"amount"`
|
Amount string `json:"amount"`
|
||||||
ClaimID string `json:"claim_id"`
|
ClaimID string `json:"claim_id"`
|
||||||
Confirmations int `json:"confirmations"`
|
ClaimOp string `json:"claim_op"`
|
||||||
Height int `json:"height"`
|
Confirmations int `json:"confirmations"`
|
||||||
IsChange bool `json:"is_change"`
|
HasSigningKey bool `json:"has_signing_key"`
|
||||||
IsMine bool `json:"is_mine"`
|
Height int `json:"height"`
|
||||||
Name string `json:"name"`
|
IsInternalTransfer bool `json:"is_internal_transfer"`
|
||||||
Nout uint64 `json:"nout"`
|
IsMyInput bool `json:"is_my_input"`
|
||||||
PermanentUrl string `json:"permanent_url"`
|
IsMyOutput bool `json:"is_my_output"`
|
||||||
Protobuf string `json:"protobuf,omitempty"`
|
IsSpent bool `json:"is_spent"`
|
||||||
Txid string `json:"txid"`
|
Name string `json:"name"`
|
||||||
Type string `json:"type"`
|
NormalizedName string `json:"normalized_name"`
|
||||||
Value *lbryschema.Claim `json:"protobuf"`
|
Nout uint64 `json:"nout"`
|
||||||
|
PermanentUrl string `json:"permanent_url"`
|
||||||
|
TimeStamp uint64 `json:"time_stamp"`
|
||||||
|
Protobuf string `json:"protobuf,omitempty"`
|
||||||
|
Txid string `json:"txid"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Value *lbryschema.Claim `json:"protobuf"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TransactionSummary struct {
|
type TransactionSummary struct {
|
||||||
|
@ -313,6 +315,10 @@ type Claim struct {
|
||||||
Height int `json:"height"`
|
Height int `json:"height"`
|
||||||
IsChange bool `json:"is_change,omitempty"`
|
IsChange bool `json:"is_change,omitempty"`
|
||||||
IsChannelSignatureValid bool `json:"is_channel_signature_valid,omitempty"`
|
IsChannelSignatureValid bool `json:"is_channel_signature_valid,omitempty"`
|
||||||
|
IsInternalTransfer bool `json:"is_internal_transfer"`
|
||||||
|
IsMyInput bool `json:"is_my_input"`
|
||||||
|
IsMyOutput bool `json:"is_my_output"`
|
||||||
|
IsSpent bool `json:"is_spent"`
|
||||||
Meta Meta `json:"meta,omitempty"`
|
Meta Meta `json:"meta,omitempty"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
NormalizedName string `json:"normalized_name"`
|
NormalizedName string `json:"normalized_name"`
|
||||||
|
@ -431,7 +437,15 @@ type SupportListResponse struct {
|
||||||
|
|
||||||
type StatusResponse struct {
|
type StatusResponse struct {
|
||||||
BlobManager struct {
|
BlobManager struct {
|
||||||
FinishedBlobs uint64 `json:"finished_blobs"`
|
Connections struct {
|
||||||
|
MaxIncomingMbs float64 `json:"max_incoming_mbs"`
|
||||||
|
MaxOutgoingMbs float64 `json:"max_outgoing_mbs"`
|
||||||
|
TotalIncomingMbs float64 `json:"total_incoming_mbs"`
|
||||||
|
TotalOutgoingMbs float64 `json:"total_outgoing_mbs"`
|
||||||
|
TotalReceived int64 `json:"total_received"`
|
||||||
|
TotalSent int64 `json:"total_sent"`
|
||||||
|
} `json:"connections"`
|
||||||
|
FinishedBlobs int64 `json:"finished_blobs"`
|
||||||
} `json:"blob_manager"`
|
} `json:"blob_manager"`
|
||||||
ConnectionStatus struct {
|
ConnectionStatus struct {
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
|
@ -441,28 +455,33 @@ type StatusResponse struct {
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
PeersInRoutingTable uint64 `json:"peers_in_routing_table"`
|
PeersInRoutingTable uint64 `json:"peers_in_routing_table"`
|
||||||
} `json:"dht"`
|
} `json:"dht"`
|
||||||
|
FfmpegStatus struct {
|
||||||
|
AnalyzeAudioVolume bool `json:"analyze_audio_volume"`
|
||||||
|
Available bool `json:"available"`
|
||||||
|
Which string `json:"which"`
|
||||||
|
} `json:"ffmpeg_status"`
|
||||||
|
FileManager struct {
|
||||||
|
ManagedFiles int64 `json:"managed_files"`
|
||||||
|
} `json:"file_manager"`
|
||||||
HashAnnouncer struct {
|
HashAnnouncer struct {
|
||||||
AnnounceQueueSize uint64 `json:"announce_queue_size"`
|
AnnounceQueueSize uint64 `json:"announce_queue_size"`
|
||||||
} `json:"hash_announcer"`
|
} `json:"hash_announcer"`
|
||||||
InstallationID string `json:"installation_id"`
|
InstallationID string `json:"installation_id"`
|
||||||
IsFirstRun bool `json:"is_first_run"`
|
|
||||||
IsRunning bool `json:"is_running"`
|
IsRunning bool `json:"is_running"`
|
||||||
SkippedComponents []string `json:"skipped_components"`
|
SkippedComponents []string `json:"skipped_components"`
|
||||||
StartupStatus struct {
|
StartupStatus struct {
|
||||||
BlobManager bool `json:"blob_manager"`
|
BlobManager bool `json:"blob_manager"`
|
||||||
BlockchainHeaders bool `json:"blockchain_headers"`
|
Database bool `json:"database"`
|
||||||
Database bool `json:"database"`
|
Dht bool `json:"dht"`
|
||||||
Dht bool `json:"dht"`
|
ExchangeRateManager bool `json:"exchange_rate_manager"`
|
||||||
ExchangeRateManager bool `json:"exchange_rate_manager"`
|
FileManager bool `json:"file_manager"`
|
||||||
HashAnnouncer bool `json:"hash_announcer"`
|
HashAnnouncer bool `json:"hash_announcer"`
|
||||||
PeerProtocolServer bool `json:"peer_protocol_server"`
|
LibtorrentComponent bool `json:"libtorrent_component"`
|
||||||
StreamManager bool `json:"stream_manager"`
|
PeerProtocolServer bool `json:"peer_protocol_server"`
|
||||||
Upnp bool `json:"upnp"`
|
Upnp bool `json:"upnp"`
|
||||||
Wallet bool `json:"wallet"`
|
Wallet bool `json:"wallet"`
|
||||||
|
WalletServerPayments bool `json:"wallet_server_payments"`
|
||||||
} `json:"startup_status"`
|
} `json:"startup_status"`
|
||||||
StreamManager struct {
|
|
||||||
ManagedFiles int64 `json:"managed_files"`
|
|
||||||
} `json:"stream_manager"`
|
|
||||||
Upnp struct {
|
Upnp struct {
|
||||||
AioupnpVersion string `json:"aioupnp_version"`
|
AioupnpVersion string `json:"aioupnp_version"`
|
||||||
DhtRedirectSet bool `json:"dht_redirect_set"`
|
DhtRedirectSet bool `json:"dht_redirect_set"`
|
||||||
|
@ -470,14 +489,41 @@ type StatusResponse struct {
|
||||||
Gateway string `json:"gateway"`
|
Gateway string `json:"gateway"`
|
||||||
PeerRedirectSet bool `json:"peer_redirect_set"`
|
PeerRedirectSet bool `json:"peer_redirect_set"`
|
||||||
Redirects struct{} `json:"redirects"`
|
Redirects struct{} `json:"redirects"`
|
||||||
}
|
} `json:"upnp"`
|
||||||
Wallet struct {
|
Wallet struct {
|
||||||
BestBlochash string `json:"best_blockhash"`
|
AvailableServers int `json:"available_servers"`
|
||||||
Blocks int `json:"blocks"`
|
BestBlockhash string `json:"best_blockhash"`
|
||||||
BlocksBehind int `json:"blocks_behind"`
|
Blocks int `json:"blocks"`
|
||||||
IsEncrypted bool `json:"is_encrypted"`
|
BlocksBehind int `json:"blocks_behind"`
|
||||||
IsLocked bool `json:"is_locked"`
|
Connected string `json:"connected"`
|
||||||
|
ConnectedFeatures struct {
|
||||||
|
DailyFee string `json:"daily_fee"`
|
||||||
|
Description string `json:"description"`
|
||||||
|
DonationAddress string `json:"donation_address"`
|
||||||
|
GenesisHash string `json:"genesis_hash"`
|
||||||
|
HashFunction string `json:"hash_function"`
|
||||||
|
Hosts struct {
|
||||||
|
} `json:"hosts"`
|
||||||
|
PaymentAddress string `json:"payment_address"`
|
||||||
|
ProtocolMax string `json:"protocol_max"`
|
||||||
|
ProtocolMin string `json:"protocol_min"`
|
||||||
|
Pruning interface{} `json:"pruning"`
|
||||||
|
ServerVersion string `json:"server_version"`
|
||||||
|
TrendingAlgorithm string `json:"trending_algorithm"`
|
||||||
|
} `json:"connected_features"`
|
||||||
|
HeadersSynchronizationProgress int `json:"headers_synchronization_progress"`
|
||||||
|
KnownServers int `json:"known_servers"`
|
||||||
|
Servers []struct {
|
||||||
|
Availability bool `json:"availability"`
|
||||||
|
Host string `json:"host"`
|
||||||
|
Latency float64 `json:"latency"`
|
||||||
|
Port int `json:"port"`
|
||||||
|
} `json:"servers"`
|
||||||
} `json:"wallet"`
|
} `json:"wallet"`
|
||||||
|
WalletServerPayments struct {
|
||||||
|
MaxFee string `json:"max_fee"`
|
||||||
|
Running bool `json:"running"`
|
||||||
|
} `json:"wallet_server_payments"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UTXOListResponse struct {
|
type UTXOListResponse struct {
|
||||||
|
@ -508,6 +554,7 @@ type transactionListBlob struct {
|
||||||
BalanceDelta string `json:"balance_delta"`
|
BalanceDelta string `json:"balance_delta"`
|
||||||
ClaimId string `json:"claim_id"`
|
ClaimId string `json:"claim_id"`
|
||||||
ClaimName string `json:"claim_name"`
|
ClaimName string `json:"claim_name"`
|
||||||
|
IsSpent bool `json:"is_spent"`
|
||||||
Nout int `json:"nout"`
|
Nout int `json:"nout"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,8 +566,9 @@ type supportBlob struct {
|
||||||
BalanceDelta string `json:"balance_delta"`
|
BalanceDelta string `json:"balance_delta"`
|
||||||
ClaimId string `json:"claim_id"`
|
ClaimId string `json:"claim_id"`
|
||||||
ClaimName string `json:"claim_name"`
|
ClaimName string `json:"claim_name"`
|
||||||
Nout int `json:"nout"`
|
IsSpent bool `json:"is_spent"`
|
||||||
IsTip bool `json:"is_tip"`
|
IsTip bool `json:"is_tip"`
|
||||||
|
Nout int `json:"nout"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TransactionListResponse struct {
|
type TransactionListResponse struct {
|
||||||
|
@ -555,22 +603,17 @@ type VersionResponse struct {
|
||||||
Minor string `json:"minor"`
|
Minor string `json:"minor"`
|
||||||
} `json:"version_parts"`
|
} `json:"version_parts"`
|
||||||
} `json:"distro"`
|
} `json:"distro"`
|
||||||
LbrynetVersion string `json:"lbrynet_version"`
|
LbrynetVersion string `json:"lbrynet_version"`
|
||||||
LbryschemaVersion string `json:"lbryschema_version"`
|
OsRelease string `json:"os_release"`
|
||||||
OsRelease string `json:"os_release"`
|
OsSystem string `json:"os_system"`
|
||||||
OsSystem string `json:"os_system"`
|
Platform string `json:"platform"`
|
||||||
Platform string `json:"platform"`
|
Processor string `json:"processor"`
|
||||||
Processor string `json:"processor"`
|
PythonVersion string `json:"python_version"`
|
||||||
PythonVersion string `json:"python_version"`
|
Version string `json:"version"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResolveResponse map[string]Claim
|
type ResolveResponse map[string]Claim
|
||||||
|
|
||||||
type NumClaimsInChannelResponse map[string]struct {
|
|
||||||
ClaimsInChannel *uint64 `json:"claims_in_channel,omitempty"`
|
|
||||||
Error *string `json:"error,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type ClaimShowResponse *Claim
|
type ClaimShowResponse *Claim
|
||||||
|
|
||||||
type Wallet struct {
|
type Wallet struct {
|
||||||
|
|
1
go.sum
1
go.sum
|
@ -84,7 +84,6 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/lbryio/errors.go v0.0.0-20180223142025-ad03d3cc6a5c/go.mod h1:muH7wpUqE8hRA3OrYYosw9+Sl681BF9cwcjzE+OCNK8=
|
github.com/lbryio/errors.go v0.0.0-20180223142025-ad03d3cc6a5c/go.mod h1:muH7wpUqE8hRA3OrYYosw9+Sl681BF9cwcjzE+OCNK8=
|
||||||
github.com/lbryio/lbry.go v1.1.2 h1:Dyxc+glT/rVWJwHfIf7vjlPYYbjzrQz5ARmJd5Hp69c=
|
github.com/lbryio/lbry.go v1.1.2 h1:Dyxc+glT/rVWJwHfIf7vjlPYYbjzrQz5ARmJd5Hp69c=
|
||||||
github.com/lbryio/lbry.go v1.1.2/go.mod h1:JtyI30bU51rm0LZ/po3mQuzf++14OWb6kR/6mMRAmKU=
|
github.com/lbryio/lbry.go v1.1.2/go.mod h1:JtyI30bU51rm0LZ/po3mQuzf++14OWb6kR/6mMRAmKU=
|
||||||
github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19 h1:/zWD8dVIl7bV1TdJWqPqy9tpqixzX2Qxgit48h3hQcY=
|
|
||||||
github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
|
github.com/lbryio/lbrycrd.go v0.0.0-20200203050410-e1076f12bf19/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ=
|
||||||
github.com/lbryio/lbryschema.go v0.0.0-20190428231007-c54836bca002/go.mod h1:dAzPCBj3CKKWBGYBZxK6tKBP5SCgY2tqd9SnQd/OyKo=
|
github.com/lbryio/lbryschema.go v0.0.0-20190428231007-c54836bca002/go.mod h1:dAzPCBj3CKKWBGYBZxK6tKBP5SCgY2tqd9SnQd/OyKo=
|
||||||
github.com/lbryio/lbryschema.go v0.0.0-20190602173230-6d2f69a36f46 h1:LemfR+rMxhf7nnOrzy2HqS7Me7SZ5gEwOcNFzKC8ySQ=
|
github.com/lbryio/lbryschema.go v0.0.0-20190602173230-6d2f69a36f46 h1:LemfR+rMxhf7nnOrzy2HqS7Me7SZ5gEwOcNFzKC8ySQ=
|
||||||
|
|
Loading…
Add table
Reference in a new issue