@cartridge/controller 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build$colon$deps.log +20 -20
- package/.turbo/turbo-build.log +21 -21
- package/dist/account.d.ts +1 -1
- package/dist/controller.d.ts +2 -2
- package/dist/controller.js +36 -11
- package/dist/controller.js.map +1 -1
- package/dist/iframe/base.d.ts +1 -1
- package/dist/iframe/base.js +8 -0
- package/dist/iframe/base.js.map +1 -1
- package/dist/iframe/index.d.ts +1 -1
- package/dist/iframe/index.js +15 -3
- package/dist/iframe/index.js.map +1 -1
- package/dist/iframe/keychain.d.ts +1 -1
- package/dist/iframe/keychain.js +8 -0
- package/dist/iframe/keychain.js.map +1 -1
- package/dist/iframe/profile.d.ts +1 -1
- package/dist/iframe/profile.js +15 -3
- package/dist/iframe/profile.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +269 -186
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/session/account.d.ts +1 -1
- package/dist/session/account.js.map +1 -1
- package/dist/session/index.d.ts +1 -1
- package/dist/session/index.js.map +1 -1
- package/dist/session/provider.d.ts +1 -1
- package/dist/telegram/provider.d.ts +1 -1
- package/dist/{types-CCH1I4-O.d.ts → types-BReKRAuh.d.ts} +6 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +3 -3
- package/src/controller.ts +20 -7
- package/src/iframe/base.ts +10 -0
- package/src/iframe/profile.ts +9 -3
- package/src/types.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -290,6 +290,14 @@ var IFrame = class {
|
|
|
290
290
|
this.container.style.visibility = "hidden";
|
|
291
291
|
this.container.style.opacity = "0";
|
|
292
292
|
}
|
|
293
|
+
sendBackward() {
|
|
294
|
+
if (!this.container) return;
|
|
295
|
+
this.container.style.zIndex = "9999";
|
|
296
|
+
}
|
|
297
|
+
sendForward() {
|
|
298
|
+
if (!this.container) return;
|
|
299
|
+
this.container.style.zIndex = "10000";
|
|
300
|
+
}
|
|
293
301
|
resize() {
|
|
294
302
|
if (!this.iframe) return;
|
|
295
303
|
this.iframe.style.userSelect = "none";
|
|
@@ -333,20 +341,24 @@ var ProfileIFrame = class extends IFrame {
|
|
|
333
341
|
constructor({
|
|
334
342
|
profileUrl,
|
|
335
343
|
rpcUrl,
|
|
336
|
-
|
|
337
|
-
slot,
|
|
344
|
+
version,
|
|
338
345
|
username,
|
|
346
|
+
slot,
|
|
347
|
+
namespace,
|
|
339
348
|
tokens,
|
|
340
349
|
...iframeOptions
|
|
341
350
|
}) {
|
|
342
351
|
const _profileUrl = (profileUrl || PROFILE_URL).replace(/\/$/, "");
|
|
343
|
-
|
|
352
|
+
let _url = new URL(
|
|
344
353
|
slot ? namespace ? `${_profileUrl}/account/${username}/slot/${slot}?ps=${encodeURIComponent(
|
|
345
354
|
slot
|
|
346
355
|
)}&ns=${encodeURIComponent(namespace)}` : `${_profileUrl}/account/${username}/slot/${slot}?ps=${encodeURIComponent(
|
|
347
356
|
slot
|
|
348
357
|
)}` : `${_profileUrl}/account/${username}`
|
|
349
358
|
);
|
|
359
|
+
if (version) {
|
|
360
|
+
_url.searchParams.set("v", encodeURIComponent(version));
|
|
361
|
+
}
|
|
350
362
|
_url.searchParams.set("rpcUrl", encodeURIComponent(rpcUrl));
|
|
351
363
|
if (tokens?.erc20) {
|
|
352
364
|
_url.searchParams.set(
|
|
@@ -554,12 +566,13 @@ var ControllerProvider = class extends BaseProvider {
|
|
|
554
566
|
this.profile = profile;
|
|
555
567
|
},
|
|
556
568
|
methods: {
|
|
557
|
-
openSettings: this.openSettings.bind(this),
|
|
558
|
-
openPurchaseCredits: this.openPurchaseCredits.bind(this),
|
|
559
|
-
openExecute: this.openExecute.bind(this)
|
|
569
|
+
openSettings: () => this.openSettings.bind(this),
|
|
570
|
+
openPurchaseCredits: () => this.openPurchaseCredits.bind(this),
|
|
571
|
+
openExecute: () => this.openExecute.bind(this)
|
|
560
572
|
},
|
|
561
573
|
rpcUrl: this.rpc.toString(),
|
|
562
|
-
username
|
|
574
|
+
username,
|
|
575
|
+
version: this.version
|
|
563
576
|
});
|
|
564
577
|
}
|
|
565
578
|
return this.account;
|
|
@@ -633,10 +646,15 @@ var ControllerProvider = class extends BaseProvider {
|
|
|
633
646
|
console.error(new NotReadyToConnect().message);
|
|
634
647
|
return null;
|
|
635
648
|
}
|
|
636
|
-
this.iframes.profile?.
|
|
649
|
+
if (this.iframes.profile?.sendBackward) {
|
|
650
|
+
this.iframes.profile?.sendBackward();
|
|
651
|
+
} else {
|
|
652
|
+
this.iframes.profile?.close();
|
|
653
|
+
}
|
|
637
654
|
this.iframes.keychain.open();
|
|
638
655
|
const res = await this.keychain.openSettings();
|
|
639
656
|
this.iframes.keychain.close();
|
|
657
|
+
this.iframes.profile?.sendForward?.();
|
|
640
658
|
if (res && res.code === "NOT_CONNECTED" /* NOT_CONNECTED */) {
|
|
641
659
|
return false;
|
|
642
660
|
}
|
|
@@ -675,7 +693,7 @@ var ControllerProvider = class extends BaseProvider {
|
|
|
675
693
|
this.iframes.keychain.open();
|
|
676
694
|
this.keychain.openPurchaseCredits();
|
|
677
695
|
}
|
|
678
|
-
openExecute(calls) {
|
|
696
|
+
async openExecute(calls) {
|
|
679
697
|
if (!this.keychain || !this.iframes.keychain) {
|
|
680
698
|
console.error(new NotReadyToConnect().message);
|
|
681
699
|
return;
|
|
@@ -684,9 +702,16 @@ var ControllerProvider = class extends BaseProvider {
|
|
|
684
702
|
console.error("Profile is not ready");
|
|
685
703
|
return;
|
|
686
704
|
}
|
|
687
|
-
this.iframes.profile
|
|
705
|
+
if (this.iframes.profile?.sendBackward) {
|
|
706
|
+
this.iframes.profile?.sendBackward();
|
|
707
|
+
} else {
|
|
708
|
+
this.iframes.profile?.close();
|
|
709
|
+
}
|
|
688
710
|
this.iframes.keychain.open();
|
|
689
|
-
this.keychain.execute(calls);
|
|
711
|
+
const res = await this.keychain.execute(calls, void 0, void 0, true);
|
|
712
|
+
this.iframes.keychain.close();
|
|
713
|
+
this.iframes.profile?.sendForward?.();
|
|
714
|
+
return !(res && res.code === "NOT_CONNECTED" /* NOT_CONNECTED */);
|
|
690
715
|
}
|
|
691
716
|
async delegateAccount() {
|
|
692
717
|
if (!this.keychain) {
|
|
@@ -762,7 +787,7 @@ async function lookupAddresses(addresses) {
|
|
|
762
787
|
);
|
|
763
788
|
}
|
|
764
789
|
|
|
765
|
-
// ../../node_modules/.pnpm/@cartridge+presets@https+++codeload.github.com+cartridge-gg+presets+tar.gz+
|
|
790
|
+
// ../../node_modules/.pnpm/@cartridge+presets@https+++codeload.github.com+cartridge-gg+presets+tar.gz+101d241/node_modules/@cartridge/presets/dist/index.js
|
|
766
791
|
var configs = {
|
|
767
792
|
"blob-arena": {
|
|
768
793
|
origin: "https://www.blobarena.xyz",
|
|
@@ -881,13 +906,24 @@ var configs = {
|
|
|
881
906
|
name: "Dope Wars"
|
|
882
907
|
}
|
|
883
908
|
},
|
|
909
|
+
dragark: {
|
|
910
|
+
origin: "https://dragark.net",
|
|
911
|
+
theme: {
|
|
912
|
+
colors: {
|
|
913
|
+
primary: "#ED1138"
|
|
914
|
+
},
|
|
915
|
+
cover: "https://static.cartridge.gg/presets/dragark/cover.png",
|
|
916
|
+
icon: "https://static.cartridge.gg/presets/dragark/icon.png",
|
|
917
|
+
name: "Dragark"
|
|
918
|
+
}
|
|
919
|
+
},
|
|
884
920
|
eternum: {
|
|
885
921
|
origin: "eternum.realms.world",
|
|
886
922
|
policies: {
|
|
887
923
|
contracts: {
|
|
888
|
-
"
|
|
924
|
+
"0x4ed3a7c5f53c6e96186eaf1b670bd2e2a3699c08e070aedf4e5fc6ac246ddc1": {
|
|
889
925
|
name: "Pillage",
|
|
890
|
-
description: "Allows you raid a structure and pillage resources",
|
|
926
|
+
description: "Allows you to raid a structure and pillage resources",
|
|
891
927
|
methods: [
|
|
892
928
|
{
|
|
893
929
|
name: "Battle Pillage",
|
|
@@ -896,7 +932,7 @@ var configs = {
|
|
|
896
932
|
}
|
|
897
933
|
]
|
|
898
934
|
},
|
|
899
|
-
"
|
|
935
|
+
"0x2620f65aa2fd72d705306ada1ee7410023a3df03da9291f1ccb744fabfebc0": {
|
|
900
936
|
name: "Battle contract",
|
|
901
937
|
description: "Required to engage in battles",
|
|
902
938
|
methods: [
|
|
@@ -924,10 +960,15 @@ var configs = {
|
|
|
924
960
|
name: "Battle Claim",
|
|
925
961
|
description: "Claim a structure after a battle",
|
|
926
962
|
entrypoint: "battle_claim"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
name: "Battle Resolve",
|
|
966
|
+
description: "Reopens the bank after battle",
|
|
967
|
+
entrypoint: "battle_resolve"
|
|
927
968
|
}
|
|
928
969
|
]
|
|
929
970
|
},
|
|
930
|
-
"
|
|
971
|
+
"0x6bf57710571fd159e71b1ed155bb0759027e416c88a06556f321c94c214e768": {
|
|
931
972
|
name: "Leave battle contract",
|
|
932
973
|
description: "Allows armies to leave a battle",
|
|
933
974
|
methods: [
|
|
@@ -943,7 +984,7 @@ var configs = {
|
|
|
943
984
|
}
|
|
944
985
|
]
|
|
945
986
|
},
|
|
946
|
-
"
|
|
987
|
+
"0x4b6a35c0c541467674ebb9640113a6d79c6f5a468796e9299b8e484a770032a": {
|
|
947
988
|
name: "Building contract",
|
|
948
989
|
description: "Allows to manage buildings",
|
|
949
990
|
methods: [
|
|
@@ -969,7 +1010,7 @@ var configs = {
|
|
|
969
1010
|
}
|
|
970
1011
|
]
|
|
971
1012
|
},
|
|
972
|
-
"
|
|
1013
|
+
"0x57d514154bb4dc319539d4e338312a41c248fb6a5122f82b2f2e11ddd3e67e4": {
|
|
973
1014
|
name: "Guild contract",
|
|
974
1015
|
description: "Allows guild utilities",
|
|
975
1016
|
methods: [
|
|
@@ -988,11 +1029,6 @@ var configs = {
|
|
|
988
1029
|
description: "Add a player to the guild's whitelist",
|
|
989
1030
|
entrypoint: "whitelist_player"
|
|
990
1031
|
},
|
|
991
|
-
{
|
|
992
|
-
name: "Leave Guild",
|
|
993
|
-
description: "Exit the current guild",
|
|
994
|
-
entrypoint: "leave_guild"
|
|
995
|
-
},
|
|
996
1032
|
{
|
|
997
1033
|
name: "Transfer Guild Ownership",
|
|
998
1034
|
description: "Transfer ownership of the guild to another player",
|
|
@@ -1010,10 +1046,15 @@ var configs = {
|
|
|
1010
1046
|
}
|
|
1011
1047
|
]
|
|
1012
1048
|
},
|
|
1013
|
-
"
|
|
1049
|
+
"0x2fcc3c1691387321c2f4d6310eda7a14365bd274c1a37ed3948d2e93a56f821": {
|
|
1014
1050
|
name: "Hyperstructure contract",
|
|
1015
1051
|
description: "Handles the creation and management of hyperstructures",
|
|
1016
1052
|
methods: [
|
|
1053
|
+
{
|
|
1054
|
+
name: "Get Points",
|
|
1055
|
+
description: "Gets your total number of points",
|
|
1056
|
+
entrypoint: "get_points"
|
|
1057
|
+
},
|
|
1017
1058
|
{
|
|
1018
1059
|
name: "Create",
|
|
1019
1060
|
description: "Create a new hyperstructure",
|
|
@@ -1041,7 +1082,7 @@ var configs = {
|
|
|
1041
1082
|
}
|
|
1042
1083
|
]
|
|
1043
1084
|
},
|
|
1044
|
-
"
|
|
1085
|
+
"0xa052c5ca082356bcc8457f0f805eaf18f97d0fdddde3f90f5b238923859ed4": {
|
|
1045
1086
|
name: "AMM liquidity contract",
|
|
1046
1087
|
description: "Manages liquidity for the Automated Market Maker",
|
|
1047
1088
|
methods: [
|
|
@@ -1057,7 +1098,7 @@ var configs = {
|
|
|
1057
1098
|
}
|
|
1058
1099
|
]
|
|
1059
1100
|
},
|
|
1060
|
-
"
|
|
1101
|
+
"0x4a212c52c4035bc9bd170125216604f406dcd75b41be11d3b4d89047366d84d": {
|
|
1061
1102
|
name: "Exploration contract",
|
|
1062
1103
|
description: "Allows you to move to unexplored hexes on the map",
|
|
1063
1104
|
methods: [
|
|
@@ -1068,7 +1109,7 @@ var configs = {
|
|
|
1068
1109
|
}
|
|
1069
1110
|
]
|
|
1070
1111
|
},
|
|
1071
|
-
"
|
|
1112
|
+
"0x7e3bae0e253a0131063b63ee4d7b27b50329c617ae88b82d529a70f1a11c63": {
|
|
1072
1113
|
name: "Naming contract",
|
|
1073
1114
|
description: "Manages entity naming in the game",
|
|
1074
1115
|
methods: [
|
|
@@ -1076,13 +1117,23 @@ var configs = {
|
|
|
1076
1117
|
name: "Set Entity Name",
|
|
1077
1118
|
description: "Assign a custom name to a game entity",
|
|
1078
1119
|
entrypoint: "set_entity_name"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
name: "Set Address Name",
|
|
1123
|
+
description: "Assign a custom name to a user's address",
|
|
1124
|
+
entrypoint: "set_address_name"
|
|
1079
1125
|
}
|
|
1080
1126
|
]
|
|
1081
1127
|
},
|
|
1082
|
-
"
|
|
1128
|
+
"0x1b480f620ea35431ab43dba634795b14f547ef3e77370db6f0a31f2fdc21d86": {
|
|
1083
1129
|
name: "Realms contract",
|
|
1084
1130
|
description: "Manages realm-related actions",
|
|
1085
1131
|
methods: [
|
|
1132
|
+
{
|
|
1133
|
+
name: "Create a realm",
|
|
1134
|
+
description: "Create a new realm",
|
|
1135
|
+
entrypoint: "create"
|
|
1136
|
+
},
|
|
1086
1137
|
{
|
|
1087
1138
|
name: "Upgrade Level",
|
|
1088
1139
|
description: "Upgrade the level of a realm",
|
|
@@ -1095,7 +1146,7 @@ var configs = {
|
|
|
1095
1146
|
}
|
|
1096
1147
|
]
|
|
1097
1148
|
},
|
|
1098
|
-
"
|
|
1149
|
+
"0x691a60b709ca5c1c5ff86824831f84deb26f0f5d07d70c0f807eab48110d2f6": {
|
|
1099
1150
|
name: "Resource bridge contract",
|
|
1100
1151
|
description: "Manages bridge transfers between L2 and Eternum",
|
|
1101
1152
|
methods: [
|
|
@@ -1121,7 +1172,7 @@ var configs = {
|
|
|
1121
1172
|
}
|
|
1122
1173
|
]
|
|
1123
1174
|
},
|
|
1124
|
-
"
|
|
1175
|
+
"0x42c0303a2119a9e20daa60e83c48221cdf1bb2a4c009bab031d1cd3555a127e": {
|
|
1125
1176
|
name: "Resource contract",
|
|
1126
1177
|
description: "In-game resource management",
|
|
1127
1178
|
methods: [
|
|
@@ -1142,7 +1193,7 @@ var configs = {
|
|
|
1142
1193
|
}
|
|
1143
1194
|
]
|
|
1144
1195
|
},
|
|
1145
|
-
"
|
|
1196
|
+
"0x4f92a1d00d3aec8cece60fc2d0fc236fe1d95c54ff0ceb2f393fbc7e0863d8e": {
|
|
1146
1197
|
name: "AMM swap contract",
|
|
1147
1198
|
description: "Handles token swaps in the Automated Market Maker",
|
|
1148
1199
|
methods: [
|
|
@@ -1158,7 +1209,7 @@ var configs = {
|
|
|
1158
1209
|
}
|
|
1159
1210
|
]
|
|
1160
1211
|
},
|
|
1161
|
-
"
|
|
1212
|
+
"0x7e2b1334398fafbe640f34bacae99b649d633417960ee397b6a8fb117fec819": {
|
|
1162
1213
|
name: "Market contract",
|
|
1163
1214
|
description: "Manages trading orders in the in-game market",
|
|
1164
1215
|
methods: [
|
|
@@ -1184,7 +1235,7 @@ var configs = {
|
|
|
1184
1235
|
}
|
|
1185
1236
|
]
|
|
1186
1237
|
},
|
|
1187
|
-
"
|
|
1238
|
+
"0x4069c2be57f08fef9f31afc85a5b4c03c208ebdb278b9d853606caa7a9cbee6": {
|
|
1188
1239
|
name: "Map travel contract",
|
|
1189
1240
|
description: "Manages player movement across the game map",
|
|
1190
1241
|
methods: [
|
|
@@ -1195,7 +1246,7 @@ var configs = {
|
|
|
1195
1246
|
}
|
|
1196
1247
|
]
|
|
1197
1248
|
},
|
|
1198
|
-
"
|
|
1249
|
+
"0x26be0ed574aa9ee6f73b53b12f0a199ddbf4ac697470316cdb3d9d1f5680cab": {
|
|
1199
1250
|
name: "Army contract",
|
|
1200
1251
|
description: "Manages army-related actions",
|
|
1201
1252
|
methods: [
|
|
@@ -1220,6 +1271,28 @@ var configs = {
|
|
|
1220
1271
|
entrypoint: "army_merge_troops"
|
|
1221
1272
|
}
|
|
1222
1273
|
]
|
|
1274
|
+
},
|
|
1275
|
+
"0x051fea4450da9d6aee758bdeba88b2f665bcbf549d2c61421aa724e9ac0ced8f": {
|
|
1276
|
+
name: "VRF Provider",
|
|
1277
|
+
description: "Verifiable Random Function contract, allows randomness in the game",
|
|
1278
|
+
methods: [
|
|
1279
|
+
{
|
|
1280
|
+
name: "Request Random",
|
|
1281
|
+
description: "Allows requesting random numbers from the VRF provider",
|
|
1282
|
+
entrypoint: "request_random"
|
|
1283
|
+
}
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1286
|
+
"0x057675b9c0bd62b096a2e15502a37b290fa766ead21c33eda42993e48a714b80": {
|
|
1287
|
+
name: "Season pass ERC20 contract",
|
|
1288
|
+
description: "Manages the season passes",
|
|
1289
|
+
methods: [
|
|
1290
|
+
{
|
|
1291
|
+
name: "Approve for all",
|
|
1292
|
+
description: "Approves transfer of season pass",
|
|
1293
|
+
entrypoint: "set_approval_for_all"
|
|
1294
|
+
}
|
|
1295
|
+
]
|
|
1223
1296
|
}
|
|
1224
1297
|
},
|
|
1225
1298
|
messages: [
|
|
@@ -1243,7 +1316,7 @@ var configs = {
|
|
|
1243
1316
|
type: "shortstring"
|
|
1244
1317
|
}
|
|
1245
1318
|
],
|
|
1246
|
-
"
|
|
1319
|
+
"s0_eternum-Message": [
|
|
1247
1320
|
{
|
|
1248
1321
|
name: "identity",
|
|
1249
1322
|
type: "ContractAddress"
|
|
@@ -1266,11 +1339,11 @@ var configs = {
|
|
|
1266
1339
|
}
|
|
1267
1340
|
]
|
|
1268
1341
|
},
|
|
1269
|
-
primaryType: "
|
|
1342
|
+
primaryType: "s0_eternum-Message",
|
|
1270
1343
|
domain: {
|
|
1271
1344
|
name: "Eternum",
|
|
1272
1345
|
version: "1",
|
|
1273
|
-
chainId: "
|
|
1346
|
+
chainId: "SN_MAIN",
|
|
1274
1347
|
revision: "1"
|
|
1275
1348
|
}
|
|
1276
1349
|
}
|
|
@@ -9013,304 +9086,314 @@ var metadata = [
|
|
|
9013
9086
|
hidden: true
|
|
9014
9087
|
},
|
|
9015
9088
|
{
|
|
9016
|
-
name: "
|
|
9017
|
-
symbol: "
|
|
9089
|
+
name: "Lords",
|
|
9090
|
+
symbol: "LORDS",
|
|
9018
9091
|
decimals: 18,
|
|
9019
|
-
l2_token_address: "
|
|
9020
|
-
sort_order:
|
|
9092
|
+
l2_token_address: "0x0124aeb495b947201f5fac96fd1138e326ad86195b98df6dec9009158a533b49",
|
|
9093
|
+
sort_order: 1,
|
|
9021
9094
|
total_supply: null,
|
|
9022
9095
|
hidden: true,
|
|
9023
|
-
logo_url: "https://
|
|
9096
|
+
logo_url: "https://empire.realms.world/images/resources/coin.png"
|
|
9024
9097
|
},
|
|
9025
9098
|
{
|
|
9026
|
-
name: "
|
|
9027
|
-
symbol: "
|
|
9099
|
+
name: "Ancien Fragments",
|
|
9100
|
+
symbol: "ANCIENT_FRAGMENT",
|
|
9028
9101
|
decimals: 18,
|
|
9029
|
-
l2_token_address: "
|
|
9030
|
-
sort_order:
|
|
9102
|
+
l2_token_address: "0x0695b08ecdfdd828c2e6267da62f59e6d7543e690ef56a484df25c8566b332a5",
|
|
9103
|
+
sort_order: 2,
|
|
9031
9104
|
total_supply: null,
|
|
9032
9105
|
hidden: true,
|
|
9033
|
-
logo_url: "https://
|
|
9106
|
+
logo_url: "https://empire.realms.world/images/resources/29.png"
|
|
9034
9107
|
},
|
|
9035
9108
|
{
|
|
9036
|
-
name: "
|
|
9037
|
-
symbol: "
|
|
9109
|
+
name: "Knight",
|
|
9110
|
+
symbol: "KNIGHT",
|
|
9038
9111
|
decimals: 18,
|
|
9039
|
-
l2_token_address: "
|
|
9040
|
-
sort_order:
|
|
9112
|
+
l2_token_address: "0x00ac965f9e67164723c16735a9da8dbc9eb8e43b1bd0323591e87c056badf606",
|
|
9113
|
+
sort_order: 3,
|
|
9041
9114
|
total_supply: null,
|
|
9042
9115
|
hidden: true,
|
|
9043
|
-
logo_url: "https://
|
|
9116
|
+
logo_url: "https://empire.realms.world/images/icons/250.png"
|
|
9044
9117
|
},
|
|
9045
9118
|
{
|
|
9046
|
-
name: "
|
|
9047
|
-
symbol: "
|
|
9119
|
+
name: "Crossbowman",
|
|
9120
|
+
symbol: "CROSSBOWMAN",
|
|
9048
9121
|
decimals: 18,
|
|
9049
|
-
l2_token_address: "
|
|
9050
|
-
sort_order:
|
|
9122
|
+
l2_token_address: "0x067e4ac00a241be06ba6afc11fa2715ec7da0c42c05a67ef6ecfcfeda725aaa8",
|
|
9123
|
+
sort_order: 4,
|
|
9051
9124
|
total_supply: null,
|
|
9052
9125
|
hidden: true,
|
|
9053
|
-
logo_url: "https://
|
|
9126
|
+
logo_url: "https://empire.realms.world/images/icons/251.png"
|
|
9054
9127
|
},
|
|
9055
9128
|
{
|
|
9056
|
-
name: "
|
|
9057
|
-
symbol: "
|
|
9129
|
+
name: "Paladin",
|
|
9130
|
+
symbol: "PALADIN",
|
|
9058
9131
|
decimals: 18,
|
|
9059
|
-
l2_token_address: "
|
|
9060
|
-
sort_order:
|
|
9132
|
+
l2_token_address: "0x03bc86299bee061c7c8d7546ccb62b9daf9bffc653b1508facb722c6593874bc",
|
|
9133
|
+
sort_order: 5,
|
|
9061
9134
|
total_supply: null,
|
|
9062
9135
|
hidden: true,
|
|
9063
|
-
logo_url: "https://
|
|
9136
|
+
logo_url: "https://empire.realms.world/images/icons/252.png"
|
|
9064
9137
|
},
|
|
9065
9138
|
{
|
|
9066
|
-
name: "
|
|
9067
|
-
symbol: "
|
|
9139
|
+
name: "Donkey",
|
|
9140
|
+
symbol: "DONKEY",
|
|
9068
9141
|
decimals: 18,
|
|
9069
|
-
l2_token_address: "
|
|
9070
|
-
sort_order:
|
|
9071
|
-
total_supply:
|
|
9142
|
+
l2_token_address: "0x0264be95a4a2ace20add68cb321acdccd2f9f8440ee1c7abd85da44ddab01085",
|
|
9143
|
+
sort_order: 6,
|
|
9144
|
+
total_supply: null,
|
|
9072
9145
|
hidden: true,
|
|
9073
|
-
logo_url: "https://
|
|
9146
|
+
logo_url: "https://empire.realms.world/images/buildings/thumb/trade.png"
|
|
9074
9147
|
},
|
|
9075
9148
|
{
|
|
9076
|
-
name: "
|
|
9077
|
-
symbol: "
|
|
9149
|
+
name: "Wheat",
|
|
9150
|
+
symbol: "WHEAT",
|
|
9078
9151
|
decimals: 18,
|
|
9079
|
-
l2_token_address: "
|
|
9080
|
-
sort_order:
|
|
9152
|
+
l2_token_address: "0x057a3f1ee475e072ce3be41785c0e889b7295d7a0dcc22b992c5b9408dbeb280",
|
|
9153
|
+
sort_order: 7,
|
|
9081
9154
|
total_supply: null,
|
|
9082
9155
|
hidden: true,
|
|
9083
|
-
logo_url: "https://
|
|
9156
|
+
logo_url: "https://empire.realms.world/images/resources/254.png"
|
|
9084
9157
|
},
|
|
9085
9158
|
{
|
|
9086
|
-
name: "
|
|
9087
|
-
symbol: "
|
|
9159
|
+
name: "Fish",
|
|
9160
|
+
symbol: "FISH",
|
|
9088
9161
|
decimals: 18,
|
|
9089
|
-
l2_token_address: "
|
|
9090
|
-
sort_order:
|
|
9162
|
+
l2_token_address: "0x027719173cfe10f1aa38d2aaed0a075b6077290f1e817aa3485d2b828394f4d9",
|
|
9163
|
+
sort_order: 8,
|
|
9091
9164
|
total_supply: null,
|
|
9092
9165
|
hidden: true,
|
|
9093
|
-
logo_url: "https://
|
|
9166
|
+
logo_url: "https://empire.realms.world/images/resources/255.png"
|
|
9094
9167
|
},
|
|
9095
9168
|
{
|
|
9096
|
-
name: "
|
|
9097
|
-
symbol: "
|
|
9169
|
+
name: "Wood",
|
|
9170
|
+
symbol: "WOOD",
|
|
9098
9171
|
decimals: 18,
|
|
9099
|
-
l2_token_address: "
|
|
9100
|
-
sort_order:
|
|
9172
|
+
l2_token_address: "0x040d8907cec0f7ae9c364dfb12485a1314d84c129bf1898d2f3d4b7fcc7d44f4",
|
|
9173
|
+
sort_order: 9,
|
|
9101
9174
|
total_supply: null,
|
|
9102
9175
|
hidden: true,
|
|
9103
|
-
logo_url: "https://
|
|
9176
|
+
logo_url: "https://empire.realms.world/images/resources/1.png"
|
|
9104
9177
|
},
|
|
9105
9178
|
{
|
|
9106
|
-
name: "
|
|
9107
|
-
symbol: "
|
|
9179
|
+
name: "Stone",
|
|
9180
|
+
symbol: "STONE",
|
|
9108
9181
|
decimals: 18,
|
|
9109
|
-
l2_token_address: "
|
|
9110
|
-
sort_order:
|
|
9182
|
+
l2_token_address: "0x0439a1c010e3e1bb2d43d43411000893c0042bd88f6c701611a0ea914d426da4",
|
|
9183
|
+
sort_order: 10,
|
|
9111
9184
|
total_supply: null,
|
|
9112
9185
|
hidden: true,
|
|
9113
|
-
logo_url: "https://
|
|
9186
|
+
logo_url: "https://empire.realms.world/images/resources/2.png"
|
|
9114
9187
|
},
|
|
9115
9188
|
{
|
|
9116
|
-
name: "
|
|
9117
|
-
symbol: "
|
|
9189
|
+
name: "Coal",
|
|
9190
|
+
symbol: "COAL",
|
|
9118
9191
|
decimals: 18,
|
|
9119
|
-
l2_token_address: "
|
|
9120
|
-
sort_order:
|
|
9192
|
+
l2_token_address: "0x00ce635e3f241b0ae78c46a929d84a9101910188f9c4024eaa7559556503c31a",
|
|
9193
|
+
sort_order: 11,
|
|
9121
9194
|
total_supply: null,
|
|
9122
9195
|
hidden: true,
|
|
9123
|
-
logo_url: "https://
|
|
9196
|
+
logo_url: "https://empire.realms.world/images/resources/3.png"
|
|
9124
9197
|
},
|
|
9125
9198
|
{
|
|
9126
|
-
name: "
|
|
9127
|
-
symbol: "
|
|
9199
|
+
name: "Copper",
|
|
9200
|
+
symbol: "COPPER",
|
|
9128
9201
|
decimals: 18,
|
|
9129
|
-
l2_token_address: "
|
|
9130
|
-
sort_order:
|
|
9202
|
+
l2_token_address: "0x066ed5c928ee027a9419ace1cbea8389885161db5572a7c5c4fef2310e9bf494",
|
|
9203
|
+
sort_order: 12,
|
|
9131
9204
|
total_supply: null,
|
|
9132
9205
|
hidden: true,
|
|
9133
|
-
logo_url: "https://
|
|
9206
|
+
logo_url: "https://empire.realms.world/images/resources/4.png"
|
|
9134
9207
|
},
|
|
9135
9208
|
{
|
|
9136
|
-
name: "
|
|
9137
|
-
symbol: "
|
|
9209
|
+
name: "Obsidian",
|
|
9210
|
+
symbol: "OBSIDIAN",
|
|
9138
9211
|
decimals: 18,
|
|
9139
|
-
l2_token_address: "
|
|
9140
|
-
sort_order:
|
|
9212
|
+
l2_token_address: "0x03b6448d09dcd023507376402686261f5d6739455fa02f804907b066e488da66",
|
|
9213
|
+
sort_order: 13,
|
|
9141
9214
|
total_supply: null,
|
|
9142
9215
|
hidden: true,
|
|
9143
|
-
logo_url: "https://
|
|
9216
|
+
logo_url: "https://empire.realms.world/images/resources/5.png"
|
|
9144
9217
|
},
|
|
9145
9218
|
{
|
|
9146
|
-
name: "
|
|
9147
|
-
symbol: "
|
|
9219
|
+
name: "Silver",
|
|
9220
|
+
symbol: "SILVER",
|
|
9148
9221
|
decimals: 18,
|
|
9149
|
-
l2_token_address: "
|
|
9150
|
-
sort_order:
|
|
9222
|
+
l2_token_address: "0x06fe21d2d4a8a05bdb70f09c9250af9870020d5dcc35f410b4a39d6605c3e353",
|
|
9223
|
+
sort_order: 14,
|
|
9151
9224
|
total_supply: null,
|
|
9152
9225
|
hidden: true,
|
|
9153
|
-
logo_url: "https://
|
|
9226
|
+
logo_url: "https://empire.realms.world/images/resources/6.png"
|
|
9154
9227
|
},
|
|
9155
9228
|
{
|
|
9156
|
-
name: "
|
|
9157
|
-
symbol: "
|
|
9229
|
+
name: "Ironwood",
|
|
9230
|
+
symbol: "IRONWOOD",
|
|
9158
9231
|
decimals: 18,
|
|
9159
|
-
l2_token_address: "
|
|
9160
|
-
sort_order:
|
|
9232
|
+
l2_token_address: "0x01720cf6318bff45e62acc588680ae3cd4d5f8465b1d52cb710533c9299b031a",
|
|
9233
|
+
sort_order: 15,
|
|
9161
9234
|
total_supply: null,
|
|
9162
9235
|
hidden: true,
|
|
9163
|
-
logo_url: "https://
|
|
9236
|
+
logo_url: "https://empire.realms.world/images/resources/7.png"
|
|
9164
9237
|
},
|
|
9165
9238
|
{
|
|
9166
|
-
name: "
|
|
9167
|
-
symbol: "
|
|
9239
|
+
name: "Cold Iron",
|
|
9240
|
+
symbol: "COLDIRON",
|
|
9168
9241
|
decimals: 18,
|
|
9169
|
-
l2_token_address: "
|
|
9170
|
-
sort_order:
|
|
9242
|
+
l2_token_address: "0x0555d713e59d4ff96b7960447e9bc9e79bfdeab5b0eea74e3df81bce61cfbc77",
|
|
9243
|
+
sort_order: 16,
|
|
9171
9244
|
total_supply: null,
|
|
9172
9245
|
hidden: true,
|
|
9173
|
-
logo_url: "https://
|
|
9246
|
+
logo_url: "https://empire.realms.world/images/resources/8.png"
|
|
9174
9247
|
},
|
|
9175
9248
|
{
|
|
9176
|
-
name: "
|
|
9177
|
-
symbol: "
|
|
9249
|
+
name: "Gold",
|
|
9250
|
+
symbol: "GOLD",
|
|
9178
9251
|
decimals: 18,
|
|
9179
|
-
l2_token_address: "
|
|
9180
|
-
sort_order:
|
|
9252
|
+
l2_token_address: "0x000dff9dca192609c4e86ab3be22c7ec1e968876c992d21986f3c542be97fa2f",
|
|
9253
|
+
sort_order: 17,
|
|
9181
9254
|
total_supply: null,
|
|
9182
9255
|
hidden: true,
|
|
9183
|
-
logo_url: "https://
|
|
9256
|
+
logo_url: "https://empire.realms.world/images/resources/9.png"
|
|
9184
9257
|
},
|
|
9185
9258
|
{
|
|
9186
|
-
name: "
|
|
9187
|
-
symbol: "
|
|
9259
|
+
name: "Hartwood",
|
|
9260
|
+
symbol: "HARTWOOD",
|
|
9188
9261
|
decimals: 18,
|
|
9189
|
-
l2_token_address: "
|
|
9190
|
-
sort_order:
|
|
9262
|
+
l2_token_address: "0x05620aa7170cd66dbcbc37d03087bfe4633ffef91d3e4d97b501de906004f79b",
|
|
9263
|
+
sort_order: 18,
|
|
9191
9264
|
total_supply: null,
|
|
9192
9265
|
hidden: true,
|
|
9193
|
-
logo_url: "https://
|
|
9266
|
+
logo_url: "https://empire.realms.world/images/resources/10.png"
|
|
9194
9267
|
},
|
|
9195
9268
|
{
|
|
9196
|
-
name: "
|
|
9197
|
-
symbol: "
|
|
9269
|
+
name: "Diamonds",
|
|
9270
|
+
symbol: "DIAMONDS",
|
|
9198
9271
|
decimals: 18,
|
|
9199
|
-
l2_token_address: "
|
|
9200
|
-
sort_order:
|
|
9272
|
+
l2_token_address: "0x00e03ea8ae385f64754820af5c01c36abf1b8130dd6797d3fd9d430e4114e876",
|
|
9273
|
+
sort_order: 19,
|
|
9201
9274
|
total_supply: null,
|
|
9202
9275
|
hidden: true,
|
|
9203
|
-
logo_url: "https://
|
|
9276
|
+
logo_url: "https://empire.realms.world/images/resources/11.png"
|
|
9204
9277
|
},
|
|
9205
9278
|
{
|
|
9206
9279
|
name: "Sapphire",
|
|
9207
9280
|
symbol: "SAPPHIRE",
|
|
9208
9281
|
decimals: 18,
|
|
9209
|
-
l2_token_address: "
|
|
9210
|
-
sort_order:
|
|
9282
|
+
l2_token_address: "0x02f8dd022568af8f9f718aa37707a9b858529db56910633a160456838b6cbcbc",
|
|
9283
|
+
sort_order: 20,
|
|
9211
9284
|
total_supply: null,
|
|
9212
9285
|
hidden: true,
|
|
9213
|
-
logo_url: "https://
|
|
9286
|
+
logo_url: "https://empire.realms.world/images/resources/12.png"
|
|
9214
9287
|
},
|
|
9215
9288
|
{
|
|
9216
|
-
name: "
|
|
9217
|
-
symbol: "
|
|
9289
|
+
name: "Ruby",
|
|
9290
|
+
symbol: "RUBY",
|
|
9218
9291
|
decimals: 18,
|
|
9219
|
-
l2_token_address: "
|
|
9220
|
-
sort_order:
|
|
9292
|
+
l2_token_address: "0x03d9b66720959d0e7687b898292c10e62e78626f2dba5e1909961a2ce3f86612",
|
|
9293
|
+
sort_order: 21,
|
|
9221
9294
|
total_supply: null,
|
|
9222
9295
|
hidden: true,
|
|
9223
|
-
logo_url: "https://
|
|
9296
|
+
logo_url: "https://empire.realms.world/images/resources/13.png"
|
|
9224
9297
|
},
|
|
9225
9298
|
{
|
|
9226
|
-
name: "
|
|
9227
|
-
symbol: "
|
|
9299
|
+
name: "Deep Crystal",
|
|
9300
|
+
symbol: "DEEPCRYSTAL",
|
|
9228
9301
|
decimals: 18,
|
|
9229
|
-
l2_token_address: "
|
|
9230
|
-
sort_order:
|
|
9302
|
+
l2_token_address: "0x01d655ac834d38df7921074fc1588411e202b1af83307cbd996983aff52db3a8",
|
|
9303
|
+
sort_order: 22,
|
|
9231
9304
|
total_supply: null,
|
|
9232
9305
|
hidden: true,
|
|
9233
|
-
logo_url: "https://
|
|
9306
|
+
logo_url: "https://empire.realms.world/images/resources/14.png"
|
|
9234
9307
|
},
|
|
9235
9308
|
{
|
|
9236
|
-
name: "
|
|
9237
|
-
symbol: "
|
|
9309
|
+
name: "Ignium",
|
|
9310
|
+
symbol: "IGNIUM",
|
|
9238
9311
|
decimals: 18,
|
|
9239
|
-
l2_token_address: "
|
|
9240
|
-
sort_order:
|
|
9312
|
+
l2_token_address: "0x0625c1f789b03ebebc7a9322366f38ebad1f693b84b2abd8cb8f5b2748b0cdd5",
|
|
9313
|
+
sort_order: 23,
|
|
9241
9314
|
total_supply: null,
|
|
9242
9315
|
hidden: true,
|
|
9243
|
-
logo_url: "https://
|
|
9316
|
+
logo_url: "https://empire.realms.world/images/resources/15.png"
|
|
9244
9317
|
},
|
|
9245
9318
|
{
|
|
9246
|
-
name: "
|
|
9247
|
-
symbol: "
|
|
9319
|
+
name: "Ethereal Silica",
|
|
9320
|
+
symbol: "ETHEREALSILICA",
|
|
9248
9321
|
decimals: 18,
|
|
9249
|
-
l2_token_address: "
|
|
9250
|
-
sort_order:
|
|
9322
|
+
l2_token_address: "0x068b6e23cbbd58a644700f55e96c83580921e9f521b6e5175396b53ba7910e7d",
|
|
9323
|
+
sort_order: 24,
|
|
9251
9324
|
total_supply: null,
|
|
9252
9325
|
hidden: true,
|
|
9253
|
-
logo_url: "https://
|
|
9326
|
+
logo_url: "https://empire.realms.world/images/resources/16.png"
|
|
9254
9327
|
},
|
|
9255
9328
|
{
|
|
9256
|
-
name: "
|
|
9257
|
-
symbol: "
|
|
9329
|
+
name: "True Ice",
|
|
9330
|
+
symbol: "TRUEICE",
|
|
9258
9331
|
decimals: 18,
|
|
9259
|
-
l2_token_address: "
|
|
9260
|
-
sort_order:
|
|
9332
|
+
l2_token_address: "0x04485f5a6e16562e1c761cd348e63256d00389e3ddf4f5d98afe7ab44c57c481",
|
|
9333
|
+
sort_order: 25,
|
|
9261
9334
|
total_supply: null,
|
|
9262
9335
|
hidden: true,
|
|
9263
|
-
logo_url: "https://
|
|
9336
|
+
logo_url: "https://empire.realms.world/images/resources/17.png"
|
|
9264
9337
|
},
|
|
9265
9338
|
{
|
|
9266
|
-
name: "
|
|
9267
|
-
symbol: "
|
|
9339
|
+
name: "Twilight Quartz",
|
|
9340
|
+
symbol: "TWILIGHTQUARTZ",
|
|
9268
9341
|
decimals: 18,
|
|
9269
|
-
l2_token_address: "
|
|
9270
|
-
sort_order:
|
|
9342
|
+
l2_token_address: "0x035e24c02409c3cfe8d5646399a62c4d102bb782938d5f5180e92c9c62d3faf7",
|
|
9343
|
+
sort_order: 26,
|
|
9271
9344
|
total_supply: null,
|
|
9272
9345
|
hidden: true,
|
|
9273
|
-
logo_url: "https://
|
|
9346
|
+
logo_url: "https://empire.realms.world/images/resources/18.png"
|
|
9274
9347
|
},
|
|
9275
9348
|
{
|
|
9276
|
-
name: "
|
|
9277
|
-
symbol: "
|
|
9349
|
+
name: "Alchemical Silver",
|
|
9350
|
+
symbol: "ALCHEMICALSILVER",
|
|
9278
9351
|
decimals: 18,
|
|
9279
|
-
l2_token_address: "
|
|
9280
|
-
sort_order:
|
|
9352
|
+
l2_token_address: "0x03956a5301e99522038a2e7dcb9c2a89bf087ffa79310ee0a508b5538efd8ddd",
|
|
9353
|
+
sort_order: 27,
|
|
9281
9354
|
total_supply: null,
|
|
9282
9355
|
hidden: true,
|
|
9283
|
-
logo_url: "https://
|
|
9356
|
+
logo_url: "https://empire.realms.world/images/resources/19.png"
|
|
9284
9357
|
},
|
|
9285
9358
|
{
|
|
9286
|
-
name: "
|
|
9287
|
-
symbol: "
|
|
9359
|
+
name: "Adamantine",
|
|
9360
|
+
symbol: "ADAMANTINE",
|
|
9288
9361
|
decimals: 18,
|
|
9289
|
-
l2_token_address: "
|
|
9290
|
-
sort_order:
|
|
9362
|
+
l2_token_address: "0x0367f838f85a2f5e1580d6f011e4476f581083314cff8721ba3dda9706076eed",
|
|
9363
|
+
sort_order: 28,
|
|
9291
9364
|
total_supply: null,
|
|
9292
9365
|
hidden: true,
|
|
9293
|
-
logo_url: "https://
|
|
9366
|
+
logo_url: "https://empire.realms.world/images/resources/20.png"
|
|
9294
9367
|
},
|
|
9295
9368
|
{
|
|
9296
|
-
name: "
|
|
9297
|
-
symbol: "
|
|
9369
|
+
name: "Mithral",
|
|
9370
|
+
symbol: "MITHRAL",
|
|
9298
9371
|
decimals: 18,
|
|
9299
|
-
l2_token_address: "
|
|
9300
|
-
sort_order:
|
|
9372
|
+
l2_token_address: "0x0067ba235c569c23877064b2ac6ebd4d79f32d3c00f5fab8e28a3b5700b957f6",
|
|
9373
|
+
sort_order: 29,
|
|
9301
9374
|
total_supply: null,
|
|
9302
9375
|
hidden: true,
|
|
9303
|
-
logo_url: "https://
|
|
9376
|
+
logo_url: "https://empire.realms.world/images/resources/21.png"
|
|
9304
9377
|
},
|
|
9305
9378
|
{
|
|
9306
|
-
name: "
|
|
9307
|
-
symbol: "
|
|
9379
|
+
name: "Dragon Hide",
|
|
9380
|
+
symbol: "DRAGONHIDE",
|
|
9308
9381
|
decimals: 18,
|
|
9309
|
-
l2_token_address: "
|
|
9310
|
-
sort_order:
|
|
9382
|
+
l2_token_address: "0x03bf856515bece3c93f5061b7941b8645f817a0acab93c758b8c7b4bc0afa3c6",
|
|
9383
|
+
sort_order: 30,
|
|
9384
|
+
total_supply: null,
|
|
9385
|
+
hidden: true,
|
|
9386
|
+
logo_url: "https://empire.realms.world/images/resources/22.png"
|
|
9387
|
+
},
|
|
9388
|
+
{
|
|
9389
|
+
name: "Demon Hide",
|
|
9390
|
+
symbol: "DEMONHIDE",
|
|
9391
|
+
decimals: 18,
|
|
9392
|
+
l2_token_address: "0x03b847fbef9d344ba968edc945100e6ab0258a4b1b91f8665f85a3d814c3e4d4",
|
|
9393
|
+
sort_order: 31,
|
|
9311
9394
|
total_supply: null,
|
|
9312
9395
|
hidden: true,
|
|
9313
|
-
logo_url: "https://
|
|
9396
|
+
logo_url: "https://empire.realms.world/images/resources/22.png"
|
|
9314
9397
|
}
|
|
9315
9398
|
];
|
|
9316
9399
|
var controllerConfigs = configs;
|