Jungle 4 (Testnet)

contract2.gm

컨트랙트

이 컨트랙트의 액션과 입력 파라미터, 잠재적 응답 데이터입니다.

  • addmodule

    Install a module into a slot

    요청 매개변수
    entity_id uint64
    module_index uint8
    module_ref cargo_ref
    target_ref cargo_ref?
  • addnexus

    Add a nexus location

    요청 매개변수
    nexus_name string
    x int64
    y int64
  • 요청 매개변수
    oracle_id name
  • blend

    Blend cargo stacks

    요청 매개변수
    id uint64
    inputs cargo_item[]
  • 요청 매개변수
    builder_id uint64
    plot_id uint64
    응답 배열
    entities entity_task_info[]
  • cancel

    Cancel scheduled tasks

    요청 매개변수
    id uint64
    count uint64
    응답 객체
    entity_id uint64
    entity_type name
    cancelled_count uint8
    schedule_started time_point?
    entitygroup uint64?
    group_members B_vector_entity_ref_E?
  • 요청 매개변수
    builder_id uint64
    target_item_id uint16
    coords coordinates
    응답 배열
    entities entity_task_info[]
  • cleanrsvp

    Clean up past epoch reserves

    요청 매개변수
    epoch uint64
    max_rows uint64
  • cleartable

    DEBUG: cleartable action

    요청 매개변수
    table_name name
    scope name?
    max_rows uint64?
  • commit

    Set commit value

    요청 매개변수
    oracle_id name
    epoch uint64
    commit checksum256
  • configlog

    Log game configuration

    요청 매개변수
    config game_config
  • craft

    Craft items from a recipe

    요청 매개변수
    id uint64
    recipe_id uint16
    quantity uint32
    inputs cargo_item[]
    응답 배열
    entities entity_task_info[]
  • demolish

    Demolish a stationary entity

    요청 매개변수
    entity_id uint64
    응답 배열
    entities entity_task_info[]
  • deploy

    Deploy a packed entity

    요청 매개변수
    id uint64
    ref cargo_ref
    응답 배열
    entities entity_task_info[]
  • descentity

    Describe a packed entity

    요청 매개변수
    item_id uint16
    hull_stats uint64
    module_items uint16[]
    module_stats uint64[]
    응답 객체
    descentity string
  • enable

    Set enabled state

    요청 매개변수
    enabled bool
  • fixcargomass

    DEBUG: recompute entity cargo mass

    요청 매개변수
    entity_id uint64
  • forcereveal

    DEBUG: force-finalize an epoch from existing reveals

    요청 매개변수
    epoch uint64
  • gather

    Gather resources

    요청 매개변수
    source_id uint64
    destination_id uint64
    stratum uint16
    quantity uint32
    응답 배열
    entities entity_task_info[]
  • getconfig

    Get game configuration

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 객체
    version uint32
    defaults entity_defaults
    items item_def[]
  • 요청 매개변수
    owner name
    asset_id uint64
    응답 객체
    getdeposit extended_asset
  • geteligible

    Get eligible resource item IDs at a location and stratum

    요청 매개변수
    coords coordinates
    stratum uint16
    응답 배열
    geteligible uint16[]
  • getentcls

    Get entity class enum values

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    members enum_member[]
  • getentities

    Get all entities for a player

    요청 매개변수
    owner name
    entity_type name?
    응답 배열
    ... entity_info[]
  • getentity

    Get entity state

    요청 매개변수
    entity_id uint64
    응답 객체
    type name
    id uint64
    owner name
    entity_name string
    coordinates coordinates
    item_id uint16
    cargomass uint32
    cargo cargo_view[]
    modules module_entry[]
    energy uint16?
    hullmass uint32?
    capacity uint32?
    engines movement_stats?
    warp warp_stats?
    generator energy_stats?
    gatherer gatherer_stats?
    loaders loader_stats?
    hauler hauler_stats?
    crafter crafter_stats?
    is_idle bool
    current_task task?
    current_task_elapsed uint32
    current_task_remaining uint32
    pending_tasks task[]
    idle_at time_point?
    schedule schedule?
  • getitemdata

    Get full item catalog

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    items item_def[]
    recipes recipes_result
  • getitemids

    Get item id to name mappings

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    items item_id_pair[]
  • getitems

    Get all available items

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    items item_def[]
  • 요청 매개변수
    item_id uint16
    응답 객체
    getitemtype uint8
  • getitemtypes

    Get item type enum values

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    members enum_member[]
  • getkindmeta

    Get entity kind metadata

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    kinds kind_meta_row[]
    templates template_meta_row[]
  • getlocation

    Get location information

    요청 매개변수
    x int64
    y int64
    응답 객체
    coords coordinates
    is_system bool
  • getlocdata

    Get derived location data

    요청 매개변수
    x int64
    y int64
    응답 객체
    static_props location_static
    size uint16
  • getmodtypes

    Get module type enum values

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    members enum_member[]
  • getmodules

    Get all module items

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    modules module_info[]
  • getnearby

    Get nearby reachable systems

    요청 매개변수
    entity_id uint64
    recharge bool
    응답 객체
    can_travel bool
    current entity_current_state
    projected entity_current_state
    max_energy uint16
    systems nearby_system[]
  • 요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    getnftbase string[]
  • getnftinfo

    Get NFT schema and template configuration

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    schemas nft_schema_def[]
    templates nft_template_def[]
  • getplayer

    Get player information

    요청 매개변수
    account name
    응답 객체
    owner name
    is_player bool
    company_name string
  • getprojstate

    Get projected entity state

    요청 매개변수
    entity_id uint64
    task_count uint8?
    응답 객체
    owner name
    coordinates coordinates
    energy uint16?
    cargomass uint32
    cargo cargo_view[]
    hullmass uint32?
    capacity uint32?
    engines movement_stats?
    warp warp_stats?
    generator energy_stats?
    gatherer gatherer_stats?
    loaders loader_stats?
    hauler hauler_stats?
    crafter crafter_stats?
  • getrecipe

    Get a single crafting recipe

    요청 매개변수
    output_item_id uint16
    응답 배열
    recipes recipe_response[]
  • getrecipes

    List crafting recipes

    요청 매개변수
    lower_bound uint16
    limit uint8
    응답 배열
    recipes recipe_response[]
  • getrescats

    Get resource category enum values

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    members enum_member[]
  • getreserves

    Get current reserve modifications at a location

    요청 매개변수
    x int64
    y int64
    응답 배열
    ... stratum_remaining[]
  • getresources

    Get all resource items

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    resources resource_info[]
  • getslots

    Get entity slot layouts

    요청 매개변수
    액션 매개변수가 없습니다.
    응답 배열
    entities entity_layout[]
  • getstratum

    Get resource stratum data

    요청 매개변수
    x int64
    y int64
    stratum uint16
    응답 객체
    stratum stratum_info
    stats resource_stats
  • getsummaries

    Get entity summaries for a player

    요청 매개변수
    owner name
    entity_type name?
    응답 배열
    ... entity_summary[]
  • grouptravel

    Move multiple entities together

    요청 매개변수
    entities entity_ref[]
    x int64
    y int64
    recharge bool
    응답 배열
    entities entity_task_info[]
  • hash

    Calculate sha256 hash

    요청 매개변수
    value string
    응답 객체
    hash checksum256
  • hash512

    Calculate sha512 hash

    요청 매개변수
    value string
    응답 객체
    hash512 checksum512
  • 요청 매개변수
    row cargo_row
  • 요청 매개변수
    row entity_row
  • 요청 매개변수
    row entitygroup_row
  • 요청 매개변수
    owner name
  • 요청 매개변수
    epoch_scope uint32
    row reserve_row
  • 요청 매개변수
    row state_row
  • join

    Join a game

    요청 매개변수
    account name
  • nftimgurl

    Get NFT image URL for a cargo item

    요청 매개변수
    item cargo_item
    location coordinates?
    응답 객체
    nftimgurl string
  • notify

    Task lifecycle notification

    요청 매개변수
    event task_event
  • placecargo

    Restore NFT cargo onto a host entity

    요청 매개변수
    owner name
    host_id uint64
    asset_id uint64
    응답 배열
    entities entity_task_info[]
  • placeentity

    Materialize a packed-entity NFT as a live entity

    요청 매개변수
    owner name
    asset_id uint64
    target_nexus_id uint64
    응답 배열
    entities entity_task_info[]
  • recharge

    Recharge ship energy

    요청 매개변수
    id uint64
    응답 배열
    entities entity_task_info[]
  • refrshentity

    Refresh derived entity state

    요청 매개변수
    entity_id uint64
  • 요청 매개변수
    oracle_id name
  • resolve

    Complete scheduled tasks

    요청 매개변수
    id uint64
    count uint64?
    응답 객체
    entity_id uint64
    entity_type name
    resolved_count uint8
    new_schedule_started time_point?
    entitygroup uint64?
    group_members B_vector_entity_ref_E?
  • 요청 매개변수
    oracle_id name
    epoch uint64
    reveal checksum256
  • rmmodule

    Remove a module from a slot

    요청 매개변수
    entity_id uint64
    module_index uint8
    target_ref cargo_ref?
  • rmnftcfg

    Remove NFT template mapping for an item

    요청 매개변수
    item_id uint16
  • setnftcfg

    Set NFT template mapping for an item

    요청 매개변수
    item_id uint16
    template_id int32
    schema_name name
  • 요청 매개변수
    threshold uint8
  • 요청 매개변수
    item_type uint8
    tier uint8
    amount uint64
  • 요청 매개변수
    fee_pct uint16
    fee_account name
  • stowcargo

    Reserve a cargo stack for wrapping into an NFT

    요청 매개변수
    owner name
    entity_id uint64
    nexus_id uint64
    cargo_id uint64
    quantity uint64
    응답 배열
    entities entity_task_info[]
  • stowentity

    Reserve an entity for wrapping into an NFT

    요청 매개변수
    owner name
    entity_id uint64
    nexus_id uint64
    응답 배열
    entities entity_task_info[]
  • transfer

    Transfer cargo between entities

    요청 매개변수
    source_id uint64
    dest_id uint64
    items cargo_item[]
    응답 배열
    entities entity_task_info[]
  • travel

    Move a ship

    요청 매개변수
    id uint64
    x int64
    y int64
    recharge bool
    응답 배열
    entities entity_task_info[]
  • undeploy

    Pack a deployed entity into a host

    요청 매개변수
    host_id uint64
    target_id uint64
    응답 배열
    entities entity_task_info[]
  • warp

    Warp to a destination

    요청 매개변수
    id uint64
    x int64
    y int64
    응답 배열
    entities entity_task_info[]
  • wipe

    DEBUG: wipe action

    요청 매개변수
    액션 매개변수가 없습니다.