Skip to content

Commit

Permalink
use the etherscan image as default image if the transaction source ha…
Browse files Browse the repository at this point in the history
…sn't been detected
  • Loading branch information
tat2bu committed Aug 24, 2023
1 parent 4379653 commit 2d8f67e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/base.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export class BaseService {
data.platform === 'notlarvalabs' ? 'NLL.png' :
data.platform === 'phunkauction' ? 'AUCTION.png' :
data.platform === 'phunkflywheel' ? 'FLYWHEEL.png' :
'BLUR.png';
data.platform === 'blurio' ? 'BLUR.png' :
'ETHERSCAN.png';
const sentText = this.formatText(data, template)
const footerText = footerTextParam ?? config.discord_footer_text
const embed = new MessageEmbed()
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const config = {
globalStatisticsMessageDiscord: 'Hey, here are the volume per platform (time window: <window>) ! 💰\n\nNot larva labs: <nll_volume>Ξ\nLooks rare: <lr_volume>Ξ\nBlur IO: <blurio_volume>Ξ\nNFTX: <nftx_volume>Ξ\nX2Y2: <x2y2_volume>Ξ\nOpensea: <os_volume>Ξ\nCargo: <cargo_volume>Ξ\nRarible: <rarible_volume>Ξ\nUnknown: <unknown_volume>Ξ\n—\nTotal: <total_volume>Ξ\n\n— Indexing in progress, last event indexed: `<last_event>`',
saleMessageDiscord: '[Phunk #<tokenId>](<tweetLink>) was flipped for [<ethPrice> (<fiatPrice>)](<https://etherscan.io/tx/<txHash>>)\nfrom: [<from>](https://notlarvalabs.com/cryptophunks/phunkbox?address=<initialFrom>)\nto: [<to>](https://notlarvalabs.com/cryptophunks/phunkbox?address=<initialTo>)',
saleMessage: '🚨 Cryptophunks #<tokenId> was sold for 💰 <ethPrice> (<fiatPrice>)\n\nfrom: <from>\nto: <to>\n\nhttps://etherscan.io/tx/<txHash>\nhttps://opensea.io/assets/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://looksrare.org/collections/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\n',
bidMessageDiscord: '🚨 Cryptophunks #<tokenId> received a bid for 💰 <ethPrice> (<fiatPrice>)\n\nfrom: <from>\n\nhttps://etherscan.io/tx/<txHash>\nhttps://opensea.io/assets/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://looksrare.org/collections/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\n',
bidMessageDiscord: '[Phunk #<tokenId>](<tweetLink>) has a bid for [<ethPrice> (<fiatPrice>)](<https://etherscan.io/tx/<txHash>>)\nfrom: [<from>](<https://notlarvalabs.com/cryptophunks/phunkbox?address=<initialFrom>>)',
bidMessage: '🚨 Cryptophunks #<tokenId> received a bid for 💰 <ethPrice> (<fiatPrice>)\n\nfrom: <from>\n\nhttps://etherscan.io/tx/<txHash>\nhttps://opensea.io/assets/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://looksrare.org/collections/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\n',
flywheelMessageDiscord: '🚨 Cryptophunks #<tokenId> has been sold to the auction flywheel for 💰 <ethPrice> (<fiatPrice>)\n\nfrom: <from>\n\nhttps://etherscan.io/tx/<txHash>\nhttps://opensea.io/assets/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://looksrare.org/collections/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://www.phunks.pro/\n',
flywheelMessage: '🚨 Cryptophunks #<tokenId> has been sold to the auction flywheel for 💰 <ethPrice> (<fiatPrice>)\n\nfrom: <from>\n\nhttps://etherscan.io/tx/<txHash>\nhttps://opensea.io/assets/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://looksrare.org/collections/0xf07468ead8cf26c752c676e43c814fee9c8cf402/<tokenId>\nhttps://www.phunks.pro/\n',
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/phunks.bid.extension.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class PhunksBidService extends BaseService {
imageUrl
}
const tweet = await this.tweet(request, config.bidMessage);
await this.discord(request, tweet.id, config.bidMessageDiscord);
await this.discord(request, tweet.id, config.bidMessageDiscord, '#8119B7', 'BID!');
}
});

Expand Down

0 comments on commit 2d8f67e

Please sign in to comment.