UNPKG

l1-lottery-contracts

Version:

This repo contains smart contracts and related scripts for ZkNoid L1 Lottery proposed [here](https://forums.minaprotocol.com/t/zknoid-l1-lottery/6269)

19 lines 843 B
import { Mina, PublicKey } from 'o1js'; // const { transactionFee } = configDefaultInstance(); // const plotteryAddress = PublicKey.fromBase58( // 'B62qio1AyjVw6tBqYCuEJqDz3ej3qVCyJjcQfTTbt3VgE6MZmtruiMJ' // ); // let plottery = new PLottery(plotteryAddress); // // const actions = await plottery.reducer.fetchActions(); const network = Mina.Network({ mina: 'https://api.minascan.io/node/devnet/v1/graphql', archive: 'https://api.minascan.io/archive/devnet/v1/graphql', }); Mina.setActiveInstance(network); const actions = await Mina.activeInstance.fetchActions(PublicKey.fromBase58( // 'B62qrHzs8Sn6rJW3Jkd8xvUkPKb4RBC4xsTgKnBd7KvVWnjhkXV7YKJ' 'B62qmASMoUYbRA2TwbB6gDTcdaS9QxEQYghV67i8oMeqA5tsbfvkJ6P' // 'B62qio1AyjVw6tBqYCuEJqDz3ej3qVCyJjcQfTTbt3VgE6MZmtruiMJ' )); // console.log(actions); //# sourceMappingURL=get_actions2.js.map