Skip to content

PaintSwap/estfor-contracts

Repository files navigation

Estfor Kingdom contracts

image

Continuous integration

All the smart contract code for the Estfor Kingdom RPG game on the Fantom Blockchain.

Make sure yarn is installed (or replace with equivalent npm instructions)

These contracts use hardhat and require solidity 0.8.20 at minimum.

Install dependencies:

yarn install

To compile:

yarn compile

To run the tests:

yarn test

To deploy the contracts:

yarn deploy

To verify the contracts on ftmscan:

yarn verifyContracts

To check storage slot packing of the test file:

yarn umlStorage

Fantom mainnet deployed contract addresses:

WorldLibrary 0xcba2273a46649cc0ce76e69eb0bb05d9b699ca38
World 0x28866bf156152966b5872bee39bc05b5b5eedb02
Shop 0x7fb574e4fbe876f751fec90e59686c2776df19f9
RoyaltyReceiver 0xc3d53b81042454aa5fcf5c4e95de3e796dddb28b
AdminAccess 0xe63b7195b301b9313c9e337df4aceac436c3751e
ItemNFTLibrary 0x8d61639c830aaf82c8549c36e65a9aeef9a73b45
ItemNFT 0x4b9c90ebb1fa98d9724db46c4689994b46706f5a
EstforLibrary 0x804a530f41ecf0c40cd4e312a72e033c78a2c1fa
PlayerNFT 0xb809ed839c691d465e2ec45e1bcb5e5aded50fb9
PromotionsLibrary 0x8b7e1bd3fe31d926209adfdbdc9d48a74e5666f5
Promotions 0x7d1c598266Dd6Bb0Ed7a76161c11e5073D8A71A4
Quests 0x17c59f0d2d4f80FD0F906Df53a28272736c7b455
Clans 0x334caa8907bdf49470f7b085380c25431ef96f6d
WishingWell 0x0a8d80ce4855666b7d7121d75f2a49aac434a918
Bank Beacon 0xe183a43881eac74808c55bdb2a073929602af4db

PlayersLibrary 0xf01bc981a79f38b74a9b3953ee5aa6c95d9eded7
PlayersImplQueueActions 0x05b9958e6f209d9d0594d34f0ac44d1f9bf128d6
PlayersImplProcessActions 0x61da56557859597fa6bf693b7f149bc3934ac497
PlayersImplRewards 0x8eae3948ff44ddce15223902b396f373692a422e
PlayersImplMisc 0xd5aba67d0469fd553c9c5fb6b3534b98db3e1558
PlayersImplMisc1 0xc55b5e713ee31a641e090d1e550bf4fcfe0b6ba4
Players 0x058ec56aba13f7fee3ae9c9b91b3bb03bc336143

BankRegistry 0x55a1b0251e1375bd41dd9778c379322e3863a54e
BankFactory 0x4af59427b2aeb66e6f7dca98c366ec66cca4e8d4

InstantActions 0x7e89fe755b546b10ea8372b056ea0d7b26cf36fe
InstantVRFActions 0xfe2c07fd7751bba25164adbd96e09b382403f4d7
GenericInstantVRFActionStrategy 0x6270b82049724ff6d7a78b71f2273bba03bfcdfc
EggInstantVRFActionStrategy 0x7797fd3904fc399184d2a549dff025210d62e645
VRFRequestInfo 0x8c3dcf7b09ea620b265d9daab237f29f485f725b

LockedBankVaults 0x65e944795d00cc287bdace77d57571fc4deff3e0
LockedBankVaultsLibrary 0xd5a209d7fa6bc485b3c4120aaec75b2912cfe4e8
Territories 0x2cfd3b9f8b595200d6b4b7f667b2a1bcc6d0c170
CombatantsHelper 0x8fedf83c55012acff7115b8fa164095721953c39
DecoratorProvider 0xba2f8cff9ea18f3687eb685f0c1bcd509b539963

PetNFTLibrary 0x517792d5cbb33cd337a2ef1bc6290ad964ea434e
PetNFT 0x1681f593ac5cba407c2a190de0ca2beb4a69b5d3
PassiveActions 0xa3e3a69edaee89b8dbbd1ca37704cc574cb8e1d4

Oracle 0x28ade840602d0363a2ab675479f1b590b23b0490
VRF 0xeF5AC0489fc8ABC1085E8D1f5BEE85e74E6D2cC2
Bazaar 0x6996c519dA4ac7815bEFbd836cf0b78Aa62fdBcE

Fantom mainnet beta deployed contract addresses:

WorldLibrary 0x31edace030c71d33bd8b6e53c1df123c0404e5ca
World 0xe2f0b5cb118da85be68de1801d40726ce48009aa
Shop 0xc5e24fbaba1a945226ad2f882e14fc7b44dc1f30
RoyaltyReceiver 0xc5de7625e1b5cb91d92bc65fd4d787f01c43e38e
AdminAccess 0xa298f1636dacab0db352fec84d2079814e0ce778
ItemNFTLibrary 0x2d0b79a4d76d6fd86b8ba08acc68d3f35430aa7a
ItemNFT 0x1dae89b469d15b0ded980007dfdc8e68c363203d
EstforLibrary 0xAD4Fe5A1d43F986659F548Cc899dCD4045FA9974
PlayerNFT 0xde70e49756322afdf7714d3aca963abcb4547b8d
PromotionsLibrary 0x8b7e1bd3fe31d926209adfdbdc9d48a74e5666f5
Promotions 0xf28cab48e29be56fcc68574b5c147b780c35647c
Quests 0x96948a6df3a64cc2eb0a1825fccd26f0c93bfce9
Clans 0xd35410f526db135f09bb8e2bb066c8a63135d812
WishingWell 0xdd1131f57e5e416622fa2b61d4108822e8cc38dc
Bank Beacon 0x73d1b1420deaeb6474b8aafb1d8229d392d1a04e

PlayersLibrary 0xf54e3b0964f79b175c1117e0deff53ecdfcc1cc6
PlayersImplQueueActions 0x16b6c67f7cf04d26ea94695b299fb3cb9cc06a93
PlayersImplProcessActions 0x0d87d2dfaad816849c0e26aa65cacaf0ff1644bb
PlayersImplRewards 0xd61a2941696b4b4e688cd29e3712bed34248820f
PlayersImplMisc 0x6ed6f113a1d1e812f5d4cb88b3d5ed886a04eee3
PlayersImplMisc1 0xd44f5989bd7a8a9613d0ae5fff6e696e186c535c
Players 0x0aac9c0966ad5ea59cd0a47a0d415a68126ab7be

BankRegistry 0xd5da02cee3d9ef0d63d1b79c659df16770c3c4e0
BankProxy 0xe1998e9bad94716ecf81f3a3bead5fed3fb023cb
BankFactory 0x7b8197e7d7352e8910a7af79a9184f50290403da

InstantActions 0xe9a1a09be4a64f806a26b33fbdf07a6f3e61af76
InstantVRFActions 0xbbcc13d2359ad6f2c02e172de46097a1c534ef89
GenericInstantVRFActionStrategy 0xc4c92d3987cc0bad3219e696653eb87eddda78c6
EggInstantVRFActionStrategy 0x941369948CC8a4b5b8eFb1F688Eddfe26A736039
VRFRequestInfo 0x9bcf94e6c067c575dd6a748e45330b4ae4dc0483

LockedBankVaultsLibrary 0x4361e1825cf5c910d1589600df613322e0e704b0
LockedBankVaults 0x40567ad9cd25c56422807ed67f0e66f1825bdb91
Territories 0xf31517db9f0987002f3a0fb4f787dfb9e892f184
CombatantsHelper 0xe8231ac805a88b3c72e9602c2ae14a5d3421bc7c
DecoratorProvider 0xea8c4d188eb8d9704bc36931d89ba4f8e935cee2

PetNFTLibrary 0x517792d5cbb33cd337a2ef1bc6290ad964ea434e
PetNFT 0xa6489181b24e966402891225c65f8e2d136ddd2e
PassiveActions 0x3df5b6cad0d2de6b71f2d5084e0b933dbcd395f6

Oracle 0x6f7911cbbd4b5a1d2bdaa817a76056e510d728e7
VRF 0x58E9fd2Fae18c861B9F564200510A88106C05756
Bazaar 0x082480aAAF1ac5bb0Db2c241eF8b4230Da85E191

Other addresses:

Brush 0x85dec8c4b2680793661bca91a8f129607571863d