sui_getNormalizedMoveModulesByPackage

Move Utils

Return structured representations of all modules in the given package

Parameters

KeyRequiredType
packageObjectID
"params": [
  "0x225a5eb5c580cb6b6c44ffd60c4d79021e79c5a6cea7eb3e60962ee5f9bc6cb2"
]

Result

BTreeMap<String,SuiMoveNormalizedModule> : <object>

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getNormalizedMoveModulesByPackage",
  "params": [
    "0x225a5eb5c580cb6b6c44ffd60c4d79021e79c5a6cea7eb3e60962ee5f9bc6cb2"
  ]
}
'

Response

{
    "jsonrpc": "2.0",
    "result": {
        "game_8192": {
            "fileFormatVersion": 6,
            "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
            "name": "game_8192",
            "friends": [
                {
                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                    "name": "leaderboard_8192"
                }
            ],
            "structs": {
                "GAME_8192": {
                    "abilities": {
                        "abilities": [
                            "Drop"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "dummy_field",
                            "type": "Bool"
                        }
                    ]
                },
                "Game8192": {
                    "abilities": {
                        "abilities": [
                            "Store",
                            "Key"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "UID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "game",
                            "type": "U64"
                        },
                        {
                            "name": "player",
                            "type": "Address"
                        },
                        {
                            "name": "active_board",
                            "type": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "move_count",
                            "type": "U64"
                        },
                        {
                            "name": "score",
                            "type": "U64"
                        },
                        {
                            "name": "top_tile",
                            "type": "U64"
                        },
                        {
                            "name": "game_over",
                            "type": "Bool"
                        }
                    ]
                },
                "Game8192Maintainer": {
                    "abilities": {
                        "abilities": [
                            "Key"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "UID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "maintainer_address",
                            "type": "Address"
                        },
                        {
                            "name": "game_count",
                            "type": "U64"
                        },
                        {
                            "name": "fee",
                            "type": "U64"
                        },
                        {
                            "name": "balance",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "balance",
                                    "name": "Balance",
                                    "typeArguments": [
                                        {
                                            "Struct": {
                                                "address": "0x2",
                                                "module": "sui",
                                                "name": "SUI",
                                                "typeArguments": []
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    ]
                },
                "GameMove8192": {
                    "abilities": {
                        "abilities": [
                            "Store"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "direction",
                            "type": "U64"
                        },
                        {
                            "name": "player",
                            "type": "Address"
                        }
                    ]
                },
                "GameMoveEvent8192": {
                    "abilities": {
                        "abilities": [
                            "Copy",
                            "Drop"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "game_id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "ID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "direction",
                            "type": "U64"
                        },
                        {
                            "name": "move_count",
                            "type": "U64"
                        },
                        {
                            "name": "packed_spaces",
                            "type": "U64"
                        },
                        {
                            "name": "last_tile",
                            "type": {
                                "Vector": "U64"
                            }
                        },
                        {
                            "name": "top_tile",
                            "type": "U64"
                        },
                        {
                            "name": "score",
                            "type": "U64"
                        },
                        {
                            "name": "game_over",
                            "type": "Bool"
                        }
                    ]
                },
                "GameOverEvent8192": {
                    "abilities": {
                        "abilities": [
                            "Copy",
                            "Drop"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "game_id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "ID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "top_tile",
                            "type": "U64"
                        },
                        {
                            "name": "score",
                            "type": "U64"
                        }
                    ]
                },
                "NewGameEvent8192": {
                    "abilities": {
                        "abilities": [
                            "Copy",
                            "Drop"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "game_id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "ID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "player",
                            "type": "Address"
                        },
                        {
                            "name": "score",
                            "type": "U64"
                        },
                        {
                            "name": "packed_spaces",
                            "type": "U64"
                        }
                    ]
                }
            },
            "exposedFunctions": {
                "active_board": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ]
                },
                "change_fee": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192Maintainer",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U64",
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "change_maintainer": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192Maintainer",
                                    "typeArguments": []
                                }
                            }
                        },
                        "Address",
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "create": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192Maintainer",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "coin",
                                    "name": "Coin",
                                    "typeArguments": [
                                        {
                                            "Struct": {
                                                "address": "0x2",
                                                "module": "sui",
                                                "name": "SUI",
                                                "typeArguments": []
                                            }
                                        }
                                    ]
                                }
                            }
                        },
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "create_maintainer": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Struct": {
                                "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                "module": "game_8192",
                                "name": "Game8192Maintainer",
                                "typeArguments": []
                            }
                        }
                    ]
                },
                "id": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Struct": {
                                "address": "0x2",
                                "module": "object",
                                "name": "ID",
                                "typeArguments": []
                            }
                        }
                    ]
                },
                "make_move": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U64",
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "move_count": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "pay_maintainer": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192Maintainer",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "player": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "Address"
                        }
                    ]
                },
                "score": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "top_tile": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                }
            }
        },
        "game_board_8192": {
            "fileFormatVersion": 6,
            "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
            "name": "game_board_8192",
            "friends": [
                {
                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                    "name": "game_8192"
                }
            ],
            "structs": {
                "GameBoard8192": {
                    "abilities": {
                        "abilities": [
                            "Copy",
                            "Drop",
                            "Store"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "packed_spaces",
                            "type": "U64"
                        },
                        {
                            "name": "score",
                            "type": "U64"
                        },
                        {
                            "name": "last_tile",
                            "type": {
                                "Vector": "U64"
                            }
                        },
                        {
                            "name": "top_tile",
                            "type": "U64"
                        },
                        {
                            "name": "game_over",
                            "type": "Bool"
                        }
                    ]
                },
                "SpacePosition": {
                    "abilities": {
                        "abilities": [
                            "Copy",
                            "Drop"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "row",
                            "type": "U8"
                        },
                        {
                            "name": "column",
                            "type": "U8"
                        }
                    ]
                }
            },
            "exposedFunctions": {
                "board_space_at": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U8",
                        "U8"
                    ],
                    "return": [
                        "U64"
                    ]
                },
                "column_count": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [],
                    "return": [
                        "U8"
                    ]
                },
                "default": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Vector": "U8"
                        }
                    ],
                    "return": [
                        {
                            "Struct": {
                                "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                "module": "game_board_8192",
                                "name": "GameBoard8192",
                                "typeArguments": []
                            }
                        }
                    ]
                },
                "down": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [],
                    "return": [
                        "U64"
                    ]
                },
                "empty_space_count": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        "U64"
                    ]
                },
                "empty_space_positions": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U64"
                    ],
                    "return": [
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "SpacePosition",
                                    "typeArguments": []
                                }
                            }
                        }
                    ]
                },
                "game_over": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "Bool"
                        }
                    ]
                },
                "last_tile": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": {
                                "Vector": "U64"
                            }
                        }
                    ]
                },
                "left": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [],
                    "return": [
                        "U64"
                    ]
                },
                "move_direction": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U64",
                        {
                            "Vector": "U8"
                        }
                    ],
                    "return": []
                },
                "move_spaces": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        "U64",
                        "U64"
                    ],
                    "return": [
                        "U64",
                        "U64",
                        "U64"
                    ]
                },
                "packed_spaces": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "right": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [],
                    "return": [
                        "U64"
                    ]
                },
                "row_count": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [],
                    "return": [
                        "U8"
                    ]
                },
                "score": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "space_at": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        "U64",
                        "U8",
                        "U8"
                    ],
                    "return": [
                        "U64"
                    ]
                },
                "top_tile": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_board_8192",
                                    "name": "GameBoard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "up": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [],
                    "return": [
                        "U64"
                    ]
                }
            }
        },
        "leaderboard_8192": {
            "fileFormatVersion": 6,
            "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
            "name": "leaderboard_8192",
            "friends": [],
            "structs": {
                "Leaderboard8192": {
                    "abilities": {
                        "abilities": [
                            "Store",
                            "Key"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "UID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "max_leaderboard_game_count",
                            "type": "U64"
                        },
                        {
                            "name": "top_games",
                            "type": {
                                "Vector": {
                                    "Struct": {
                                        "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                        "module": "leaderboard_8192",
                                        "name": "TopGame8192",
                                        "typeArguments": []
                                    }
                                }
                            }
                        },
                        {
                            "name": "min_tile",
                            "type": "U64"
                        },
                        {
                            "name": "min_score",
                            "type": "U64"
                        }
                    ]
                },
                "TopGame8192": {
                    "abilities": {
                        "abilities": [
                            "Copy",
                            "Drop",
                            "Store"
                        ]
                    },
                    "typeParameters": [],
                    "fields": [
                        {
                            "name": "game_id",
                            "type": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "object",
                                    "name": "ID",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "name": "leader_address",
                            "type": "Address"
                        },
                        {
                            "name": "top_tile",
                            "type": "U64"
                        },
                        {
                            "name": "score",
                            "type": "U64"
                        }
                    ]
                }
            },
            "exposedFunctions": {
                "create": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x2",
                                    "module": "tx_context",
                                    "name": "TxContext",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "game_count": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        "U64"
                    ]
                },
                "merge": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ]
                },
                "merge_sort_top_games": {
                    "visibility": "Friend",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Vector": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ]
                },
                "min_score": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "min_tile": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "submit_game": {
                    "visibility": "Public",
                    "isEntry": true,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "game_8192",
                                    "name": "Game8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        {
                            "MutableReference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": []
                },
                "top_game_at": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U64"
                    ],
                    "return": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ]
                },
                "top_game_at_has_id": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        },
                        "U64",
                        {
                            "Struct": {
                                "address": "0x2",
                                "module": "object",
                                "name": "ID",
                                "typeArguments": []
                            }
                        }
                    ],
                    "return": [
                        "Bool"
                    ]
                },
                "top_game_game_id": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Struct": {
                                "address": "0x2",
                                "module": "object",
                                "name": "ID",
                                "typeArguments": []
                            }
                        }
                    ]
                },
                "top_game_score": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "top_game_top_tile": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "TopGame8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": "U64"
                        }
                    ]
                },
                "top_games": {
                    "visibility": "Public",
                    "isEntry": false,
                    "typeParameters": [],
                    "parameters": [
                        {
                            "Reference": {
                                "Struct": {
                                    "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                    "module": "leaderboard_8192",
                                    "name": "Leaderboard8192",
                                    "typeArguments": []
                                }
                            }
                        }
                    ],
                    "return": [
                        {
                            "Reference": {
                                "Vector": {
                                    "Struct": {
                                        "address": "0x72f9c76421170b5a797432ba9e1b3b2e2b7cf6faa26eb955396c773af2479e1e",
                                        "module": "leaderboard_8192",
                                        "name": "TopGame8192",
                                        "typeArguments": []
                                    }
                                }
                            }
                        }
                    ]
                }
            }
        }
    },
    "id": 1
}
Language
Click Try It! to start a request and see the response here!