Skip to content

Commit

Permalink
add test to verify optimism goerli donation
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Jun 22, 2023
1 parent 710a5c9 commit fb0c94f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/services/donationService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,18 @@ function syncDonationStatusWithBlockchainNetworkTestCases() {
assert.isTrue(updateDonation.segmentNotified);
assert.equal(updateDonation.status, DONATION_STATUS.VERIFIED);
});
// it('should verify a Optimis Goerli donation', async () => {
// // https://goerli-optimism.etherscan.io/tx/0x95acfc3a5d1adbc9a4584d6bf92e9dfde48087fe54c2b750b067be718215ffc3
// const amount = 0.011;
// it('should verify a Optimistic donation', async () => {
// // https://optimistic.etherscan.io/tx/0xc645bd4ebcb1cb249be4b3e4dad46075c973fd30649a39f27f5328ded15074e7

// const amount = 0.001;

// const transactionInfo = {
// txHash:
// '0x95acfc3a5d1adbc9a4584d6bf92e9dfde48087fe54c2b750b067be718215ffc3',
// '0xc645bd4ebcb1cb249be4b3e4dad46075c973fd30649a39f27f5328ded15074e7',
// currency: 'ETH',
// networkId: NETWORK_IDS.OPTIMISM_GOERLI,
// fromAddress: '0x317bbc1927be411cd05615d2ffdf8d320c6c4052',
// toAddress: '0x00d18ca9782be1caef611017c2fbc1a39779a57c',
// networkId: NETWORK_IDS.OPTIMISTIC,
// fromAddress: '0xf23ea0b5f14afcbe532a1df273f7b233ebe41c78',
// toAddress: '0xf23ea0b5f14afcbe532a1df273f7b233ebe41c78',
// amount,
// timestamp: 1679484540,
// };
Expand Down Expand Up @@ -240,18 +241,17 @@ function syncDonationStatusWithBlockchainNetworkTestCases() {
// assert.isTrue(updateDonation.segmentNotified);
// });

it('should verify a Optimistic donation', async () => {
// https://optimistic.etherscan.io/tx/0xc645bd4ebcb1cb249be4b3e4dad46075c973fd30649a39f27f5328ded15074e7

const amount = 0.001;
it('should verify a Optimism Goerli donation', async () => {
// https://goerli-optimism.etherscan.io/tx/0x95acfc3a5d1adbc9a4584d6bf92e9dfde48087fe54c2b750b067be718215ffc3
const amount = 0.011;

const transactionInfo = {
txHash:
'0xc645bd4ebcb1cb249be4b3e4dad46075c973fd30649a39f27f5328ded15074e7',
'0x95acfc3a5d1adbc9a4584d6bf92e9dfde48087fe54c2b750b067be718215ffc3',
currency: 'ETH',
networkId: NETWORK_IDS.OPTIMISTIC,
fromAddress: '0xf23ea0b5f14afcbe532a1df273f7b233ebe41c78',
toAddress: '0xf23ea0b5f14afcbe532a1df273f7b233ebe41c78',
networkId: NETWORK_IDS.OPTIMISM_GOERLI,
fromAddress: '0x317bbc1927be411cd05615d2ffdf8d320c6c4052',
toAddress: '0x00d18ca9782be1caef611017c2fbc1a39779a57c',
amount,
timestamp: 1679484540,
};
Expand Down

0 comments on commit fb0c94f

Please sign in to comment.