This file contains hidden or 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
no@m21:~/code/payouts/my_contract|⇒ pop build | |
┌ Pop CLI : Building your contract | |
│ | |
warning: This version of cargo-contract is not compatible with the contract's ink! version. Please use cargo-contract in version '5.0.1' or change the ink! version of your contract to '>=6.0.0-alpha' | |
[==] Checking clippy linting rules | |
Checking frame-system v40.1.0 | |
Checking staging-xcm v16.1.0 | |
Checking staging-xcm v11.0.0 | |
Checking sp-externalities v0.29.0 | |
Checking ink_storage_traits v5.1.1 |
This file contains hidden or 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 { startFromWorker } from "polkadot-api/smoldot/from-node-worker"; | |
import { Worker } from "worker_threads"; | |
import { fileURLToPath } from "url"; | |
import { dirname, join } from "path"; | |
import type { Client } from "polkadot-api/smoldot"; | |
// Singleton worker instance and nonce cache | |
let worker: Worker | null = null; | |
let smoldot: Client | null = null; | |
const nonceCache: Map<string, number> = new Map(); |
This file contains hidden or 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
// `dot` is the name we gave to `npx papi add` | |
import { dot } from "@polkadot-api/descriptors"; | |
import { createClient, SS58String } from "polkadot-api"; | |
import { getSmProvider } from "polkadot-api/sm-provider"; | |
import { chainSpec } from "polkadot-api/chains/polkadot"; | |
import { startFromWorker } from "polkadot-api/smoldot/from-node-worker"; | |
import { fileURLToPath } from "url"; | |
import { dirname, join } from "path"; | |
import { Worker } from "worker_threads"; |
This file contains hidden or 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
{ | |
"nfts": [ | |
{ | |
"isSigned": false, | |
"method": { | |
"args": { | |
"collection": "101", | |
"item": "588,278,458", | |
"mint_to": { | |
"Id": "GkQJko5bSB32BBexZMD3H9kbvaopFT4tFn6xN9F6evkwQnx" |
This file contains hidden or 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
nfts.collection: Option<PalletNftsCollectionDetails> | |
[ | |
[ | |
[ | |
100 | |
] | |
{ | |
owner: Fksmad33PFxhrQXNYPPJozgWrv82zuFLvXK7Rh8m1xQhe98 | |
ownerDeposit: 100,000,000,000 | |
items: 0 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"nfts": [ | |
{ | |
"isSigned": false, | |
"method": { | |
"args": { | |
"collection": "101", | |
"item": "135,796,623", | |
"mint_to": { | |
"Id": "GkQJko5bSB32BBexZMD3H9kbvaopFT4tFn6xN9F6evkwQnx" |
This file contains hidden or 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
RPC-CORE: call(method: Text, data: Bytes, at?: BlockHash): Bytes:: -32000: Client error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed | |
WASM backtrace: | |
error while executing at wasm backtrace: | |
0: 0x4261a - <unknown>!rust_begin_unwind | |
1: 0x4a60 - <unknown>!core::panicking::panic_fmt::he4489d678d6570d5 | |
2: 0xafe88 - <unknown>!TransactionPaymentApi_query_info | |
Trace: RpcError: -32000: Client error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed | |
WASM backtrace: | |
error while executing at wasm backtrace: | |
0: 0x4261a - <unknown>!rust_begin_unwind |
This file contains hidden or 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
//Collection ID: 97 | |
//Item id: 2583060150 | |
//Kodadot URL: https://kodadot.xyz/ahk/gallery/97-2583060150 | |
//extrinsic: nfts.attribute: Option<(Bytes,PalletNftsAttributeDeposit)> | |
[ | |
[ | |
[ | |
97 | |
2,583,060,150 |
This file contains hidden or 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
:root { | |
--polkadot-pink: #e6007a; | |
--polkadot-purple: #552BBF; | |
--polkadot-cyan: #00B2FF; | |
--polkadot-lime: #D3FF33; | |
--polkadot-green: #56F39A; | |
} |
This file contains hidden or 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
/* Scroll Velocity */ | |
document.addEventListener( 'wheel', ( e ) => { | |
e.preventDefault() | |
this.scrollTarget = e.deltaY / 3 | |
} ); | |
//render() | |
this.direction = this.scroll > 0 ? -1 : 1 | |
this.scroll -=(this.scroll - this.scrollTarget)*0.1 |
NewerOlder