Flag Storage
The Flag Storage contract is used to store supplemental information about Heroes and Wallets that is not contained in other contracts.
The V1 version of this contract, which primarily stored data about the Perilous Journey and CV Gen0 Rerolls, has been deprecated in favor of V2.
Pertinent information that is still stored in the V1 contract will be migrated to the V2 system in the future.
Contracts
Addresses
DFK Chain
Name | Mainnet | Testnet |
---|---|---|
FlagStorageV2 |
|
|
Klaytn
Name | Mainnet | Testnet |
---|---|---|
FlagStorageV2 |
|
|
Interfaces
ABIs
Historical Contracts
These contracts have been deprecated and should not be used. They are listed here for data analysis and tracking purposes only.
Addresses
DFK Chain
Name | Mainnet | Testnet |
---|---|---|
FlagStorageV1 |
|
|
Harmony
Name | Mainnet | Testnet |
---|---|---|
FlagStorageV1 |
|
|
Interfaces
ABIs
FlagStorageV1
The V1 FlagStorage system is constructed from a two layer mapping, where the first layer is indexed by keys that correspond to wallet addresses or Hero IDs. The second layer is indexed by storage IDs and return an array of uint32
values. These uint
values can be broken down into their individual bits for boolean
storage, or split into lower and upper uint16
values.
To retrieve this data, use getWalletStorageFlag
or getHeroStorageFlag
for boolean
values, and getWallet
/HeroStorageLower
/Upper16BitValue
for uint16
values.
This is not a complete list of Flag Storage data, as the remainder can be retrieved from the Perilous Journey and Gen0 Reroll contracts. All relevant data will eventually be migrated to the V2 contract.
Wallet Storage
Storage ID | Index | Bits | DataType | Data | Network |
---|---|---|---|---|---|
2 | 1 | 0 |
| Donated to Philippines hurricane relief (2021) | Harmony |
2 | 1 | 1 |
| Donated to UNICEF campaign (April 2022) | Harmony DFK Chain |
Hero Storage
Storage ID | Index | Bits | DataType | Data | Network |
---|---|---|---|---|---|
4 | 0 | 0 |
| Perilous Journey Survivor | Harmony |
4 | 0 | 1 |
| Gen0 Reroll (CV) Game Genes | Harmony |
4 | 0 | 2 |
| Gen0 Reroll (CV) Visual Genes | Harmony |
5 | 0 | 0 |
| Hero survived the Perilous Journey | Harmony |
5 | 0 | 1 |
| Hero died on the Perilous Journey | Harmony |
5 | 0 | 2 |
| Hero is eligible for 3x +5 Stat Ups from the Perilous Journey | Harmony |
5 | 0 | 3 |
| Hero received 3x +5 Stat Ups from the Perilous Journey | Harmony |
Last updated