Skip to content

Commit fb0c876

Browse files
committed
update doc
1 parent 4b4c1a1 commit fb0c876

File tree

15 files changed

+33
-37
lines changed

15 files changed

+33
-37
lines changed

cex/go-example/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ from the official faucet)
1717

1818
- Set "TokenContractAddress" to the ERC20 token contract address that users want to withdraw.
1919
- Set "WithdrawRecipientAddress" to the receiver address of user's withdrawal request.
20-
- Set "SponsorPolicyId" to the policy ID created by the sponsor on Meganode Paymaster, create one
21-
from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
22-
- Set "SponsorAPIEndpoint" to the API key created by the sponsor in the Nodereal MegaNode Console.
23-
create one from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
20+
- Set "SponsorPolicyId" to the policy ID created by the sponsor on Megafuel Paymaster, create one
21+
from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
22+
- Set "SponsorAPIEndpoint" to the API key created by the sponsor in the Nodereal dashboard.
23+
create one from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
2424
- Set "HotwalletPrivateKey" to the Cex's hotwallet private key, ensuring this wallet contains the required ERC20 tokens.
2525

2626
3. Run the example

cex/js-example/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cex/js-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "meganode-paymaster-example",
2+
"name": "megafuel-paymaster-example",
33
"version": "1.0.0",
4-
"description": "A script to send Ethereum transactions with 0 gas price through Meganode Paymaster",
4+
"description": "A script to send Ethereum transactions with 0 gas price through Megafuel Paymaster",
55
"main": "index.js",
66
"scripts": {
77
"start": "node index.js"

cex/js-example/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ from the official faucet)
2020
- 'TOKEN_CONTRACT_ADDRESS' with the address of the ERC20 token user want to withdraw.
2121
- 'USER_WITHDRAW_ADDRESS' with the receiver account of the withdrawal request.
2222
- 'TOKEN_CONTRACT_ADDRESS' with the ERC20 token that the Payment Gateway support.
23-
- 'SPONSOR_API_KEY' to the API key created by the Sponsor in the Nodereal MegaNode Console. create one
24-
from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
25-
- 'SPONSOR_POLICY_ID' to the policy ID created by the sponsor on Meganode Paymaster, create one
26-
from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
23+
- 'SPONSOR_API_KEY' to the API key created by the Sponsor in the Nodereal dashboard. create one
24+
from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
25+
- 'SPONSOR_POLICY_ID' to the policy ID created by the sponsor on Megafuel Paymaster, create one
26+
from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
2727
2828
3. Run script
2929
```shell

cex/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This example demonstrates how a CEX should manage the sponsor policy in such a s
1010
## Prepare Work
1111

1212
Before getting started, the gas fee sponsor, needs to first register as a user on
13-
Nodereal and then apply to create a policy. The specific process can be referred to in [this document](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines).
13+
Nodereal and then apply to create a policy. The specific process can be referred to in [this document](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines).
1414

1515
After the application is approved, Nodereal will email the Sponsor with the ID of
1616
the policy created for them.

payment-gateway/go-example/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ from the official faucet)
1717

1818
- Set "PaymentTokenContractAddress" to the ERC20 token contract address users will use for payment.
1919
- Set "PaymentRecipientAddress" to the receiver address for the Payment Gateway's generated payment link.
20-
- Set "PaymentSponsorPolicyId" to the policy ID created by the Payment Gateway on Meganode Paymaster, create one
21-
from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
22-
- Set "SponsorAPIEndpoint" to the API key created by the Payment Gateway in the Nodereal MegaNode Console.
23-
create one from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
20+
- Set "PaymentSponsorPolicyId" to the policy ID created by the Payment Gateway on Megafuel Paymaster, create one
21+
from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
22+
- Set "SponsorAPIEndpoint" to the API key created by the Payment Gateway in the Nodereal dashboard.
23+
create one from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
2424
- Set "UserPrivateKey" to the user's account private key, ensuring this wallet contains the required ERC20 tokens.
2525

2626
3. Run the example

payment-gateway/js-example/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payment-gateway/js-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "meganode-paymaster-example",
2+
"name": "megafuel-paymaster-example",
33
"version": "1.0.0",
4-
"description": "A script to send Ethereum transactions with 0 gas price through Meganode Paymaster",
4+
"description": "A script to send Ethereum transactions with 0 gas price through Megafuel Paymaster",
55
"main": "index.js",
66
"scripts": {
77
"start": "node index.js"

payment-gateway/js-example/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Js Example
22
This repository contains a Js application demonstrating:
33
1. Payment Gateway manage the sponsor policy to sponsor any transaction that send BEP20 to them.
4-
2. User send ERC20 token transfers to payment gateway without pay gas fee through paymaster.
4+
2. User send ERC20 token transfers to payment gateway without pay gas fee through Megafuel paymaster.
55

66
## Quick Start
77

@@ -20,10 +20,10 @@ from the official faucet)
2020
- 'TOKEN_CONTRACT_ADDRESS' with the address of the ERC20 token you want to send
2121
- 'PAYMENT_RECIPIENT_ADDRESS' with the receiver account of the payment link generated by Payment Gateway
2222
- 'TOKEN_CONTRACT_ADDRESS' with the ERC20 token that the Payment Gateway support.
23-
- 'SPONSOR_API_KEY' to the API key created by the Payment Gateway in the Nodereal MegaNode Console. create one
24-
from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
25-
- 'SPONSOR_POLICY_ID' to the policy ID created by the Payment Gateway on Meganode Paymaster, create one
26-
from [here](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines) if you don't have it.
23+
- 'SPONSOR_API_KEY' to the API key created by the Payment Gateway in the Nodereal dashboard. create one
24+
from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
25+
- 'SPONSOR_POLICY_ID' to the policy ID created by the Payment Gateway on Megafuel Paymaster, create one
26+
from [here](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines) if you don't have it.
2727
2828
3. Run script
2929
```shell

payment-gateway/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Payment Gateway Example
22

33
In payment scenarios, it's most common for users to pay with stablecoins. However, users might not possess the
4-
gas token of the specific blockchain network. Therefore, Meganode allows payment gateways or other third parties
4+
gas token of the specific blockchain network. Therefore, Megafuel allows payment gateways or other third parties
55
to pay the gas fee on behalf of the users.
66

77
## Prepare Work
88

99
Before getting started, the payment gateway, acting as a gas fee sponsor, needs to first register as a user on
10-
Nodereal and then apply to create a policy. The specific process can be referred to in [this document](https://docs.nodereal.io/docs/meganode-paymaster-sponsor-guidelines).
10+
Nodereal and then apply to create a policy. The specific process can be referred to in [this document](https://docs.nodereal.io/docs/megafuel-sponsor-guidelines).
1111

1212
After the application is approved, Nodereal will email the Payment Gateway with the ID of
1313
the policy created for them.

0 commit comments

Comments
 (0)