Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix few wrong types and add a misisng destinations field. #4

Open
wants to merge 4 commits into
base: updates
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The MIT License (MIT)

Copyright (c) 2018 Gabriel Ochsenhofer
Copyright (c) 2021 Laurynas Četyrkinas <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Empty file modified walletrpc/add_address_book.go
100755 → 100644
Empty file.
Empty file modified walletrpc/auto_refresh.go
100755 → 100644
Empty file.
Empty file modified walletrpc/change_wallet_password.go
100755 → 100644
Empty file.
Empty file modified walletrpc/check_reserve_proof.go
100755 → 100644
Empty file.
Empty file modified walletrpc/check_spend_proof.go
100755 → 100644
Empty file.
Empty file modified walletrpc/check_tx_key.go
100755 → 100644
Empty file.
Empty file modified walletrpc/check_tx_proof.go
100755 → 100644
Empty file.
Empty file modified walletrpc/close_wallet.go
100755 → 100644
Empty file.
3 changes: 3 additions & 0 deletions walletrpc/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ type Transfer struct {
// Amount of this transfer.
Amount uint64 `json:"amount"`

// Array containing transfer destinations.
Destinations []Destination `json:"destinations"`

// GlobalIndex Mostly internal use, can be ignored by most users.
GlobalIndex uint64 `json:"global_index"`

Expand Down
Empty file modified walletrpc/create_account.go
100755 → 100644
Empty file.
Empty file modified walletrpc/create_address.go
100755 → 100644
Empty file.
Empty file modified walletrpc/create_wallet.go
100755 → 100644
Empty file.
Empty file modified walletrpc/delete_address_book.go
100755 → 100644
Empty file.
Empty file modified walletrpc/describe_transfer.go
100755 → 100644
Empty file.
Empty file modified walletrpc/edit_address_book.go
100755 → 100644
Empty file.
Empty file modified walletrpc/export_key_images.go
100755 → 100644
Empty file.
Empty file modified walletrpc/export_multisig_info.go
100755 → 100644
Empty file.
Empty file modified walletrpc/export_outputs.go
100755 → 100644
Empty file.
Empty file modified walletrpc/finalize_multisig.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_account_tags.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_accounts.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_address.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_address_book.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_address_index.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_attribute.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_balance.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_bulk_payments.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_height.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_languages.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_payments.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_reserve_proof.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_spend_proof.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_transfer_by_txid.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_transfers.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_tx_key.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_tx_notes.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_tx_proof.go
100755 → 100644
Empty file.
Empty file modified walletrpc/get_version.go
100755 → 100644
Empty file.
Empty file modified walletrpc/import_key_images.go
100755 → 100644
Empty file.
Empty file modified walletrpc/import_multisig_info.go
100755 → 100644
Empty file.
Empty file modified walletrpc/import_outputs.go
100755 → 100644
Empty file.
Empty file modified walletrpc/incoming_transfers.go
100755 → 100644
Empty file.
Empty file modified walletrpc/is_multisig.go
100755 → 100644
Empty file.
Empty file modified walletrpc/label_account.go
100755 → 100644
Empty file.
Empty file modified walletrpc/label_address.go
100755 → 100644
Empty file.
Empty file modified walletrpc/make_integrated_address.go
100755 → 100644
Empty file.
Empty file modified walletrpc/make_multisig.go
100755 → 100644
Empty file.
Empty file modified walletrpc/make_uri.go
100755 → 100644
Empty file.
Empty file modified walletrpc/open_wallet.go
100755 → 100644
Empty file.
Empty file modified walletrpc/parse_uri.go
100755 → 100644
Empty file.
Empty file modified walletrpc/prepare_multisig.go
100755 → 100644
Empty file.
Empty file modified walletrpc/query_key.go
100755 → 100644
Empty file.
Empty file modified walletrpc/refresh.go
100755 → 100644
Empty file.
Empty file modified walletrpc/relay_tx.go
100755 → 100644
Empty file.
Empty file modified walletrpc/rescan_blockchain.go
100755 → 100644
Empty file.
Empty file modified walletrpc/rescan_spent.go
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion walletrpc/restore_deterministic_wallet.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type RestoreDeterministicWalletRequest struct {
Seed string `json:"seed"`

// RestoreHeight (Optional) Block height to restore the wallet from (default = 0).
RestoreHeight int64 `json:"restore_height"`
RestoreHeight uint64 `json:"restore_height"`

// Language (Optional) Language of the mnemonic phrase in case the old language is invalid.
Language string `json:"language"`
Expand Down
Empty file modified walletrpc/set_account_tag_description.go
100755 → 100644
Empty file.
Empty file modified walletrpc/set_attribute.go
100755 → 100644
Empty file.
Empty file modified walletrpc/set_tx_notes.go
100755 → 100644
Empty file.
Empty file modified walletrpc/sign.go
100755 → 100644
Empty file.
Empty file modified walletrpc/sign_multisig.go
100755 → 100644
Empty file.
Empty file modified walletrpc/sign_transfer.go
100755 → 100644
Empty file.
Empty file modified walletrpc/split_integrated_address.go
100755 → 100644
Empty file.
Empty file modified walletrpc/start_mining.go
100755 → 100644
Empty file.
Empty file modified walletrpc/stop_mining.go
100755 → 100644
Empty file.
Empty file modified walletrpc/stop_wallet.go
100755 → 100644
Empty file.
Empty file modified walletrpc/store.go
100755 → 100644
Empty file.
Empty file modified walletrpc/submit_multisig.go
100755 → 100644
Empty file.
Empty file modified walletrpc/submit_transfer.go
100755 → 100644
Empty file.
Empty file modified walletrpc/sweep_all.go
100755 → 100644
Empty file.
Empty file modified walletrpc/sweep_dust.go
100755 → 100644
Empty file.
Empty file modified walletrpc/sweep_single.go
100755 → 100644
Empty file.
Empty file modified walletrpc/tag_accounts.go
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions walletrpc/transfer.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ type TransferRequest struct {

type TransferResponse struct {
// Amount transferred for the transaction.
Amount int64 `json:"amount"`
Amount uint64 `json:"amount"`

// Fee value of the fee charged for the txn.
Fee int64 `json:"fee"`
Fee uint64 `json:"fee"`

// MultisigTxset (empty for non-multisig).
MultisigTxset interface{} `json:"multisig_txset"`
Expand Down
Empty file modified walletrpc/transfer_split.go
100755 → 100644
Empty file.
Empty file modified walletrpc/untag_accounts.go
100755 → 100644
Empty file.
Empty file modified walletrpc/validate_address.go
100755 → 100644
Empty file.
Empty file modified walletrpc/verify.go
100755 → 100644
Empty file.