Skip to content

Commit

Permalink
Minor changes to thegas guzzler guide (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
emperorjm authored Aug 6, 2024
1 parent a6085ad commit e0d5b6f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content/2.developers/3.guides/9.cw-fees/2.gas-guzzler.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ The Guzzler Club offers a gasless transaction solution on the Archway network, a

We've added a basic [fee granter implementation guide](/developers/guides/cw-fees/introduction#frontend-interaction) that shows how you can use `arch3.js` to execute a transaction where the feegranter pays the gas fees. This is exactly what a frontend would need to do to utilize the Gas Guzzeler solution.

The the Guzzler Club `mainnet` contract address is `archway1avwvqzu9gv86g5fxx5p2xqe0w33wklt27jusdrhszwccnfnxx0rsmzz8nu` and this would be used as the fee granter address.
The the Guzzler Club `mainnet` contract address is `archway1avwvqzu9gv86g5fxx5p2xqe0w33wklt27jusdrhszwccnfnxx0rsmzz8nu` and this would be used as the fee granter address. The `testnet` address is `archway17n7jp9drsltmwcjz4awet9khy5v0xnyrxdhrv0mwpr8m6cfxxcrsdz9zur`.

In order for a user's account to take advantage of the Gas Guzzler fee grant, their account would have to be whitelisted by the fee granter contract address above. This happens when an account accesses the [Guzzler Club](https://connect.archway.io/guzzler-club) and perform the required tasks.
In order for a user's account to take advantage of the Gas Guzzler fee grant, their account would have to be whitelisted by the fee granter contract address above. This happens when an account accesses the [Guzzler Club](https://connect.archway.io/guzzler-club) and perform the required tasks which could be as simple as simple as linking their twitter account.

To check if an account is whitelisted and still has an allowance you can use the following command substituting `$USER_ADDRESS` with the actual address:

Expand All @@ -61,14 +61,14 @@ testnet
::highlight-card

```bash
archwayd query wasm contract-state smart archway1avwvqzu9gv86g5fxx5p2xqe0w33wklt27jusdrhszwccnfnxx0rsmzz8nu '{"member":{"address":"$USER_ADDRESS"}}' --chain-id constantine-3 --node https://rpc.constantine.archway.io:443 --output json | jq
archwayd query wasm contract-state smart archway17n7jp9drsltmwcjz4awet9khy5v0xnyrxdhrv0mwpr8m6cfxxcrsdz9zur '{"member":{"address":"$USER_ADDRESS"}}' --chain-id constantine-3 --node https://rpc.constantine.archway.io:443 --output json | jq
```

::

::

You also have the option of checking this via `arch3.js`:
You also have the option of checking this via javascript:

::tab-card{noOfTabs=2}
#title0
Expand All @@ -84,7 +84,7 @@ import { ArchwayClient } from '@archwayhq/arch3.js';
const client = await ArchwayClient.connect('https://rpc.mainnet.archway.io:443');

const contractAddress = 'archway1avwvqzu9gv86g5fxx5p2xqe0w33wklt27jusdrhszwccnfnxx0rsmzz8nu';
const userAddress = 'archway19vprdtfha0xsls0qlwqj2sas32nqqtf4ee9z58';
const userAddress = '<Add address>';

const msg = {
member:{address: userAddress}
Expand Down Expand Up @@ -112,8 +112,8 @@ import { ArchwayClient } from '@archwayhq/arch3.js';

const client = await ArchwayClient.connect('https://rpc.constantine.archway.io:443');

const contractAddress = 'archway1avwvqzu9gv86g5fxx5p2xqe0w33wklt27jusdrhszwccnfnxx0rsmzz8nu';
const userAddress = 'archway19vprdtfha0xsls0qlwqj2sas32nqqtf4ee9z58';
const contractAddress = 'archway17n7jp9drsltmwcjz4awet9khy5v0xnyrxdhrv0mwpr8m6cfxxcrsdz9zur';
const userAddress = '<Add address>';

const msg = {
member:{address: userAddress}
Expand Down

0 comments on commit e0d5b6f

Please sign in to comment.