Skip to content

Commit

Permalink
fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Sep 25, 2024
1 parent 18299a4 commit 51715a9
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ <h5 class="px-4">WorldApp SendTransaction tuple</h5>

const USDCE = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607'

const ZERO = '0x0000000000000000000000000000000000000000'
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
const ZERO_BYTES = '0x'

const PAYMENT_RECEIVER = '0x317D875cA3B9f8d14f960486C0d1D1913be74e90'

Expand Down Expand Up @@ -317,15 +318,15 @@ <h5 class="px-4">WorldApp SendTransaction tuple</h5>
"0", // protocolAmount
paymentDeadline.toString(), // deadline
USDCE, // tokenInAddress
ZERO, // exchangeAddress
ZERO_ADDRESS, // exchangeAddress
USDCE, // tokenOutAddress
PAYMENT_RECEIVER, // paymentReceiverAddress
ZERO, // feeReceiverAddress
"0", // exchangeType
"0", // receiverType
ZERO_ADDRESS, // feeReceiverAddress
0, // exchangeType
0, // receiverType
true, // permit2
ZERO, // exchangeCallData
ZERO, // receiverCallData
ZERO_BYTES, // exchangeCallData
ZERO_BYTES, // receiverCallData
],
[ // permitTransferFromAndSignature
[ // permitTransferFrom
Expand Down Expand Up @@ -387,7 +388,8 @@ <h5 class="px-4">WorldApp SendTransaction tuple with explicit method with args</

const USDCE = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607'

const ZERO = '0x0000000000000000000000000000000000000000'
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
const ZERO_BYTES = '0x'

const PAYMENT_RECEIVER = '0x317D875cA3B9f8d14f960486C0d1D1913be74e90'

Expand Down Expand Up @@ -434,15 +436,15 @@ <h5 class="px-4">WorldApp SendTransaction tuple with explicit method with args</
"0", // protocolAmount
paymentDeadline.toString(), // deadline
USDCE, // tokenInAddress
ZERO, // exchangeAddress
ZERO_ADDRESS, // exchangeAddress
USDCE, // tokenOutAddress
PAYMENT_RECEIVER, // paymentReceiverAddress
ZERO, // feeReceiverAddress
"0", // exchangeType
"0", // receiverType
ZERO_ADDRESS, // feeReceiverAddress
0, // exchangeType
0, // receiverType
true, // permit2
ZERO, // exchangeCallData
ZERO, // receiverCallData
ZERO_BYTES, // exchangeCallData
ZERO_BYTES, // receiverCallData
],
[ // permitTransferFromAndSignature
[ // permitTransferFrom
Expand Down Expand Up @@ -502,7 +504,8 @@ <h5 class="px-4">Test DePay V3 SignatureTransfer</h5>

const USDCE = '0x7F5c764cBc14f9669B88837ca1490cCa17c31607'

const ZERO = '0x0000000000000000000000000000000000000000'
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
const ZERO_BYTES = '0x'

const PAYMENT_RECEIVER = '0x08B277154218CCF3380CAE48d630DA13462E3950'

Expand Down Expand Up @@ -583,21 +586,21 @@ <h5 class="px-4">Test DePay V3 SignatureTransfer</h5>
method: "pay",
params: [
[ // payment
amount, // amountIn
amount, // paymentAmount
0, // feeAmount
0, // protocolAmount
amount.toString(), // amountIn
amount.toString(), // paymentAmount
"0", // feeAmount
"0", // protocolAmount
paymentDeadline, // deadline
USDCE, // tokenInAddress
ZERO, // exchangeAddress
ZERO_ADDRESS, // exchangeAddress
USDCE, // tokenOutAddress
PAYMENT_RECEIVER, // paymentReceiverAddress
ZERO, // feeReceiverAddress
ZERO_ADDRESS, // feeReceiverAddress
0, // exchangeType
0, // receiverType
true, // permit2
ZERO, // exchangeCallData
ZERO, // receiverCallData
ZERO_BYTES, // exchangeCallData
ZERO_BYTES, // receiverCallData
],
[ // permitTransferFromAndSignature
[ // permitTransferFrom
Expand Down

0 comments on commit 51715a9

Please sign in to comment.