diff --git a/package.json b/package.json index b0ff526..f434da8 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,13 @@ "check": "prettier --check ." }, "dependencies": { - "@ckb-lumos/base": "^0.21.1", - "@ckb-lumos/common-scripts": "^0.21.1", + "@ckb-lumos/base": "0.22.0-next.5", + "@ckb-lumos/common-scripts": "0.22.0-next.5", "@joyid/ckb": "^0.0.3", "@nervosnetwork/ckb-sdk-core": "^0.109.0", "@nervosnetwork/ckb-sdk-utils": "^0.109.0", "@nervosnetwork/ckb-types": "^0.109.0", - "@spore-sdk/core": "0.2.0-beta.3", + "@spore-sdk/core": "0.2.0-beta.4", "axios": "^1.6.7", "bignumber.js": "^9.1.1", "bn.js": "^5.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cba4513..840b5d0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,11 +6,11 @@ settings: dependencies: '@ckb-lumos/base': - specifier: ^0.21.1 - version: 0.21.1 + specifier: 0.22.0-next.5 + version: 0.22.0-next.5 '@ckb-lumos/common-scripts': - specifier: ^0.21.1 - version: 0.21.1 + specifier: 0.22.0-next.5 + version: 0.22.0-next.5 '@joyid/ckb': specifier: ^0.0.3 version: 0.0.3 @@ -24,8 +24,8 @@ dependencies: specifier: ^0.109.0 version: 0.109.0 '@spore-sdk/core': - specifier: 0.2.0-beta.3 - version: 0.2.0-beta.3 + specifier: 0.2.0-beta.4 + version: 0.2.0-beta.4(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21) axios: specifier: ^1.6.7 version: 1.6.7 @@ -206,13 +206,13 @@ packages: to-fast-properties: 2.0.0 dev: true - /@ckb-lumos/base@0.21.1: - resolution: { integrity: sha512-7O+jBl7pqMsRbYTMNnbpamgaQzvaLZq+ftMtnKZ3A+Zbs6hZcGbz/6nfbRZnyJitPXQHRPT5KAQz6g+TiYqJGg== } + /@ckb-lumos/base@0.22.0-next.5: + resolution: { integrity: sha512-2I4f/zJm3Bdz/5soXo35vDh98Vffp2clO8n1ZeZRsUtBZUtvAGNbggC4J8/0a/yFw3cStaOJ1Tztla5E0hP+xA== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/bi': 0.21.1 - '@ckb-lumos/codec': 0.21.1 - '@ckb-lumos/toolkit': 0.21.1 + '@ckb-lumos/bi': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/toolkit': 0.22.0-next.5 '@types/blake2b': 2.1.3 '@types/lodash.isequal': 4.5.8 blake2b: 2.1.4 @@ -220,90 +220,46 @@ packages: lodash.isequal: 4.5.0 dev: false - /@ckb-lumos/base@0.22.0-next.4: - resolution: { integrity: sha512-7hjAkyllB/QMz3VaGbIxAb2zBtdChblfXvn2/FaD9udJvTAvJNcwkExp+k4tSpJFyMrdhTCFJ9EmgStuG1XqDw== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/toolkit': 0.22.0-next.4 - '@types/blake2b': 2.1.3 - '@types/lodash.isequal': 4.5.8 - blake2b: 2.1.4 - js-xxhash: 1.0.4 - lodash.isequal: 4.5.0 - dev: false - - /@ckb-lumos/bi@0.21.1: - resolution: { integrity: sha512-6q8uesvu3DAM7GReei9H5seino4tnakTeg8uXtZBPDC6rboMohLCPQvEwhl1iHmsybXvBYVQt4Te1BPPZtuaRw== } - engines: { node: '>=12.0.0' } - dependencies: - jsbi: 4.3.0 - dev: false - - /@ckb-lumos/bi@0.22.0-next.4: - resolution: { integrity: sha512-OlAfmWOty3vpCMUUQhQpxd7aun6Q1+hmBN10ZIdiR3n0CEMrj2dqZNSCtCDt/DfLWI+WfqVN71MO737cJ8cm7g== } + /@ckb-lumos/bi@0.22.0-next.5: + resolution: { integrity: sha512-hfh9PQDLJeZedlJ6qBVxx2MR9ndU0XyIl53vh1I+S4SGmvl/z2PGEY06vN34nkjmZ/1c87/KW+sL2Cpii0IxGg== } engines: { node: '>=12.0.0' } dependencies: jsbi: 4.3.0 dev: false - /@ckb-lumos/ckb-indexer@0.22.0-next.4: - resolution: { integrity: sha512-3NIqEFtgsbNAef23uVg1ANapvPH/IRBhT9F1pUUHe9lVOVsdbsLGj6oXnjfJ+zkQMhJbckVHH4dlZgDbZdbYuQ== } + /@ckb-lumos/ckb-indexer@0.22.0-next.5: + resolution: { integrity: sha512-1UZ0whrn9k18wrvIIvsdAYRCGInNA4qcrMcxsqSV7ADQnPsw8c+ARkIyzQrqaM2bzvPa3O+aVXnZ7g2oTrhtFA== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 - '@ckb-lumos/toolkit': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/rpc': 0.22.0-next.5 + '@ckb-lumos/toolkit': 0.22.0-next.5 cross-fetch: 3.1.8 events: 3.3.0 transitivePeerDependencies: - encoding dev: false - /@ckb-lumos/codec@0.21.1: - resolution: { integrity: sha512-z6IUUxVZrx663iC7VM9CmaQZL8jsdM3ybgz0UCS24JgBXTNec+Uz0/Zrl7yeH6fBpVls44C2wObcHKigKaNVAA== } + /@ckb-lumos/codec@0.22.0-next.5: + resolution: { integrity: sha512-AVvREoEc0zSbGSdFZOph1WL9QtUKUjQ2PABpApROMTqDCryG9/FpBrInjm2y50USZlwcEE3+ocEqFqJjfuTXKQ== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/bi': 0.21.1 + '@ckb-lumos/bi': 0.22.0-next.5 dev: false - /@ckb-lumos/codec@0.22.0-next.4: - resolution: { integrity: sha512-4oV9Wn639+V5jYr1tbTJqpuRHVhaXcHZF7K1Ucb5ssMivr47Kb0Gl9DTQgq4jVgvWNIyfo1+DTTzdDajQF6DcQ== } + /@ckb-lumos/common-scripts@0.22.0-next.5: + resolution: { integrity: sha512-DXGwyc0pmrq0fj+NflDBeBgJSL2bNAVHpULpbUncDUPIBJf9IFyMDSZUgzX6hYjTX0WA07e5CEFo5wwHb24Dmw== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/bi': 0.22.0-next.4 - dev: false - - /@ckb-lumos/common-scripts@0.21.1: - resolution: { integrity: sha512-EfZQ9wdxPmEsxVVwtBjhpZVKbYCm1FJkMt59ABsIO1Ub7yi0qap7AQl0MMbuLwWIGKwS2w0U3wx/oJPm7z1RXg== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/base': 0.21.1 - '@ckb-lumos/bi': 0.21.1 - '@ckb-lumos/codec': 0.21.1 - '@ckb-lumos/config-manager': 0.21.1 - '@ckb-lumos/helpers': 0.21.1 - '@ckb-lumos/rpc': 0.21.1 - '@ckb-lumos/toolkit': 0.21.1 - immutable: 4.3.5 - transitivePeerDependencies: - - encoding - dev: false - - /@ckb-lumos/common-scripts@0.22.0-next.4: - resolution: { integrity: sha512-STTF6G99UC93ayU9KNRxANNhe1GCh1pFlJf4jdB84904/9mTiMDoL1ZwN7yJqgc6aGC8Hx5VW+8hxm133qXDUA== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/config-manager': 0.22.0-next.4 - '@ckb-lumos/helpers': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 - '@ckb-lumos/toolkit': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/config-manager': 0.22.0-next.5 + '@ckb-lumos/helpers': 0.22.0-next.5 + '@ckb-lumos/rpc': 0.22.0-next.5 + '@ckb-lumos/toolkit': 0.22.0-next.5 bech32: 2.0.0 bs58: 5.0.0 immutable: 4.3.5 @@ -311,37 +267,26 @@ packages: - encoding dev: false - /@ckb-lumos/config-manager@0.21.1: - resolution: { integrity: sha512-BmrNqYyaksdCKHWagyC8+R8GUxhIO+sOM5S925jlkpjju2sUbH0Id2/zmdb7I9KxdKnbx3WsR+hqy7/bYqw1lA== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/base': 0.21.1 - '@ckb-lumos/bi': 0.21.1 - '@ckb-lumos/codec': 0.21.1 - '@types/deep-freeze-strict': 1.1.2 - deep-freeze-strict: 1.1.1 - dev: false - - /@ckb-lumos/config-manager@0.22.0-next.4: - resolution: { integrity: sha512-ZO/I1C+pBTG09HQlLLGAC40ljtDmNQlpTvP4c/k/tMBKnrcgBfgUmKYMF0aCunfT4jmIqS3G8Z6615qu1liF9g== } + /@ckb-lumos/config-manager@0.22.0-next.5: + resolution: { integrity: sha512-kicoRgPP9DPxA90que/+9R0iQgiIJQNreZv1/EJ+4GDOj/pFb0iBbTEQxF3zXtLKjnZoMTqTQH7e4CAV0ZftSA== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/rpc': 0.22.0-next.5 '@types/deep-freeze-strict': 1.1.2 deep-freeze-strict: 1.1.1 transitivePeerDependencies: - encoding dev: false - /@ckb-lumos/hd@0.22.0-next.4: - resolution: { integrity: sha512-PV0vcxWOiMVOBq0aJ8TxRBpG9sqpUpdZ1Y8YIq7o0ush3+8+o1xkefw7ZT+xRXUWE+2Ep63GeLRdN3VRLgl8Ew== } + /@ckb-lumos/hd@0.22.0-next.5: + resolution: { integrity: sha512-d+Ws/fknuh+P9+aEBhLWiCOxMVE6i78T+2bEj8aWDLoVfrLvuCqFEyVRCspOG22pgEj0h853nMsetrb4pI+fdw== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 bn.js: 5.2.1 elliptic: 6.5.4 scrypt-js: 3.0.1 @@ -349,114 +294,82 @@ packages: uuid: 8.3.2 dev: false - /@ckb-lumos/helpers@0.21.1: - resolution: { integrity: sha512-jFN6DtWzwVNEY4kmnzczRaQqtyRJQwzAEuHRUQ0LqTiIGM+SlfgjH/l/InAG4cIhDOurMudnUJ4ex68wmbkhVw== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/base': 0.21.1 - '@ckb-lumos/bi': 0.21.1 - '@ckb-lumos/codec': 0.21.1 - '@ckb-lumos/config-manager': 0.21.1 - '@ckb-lumos/toolkit': 0.21.1 - bech32: 2.0.0 - immutable: 4.3.5 - dev: false - - /@ckb-lumos/helpers@0.22.0-next.4: - resolution: { integrity: sha512-aO11dRke83r003rDfgicaJkCX2yjirdHfr4VJRguL24T4P9qZC0VrhxqsRW7UeralRzVQYg1eTwFrD6jLA11GA== } + /@ckb-lumos/helpers@0.22.0-next.5: + resolution: { integrity: sha512-fsPr7oTQuKdfEvqdakgfDv9daU4PLPc9g8l13klMhEayaTamBndG3GdhTTASFMBxQaz58E6thTObsig220yVIg== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/config-manager': 0.22.0-next.4 - '@ckb-lumos/toolkit': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/config-manager': 0.22.0-next.5 + '@ckb-lumos/toolkit': 0.22.0-next.5 bech32: 2.0.0 immutable: 4.3.5 transitivePeerDependencies: - encoding dev: false - /@ckb-lumos/light-client@0.22.0-next.4: - resolution: { integrity: sha512-n3v/bBinrTo465QhCsGd5tQ6eY7S1Wq0VeTJtZAQGjqdsOhRhX7XB+Fjf/oJYl9NZFj8dESrfx1APdym8McEcg== } + /@ckb-lumos/light-client@0.22.0-next.5: + resolution: { integrity: sha512-PbrGQUQAILO7QI93qm8Cke7J8CduCppKNTJd9yP7Y6ldtFKfwev8uYVB+xhUaciQclLZ26kbe1peaxd9xP8pXQ== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/ckb-indexer': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/ckb-indexer': 0.22.0-next.5 + '@ckb-lumos/rpc': 0.22.0-next.5 cross-fetch: 3.1.8 events: 3.3.0 transitivePeerDependencies: - encoding dev: false - /@ckb-lumos/lumos@0.22.0-next.4: - resolution: { integrity: sha512-5+wdI8J+JUlF/PGVa53rYfybfccp63Tn1d/eNk3JwM5SYPT2yGp42fqMOL/1zqDDsMp1a8yHJ4gASHUK6843Yg== } + /@ckb-lumos/lumos@0.22.0-next.5: + resolution: { integrity: sha512-Dv+MKa664zsD9Nxrnor04Hb52MNcwgtEutgzdlE+qtAB/skp6P0NVnU9uQF7RiYHNpdmUe8PROlkzB4jaKz9NA== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/ckb-indexer': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/common-scripts': 0.22.0-next.4 - '@ckb-lumos/config-manager': 0.22.0-next.4 - '@ckb-lumos/hd': 0.22.0-next.4 - '@ckb-lumos/helpers': 0.22.0-next.4 - '@ckb-lumos/light-client': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 - '@ckb-lumos/toolkit': 0.22.0-next.4 - '@ckb-lumos/transaction-manager': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 + '@ckb-lumos/ckb-indexer': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/common-scripts': 0.22.0-next.5 + '@ckb-lumos/config-manager': 0.22.0-next.5 + '@ckb-lumos/hd': 0.22.0-next.5 + '@ckb-lumos/helpers': 0.22.0-next.5 + '@ckb-lumos/light-client': 0.22.0-next.5 + '@ckb-lumos/rpc': 0.22.0-next.5 + '@ckb-lumos/toolkit': 0.22.0-next.5 + '@ckb-lumos/transaction-manager': 0.22.0-next.5 transitivePeerDependencies: - encoding dev: false - /@ckb-lumos/rpc@0.21.1: - resolution: { integrity: sha512-gZWXYCyQ98s84Pb+buOiYL3HOIxQPLHQdCyo96GFerNw9lB1XsbaGWzfHPYpZvOQqYtnJ1GUfTkQkADrQ7hmew== } + /@ckb-lumos/rpc@0.22.0-next.5: + resolution: { integrity: sha512-ohH5kj/iiyKaTksgWCc4STwnEON9cCC2tPf3eP7XUaJ9ZO01ahOZ9C85NccBoK2lOqcLrZag3Y0LDQWw+eFbBg== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.21.1 - '@ckb-lumos/bi': 0.21.1 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/bi': 0.22.0-next.5 abort-controller: 3.0.0 cross-fetch: 3.1.8 transitivePeerDependencies: - encoding dev: false - /@ckb-lumos/rpc@0.22.0-next.4: - resolution: { integrity: sha512-mhkkPXv70PzODvqUNYlOCn+7hNOTIj9p+h4px8BpJfoB0SZdO9i/bmF2CINbh3LvFUj0oWBkrCFvHCBVLVdzZA== } + /@ckb-lumos/toolkit@0.22.0-next.5: + resolution: { integrity: sha512-D41GgB6D8WDh94gBNGXQJTxbI2NFFSH/71jE4kdRI6+qqbl/zYlI3nsLdQmY1RajIYyLgYLNAVHiDIWK/KGO/w== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - abort-controller: 3.0.0 - cross-fetch: 3.1.8 - transitivePeerDependencies: - - encoding + '@ckb-lumos/bi': 0.22.0-next.5 dev: false - /@ckb-lumos/toolkit@0.21.1: - resolution: { integrity: sha512-awrFos7uQXEVGbqKSv/8Fc8B8XAfxdYoyYak4zFyAAmxxA0NiTTvk9V8TsOA7zVXpxct4Jal22+qUe+4Jg8T/g== } + /@ckb-lumos/transaction-manager@0.22.0-next.5: + resolution: { integrity: sha512-Xs10tTPgxqrB1cUMUqTdAZDDpTs3ESxPLv9HmyR2jLFI6HVJjSbGJipXODYJaJ+iUNPG/qZaehHmuQoGgbBwiw== } engines: { node: '>=12.0.0' } dependencies: - '@ckb-lumos/bi': 0.21.1 - dev: false - - /@ckb-lumos/toolkit@0.22.0-next.4: - resolution: { integrity: sha512-vSqMgwUHKNFxjQvanfPCGDfPtAxSYUGh6Pvg6ThJX9BIE9rits74eCobxfeWym9Qjp9mt+WwY4D0S6DI1uT5Tw== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/bi': 0.22.0-next.4 - dev: false - - /@ckb-lumos/transaction-manager@0.22.0-next.4: - resolution: { integrity: sha512-2EAT/BOrQeNDetcMPAML5F1yqFHuruOVNfKPnYbsqTWjo/Aa8Oj/fpD63ANjo9D9dVdWoMhWRq1BwCNTGwJfTg== } - engines: { node: '>=12.0.0' } - dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/ckb-indexer': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 - '@ckb-lumos/toolkit': 0.22.0-next.4 + '@ckb-lumos/base': 0.22.0-next.5 + '@ckb-lumos/ckb-indexer': 0.22.0-next.5 + '@ckb-lumos/codec': 0.22.0-next.5 + '@ckb-lumos/rpc': 0.22.0-next.5 + '@ckb-lumos/toolkit': 0.22.0-next.5 immutable: 4.3.5 transitivePeerDependencies: - encoding @@ -706,11 +619,6 @@ packages: engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 } dev: true - /@exact-realty/multipart-parser@1.0.12: - resolution: { integrity: sha512-HTIbhEQg+llTPpVsoUJzAkv8ClZwMJAGv03FY/6kL7nTcQuJ6vOiylQt5J761MrXrxLYshQy9bQMBLSuD2hDtQ== } - engines: { node: '>=16.0.0', npm: '>=8.0.0' } - dev: false - /@humanwhocodes/config-array@0.11.14: resolution: { integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== } engines: { node: '>=10.10.0' } @@ -941,20 +849,14 @@ packages: resolution: { integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== } dev: true - /@spore-sdk/core@0.2.0-beta.3: - resolution: { integrity: sha512-hyoo1HdvU7xWPDd+ASWeJGOfcher3QMFE+JcZWd54/vmOIQNlq2V9vLIptuoyn7wQRcJC1uU68fpd+C1AecGBw== } + /@spore-sdk/core@0.2.0-beta.4(@ckb-lumos/lumos@0.22.0-next.5)(lodash@4.17.21): + resolution: { integrity: sha512-liVxXk5ZY6+Kh24sJT30Gg7QuqqQk4tlY71lHoO9wj50y3iQWyODyPZEopEP+owmYjOZ5WLPPzKJTIlNRkqxPQ== } + peerDependencies: + '@ckb-lumos/lumos': 0.22.0-next.5 + lodash: ^4.17.21 dependencies: - '@ckb-lumos/base': 0.22.0-next.4 - '@ckb-lumos/bi': 0.22.0-next.4 - '@ckb-lumos/codec': 0.22.0-next.4 - '@ckb-lumos/common-scripts': 0.22.0-next.4 - '@ckb-lumos/config-manager': 0.22.0-next.4 - '@ckb-lumos/lumos': 0.22.0-next.4 - '@ckb-lumos/rpc': 0.22.0-next.4 - '@exact-realty/multipart-parser': 1.0.12 + '@ckb-lumos/lumos': 0.22.0-next.5 lodash: 4.17.21 - transitivePeerDependencies: - - encoding dev: false /@types/blake2b@2.1.3: diff --git a/src/order/helper.ts b/src/order/helper.ts index b20d14a..185a34e 100644 --- a/src/order/helper.ts +++ b/src/order/helper.ts @@ -43,13 +43,7 @@ export const calculateTransactionFee = (txSize: number): bigint => { } export const deserializeOutPoints = (outPointHexList: Hex[]) => { - const outPoints = outPointHexList.map(outPoint => { - const op = blockchain.OutPoint.unpack(outPoint) - return { - txHash: op.txHash, - index: append0x(op.index.toString(16)), - } as CKBComponents.OutPoint - }) + const outPoints = outPointHexList.map(outPoint => blockchain.OutPoint.unpack(outPoint)) return outPoints }