๐Ÿ”—Details

OPEN A TRADE

PARTY A

Call the function open_trade() by supplying the needed resources.

e.g : ResourcesNeeded {

MIN_WOOD : Uint256,

MIN_STONE : Uint256,

MIN_COAL : Uint256,

MIN_COPPER : Uint256,

MIN_OBSIDIAN : Uint256,

MIN_SILVER : Uint256,

MIN_IRONWOOD : Uint256,

MIN_COLD_IRON : Uint256,

MIN_GOLD : Uint256,

MIN_HARTWOOD : Uint256,

MIN_DIAMONDS : Uint256,

MIN_SAPPHIRE : Uint256,

MIN_RUBY : Uint256,

MIN_DEEP_CRYSTAL : Uint256,

MIN_IGNUM : Uint256,

MIN_ETHEREAL_SILICA : Uint256,

MIN_TRUE_ICE : Uint256,

MIN_TWILIGHT_QUARTZ : Uint256,

MIN_ALCHEMICAL_SILVER : Uint256,

MIN_ADAMANTINE : Uint256,

MIN_MITHRAL : Uint256,

MIN_DRAGONHIDE : Uint256,

}

You just have to specify the minimum amount of each resource you need.

The P2P Contract will open a trade for these specific needs.

PARTY B can then fulfill the swap if it has the required amounts of assets.

If not, the swap is not initiated.

It opens new ways inside Realms to benefit from other's people resources. It bolster the players ties and increase efficiency of resources' usage.

Last updated