Skip to content

Instantly share code, notes, and snippets.

View Artemyin's full-sized avatar
🌍
Open to communication

Artemii Artemyin

🌍
Open to communication
View GitHub Profile
@Artemyin
Artemyin / ft_contract.py
Created March 31, 2025 17:54
NEAR_ft_contract_py
from near_sdk_py import Contract, view, call, init, AccountId
from near_sdk_py import Promise
from near_sdk_py.contract import StorageError, ContractPanic, InvalidInput, ContractStorage
from near_sdk_py.collections import LookupMap, UnorderedMap
class FungibleToken(Contract):
# def safe_get(self, key):
# if not key in self.storage:
# raise StorageError