-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] payprov2 #25
base: feature/paypro-v2
Are you sure you want to change the base?
[FEAT] payprov2 #25
Conversation
Can now sync ETH and get wallet history for ERC20 tokens
ETH blocks were using the BTC transforms, fixed that
[Feat] Check if valid API
fix gasPrice
fix fee for sendmax
fix non-displaying address page bug
}); | ||
let rawBody, headers; | ||
|
||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we just re-throw the error, we can remove this try catch, and just use
let { rawBody, headers } = await PayProV2._asyncRequest({
}); | ||
}) { | ||
let rawBody, headers; | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here
}) | ||
}); | ||
let rawBody, headers; | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same thing here
}) | ||
}); | ||
let rawBody, headers; | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -246,8 +275,15 @@ export class PaymentProtocolV2Client { | |||
throw new Error('Invalid JSON in response body'); | |||
} | |||
|
|||
let payProDetails; | |||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
// BTC Response - ETH Response | ||
if (_.has(responseData, 'instructions[0].requiredFeeRate')) { | ||
const requiredFeeRate = responseData.instructions[0].requiredFeeRate; | ||
if (requiredFeeRate > MAX_FEE_PER_KB) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this currency specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to change it for:
MAX_FEE_PER_KB: {
btc: 10000 * 1000, // 10k sat/b
bch: 10000 * 1000, // 10k sat/b
eth: 50000000000, // 50 Gwei
},
Thanks
} | ||
|
||
// ETH Response | ||
if (_.has(responseData, 'instructions[0].value')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're going to want to loop through the instructions and build a transaction per instruction, rather than get the first index.
…-no-wait Broadcast ETH transactions without waiting for a block
Feature/eth uri
fix paypro signatures on BWC for ETH
9e5eaf0
to
bd53fa2
Compare
bd53fa2
to
78f5dab
Compare
No description provided.