Vaulta

mymillionsio

Contract

The data structures defined by this contract.

  • Table row type of accounts

    {
      "name": "Account",
      "base": "",
      "fields": [
        {
          "name": "player_name",
          "type": "name"
        },
        {
          "name": "created_at",
          "type": "time_point"
        },
        {
          "name": "referrer_id",
          "type": "uint64"
        },
        {
          "name": "referral_count",
          "type": "uint16"
        },
        {
          "name": "wood",
          "type": "uint64"
        },
        {
          "name": "metal",
          "type": "uint64"
        },
        {
          "name": "oil",
          "type": "uint64"
        },
        {
          "name": "jewel",
          "type": "uint64"
        },
        {
          "name": "payment_balance",
          "type": "asset"
        },
        {
          "name": "withdraw_balance",
          "type": "asset"
        },
        {
          "name": "entered_money",
          "type": "asset"
        },
        {
          "name": "referral_income",
          "type": "asset"
        }
      ]
    }
  • Table row type of main.cfg

    {
      "name": "Config",
      "base": "",
      "fields": [
        {
          "name": "revision",
          "type": "int32"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "admin",
          "type": "name"
        },
        {
          "name": "developer_wallet",
          "type": "name"
        },
        {
          "name": "main_wallet",
          "type": "name"
        },
        {
          "name": "developers_percent",
          "type": "float64"
        },
        {
          "name": "price_for_1000_wood",
          "type": "float64"
        },
        {
          "name": "price_for_1000_metal",
          "type": "float64"
        },
        {
          "name": "price_for_1000_oil",
          "type": "float64"
        },
        {
          "name": "price_for_1000_jewel",
          "type": "float64"
        },
        {
          "name": "enable_withdraw",
          "type": "bool"
        }
      ]
    }
  • Table row type of factories

    {
      "name": "Factory",
      "base": "",
      "fields": [
        {
          "name": "player_name",
          "type": "name"
        },
        {
          "name": "type",
          "type": "uint8"
        },
        {
          "name": "level",
          "type": "uint8"
        },
        {
          "name": "count",
          "type": "uint32"
        },
        {
          "name": "last_collected",
          "type": "time_point"
        }
      ]
    }
  • Table row type of factory.cfg

    {
      "name": "FactoryConfig",
      "base": "",
      "fields": [
        {
          "name": "type",
          "type": "uint8"
        },
        {
          "name": "level",
          "type": "uint8"
        },
        {
          "name": "produce",
          "type": "uint64"
        },
        {
          "name": "produce_bonus",
          "type": "float64"
        },
        {
          "name": "price_for_next_lvl",
          "type": "uint32"
        }
      ]
    }
  • Table row type of referral.cfg

    {
      "name": "ReferralConfig",
      "base": "",
      "fields": [
        {
          "name": "income_group",
          "type": "uint8"
        },
        {
          "name": "bonus_1st_lvl",
          "type": "float64"
        },
        {
          "name": "bonus_2nd_lvl",
          "type": "float64"
        },
        {
          "name": "bonus_3rd_lvl",
          "type": "float64"
        },
        {
          "name": "bonus_4th_lvl",
          "type": "float64"
        },
        {
          "name": "bonus_5th_lvl",
          "type": "float64"
        }
      ]
    }
  • Action parameter in factory.buy

    {
      "name": "buyFactory",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "resource_type",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in metalf.buy

    {
      "name": "buyMetalFactory",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in oilf.buy

    {
      "name": "buyOilFactory",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in jewelf.buy

    {
      "name": "buyPreciousMetalFactory",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in woodf.buy

    {
      "name": "buyWoodFactory",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in collect.all

    {
      "name": "collectAll",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in collect.one

    {
      "name": "collectFactory",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "resource_type",
          "type": "uint8"
        },
        {
          "name": "level",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in withdraw.set

    {
      "name": "enableWithdraw",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "value",
          "type": "bool"
        }
      ]
    }
  • Action parameter in level.up

    {
      "name": "levelUp",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "resource_type",
          "type": "uint8"
        },
        {
          "name": "level",
          "type": "uint8"
        },
        {
          "name": "count",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in account

    {
      "name": "printAccountInfo",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in metals

    {
      "name": "printCollectedMetals",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in oils

    {
      "name": "printCollectedOils",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in jewels

    {
      "name": "printCollectedPreciousMetals",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in resource

    {
      "name": "printCollectedResource",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "resource_type",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in resources

    {
      "name": "printCollectedResources",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in woods

    {
      "name": "printCollectedWoods",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in printcfg

    {
      "name": "printConfig",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in factories

    {
      "name": "printFactoriesInfo",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in factory

    {
      "name": "printFactoryInfo",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "resource_type",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in referral.id

    {
      "name": "printReferralId",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in account.reg

    {
      "name": "registerUser",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • {
      "name": "registerUserWithReferrer",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "referral_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in sell

    {
      "name": "sell",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "resource_type",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in sell.all

    {
      "name": "sellAll",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        }
      ]
    }
  • Action parameter in admin.set

    {
      "name": "setAdmin",
      "base": "",
      "fields": [
        {
          "name": "caller",
          "type": "name"
        },
        {
          "name": "admin",
          "type": "name"
        }
      ]
    }
  • Action parameter in wallets.set

    {
      "name": "setWallets",
      "base": "",
      "fields": [
        {
          "name": "caller",
          "type": "name"
        },
        {
          "name": "main_wallet",
          "type": "name"
        },
        {
          "name": "dev_wallet",
          "type": "name"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        }
      ]
    }