BITCORN LABS PRESENTS: codename SHADOWMANTIS — ICRC1 import script for the nns

Bitcorn Labs Presents: codename SHADOWMANTIS

Special thanks to @skilesare @corntoshi @chepreghy for making this possible.

SHADOWMANTIS is an airdrop only project to proof of concept Importing of custom ICRC tokens into the nns using the mantis.js script which was built around the method posted here:

what is MANTIS.JS:

function executeScript() {
const ledgerCanisterId = ‘5xwlp-hiaaa-aaaag-qjqqa-cai’;
__experimentalAddIcrc1Token(ledgerCanisterId);
console.log(‘Script executed with ledgerCanisterId:’, ledgerCanisterId);
}
executeScript()

As you can see it’s a simple script. Enter the nns, open the console, put the script and execute. It will reveal your mantis.

If you would like to receive a $SHADOWMANTIS please post an II PID in this thread.

GitHub documentation here:

21 Likes

Really useful stuff, here’s my pid:
xz7lt-4vhx2-vieuy-l5rjt-im5xt-v5sp5-v7s4g-l6bi2-qhyye-dicui-yqe

Thanks

4 Likes

IMG_7223

Please let us know if you succeed!

2 Likes

xuvka-t2ead-dsqhi-beknk-lbmbz-th73q-26oib-bfa4k-5nowc-3ozuo-5qe

2 Likes

Verified and confirmed it’s successful:

Thanks again!

2 Likes

3anjr-llocx-dp2gc-3tmrr-jw72g-t5iuj-lxu3d-actqu-r2zea-duwtq-gae

thanks Mantis team - summonsterism!

1 Like

wd45p-x3kxi-mputk-v44cf-ov7gc-56rt3-hj7ln-o7fzh-uxeen-ag7cx-qqe

1 Like

mantis

success! Ta

3 Likes

oqirr-jjrce-uqyhd-arlbq-pmytx-y27t7-6ljub-55hwv-4yzlt-lcmnv-wae

2 Likes

well received, thanks :slight_smile:

1 Like

bykjn-b7kfm-wuenf-zzwle-zir5l-qbptm-alxis-ngv3r-v32zo-kb2iv-2qe

hook me up fren

2 Likes

bqeek-wvxxa-biswt-2wgxe-2o6fh-urtto-b2ppy-5yss7-rla6t-g6odk-gqe

Thank you.

2 Likes

vzvsf-3e76f-o6v5k-ytq5t-bhsoz-ql27u-sm7gc-6bzq4-f6w5r-ccml6-rae

I’m the test rat too

1 Like

Got it! I see the balance is 1 MANTIS, but no transaction is shown. I suppose this is outside the scope.

Good to have this script, thank you.

Currently, there is no icrc 1,2,3 index in the nns. So to get the transactions etc of mantis to the nns is not really happening at this moment.

It seems that the nns dev team is planing on adding a icrc2 ledger interface at some point.

SHADOWMANTIS as a token can return the function of a ICRC 1,2,3.

Here is the repo:

But the token is really just a demo of the script.

The next goal is for the script to be improved to allow users to see or retrieve nfts that may be lost in the NNS

1 Like

egrhw-ta36k-5g2xt-seasa-xbbux-54zgu-vsh26-kbpy5-ejih5-4metv-cqe
I am tester.

1 Like

A user was successfully able to custom import via a mobile browser.

How exciting!

His code is

javascript:const ledgerCanisterId = ‘5xwlp-hiaaa-aaaag-qjqqa-cai’; >__experimentalAddIcrc1Token(ledgerCanisterId); alert('Script executed with ledgerCanisterId: ’ + >ledgerCanisterId);

Inspect element in chrome on mobile

7pkgq-llshs-ig4zg-wbbrr-nj76w-6nkt2-aaojb-5advg-ixaco-4rhk7-xae
thank yiu

1 Like

gz5d2-4u4hf-orter-pwpto-zynzm-zgtyw-qpmho-ir3gg-swl3j-x7b6a-zqe

Thank you

1 Like

Did I send it do you?

1 Like