Skip to content

Commit

Permalink
Merge pull request #254 from nova577metaverse/master
Browse files Browse the repository at this point in the history
fix: btr endpoint
  • Loading branch information
vrtnd authored Aug 6, 2024
2 parents fb6d19f + 2c2830d commit 6450bbd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ src/utils/filljobs2.ts

.env

.idea
.idea

.vscode
8 changes: 4 additions & 4 deletions src/adapters/orbiter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const eoaAddressErc = [
"0x8086061cf07c03559fbb4aa58f191f9c4a5df2b2",
"0x732efacd14b0355999aebb133585787921aba3a9",
"0x34723b92ae9708ba33843120a86035d049da7dfa",
"0x095d2918b03b2e86d68551dcf11302121fb626c9",
"0xdeaddeaddeaddeaddeaddeaddeaddeaddead1111",
"0x095d2918b03b2e86d68551dcf11302121fb626c9"

];

const eoaAddressNative = [
Expand All @@ -53,8 +53,8 @@ const eoaAddressNative = [
"0x8086061cf07c03559fbb4aa58f191f9c4a5df2b2",
"0x732efacd14b0355999aebb133585787921aba3a9",
"0x34723b92ae9708ba33843120a86035d049da7dfa",
"0x095d2918b03b2e86d68551dcf11302121fb626c9",
"0xdeaddeaddeaddeaddeaddeaddeaddeaddead1111",
"0x095d2918b03b2e86d68551dcf11302121fb626c9"

];

const nativeTokens: Record<string, string> = {
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/btr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const getBlockTXbyAddress = async (
endBlock: number,
) => {
let res = await axios.get(
`https://api.btrscan.com/scan/api?module=account&action=txlist&address=${address}&startblock=${startBlock}&endblock=${endBlock}&page=1&offset=10000&sort=asc`
`https://api.btrscan.com/scan/api?module=account&action=txlist&address=${address}&startblock=${startBlock}&endblock=${endBlock}&sort=asc`
)
const data = res.data
if(data.message == 'OK' && data.status == 1 &&data.result.length != 0 ) {
if(data.message == 'OK' && data.status == 1 && data.result.length != 0 ) {
//filter by address
const txList: any[] = data.result;
return txList;
Expand Down

0 comments on commit 6450bbd

Please sign in to comment.