Skip to content

Instantly share code, notes, and snippets.

View EdoWahdana's full-sized avatar
🎯
Focusing

Edd EdoWahdana

🎯
Focusing
View GitHub Profile
@EdoWahdana
EdoWahdana / lib.rs
Created October 12, 2021 12:39
Neargochi Smart Contract
use near_sdk::borsh::{self, BorshDeserialize, BorshSerialize};
use near_sdk::{env, near_bindgen, setup_alloc};
use rand::Rng; // 0.8.0
setup_alloc!();
#[near_bindgen]
#[derive(Default, BorshDeserialize, BorshSerialize)]
pub struct Status {
weight: i16,