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
vavram
April 1, 2024, 6:44pm
2
Really useful stuff, here’s my pid:
xz7lt-4vhx2-vieuy-l5rjt-im5xt-v5sp5-v7s4g-l6bi2-qhyye-dicui-yqe
Thanks
4 Likes
Please let us know if you succeed!
2 Likes
xuvka-t2ead-dsqhi-beknk-lbmbz-th73q-26oib-bfa4k-5nowc-3ozuo-5qe
2 Likes
vavram
April 1, 2024, 6:57pm
5
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
oqirr-jjrce-uqyhd-arlbq-pmytx-y27t7-6ljub-55hwv-4yzlt-lcmnv-wae
2 Likes
eluemm
April 1, 2024, 10:49pm
11
bykjn-b7kfm-wuenf-zzwle-zir5l-qbptm-alxis-ngv3r-v32zo-kb2iv-2qe
hook me up fren
2 Likes
SS88
April 2, 2024, 2:07am
12
bqeek-wvxxa-biswt-2wgxe-2o6fh-urtto-b2ppy-5yss7-rla6t-g6odk-gqe
Thank you.
2 Likes
Sawyer
April 2, 2024, 6:40am
13
vzvsf-3e76f-o6v5k-ytq5t-bhsoz-ql27u-sm7gc-6bzq4-f6w5r-ccml6-rae
I’m the test rat too
1 Like
SS88
April 2, 2024, 10:48am
14
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
blush
April 2, 2024, 3:10pm
16
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
dx111
April 2, 2024, 3:35pm
18
7pkgq-llshs-ig4zg-wbbrr-nj76w-6nkt2-aaojb-5advg-ixaco-4rhk7-xae
thank yiu
1 Like
Daster
April 2, 2024, 9:18pm
20
gz5d2-4u4hf-orter-pwpto-zynzm-zgtyw-qpmho-ir3gg-swl3j-x7b6a-zqe
Thank you
1 Like