Fix typos

This commit is contained in:
Dimitris Apostolou 2018-05-20 22:17:38 +03:00 committed by rex4539
parent 01c33481f8
commit 8def077ba4
No known key found for this signature in database
GPG Key ID: 4B5D20E938204A8A
5 changed files with 31 additions and 31 deletions

View File

@ -1,7 +1,7 @@
# MoneroWP
A WooCommerce extension for accepting Monero
## Dependancies
## Dependencies
This plugin is rather simple but there are a few things that need to be set up beforehand.
* A web server! Ideally with the most recent versions of PHP and mysql
@ -9,7 +9,7 @@ This plugin is rather simple but there are a few things that need to be set up b
* A Monero wallet. You can find the official wallet [here](https://getmonero.org/downloads/)
* [WordPress](https://wordpress.org)
Wordpress is the backend tool that is needed to use WooCommerce and this Monero plugin
WordPress is the backend tool that is needed to use WooCommerce and this Monero plugin
* [WooCommerce](https://woocommerce.com)
This Monero plugin is an extension of WooCommerce, which works with WordPress
@ -19,7 +19,7 @@ This Monero plugin is an extension of WooCommerce, which works with WordPress
* Unzip the file monerowp_release.zip if you downloaded the zip from the releases page [here](https://github.com/monero-integrations/monerowp/releases).
* Put the plugin in the correct directory: You will need to put the folder named `monero` from this repo/unzipped release into the wordpress plugins directory. This can be found at `path/to/wordpress/folder/wp-content/plugins`
* Put the plugin in the correct directory: You will need to put the folder named `monero` from this repo/unzipped release into the WordPress plugins directory. This can be found at `path/to/wordpress/folder/wp-content/plugins`
* Activate the plugin from the WordPress admin panel: Once you login to the admin panel in WordPress, click on "Installed Plugins" under "Plugins". Then simply click "Activate" where it says "Monero - WooCommerce Gateway"
@ -28,20 +28,20 @@ This Monero plugin is an extension of WooCommerce, which works with WordPress
* Get your Monero wallet address starting with '4'
* Get your wallet secret viewkey from your wallet
A note on privacy: When you validate transactions with your private viewkey, your viewkey is sent to (but not stored on) xmrchain.net over HTTPS. This could potentally allow an attacker to see your incoming, but not outgoing, transactions if he were to get his hands on your viewkey. Even if this were to happen, your funds would still be safe and it would be impossible for somebody to steal your money. For maximum privacy use your own monero-wallet-rpc instance.
A note on privacy: When you validate transactions with your private viewkey, your viewkey is sent to (but not stored on) xmrchain.net over HTTPS. This could potentially allow an attacker to see your incoming, but not outgoing, transactions if he were to get his hands on your viewkey. Even if this were to happen, your funds would still be safe and it would be impossible for somebody to steal your money. For maximum privacy use your own monero-wallet-rpc instance.
## Step 2 Option 2: Get a monero daemon to connect to
## Step 2 Option 2: Get a Monero daemon to connect to
### Option 1: Running a full node yourself
To do this: start the monero daemon on your server and leave it running in the background. This can be accomplished by running `./monerod` inside your monero downloads folder. The first time that you start your node, the monero daemon will download and sync the entire monero blockchain. This can take several hours and is best done on a machine with at least 4GB of ram, an SSD hard drive (with at least 40GB of free space), and a high speed internet connection.
To do this: start the Monero daemon on your server and leave it running in the background. This can be accomplished by running `./monerod` inside your Monero downloads folder. The first time that you start your node, the Monero daemon will download and sync the entire Monero blockchain. This can take several hours and is best done on a machine with at least 4GB of ram, an SSD hard drive (with at least 40GB of free space), and a high speed internet connection.
### Option 2: Connecting to a remote node
The easiest way to find a remote node to connect to is to visit [moneroworld.com](https://moneroworld.com/#nodes) and use one of the nodes offered. It is probably easiest to use node.moneroworld.com:18089 which will automatically connect you to a random node.
### Setup your monero wallet-rpc
### Setup your Monero wallet-rpc
* Setup a monero wallet using the monero-wallet-cli tool. If you do not know how to do this you can learn about it at [getmonero.org](https://getmonero.org/resources/user-guides/monero-wallet-cli.html)
* Setup a Monero wallet using the monero-wallet-cli tool. If you do not know how to do this you can learn about it at [getmonero.org](https://getmonero.org/resources/user-guides/monero-wallet-cli.html)
* [Create a view-only wallet from that wallet for security.](https://monero.stackexchange.com/questions/3178/how-to-create-a-view-only-wallet-for-the-gui/4582#4582)
@ -61,17 +61,17 @@ The easiest way to find a remote node to connect to is to visit [moneroworld.com
If You chose to use viewkey:
* Enter your monero wallet address in the box labled "Monero Address". If you do not know your address, you can run the `address` commmand in your monero wallet
* Enter your Monero wallet address in the box labeled "Monero Address". If you do not know your address, you can run the `address` command in your Monero wallet
* Enter your secret viewkey in the box labeled "ViewKey"
If you chose to use monero-wallet-rpc:
* Enter your monero wallet address in the box labled "Monero Address". If you do not know your address, you can run the `address` commmand in your monero wallet
* Enter your Monero wallet address in the box labeled "Monero Address". If you do not know your address, you can run the `address` command in your Monero wallet
* Enter the IP address of your server in the box labeled "Monero wallet rpc Host/IP"
* Enter the IP address of your server in the box labeled "Monero wallet RPC Host/IP"
* Enter the port number of the Wallet RPC in the box labeled "Monero wallet rpc port" (will be `18082` if you used the above example).
* Enter the port number of the Wallet RPC in the box labeled "Monero wallet RPC port" (will be `18082` if you used the above example).
Finally:

View File

@ -48,7 +48,7 @@ class ed25519
public $B;
private $gmp; // Is the GMP extention available?
private $gmp; // Is the GMP extension available?
public function __construct()
{

View File

@ -136,17 +136,17 @@ class Monero_Gateway extends WC_Payment_Gateway
'title' => __('Use monero-wallet-rpc', 'monero_gateway'),
'label' => __(' Verify transactions with the monero-wallet-rpc ', 'monero_gateway'),
'type' => 'checkbox',
'description' => __('This must be setup seperatly', 'monero_gateway'),
'description' => __('This must be setup seperately', 'monero_gateway'),
'default' => 'no'
),
'daemon_host' => array(
'title' => __('Monero wallet rpc Host/ IP', 'monero_gateway'),
'title' => __('Monero wallet RPC Host/ IP', 'monero_gateway'),
'type' => 'text',
'desc_tip' => __('This is the Daemon Host/IP to authorize the payment with port', 'monero_gateway'),
'default' => 'localhost',
),
'daemon_port' => array(
'title' => __('Monero wallet rpc port', 'monero_gateway'),
'title' => __('Monero wallet RPC port', 'monero_gateway'),
'type' => 'text',
'desc_tip' => __('This is the Daemon Host/IP to authorize the payment with port', 'monero_gateway'),
'default' => '18080',
@ -223,8 +223,8 @@ class Monero_Gateway extends WC_Payment_Gateway
$wallet_amount = $this->monero_daemon->getbalance();
if (!isset($wallet_amount)) {
$this->log->add('Monero_gateway', '[ERROR] Cannot connect to monero-wallet-rpc');
echo "</br>Your balance is: Not Avaliable </br>";
echo "Unlocked balance: Not Avaliable";
echo "</br>Your balance is: Not Available </br>";
echo "Unlocked balance: Not Available";
}
else
{
@ -386,7 +386,7 @@ class Monero_Gateway extends WC_Payment_Gateway
<body>
<!-- page container -->
<div class='page-container'>
<!-- monero container payment box -->
<!-- Monero container payment box -->
<div class='container-xmr-payment'>
<!-- header -->
<div class='header-xmr-payment'>
@ -419,7 +419,7 @@ class Monero_Gateway extends WC_Payment_Gateway
</div>
<!-- end footer xmr payment -->
</div>
<!-- end monero container payment box -->
<!-- end Monero container payment box -->
</div>
<!-- end page container -->
</body>
@ -467,7 +467,7 @@ class Monero_Gateway extends WC_Payment_Gateway
<body>
<!-- page container -->
<div class='page-container'>
<!-- monero container payment box -->
<!-- Monero container payment box -->
<div class='container-xmr-payment'>
<!-- header -->
<div class='header-xmr-payment'>
@ -498,7 +498,7 @@ class Monero_Gateway extends WC_Payment_Gateway
</div>
<!-- end footer xmr payment -->
</div>
<!-- end monero container payment box -->
<!-- end Monero container payment box -->
</div>
<!-- end page container -->
</body>
@ -552,7 +552,7 @@ class Monero_Gateway extends WC_Payment_Gateway
$rounded_amount = round($final_amount, 12);
} else {
$new_amount = $amount / $stored_rate_transformed;
$rounded_amount = round($new_amount, 12); //the moneo wallet can't handle decimals smaller than 0.000000000001
$rounded_amount = round($new_amount, 12); //the Monero wallet can't handle decimals smaller than 0.000000000001
}
} else // If the row has not been created then the live exchange rate will be grabbed and stored
{
@ -665,7 +665,7 @@ class Monero_Gateway extends WC_Payment_Gateway
}
return $message;
}
public function last_block_seen($height) // sometimes 2 blocks are mined within a few seconds of eacher. Make sure we don't miss one
public function last_block_seen($height) // sometimes 2 blocks are mined within a few seconds of each other. Make sure we don't miss one
{
if (!isset($_COOKIE['last_seen_block']))
{
@ -810,7 +810,7 @@ class Monero_Gateway extends WC_Payment_Gateway
</button></p></div>";
} else {
$this->log->add('Monero_gateway', '[ERROR] Plugin can not reach wallet rpc.');
$this->log->add('Monero_gateway', '[ERROR] Plugin cannot reach wallet RPC.');
echo "<div class=\" notice notice-error\"><p>Error with connection of daemon, see documentation!</p></div>";
}
}

View File

@ -220,7 +220,7 @@ class Monero_Library
}
/*
* The following functions can all be called to interact with the monero rpc wallet
* The following functions can all be called to interact with the Monero RPC wallet
* They will majority of them will return the result as an array
* Example: $daemon->address(); where $daemon is an instance of this class, will return the wallet address as string within an array
*/
@ -266,7 +266,7 @@ class Monero_Library
}
/* A payment id can be passed as a string
A random payment id will be generatd if one is not given */
A random payment id will be generated if one is not given */
public function split_integrated_address($integrated_address)
{

View File

@ -26,7 +26,7 @@ An extension to WooCommerce for accepting Monero as payment in your store.
== Installation ==
1. Install "Monero WooCommerce extension" wordpress plugin just like any other Wordpress plugin.
1. Install "Monero WooCommerce extension" WordPress plugin just like any other WordPress plugin.
2. Activate
3. Setup your monero-wallet-rpc with a view-only wallet
4. Add your monero-wallet-rpc host address and Monero address in the settings panel