Linking my account Yuripetusko on GitHub with my address 5Cafn1kueAGQnrcvN2uHFQ5NaMznSMyrfeUzuDHDQsMRSsN6 on Substrate in mycryptoprofile.io, and the challenge code is: aea52155756bc58fe228f0db8e9c4ef3. #LitentryVerifyMyAddress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
ContractFunctionExecutionError, | |
ContractFunctionExecutionErrorType, | |
ContractFunctionRevertedError, | |
decodeErrorResult, | |
} from 'viem'; | |
import { Abi } from 'abitype'; | |
import { | |
SimulateContractErrorType, | |
WriteContractErrorType, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Props = { | |
collectionId: EthereumAddress; | |
onSuccess?: (data: TransactionReceipt) => void; | |
onSettled?: (data?: TransactionReceipt) => void; | |
onError?: (error?: Error) => void; | |
network?: EVM_NETWORKS; | |
newOwner: EthereumAddress; | |
enabled?: boolean; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const snapshot = [ | |
{ buyer: '0xdaf780714Ce4931f98129060445fC6Eb4Ab73bB1', price: '11' } | |
{ buyer: '0xdd3c0f408Cad52Ca1224cb52b97DaEa58b443fc1', price: '5' } | |
{ buyer: '0x7E884E885AC2Ec3241FeF4B560f7d1Aaedcc0E50', price: '9' } | |
{ buyer: '0x2ef04E03457C96BfDeD0a85a772013937301C1CC', price: '1' } | |
{ buyer: '0x47bFF18E462912Ab61a465b2bc229e3857491AA6', price: '25' } | |
{ buyer: '0x24A566a73F252C2ea9E9BAC5b6873CF3BA03f232', price: '15' } | |
{ buyer: '0x24A566a73F252C2ea9E9BAC5b6873CF3BA03f232', price: '15' } | |
{ buyer: '0xb4cE0c954bB129D8039230F701bb6503dca1Ee8c', price: '50' } | |
{ buyer: '0xC22d43928CDBd57b6725E669C1606B18a2bcE82A', price: '4' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'node-fetch'; | |
import fs from 'fs'; | |
var requestOptions = { | |
method: 'GET', | |
redirect: 'follow' | |
}; | |
const apiKey = "INSERT_YOUR_OWN_API_KEY_HERE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SubmittableExtrinsic } from '@polkadot/api/types'; | |
import { ISubmittableResult } from '@polkadot/types/types'; | |
import { KeyringPair } from '@polkadot/keyring/types'; | |
import { getApi } from './get-polkadot-api-with-retry.ts'; | |
import { CodecHash, EventRecord } from '@polkadot/types/interfaces'; | |
const MAX_RETRIES = 5; | |
const RETRY_DELAY_SECONDS = 4; | |
export const sleep = (ms: number): Promise<void> => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApiPromise, WsProvider } from '@polkadot/api'; | |
const WS_ENDPOINTS = [ | |
'wss://kusama-rpc.polkadot.io', | |
'wss://kusama.api.onfinality.io/public-ws', | |
'wss://kusama-rpc.dwellir.com' | |
]; | |
export const sleep = (ms: number): Promise<void> => { | |
return new Promise((resolve) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const util = require('util'); | |
module.exports = (app, addon) => { | |
app.get('/', (req, res) => { | |
res.format({ | |
'text/html': () => { | |
res.redirect('/atlassian-connect.json'); | |
}, | |
'application/json': () => { | |
res.redirect('/atlassian-connect.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v=0 | |
o=FreeSWITCH 1401166185 1401166186 IN IP4 | |
s=FreeSWITCH | |
c=IN IP4 | |
t=0 0 | |
a=msid-semantic: WMS YOC8MAYIC2ZBXCWQbsOmduWHqVpP4x1T | |
m=audio 18096 RTP/SAVPF 111 126 106 | |
a=rtpmap:111 opus/48000/2 | |
a=fmtp:111 minptime=10 | |
a=rtpmap:126 telephone-event/8000 |