From e38ab3e150cb38f679a9aa5b2b8f49d6d0a672d0 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Sun, 19 Jun 2022 15:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=87=E6=8D=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/comp/wallet/prefab/NftList.prefab | 534 ++++ assets/comp/wallet/prefab/NftList.prefab.meta | 7 + assets/comp/wallet/prefab/OneNFT.prefab | 286 +++ assets/comp/wallet/prefab/OneNFT.prefab.meta | 7 + assets/comp/wallet/prefab/OneToken.prefab | 34 +- assets/comp/wallet/scripts/JCWallet.ts | 23 +- .../comp/wallet/scripts/common/WalletEvent.ts | 2 + assets/comp/wallet/scripts/config.meta | 7 + .../wallet/scripts/config/chain_config.ts | 71 + .../scripts/config/chain_config.ts.meta | 9 + assets/comp/wallet/scripts/data/DataModel.ts | 43 + .../wallet/scripts/data/DataModel.ts.meta | 9 + assets/comp/wallet/scripts/lib/Http.ts | 19 +- assets/comp/wallet/scripts/manage.meta | 7 + .../comp/wallet/scripts/manage/DataManage.ts | 24 + .../wallet/scripts/manage/DataManage.ts.meta | 9 + assets/comp/wallet/scripts/ui/ListNode.ts | 58 + .../comp/wallet/scripts/ui/ListNode.ts.meta | 9 + assets/comp/wallet/scripts/ui/NftList.ts | 10 +- assets/comp/wallet/scripts/ui/OneNFT.ts | 26 + assets/comp/wallet/scripts/ui/OneNFT.ts.meta | 9 + assets/comp/wallet/scripts/ui/OneToken.ts | 43 + .../comp/wallet/scripts/ui/OneToken.ts.meta | 9 + assets/comp/wallet/scripts/ui/TokenList.ts | 45 +- assets/comp/wallet/scripts/ui/TokenTab.ts | 15 +- .../comp/wallet/scripts/ui/WalletMainPanel.ts | 6 + assets/scenes/main.fire | 2265 ++++------------- assets/scripts/wallet/WalletController.ts | 10 +- 28 files changed, 1730 insertions(+), 1866 deletions(-) create mode 100644 assets/comp/wallet/prefab/NftList.prefab create mode 100644 assets/comp/wallet/prefab/NftList.prefab.meta create mode 100644 assets/comp/wallet/prefab/OneNFT.prefab create mode 100644 assets/comp/wallet/prefab/OneNFT.prefab.meta create mode 100644 assets/comp/wallet/scripts/config.meta create mode 100644 assets/comp/wallet/scripts/config/chain_config.ts create mode 100644 assets/comp/wallet/scripts/config/chain_config.ts.meta create mode 100644 assets/comp/wallet/scripts/data/DataModel.ts create mode 100644 assets/comp/wallet/scripts/data/DataModel.ts.meta create mode 100644 assets/comp/wallet/scripts/manage.meta create mode 100644 assets/comp/wallet/scripts/manage/DataManage.ts create mode 100644 assets/comp/wallet/scripts/manage/DataManage.ts.meta create mode 100644 assets/comp/wallet/scripts/ui/ListNode.ts create mode 100644 assets/comp/wallet/scripts/ui/ListNode.ts.meta create mode 100644 assets/comp/wallet/scripts/ui/OneNFT.ts create mode 100644 assets/comp/wallet/scripts/ui/OneNFT.ts.meta create mode 100644 assets/comp/wallet/scripts/ui/OneToken.ts create mode 100644 assets/comp/wallet/scripts/ui/OneToken.ts.meta diff --git a/assets/comp/wallet/prefab/NftList.prefab b/assets/comp/wallet/prefab/NftList.prefab new file mode 100644 index 0000000..2f49bd3 --- /dev/null +++ b/assets/comp/wallet/prefab/NftList.prefab @@ -0,0 +1,534 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "NftList", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_level": 1, + "_components": [ + { + "__id__": 13 + }, + { + "__id__": 14 + }, + { + "__id__": 15 + } + ], + "_prefab": { + "__id__": 16 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 450, + "height": 400 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "content", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 11 + } + ], + "_prefab": { + "__id__": 12 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 450, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 1 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 200, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "OneNFT", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 4 + }, + { + "__id__": 7 + } + ], + "_active": true, + "_level": 4, + "_components": [], + "_prefab": { + "__id__": 10 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -175, + "y": -60, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "New Sprite", + "_objFlags": 0, + "_parent": { + "__id__": 3 + }, + "_children": [], + "_active": true, + "_level": 5, + "_components": [ + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 6 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 10, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 4 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "d60oW7FvtHeYQMK3B9YDtO", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "idLabel", + "_objFlags": 0, + "_parent": { + "__id__": 3 + }, + "_children": [], + "_active": true, + "_level": 5, + "_components": [ + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 9 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 48.94, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -50, + "y": -45, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "_useOriginalSize": false, + "_string": "Label", + "_N$string": "Label", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 0, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "fdPjhkyMBEwZHA5g8nn6Bd", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "d8aF0PaVNDOojtyTIMdXbp", + "sync": false + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_layoutSize": { + "__type__": "cc.Size", + "width": 450, + "height": 120 + }, + "_resize": 1, + "_N$layoutType": 3, + "_N$padding": 0, + "_N$cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_N$startAxis": 0, + "_N$paddingLeft": 0, + "_N$paddingRight": 0, + "_N$paddingTop": 0, + "_N$paddingBottom": 0, + "_N$spacingX": 10, + "_N$spacingY": 10, + "_N$verticalDirection": 1, + "_N$horizontalDirection": 0, + "_N$affectedByScale": false, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "6e2xzjh/1GC5AU8a/D8Qwk", + "sync": false + }, + { + "__type__": "cc.ScrollView", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "horizontal": false, + "vertical": true, + "inertia": true, + "brake": 0.5, + "elastic": true, + "bounceDuration": 1, + "scrollEvents": [], + "cancelInnerEvents": true, + "_N$content": { + "__id__": 2 + }, + "content": { + "__id__": 2 + }, + "_id": "" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "_spriteFrame": null, + "_type": 0, + "_segments": 64, + "_N$alphaThreshold": 0, + "_N$inverted": false, + "_id": "" + }, + { + "__type__": "d8e744LBIpBeKlOm9Kvb6W7", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "tokenPreb": { + "__uuid__": "259e752f-837f-4d16-b21f-3c886e3a7a7e" + }, + "contentNode": { + "__id__": 2 + }, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "edJmq9HR5CfZdb8CAuqySi", + "sync": false + } +] \ No newline at end of file diff --git a/assets/comp/wallet/prefab/NftList.prefab.meta b/assets/comp/wallet/prefab/NftList.prefab.meta new file mode 100644 index 0000000..1ef4557 --- /dev/null +++ b/assets/comp/wallet/prefab/NftList.prefab.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "e64be85b-3d9f-4109-8e7d-48847666bf2c", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/prefab/OneNFT.prefab b/assets/comp/wallet/prefab/OneNFT.prefab new file mode 100644 index 0000000..930895a --- /dev/null +++ b/assets/comp/wallet/prefab/OneNFT.prefab @@ -0,0 +1,286 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "OneNFT", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 5 + } + ], + "_active": true, + "_level": 4, + "_components": [], + "_prefab": { + "__id__": 8 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -175, + "y": -60, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "New Sprite", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_level": 5, + "_components": [ + { + "__id__": 3 + } + ], + "_prefab": { + "__id__": 4 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 10, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" + }, + "_type": 0, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_state": 0, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d60oW7FvtHeYQMK3B9YDtO", + "sync": false + }, + { + "__type__": "cc.Node", + "_name": "idLabel", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_level": 5, + "_components": [ + { + "__id__": 6 + } + ], + "_prefab": { + "__id__": 7 + }, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 48.94, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": -50, + "y": -45, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "_useOriginalSize": false, + "_string": "Label", + "_N$string": "Label", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 0, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "fdPjhkyMBEwZHA5g8nn6Bd", + "sync": false + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d8aF0PaVNDOojtyTIMdXbp", + "sync": false + } +] \ No newline at end of file diff --git a/assets/comp/wallet/prefab/OneNFT.prefab.meta b/assets/comp/wallet/prefab/OneNFT.prefab.meta new file mode 100644 index 0000000..72af29a --- /dev/null +++ b/assets/comp/wallet/prefab/OneNFT.prefab.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "259e752f-837f-4d16-b21f-3c886e3a7a7e", + "optimizationPolicy": "AUTO", + "asyncLoadAssets": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/prefab/OneToken.prefab b/assets/comp/wallet/prefab/OneToken.prefab index 97ac817..9341fb1 100644 --- a/assets/comp/wallet/prefab/OneToken.prefab +++ b/assets/comp/wallet/prefab/OneToken.prefab @@ -27,14 +27,17 @@ } ], "_active": true, - "_level": 4, + "_level": 1, "_components": [ { "__id__": 11 + }, + { + "__id__": 12 } ], "_prefab": { - "__id__": 12 + "__id__": 13 }, "_opacity": 255, "_color": { @@ -176,7 +179,7 @@ "__id__": 1 }, "asset": { - "__id__": 0 + "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" }, "fileId": "1a8x2zZmNOU6glyFKwUfHp", "sync": false @@ -274,7 +277,7 @@ "__id__": 1 }, "asset": { - "__id__": 0 + "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" }, "fileId": "7efChFqAdDMrznOWA5RJF0", "sync": false @@ -372,7 +375,7 @@ "__id__": 1 }, "asset": { - "__id__": 0 + "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" }, "fileId": "65w39W/ddIsLb50QRubYhg", "sync": false @@ -405,13 +408,32 @@ "_atlas": null, "_id": "" }, + { + "__type__": "6b4b9CWT+hI3JIHIxZt7fsM", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "symbolLabel": { + "__id__": 6 + }, + "countLabel": { + "__id__": 9 + }, + "icon": { + "__id__": 3 + }, + "_id": "" + }, { "__type__": "cc.PrefabInfo", "root": { "__id__": 1 }, "asset": { - "__id__": 0 + "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" }, "fileId": "adoQSiLjZG56t5GXVWQvlL", "sync": false diff --git a/assets/comp/wallet/scripts/JCWallet.ts b/assets/comp/wallet/scripts/JCWallet.ts index 9b0fea3..e027905 100644 --- a/assets/comp/wallet/scripts/JCWallet.ts +++ b/assets/comp/wallet/scripts/JCWallet.ts @@ -4,9 +4,11 @@ import sth = require("./lib/ethSigUtil"); import('./lib/fetch'); import { ZError } from "./common/ZError"; import { AllChains } from "./data/allchain"; -import { createWalletEvents, WALLET_CHAIN_CHANGE } from "./common/WalletEvent"; +import { createWalletEvents, WALLET_CHAIN_CHANGE, WALLET_TOKEN_TYPE_CHANGE } from "./common/WalletEvent"; import { ERC20Standard } from "./standards/ERC20Standard"; import { ERC721Standard } from "./standards/ERC721Standard"; +import { IAccount, initAccount } from "./data/DataModel"; +import { DataManage } from "./manage/DataManage"; var global = (typeof globalThis !== 'undefined' && globalThis) || @@ -42,6 +44,8 @@ export default class JCWallet { public erc20Standard: ERC20Standard public erc721Standard: ERC721Standard public mainHandlers = createWalletEvents() + private dataManage = new DataManage() + public data: IAccount[] = [] constructor() { this.web3 = new Web3('https://rpc-testnet.kcc.network') @@ -55,6 +59,7 @@ export default class JCWallet { this.web3.eth.accounts.wallet.save(this.password); } window.jc = window.jc || {wallet: this}; + this.data = this.dataManage.loadData() } public init({chains}: {chains: number[]}) { @@ -76,11 +81,27 @@ export default class JCWallet { return this._currentChain } + get currentAccountData() { + let address = this.currentAccount().address; + const chain = this.currentChain.id + let data = this.data.find(o => o.address === address && o.chain === chain) + if (data) { + return data + } + data = initAccount(address, chain) + return data + } + updateCurrentChain(chainId: number) { const chainData = this.chainMap.get(chainId) this._currentChain = chainData this.web3.eth.setProvider(chainData.rpc) this.mainHandlers.emit(WALLET_CHAIN_CHANGE, chainData) + this.updateListType('tokens') + } + + updateListType(type: string) { + this.mainHandlers.emit(WALLET_TOKEN_TYPE_CHANGE, type) } get chainList() { diff --git a/assets/comp/wallet/scripts/common/WalletEvent.ts b/assets/comp/wallet/scripts/common/WalletEvent.ts index fbaaeda..380599a 100644 --- a/assets/comp/wallet/scripts/common/WalletEvent.ts +++ b/assets/comp/wallet/scripts/common/WalletEvent.ts @@ -18,3 +18,5 @@ let createWalletEvents = () => ({ export { createWalletEvents } export const WALLET_CHAIN_CHANGE = 'wallet_chain_change' + +export const WALLET_TOKEN_TYPE_CHANGE = 'wallet_token_type_change' diff --git a/assets/comp/wallet/scripts/config.meta b/assets/comp/wallet/scripts/config.meta new file mode 100644 index 0000000..7dac338 --- /dev/null +++ b/assets/comp/wallet/scripts/config.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "172fb670-118a-47d0-889f-9b8ffc5bd786", + "isSubpackage": false, + "subpackageName": "", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/config/chain_config.ts b/assets/comp/wallet/scripts/config/chain_config.ts new file mode 100644 index 0000000..2749642 --- /dev/null +++ b/assets/comp/wallet/scripts/config/chain_config.ts @@ -0,0 +1,71 @@ +export const DEFALUT_TOKENS = { + 321: [ + { + type: 'eth', + address: 'eth', + symbol: 'KCS', + decimal: 18 + }, + { + type: 'erc20', + address: '0xcaA011E902103752435AC98657B046B282E36509', + symbol: 'CEC', + decimal: 18 + }, + { + type: 'erc20', + address: '0xBE023C9D294A4668f0d510E2570CB81B4536cE77', + symbol: 'CEG', + decimal: 18 + } + ], + 322: [ + { + type: 'eth', + address: 'eth', + symbol: 'tKCS', + decimal: 18 + }, + { + type: 'erc20', + address: '0xdb6D4bB22E2C12686Efff25a79EC78f9f078fe7D', + symbol: 'CEC', + decimal: 18 + }, + { + type: 'erc20', + address: '0xC5Cd606b3e9B80b758e8274B198c76D929aA094A', + symbol: 'CEG', + decimal: 18 + } + ], + 97: [ + { + type: 'eth', + address: 'eth', + symbol: 'BNB', + decimal: 18 + } + ], + 56: [ + { + type: 'eth', + address: 'eth', + symbol: 'BNB', + decimal: 18 + } + ] +} + +export const DEFAULT_NFT_TYPES = { + 321: { + hero: '0x0EB362BD40F2288fF25A6Ee1b487cB0cb4638e0D', + weapon: '0x29F67A372AC1c6AcF478A564992D421FE20F2cc8', + chip: '0x54B6ED7EDe9355b471985439421Aa1DC7Da6Dc20' + }, + 322: { + hero: '0x52917087cd4E48bDb5f336012E677f471f9E1C2D', + weapon: '0x500AD8A4D50d71Af5cA8eA3b12B914f7aE5466f7', + chip: '0x0640958BDb4D7956e1452FacEBD550C6Cf42aC94' + } +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/config/chain_config.ts.meta b/assets/comp/wallet/scripts/config/chain_config.ts.meta new file mode 100644 index 0000000..2f5e6ef --- /dev/null +++ b/assets/comp/wallet/scripts/config/chain_config.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "cfb5ceb5-31ef-4881-b740-3d50b184247d", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/data/DataModel.ts b/assets/comp/wallet/scripts/data/DataModel.ts new file mode 100644 index 0000000..dd01c68 --- /dev/null +++ b/assets/comp/wallet/scripts/data/DataModel.ts @@ -0,0 +1,43 @@ +export interface IToken { + address: string + type: 'eth'|'erc20' + default: boolean + symbol?: string + balance?: number + decimal: number + image?: string + last?: number +} + +export interface INFT { + address: string + tokenId: string + image?: string + name?: string + desc?: string + last?: number +} + +export interface IAccount { + address: string + chain: number + nickname?: string + avatar?: string + tokens: IToken[] + heros: INFT[] + weapons: INFT[] + chips: INFT[] +} + +export function initAccount(address: string, chain: number): IAccount { + let data: IAccount = { + address, + chain, + tokens: [], + heros: [], + weapons: [], + chips: [] + } + //TODO: add default tokens + return data +} diff --git a/assets/comp/wallet/scripts/data/DataModel.ts.meta b/assets/comp/wallet/scripts/data/DataModel.ts.meta new file mode 100644 index 0000000..d81616f --- /dev/null +++ b/assets/comp/wallet/scripts/data/DataModel.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "26cf8ea3-578a-449c-a7c3-f68f517f7399", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/lib/Http.ts b/assets/comp/wallet/scripts/lib/Http.ts index b861f76..e7016fb 100644 --- a/assets/comp/wallet/scripts/lib/Http.ts +++ b/assets/comp/wallet/scripts/lib/Http.ts @@ -1,12 +1,9 @@ -export function GET(url: string) { - return new Promise((resolve, reject) => { - let xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function () { - if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) { - resolve && resolve(xhr.responseText); - } - }; - xhr.open("GET", url, true); - xhr.send(); - }) +import('./fetch') + +export async function GET(url: string) { + return fetch(url) +} + +export async function GET_JSON(url: string) { + return fetch(url).then(res => {return res.json()}) } \ No newline at end of file diff --git a/assets/comp/wallet/scripts/manage.meta b/assets/comp/wallet/scripts/manage.meta new file mode 100644 index 0000000..287d996 --- /dev/null +++ b/assets/comp/wallet/scripts/manage.meta @@ -0,0 +1,7 @@ +{ + "ver": "1.0.1", + "uuid": "50e7e584-3477-4c9f-88a6-c5db79e582ad", + "isSubpackage": false, + "subpackageName": "", + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/manage/DataManage.ts b/assets/comp/wallet/scripts/manage/DataManage.ts new file mode 100644 index 0000000..a4bd9b4 --- /dev/null +++ b/assets/comp/wallet/scripts/manage/DataManage.ts @@ -0,0 +1,24 @@ +import { IAccount } from "../data/DataModel"; +import { singleton } from "../decorator/singleton.decorator"; + +const LOCAL_ACCOUNT_DATAS = 'local_account_datas' +@singleton +export class DataManage{ + public loadData(){ + const dataStr = localStorage.getItem(LOCAL_ACCOUNT_DATAS) + let result: IAccount[] = [] + if (dataStr) { + try { + result = JSON.parse(dataStr) + } catch (err) { + console.log('load local data error') + } + } + return result + } + + public saveData(datas: IAccount[]) { + const dataStr = JSON.stringify(datas) + localStorage.setItem(LOCAL_ACCOUNT_DATAS, dataStr) + } +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/manage/DataManage.ts.meta b/assets/comp/wallet/scripts/manage/DataManage.ts.meta new file mode 100644 index 0000000..0e08134 --- /dev/null +++ b/assets/comp/wallet/scripts/manage/DataManage.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "839e90e9-67f8-4e33-b7fb-fd23fcd31938", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/ui/ListNode.ts b/assets/comp/wallet/scripts/ui/ListNode.ts new file mode 100644 index 0000000..8160b08 --- /dev/null +++ b/assets/comp/wallet/scripts/ui/ListNode.ts @@ -0,0 +1,58 @@ +import { WALLET_TOKEN_TYPE_CHANGE } from "../common/WalletEvent"; +import { ZError } from "../common/ZError"; +import { DEFAULT_NFT_TYPES } from "../config/chain_config"; +import WalletBase from "./WallerBase"; + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class ListNode extends WalletBase { + + @property(cc.Prefab) + nftListPreb: cc.Prefab = null + + @property(cc.Node) + tokenNode: cc.Node = null + + otherNode: Map = new Map() + // LIFE-CYCLE CALLBACKS: + + // onLoad () {} + + start () { + super.start() + this.wallet.mainHandlers.on(WALLET_TOKEN_TYPE_CHANGE, this.onTokenTypeChange.bind(this)) + } + + // update (dt) {} + initOneNftList(type: string) { + if (this.otherNode.has(type)) { + return this.otherNode.get(type) + } + const chain = this.wallet.currentChain.id + let nftData: any = DEFAULT_NFT_TYPES[chain] + if (!nftData) { + throw new ZError(10, 'no nft data found') + } + let node = cc.instantiate(this.nftListPreb) + node.active = false + node.getComponent('NftList').address = nftData[type] + this.node.addChild(node) + this.otherNode.set(type, node) + return node + } + + onTokenTypeChange(type: string) { + console.log('on token type change: ', type) + for (let key of this.otherNode.keys()) { + this.otherNode.get(key).active = key === type + } + if (type === 'tokens') { + this.tokenNode.active = true + this.tokenNode.getComponent('TokenList').updateList() + } else { + this.tokenNode.active = false + this.initOneNftList(type).active = true + } + } +} diff --git a/assets/comp/wallet/scripts/ui/ListNode.ts.meta b/assets/comp/wallet/scripts/ui/ListNode.ts.meta new file mode 100644 index 0000000..62d8b62 --- /dev/null +++ b/assets/comp/wallet/scripts/ui/ListNode.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "7646c450-7ab1-45be-9aff-cd98a567ce0e", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/ui/NftList.ts b/assets/comp/wallet/scripts/ui/NftList.ts index 4970100..6ef1641 100644 --- a/assets/comp/wallet/scripts/ui/NftList.ts +++ b/assets/comp/wallet/scripts/ui/NftList.ts @@ -5,11 +5,13 @@ const {ccclass, property} = cc._decorator; @ccclass export default class NftList extends WalletBase { - @property(cc.Label) - label: cc.Label = null; + @property(cc.Prefab) + tokenPreb: cc.Prefab = null - @property - text: string = 'hello'; + @property(cc.Node) + contentNode: cc.Node = null + + public address: string = '' // LIFE-CYCLE CALLBACKS: diff --git a/assets/comp/wallet/scripts/ui/OneNFT.ts b/assets/comp/wallet/scripts/ui/OneNFT.ts new file mode 100644 index 0000000..5d3c21c --- /dev/null +++ b/assets/comp/wallet/scripts/ui/OneNFT.ts @@ -0,0 +1,26 @@ +import { INFT } from "../data/DataModel"; +import WalletBase from "./WallerBase"; + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class OneNFT extends WalletBase { + + @property(cc.Label) + nftIDlabel: cc.Label = null; + + @property(cc.Sprite) + icon: cc.Sprite = null; + + data: INFT = null + + // LIFE-CYCLE CALLBACKS: + + // onLoad () {} + + start () { + + } + + // update (dt) {} +} diff --git a/assets/comp/wallet/scripts/ui/OneNFT.ts.meta b/assets/comp/wallet/scripts/ui/OneNFT.ts.meta new file mode 100644 index 0000000..fe1afa5 --- /dev/null +++ b/assets/comp/wallet/scripts/ui/OneNFT.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "bb92d263-508f-4bc8-a9a8-324c8bf51f0e", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/ui/OneToken.ts b/assets/comp/wallet/scripts/ui/OneToken.ts new file mode 100644 index 0000000..f2da19a --- /dev/null +++ b/assets/comp/wallet/scripts/ui/OneToken.ts @@ -0,0 +1,43 @@ +import { IToken } from "../data/DataModel"; +import WalletBase from "./WallerBase"; + +const {ccclass, property} = cc._decorator; + +@ccclass +export default class OneToken extends WalletBase { + + @property(cc.Label) + symbolLabel: cc.Label = null; + + @property(cc.Label) + countLabel: cc.Label = null; + + @property(cc.Sprite) + icon: cc.Sprite = null; + + data: IToken = null + // LIFE-CYCLE CALLBACKS: + + // onLoad () {} + + start () { + + } + + // update (dt) {} + init(_data: IToken) { + this.data = _data + if (this.data.symbol) { + this.symbolLabel.string = this.data.symbol + } else { + // TODO: get from remote + } + + if (this.data.balance !== undefined) { + this.countLabel.string = this.data.balance + '' + } else { + this.countLabel.string = '-' + //TODO: get from remote + } + } +} diff --git a/assets/comp/wallet/scripts/ui/OneToken.ts.meta b/assets/comp/wallet/scripts/ui/OneToken.ts.meta new file mode 100644 index 0000000..0d00697 --- /dev/null +++ b/assets/comp/wallet/scripts/ui/OneToken.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.0.5", + "uuid": "6b4b9096-4fe8-48dc-9207-23166dedfb0c", + "isPlugin": false, + "loadPluginInWeb": true, + "loadPluginInNative": true, + "loadPluginInEditor": false, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/comp/wallet/scripts/ui/TokenList.ts b/assets/comp/wallet/scripts/ui/TokenList.ts index 5d507d1..0d5726b 100644 --- a/assets/comp/wallet/scripts/ui/TokenList.ts +++ b/assets/comp/wallet/scripts/ui/TokenList.ts @@ -1,21 +1,54 @@ +import { DEFALUT_TOKENS } from "../config/chain_config"; +import { IToken } from "../data/DataModel"; +import WalletBase from "./WallerBase"; + const {ccclass, property} = cc._decorator; @ccclass -export default class TokenList extends cc.Component { +export default class TokenList extends WalletBase { - @property(cc.Label) - label: cc.Label = null; + @property(cc.Prefab) + tokenPreb: cc.Prefab = null - @property - text: string = 'hello'; + @property(cc.Node) + contentNode: cc.Node = null // LIFE-CYCLE CALLBACKS: // onLoad () {} start () { - + super.start() + this.updateList() } // update (dt) {} + + updateList() { + this.contentNode.removeAllChildren() + const accountData =this.wallet.currentAccountData + if (!accountData) { + return + } + if (accountData.tokens.length == 0) { + let tokens = this.currentTokens() + for (let token of tokens) { + accountData.tokens.push(token) + } + } + for (let data of accountData.tokens) { + this.addOneToken(data) + } + } + + currentTokens() { + const chain = this.wallet.currentChain.id + return DEFALUT_TOKENS[chain] || [] + } + + addOneToken(data: IToken) { + let node = cc.instantiate(this.tokenPreb) + node.getComponent('OneToken').init(data) + this.contentNode.addChild(node) + } } diff --git a/assets/comp/wallet/scripts/ui/TokenTab.ts b/assets/comp/wallet/scripts/ui/TokenTab.ts index 0f025e2..f59dd22 100644 --- a/assets/comp/wallet/scripts/ui/TokenTab.ts +++ b/assets/comp/wallet/scripts/ui/TokenTab.ts @@ -1,3 +1,4 @@ +import { DEFAULT_NFT_TYPES } from "../config/chain_config"; import JCWallet from "../JCWallet"; import ButtonGroup, { BTN_SELECT_INDEX_CHANGE } from "./ButtonGroup"; import TextBtn from "./TextBtn"; @@ -21,7 +22,7 @@ export default class TokenTab extends WalletBase { // LIFE-CYCLE CALLBACKS: // onLoad () {} - private titles = ['Tokens', 'Hero', 'Weapon', 'Chip'] + private titles = ['tokens'] start () { super.start() @@ -37,7 +38,15 @@ export default class TokenTab extends WalletBase { // update (dt) {} showAllBtn() { - console.log('show all token tab') + this.titles.length = 1 + const chain = this.wallet.currentChain.id + let nftData: any = DEFAULT_NFT_TYPES[chain] + if (nftData) { + for (let key in nftData) { + this.titles.push(key) + } + } + console.log('show all token tab: ', this.titles) for (let i = 0, l = this.titles.length; i < l; i++) { const btn = cc.instantiate(this.btnPreb) const btnM: TextBtn = btn.getComponent(TextBtn) @@ -50,5 +59,7 @@ export default class TokenTab extends WalletBase { onTokenTypeChange(data: {index: number}) { console.log('on token change: ', JSON.stringify(data)) + let type = this.titles[data.index] + this.wallet.updateListType(type) } } diff --git a/assets/comp/wallet/scripts/ui/WalletMainPanel.ts b/assets/comp/wallet/scripts/ui/WalletMainPanel.ts index 22f761d..e33a9b1 100644 --- a/assets/comp/wallet/scripts/ui/WalletMainPanel.ts +++ b/assets/comp/wallet/scripts/ui/WalletMainPanel.ts @@ -1,5 +1,6 @@ import JCWallet from "../JCWallet"; import ChainTab from "./ChainTab"; +import ListNode from "./ListNode"; import WalletBase from "./WallerBase"; const {ccclass, property} = cc._decorator; @@ -12,6 +13,11 @@ export default class WalletMainPanel extends WalletBase { }) chainTab: ChainTab = null + @property({ + type: ListNode + }) + listNode: ListNode = null + // LIFE-CYCLE CALLBACKS: // onLoad () {} diff --git a/assets/scenes/main.fire b/assets/scenes/main.fire index 365f886..64f7bc7 100644 --- a/assets/scenes/main.fire +++ b/assets/scenes/main.fire @@ -17,7 +17,7 @@ "__id__": 2 }, { - "__id__": 258 + "__id__": 232 } ], "_active": false, @@ -44,8 +44,8 @@ }, "_scale": { "__type__": "cc.Vec3", - "x": 0.541015625, - "y": 0.541015625, + "x": 0.5387702765764939, + "y": 0.5387702765764939, "z": 1 }, "_quat": { @@ -87,13 +87,13 @@ "_level": 1, "_components": [ { - "__id__": 255 + "__id__": 229 }, { - "__id__": 256 + "__id__": 230 }, { - "__id__": 259 + "__id__": 233 } ], "_prefab": null, @@ -4638,23 +4638,20 @@ "__id__": 136 }, { - "__id__": 167 - }, - { - "__id__": 212 + "__id__": 186 } ], "_active": true, "_level": 1, "_components": [ { - "__id__": 252 + "__id__": 226 }, { - "__id__": 253 + "__id__": 227 }, { - "__id__": 254 + "__id__": 228 } ], "_prefab": null, @@ -5943,7 +5940,7 @@ }, { "__type__": "cc.Node", - "_name": "tokenNode", + "_name": "listNode", "_objFlags": 0, "_parent": { "__id__": 102 @@ -5951,16 +5948,16 @@ "_children": [ { "__id__": 137 + }, + { + "__id__": 169 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 165 - }, - { - "__id__": 166 + "__id__": 185 } ], "_prefab": null, @@ -6006,11 +6003,11 @@ "_skewX": 0, "_skewY": 0, "groupIndex": 0, - "_id": "e5pGJV7JdJ1YvTnDAA9eMB" + "_id": "06IRCWsCtBoY17q3O2T41r" }, { "__type__": "cc.Node", - "_name": "content", + "_name": "tokenNode", "_objFlags": 0, "_parent": { "__id__": 136 @@ -6018,34 +6015,104 @@ "_children": [ { "__id__": 138 - }, - { - "__id__": 150 - }, - { - "__id__": 152 - }, - { - "__id__": 154 - }, - { - "__id__": 156 - }, - { - "__id__": 158 - }, - { - "__id__": 160 - }, - { - "__id__": 162 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 164 + "__id__": 166 + }, + { + "__id__": 167 + }, + { + "__id__": 168 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 450, + "height": 400 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_position": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_scale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_rotationX": 0, + "_rotationY": 0, + "_quat": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_skewX": 0, + "_skewY": 0, + "groupIndex": 0, + "_id": "e5pGJV7JdJ1YvTnDAA9eMB" + }, + { + "__type__": "cc.Node", + "_name": "content", + "_objFlags": 0, + "_parent": { + "__id__": 137 + }, + "_children": [ + { + "__id__": 139 + }, + { + "__id__": 151 + }, + { + "__id__": 153 + }, + { + "__id__": 155 + }, + { + "__id__": 157 + }, + { + "__id__": 159 + }, + { + "__id__": 161 + }, + { + "__id__": 163 + } + ], + "_active": true, + "_level": 3, + "_components": [ + { + "__id__": 165 } ], "_prefab": null, @@ -6098,28 +6165,28 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [ { - "__id__": 139 + "__id__": 140 }, { - "__id__": 142 + "__id__": 143 }, { - "__id__": 145 + "__id__": 146 } ], "_active": true, "_level": 4, "_components": [ { - "__id__": 148 + "__id__": 149 } ], "_prefab": { - "__id__": 149 + "__id__": 150 }, "_opacity": 255, "_color": { @@ -6170,18 +6237,18 @@ "_name": "icon", "_objFlags": 0, "_parent": { - "__id__": 138 + "__id__": 139 }, "_children": [], "_active": true, "_level": 5, "_components": [ { - "__id__": 140 + "__id__": 141 } ], "_prefab": { - "__id__": 141 + "__id__": 142 }, "_opacity": 255, "_color": { @@ -6232,7 +6299,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 139 + "__id__": 140 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6258,7 +6325,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 138 + "__id__": 139 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6271,18 +6338,18 @@ "_name": "nameLabel", "_objFlags": 0, "_parent": { - "__id__": 138 + "__id__": 139 }, "_children": [], "_active": true, "_level": 5, "_components": [ { - "__id__": 143 + "__id__": 144 } ], "_prefab": { - "__id__": 144 + "__id__": 145 }, "_opacity": 255, "_color": { @@ -6333,7 +6400,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 142 + "__id__": 143 }, "_enabled": true, "_useOriginalSize": false, @@ -6356,7 +6423,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 138 + "__id__": 139 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6369,18 +6436,18 @@ "_name": "countLabel", "_objFlags": 0, "_parent": { - "__id__": 138 + "__id__": 139 }, "_children": [], "_active": true, "_level": 5, "_components": [ { - "__id__": 146 + "__id__": 147 } ], "_prefab": { - "__id__": 147 + "__id__": 148 }, "_opacity": 255, "_color": { @@ -6431,7 +6498,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 145 + "__id__": 146 }, "_enabled": true, "_useOriginalSize": false, @@ -6454,7 +6521,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 138 + "__id__": 139 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6467,7 +6534,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 138 + "__id__": 139 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6493,7 +6560,7 @@ { "__type__": "cc.PrefabInfo", "root": { - "__id__": 138 + "__id__": 139 }, "asset": { "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" @@ -6506,14 +6573,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 151 + "__id__": 152 } ], "_prefab": null, @@ -6566,7 +6633,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 150 + "__id__": 151 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6594,14 +6661,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 153 + "__id__": 154 } ], "_prefab": null, @@ -6654,7 +6721,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 152 + "__id__": 153 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6682,14 +6749,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 155 + "__id__": 156 } ], "_prefab": null, @@ -6742,7 +6809,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 154 + "__id__": 155 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6770,14 +6837,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 157 + "__id__": 158 } ], "_prefab": null, @@ -6830,7 +6897,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 156 + "__id__": 157 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6858,14 +6925,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 159 + "__id__": 160 } ], "_prefab": null, @@ -6918,7 +6985,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 158 + "__id__": 159 }, "_enabled": true, "_srcBlendFactor": 770, @@ -6946,14 +7013,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 161 + "__id__": 162 } ], "_prefab": null, @@ -7006,7 +7073,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 160 + "__id__": 161 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7034,14 +7101,14 @@ "_name": "OneToken", "_objFlags": 0, "_parent": { - "__id__": 137 + "__id__": 138 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 163 + "__id__": 164 } ], "_prefab": null, @@ -7094,7 +7161,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 162 + "__id__": 163 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7122,7 +7189,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 137 + "__id__": 138 }, "_enabled": true, "_layoutSize": { @@ -7155,7 +7222,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 136 + "__id__": 137 }, "_enabled": true, "horizontal": false, @@ -7167,10 +7234,10 @@ "scrollEvents": [], "cancelInnerEvents": true, "_N$content": { - "__id__": 137 + "__id__": 138 }, "content": { - "__id__": 137 + "__id__": 138 }, "_id": "93DE2Y689LTZVFcuKyUjcw" }, @@ -7179,7 +7246,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 136 + "__id__": 137 }, "_enabled": true, "_spriteFrame": null, @@ -7189,29 +7256,50 @@ "_N$inverted": false, "_id": "18w6z6BPBO07sVKCTJxF6y" }, + { + "__type__": "b3403XNJS1OX6Fuqi9x9XSl", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 137 + }, + "_enabled": true, + "tokenPreb": { + "__uuid__": "e4b00542-5961-4a6a-8ae5-c19d30ac84a2" + }, + "contentNode": { + "__id__": 138 + }, + "_id": "39qWwkkx9JpKagzlpdhkG0" + }, { "__type__": "cc.Node", - "_name": "nftNode", + "_name": "NftList", "_objFlags": 0, "_parent": { - "__id__": 102 + "__id__": 136 }, "_children": [ { - "__id__": 168 + "__id__": 170 } ], "_active": false, - "_level": 2, + "_level": 3, "_components": [ { - "__id__": 210 + "__id__": 181 }, { - "__id__": 211 + "__id__": 182 + }, + { + "__id__": 183 } ], - "_prefab": null, + "_prefab": { + "__id__": 184 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -7232,8 +7320,8 @@ }, "_position": { "__type__": "cc.Vec3", - "x": 269, - "y": -34, + "x": 0, + "y": 0, "z": 0 }, "_scale": { @@ -7261,78 +7349,23 @@ "_name": "content", "_objFlags": 0, "_parent": { - "__id__": 167 + "__id__": 169 }, "_children": [ - { - "__id__": 169 - }, { "__id__": 171 - }, - { - "__id__": 173 - }, - { - "__id__": 175 - }, - { - "__id__": 177 - }, - { - "__id__": 179 - }, - { - "__id__": 181 - }, - { - "__id__": 183 - }, - { - "__id__": 185 - }, - { - "__id__": 187 - }, - { - "__id__": 189 - }, - { - "__id__": 191 - }, - { - "__id__": 193 - }, - { - "__id__": 195 - }, - { - "__id__": 197 - }, - { - "__id__": 199 - }, - { - "__id__": 201 - }, - { - "__id__": 203 - }, - { - "__id__": 205 - }, - { - "__id__": 207 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 209 + "__id__": 179 } ], - "_prefab": null, + "_prefab": { + "__id__": 180 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -7344,7 +7377,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 450, - "height": 540 + "height": 120 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -7382,17 +7415,22 @@ "_name": "OneNFT", "_objFlags": 0, "_parent": { - "__id__": 168 + "__id__": 170 }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ + "_children": [ { - "__id__": 170 + "__id__": 172 + }, + { + "__id__": 175 } ], - "_prefab": null, + "_active": true, + "_level": 4, + "_components": [], + "_prefab": { + "__id__": 178 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -7404,7 +7442,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 100, - "height": 100 + "height": 120 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -7414,7 +7452,7 @@ "_position": { "__type__": "cc.Vec3", "x": -175, - "y": -50, + "y": -60, "z": 0 }, "_scale": { @@ -7437,138 +7475,24 @@ "groupIndex": 0, "_id": "d8aF0PaVNDOojtyTIMdXbp" }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 169 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "27/crr83ZIybWbKUCZ0r2A" - }, { "__type__": "cc.Node", - "_name": "OneNFT", + "_name": "New Sprite", "_objFlags": 0, "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 172 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -65, - "y": -50, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "05AMFpFKJBp7eRReYoQtF/" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { "__id__": 171 }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "13b6p1B71HSqGCAiDpeDzI" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, "_children": [], "_active": true, - "_level": 4, + "_level": 5, "_components": [ { - "__id__": 174 + "__id__": 173 } ], - "_prefab": null, + "_prefab": { + "__id__": 174 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -7589,8 +7513,8 @@ }, "_position": { "__type__": "cc.Vec3", - "x": 45, - "y": -50, + "x": 0, + "y": 10, "z": 0 }, "_scale": { @@ -7611,14 +7535,14 @@ "_skewX": 0, "_skewY": 0, "groupIndex": 0, - "_id": "a7MZR7gSlPQYmguumAwVBl" + "_id": "d60oW7FvtHeYQMK3B9YDtO" }, { "__type__": "cc.Sprite", "_name": "", "_objFlags": 0, "node": { - "__id__": 173 + "__id__": 172 }, "_enabled": true, "_srcBlendFactor": 770, @@ -7639,24 +7563,37 @@ "_isTrimmedMode": true, "_state": 0, "_atlas": null, - "_id": "25DXb8sa5CWJ0vVAn7/TtB" + "_id": "dbhRGw/n5MT5yX02ob/Kdh" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 169 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "d60oW7FvtHeYQMK3B9YDtO", + "sync": false }, { "__type__": "cc.Node", - "_name": "OneNFT", + "_name": "idLabel", "_objFlags": 0, "_parent": { - "__id__": 168 + "__id__": 171 }, "_children": [], "_active": true, - "_level": 4, + "_level": 5, "_components": [ { "__id__": 176 } ], - "_prefab": null, + "_prefab": { + "__id__": 177 + }, "_opacity": 255, "_color": { "__type__": "cc.Color", @@ -7667,18 +7604,18 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 100, - "height": 100 + "width": 48.94, + "height": 40 }, "_anchorPoint": { "__type__": "cc.Vec2", - "x": 0.5, + "x": 0, "y": 0.5 }, "_position": { "__type__": "cc.Vec3", - "x": 155, - "y": -50, + "x": -50, + "y": -45, "z": 0 }, "_scale": { @@ -7699,1456 +7636,67 @@ "_skewX": 0, "_skewY": 0, "groupIndex": 0, - "_id": "31JnqJnHZIKL4SRUJLFxB0" + "_id": "fdPjhkyMBEwZHA5g8nn6Bd" }, { - "__type__": "cc.Sprite", + "__type__": "cc.Label", "_name": "", "_objFlags": 0, "node": { "__id__": 175 }, "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "feL4NqUBFD7o61BHOyWDhi" + "_useOriginalSize": false, + "_string": "Label", + "_N$string": "Label", + "_fontSize": 20, + "_lineHeight": 40, + "_enableWrapText": true, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_N$horizontalAlign": 0, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 0, + "_N$cacheMode": 0, + "_id": "b2O2YnLfBJL4CsTQAL8SmB" }, { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 169 }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 178 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -175, - "y": -160, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "42dkrhnwlPxbpHRzpEVWDW" + "fileId": "fdPjhkyMBEwZHA5g8nn6Bd", + "sync": false }, { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 177 + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 169 }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "b2ccvFladCzY7+m3cgIsKI" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 180 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -65, - "y": -160, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "caW5PECZ1EXo6PYhjRzLIH" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 179 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "22241GUfBNHbdg+2Xf560V" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 182 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 45, - "y": -160, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "7dHKHq+xJNiaDPKYiNjWEi" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 181 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "4chHdt4ahDJ4uskjsC3O5w" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 184 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 155, - "y": -160, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "24u27emulITrIje/WBA+JS" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 183 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "3bjB9APNpASIGefwq2eJPO" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 186 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -175, - "y": -270, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "1dBb6mP/xAwZYYaqQKSiP+" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 185 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "96zd04sY9Ldq9TmwqjfT0g" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 188 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -65, - "y": -270, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "d8fDUaheNIo4KCF/iuL6Pr" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 187 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "bbHAQeS0RC87BrnOQMigD2" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 190 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 45, - "y": -270, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "0cqy5A7zBAZpSD1JP+1RCU" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 189 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "41djHgWllOE4ySRvvK5IpP" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 192 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 155, - "y": -270, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "8bu/pWmbhGYJzo6jqNoBlY" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 191 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "b8ueyDVfZEdqvs3ZlGXih+" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 194 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -175, - "y": -380, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "e6XbRcOABNSo4TrGwvQuQK" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 193 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "eaL3umnoBOqJuaUWJTH69d" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 196 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -65, - "y": -380, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "33eD4f22RP8aXlmWMqqTiS" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 195 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "2byf6I/KtMtoKijJ6p7s4/" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 198 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 45, - "y": -380, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "152bFW/9JFX6iQg+f4Sla0" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 197 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "53l7WsAblDXpDFWGyH8Whd" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 200 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 155, - "y": -380, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "181ZFiYhVJbrgwxmwR2ok9" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 199 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "95dsrcdfZIbYhEXwhkCAxc" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 202 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -175, - "y": -490, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "75gHKtyrhH6bxr9u1kB9Tu" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 201 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "dcoc7p6rxLdIkiknhw7S0D" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 204 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": -65, - "y": -490, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "cc/PqvufhOGb/KkSTZCzY3" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 203 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "0dAIFmAvVMaJeqDJh5eHop" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 206 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 45, - "y": -490, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "a8si9EXNxMVaVQz9idToew" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 205 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "a2yfaJCvNLdorcB02/A2PU" - }, - { - "__type__": "cc.Node", - "_name": "OneNFT", - "_objFlags": 0, - "_parent": { - "__id__": 168 - }, - "_children": [], - "_active": true, - "_level": 4, - "_components": [ - { - "__id__": 208 - } - ], - "_prefab": null, - "_opacity": 255, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_position": { - "__type__": "cc.Vec3", - "x": 155, - "y": -490, - "z": 0 - }, - "_scale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_rotationX": 0, - "_rotationY": 0, - "_quat": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_skewX": 0, - "_skewY": 0, - "groupIndex": 0, - "_id": "fdVUjI7QNI+qUiFhw57x4O" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "node": { - "__id__": 207 - }, - "_enabled": true, - "_srcBlendFactor": 770, - "_dstBlendFactor": 771, - "_spriteFrame": { - "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" - }, - "_type": 0, - "_sizeMode": 0, - "_fillType": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_state": 0, - "_atlas": null, - "_id": "8duEdjszdDqIqRZ8nx7liF" + "fileId": "d8aF0PaVNDOojtyTIMdXbp", + "sync": false }, { "__type__": "cc.Layout", "_name": "", "_objFlags": 0, "node": { - "__id__": 168 + "__id__": 170 }, "_enabled": true, "_layoutSize": { "__type__": "cc.Size", "width": 450, - "height": 540 + "height": 120 }, "_resize": 1, "_N$layoutType": 3, @@ -9170,12 +7718,23 @@ "_N$affectedByScale": false, "_id": "88hBUmvppIgZuiA/NKVkY0" }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 169 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "6e2xzjh/1GC5AU8a/D8Qwk", + "sync": false + }, { "__type__": "cc.ScrollView", "_name": "", "_objFlags": 0, "node": { - "__id__": 167 + "__id__": 169 }, "_enabled": true, "horizontal": false, @@ -9187,10 +7746,10 @@ "scrollEvents": [], "cancelInnerEvents": true, "_N$content": { - "__id__": 168 + "__id__": 170 }, "content": { - "__id__": 168 + "__id__": 170 }, "_id": "c1dTpcs0FN148gHZkzcGGN" }, @@ -9199,7 +7758,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 167 + "__id__": 169 }, "_enabled": true, "_spriteFrame": null, @@ -9209,6 +7768,49 @@ "_N$inverted": false, "_id": "aaZZnMXVdCQpqk+nzlF7Tb" }, + { + "__type__": "d8e744LBIpBeKlOm9Kvb6W7", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 169 + }, + "_enabled": true, + "tokenPreb": { + "__uuid__": "259e752f-837f-4d16-b21f-3c886e3a7a7e" + }, + "contentNode": { + "__id__": 170 + }, + "_id": "f5sJ82q7hHDprRRXyCDMif" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 169 + }, + "asset": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "fileId": "edJmq9HR5CfZdb8CAuqySi", + "sync": false + }, + { + "__type__": "7646cRQerFFvpr/zZilZ84O", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 136 + }, + "_enabled": true, + "nftListPreb": { + "__uuid__": "e64be85b-3d9f-4109-8e7d-48847666bf2c" + }, + "tokenNode": { + "__id__": 137 + }, + "_id": "2bAtuIa1NOrZOOApO/IoR0" + }, { "__type__": "cc.Node", "_name": "infoNode", @@ -9217,48 +7819,48 @@ "__id__": 102 }, "_children": [ + { + "__id__": 187 + }, + { + "__id__": 189 + }, + { + "__id__": 191 + }, + { + "__id__": 193 + }, + { + "__id__": 195 + }, + { + "__id__": 197 + }, + { + "__id__": 203 + }, + { + "__id__": 207 + }, + { + "__id__": 211 + }, { "__id__": 213 }, { "__id__": 215 - }, - { - "__id__": 217 - }, - { - "__id__": 219 - }, - { - "__id__": 221 - }, - { - "__id__": 223 - }, - { - "__id__": 229 - }, - { - "__id__": 233 - }, - { - "__id__": 237 - }, - { - "__id__": 239 - }, - { - "__id__": 241 } ], "_active": true, "_level": 2, "_components": [ { - "__id__": 250 + "__id__": 224 }, { - "__id__": 251 + "__id__": 225 } ], "_prefab": null, @@ -9311,14 +7913,14 @@ "_name": "balanceTitle", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 214 + "__id__": 188 } ], "_prefab": null, @@ -9371,7 +7973,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 213 + "__id__": 187 }, "_enabled": true, "_useOriginalSize": false, @@ -9396,14 +7998,14 @@ "_name": "balanceLabel", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 216 + "__id__": 190 } ], "_prefab": null, @@ -9456,7 +8058,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 215 + "__id__": 189 }, "_enabled": true, "_useOriginalSize": false, @@ -9481,14 +8083,14 @@ "_name": "addressTitle", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 218 + "__id__": 192 } ], "_prefab": null, @@ -9541,7 +8143,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 217 + "__id__": 191 }, "_enabled": true, "_useOriginalSize": false, @@ -9566,14 +8168,14 @@ "_name": "addressLabel", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 220 + "__id__": 194 } ], "_prefab": null, @@ -9626,7 +8228,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 219 + "__id__": 193 }, "_enabled": true, "_useOriginalSize": false, @@ -9651,14 +8253,14 @@ "_name": "copyBtn", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 222 + "__id__": 196 } ], "_prefab": null, @@ -9711,7 +8313,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 221 + "__id__": 195 }, "_enabled": true, "_srcBlendFactor": 770, @@ -9739,21 +8341,21 @@ "_name": "receiveBtn", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [ { - "__id__": 224 + "__id__": 198 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 226 + "__id__": 200 }, { - "__id__": 227 + "__id__": 201 } ], "_prefab": null, @@ -9806,14 +8408,14 @@ "_name": "label", "_objFlags": 0, "_parent": { - "__id__": 223 + "__id__": 197 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 225 + "__id__": 199 } ], "_prefab": null, @@ -9866,7 +8468,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 224 + "__id__": 198 }, "_enabled": true, "_useOriginalSize": false, @@ -9891,7 +8493,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 223 + "__id__": 197 }, "_enabled": true, "_srcBlendFactor": 770, @@ -9919,14 +8521,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 223 + "__id__": 197 }, "_enabled": true, "duration": 0.1, "zoomScale": 1.2, "clickEvents": [ { - "__id__": 228 + "__id__": 202 } ], "_N$interactable": true, @@ -9987,7 +8589,7 @@ { "__type__": "cc.ClickEvent", "target": { - "__id__": 212 + "__id__": 186 }, "component": "", "_componentId": "3fe0aN9jsFD57pMhFser+jv", @@ -9999,18 +8601,18 @@ "_name": "sendBtn", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [ { - "__id__": 230 + "__id__": 204 } ], "_active": true, "_level": 3, "_components": [ { - "__id__": 232 + "__id__": 206 } ], "_prefab": null, @@ -10063,14 +8665,14 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 229 + "__id__": 203 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 231 + "__id__": 205 } ], "_prefab": null, @@ -10123,7 +8725,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 230 + "__id__": 204 }, "_enabled": true, "_useOriginalSize": false, @@ -10148,7 +8750,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 229 + "__id__": 203 }, "_enabled": true, "_srcBlendFactor": 770, @@ -10176,17 +8778,17 @@ "_name": "closeBtn", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 234 + "__id__": 208 }, { - "__id__": 235 + "__id__": 209 } ], "_prefab": null, @@ -10239,7 +8841,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 233 + "__id__": 207 }, "_enabled": true, "_srcBlendFactor": 770, @@ -10267,14 +8869,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 233 + "__id__": 207 }, "_enabled": true, "duration": 0.1, "zoomScale": 1.2, "clickEvents": [ { - "__id__": 236 + "__id__": 210 } ], "_N$interactable": true, @@ -10347,14 +8949,14 @@ "_name": "avator", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 238 + "__id__": 212 } ], "_prefab": null, @@ -10407,7 +9009,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 237 + "__id__": 211 }, "_enabled": true, "_srcBlendFactor": 770, @@ -10435,14 +9037,14 @@ "_name": "New Label", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [], "_active": true, "_level": 3, "_components": [ { - "__id__": 240 + "__id__": 214 } ], "_prefab": null, @@ -10495,7 +9097,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 239 + "__id__": 213 }, "_enabled": true, "_useOriginalSize": false, @@ -10520,21 +9122,21 @@ "_name": "qrNode", "_objFlags": 0, "_parent": { - "__id__": 212 + "__id__": 186 }, "_children": [ { - "__id__": 242 + "__id__": 216 }, { - "__id__": 247 + "__id__": 221 } ], "_active": false, "_level": 3, "_components": [ { - "__id__": 249 + "__id__": 223 } ], "_prefab": null, @@ -10587,20 +9189,20 @@ "_name": "New Sprite(Splash)", "_objFlags": 0, "_parent": { - "__id__": 241 + "__id__": 215 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 243 + "__id__": 217 }, { - "__id__": 244 + "__id__": 218 }, { - "__id__": 245 + "__id__": 219 } ], "_prefab": null, @@ -10653,7 +9255,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 242 + "__id__": 216 }, "_enabled": true, "_srcBlendFactor": 770, @@ -10681,7 +9283,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 242 + "__id__": 216 }, "_enabled": true, "alignMode": 1, @@ -10708,14 +9310,14 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 242 + "__id__": 216 }, "_enabled": true, "duration": 0.1, "zoomScale": 1.2, "clickEvents": [ { - "__id__": 246 + "__id__": 220 } ], "_N$interactable": true, @@ -10776,7 +9378,7 @@ { "__type__": "cc.ClickEvent", "target": { - "__id__": 212 + "__id__": 186 }, "component": "", "_componentId": "3fe0aN9jsFD57pMhFser+jv", @@ -10788,14 +9390,14 @@ "_name": "qrImgNode", "_objFlags": 0, "_parent": { - "__id__": 241 + "__id__": 215 }, "_children": [], "_active": true, "_level": 4, "_components": [ { - "__id__": 248 + "__id__": 222 } ], "_prefab": null, @@ -10848,7 +9450,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 247 + "__id__": 221 }, "_enabled": true, "lightColor": { @@ -10872,7 +9474,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 241 + "__id__": 215 }, "_enabled": true, "alignMode": 1, @@ -10899,7 +9501,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 212 + "__id__": 186 }, "_enabled": true, "alignMode": 1, @@ -10926,17 +9528,17 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 212 + "__id__": 186 }, "_enabled": true, "addressLabel": { - "__id__": 220 + "__id__": 194 }, "balanceLabel": { - "__id__": 216 + "__id__": 190 }, "qrNode": { - "__id__": 241 + "__id__": 215 }, "_id": "8bO0XBvlFDPJ87FOgdOxUH" }, @@ -11006,6 +9608,9 @@ "chainTab": { "__id__": 113 }, + "listNode": { + "__id__": 185 + }, "_id": "a8YbO7l9lF95gWk3JRycGs" }, { @@ -11034,7 +9639,7 @@ }, "_enabled": true, "webview": { - "__id__": 257 + "__id__": 231 }, "debugText": { "__id__": 6 @@ -11047,7 +9652,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 258 + "__id__": 232 }, "_enabled": true, "_useOriginalSize": false, @@ -11067,7 +9672,7 @@ "_level": 1, "_components": [ { - "__id__": 257 + "__id__": 231 } ], "_prefab": null, diff --git a/assets/scripts/wallet/WalletController.ts b/assets/scripts/wallet/WalletController.ts index 78573ef..4a5ffd6 100644 --- a/assets/scripts/wallet/WalletController.ts +++ b/assets/scripts/wallet/WalletController.ts @@ -2,7 +2,7 @@ import { WALLET_CHAIN_CHANGE } from "../../comp/wallet/scripts/common/WalletEven import JCWallet, { IChainData } from "../../comp/wallet/scripts/JCWallet"; import sth = require("../../comp/wallet/scripts/lib/ethSigUtil"); import('../../comp/wallet/scripts/lib/fetch'); -import { GET } from "../../comp/wallet/scripts/lib/Http"; +import { GET, GET_JSON } from "../../comp/wallet/scripts/lib/Http"; import { renderFromTokenMinimalUnit, renderFromWei } from "../../comp/wallet/scripts/util/number.util"; const {ccclass, property} = cc._decorator; @@ -53,11 +53,9 @@ export default class WalletController extends cc.Component { let account = this.wallet.currentAccount() let nonceUrlBase = this.apiBase + '/webapp/index.php?c=Market&a=getNonce' let nonceUrl = `${nonceUrlBase}&account=${account.address}&net_id=322` - let res = await GET(nonceUrl); - let obj: any = {} - obj = JSON.parse(res as string); + let obj: any = await GET_JSON(nonceUrl); const nonce = obj.nonce; - console.log(res); + console.log(obj); const tips:string = 'signrequest' const signMsg = { tips, @@ -89,7 +87,7 @@ export default class WalletController extends cc.Component { console.log(`is same: ${account.address.toLowerCase() == resultAddress}`) let loginUrlBase = this.apiBase + '/webapp/index.php?c=Market&a=auth' let loginUrl = `${loginUrlBase}&account=${account.address}&nonce=${nonce}&signature=${result}&tips=${tips.replace(/\ /g, '+')}&net_id=322` - let resLogin = await GET(loginUrl); + let resLogin = await GET_JSON(loginUrl); console.log(resLogin); }