difftreelog
Fix contract tests
in: master
3 files changed
tests/package-lock.jsondiffbeforeafterboth3916 }3916 }3917 },3917 },3918 "@polkadot/api": {3918 "@polkadot/api": {3919 "version": "2.2.1",3919 "version": "2.3.1",3920 "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-2.2.1.tgz",3920 "resolved": "https://registry.npmjs.org/@polkadot/api/-/api-2.3.1.tgz",3921 "integrity": "sha512-h6G1nYeXGnnUB//JXZcSKDNZNuasB4DDE0Hf+G5rf/9/aDxbkN+T1Wc6+saFxrxSmDGx2/qEUNVx6PluFKLvJA==",3921 "integrity": "sha512-B9ZOb1PiPaAlke4wQHoivVQ5ZCQWn5bgLjhVIGdcEZ4WjIcxApmzTV4ruSfqVoRKpRiVOyV3Dx/VUQDD/WgBFw==",3922 "requires": {3922 "requires": {3923 "@babel/runtime": "^7.11.2",3923 "@babel/runtime": "^7.12.1",3924 "@polkadot/api-derive": "2.2.1",3924 "@polkadot/api-derive": "2.3.1",3925 "@polkadot/keyring": "^3.5.1",3925 "@polkadot/keyring": "^3.6.1",3926 "@polkadot/metadata": "2.2.1",3926 "@polkadot/metadata": "2.3.1",3927 "@polkadot/rpc-core": "2.2.1",3927 "@polkadot/rpc-core": "2.3.1",3928 "@polkadot/rpc-provider": "2.2.1",3928 "@polkadot/rpc-provider": "2.3.1",3929 "@polkadot/types": "2.2.1",3929 "@polkadot/types": "2.3.1",3930 "@polkadot/types-known": "2.2.1",3930 "@polkadot/types-known": "2.3.1",3931 "@polkadot/util": "^3.5.1",3931 "@polkadot/util": "^3.6.1",3932 "@polkadot/util-crypto": "^3.5.1",3932 "@polkadot/util-crypto": "^3.6.1",3933 "bn.js": "^5.1.3",3933 "bn.js": "^5.1.3",3934 "eventemitter3": "^4.0.7",3934 "eventemitter3": "^4.0.7",3935 "rxjs": "^6.6.3"3935 "rxjs": "^6.6.3"3936 },3936 },3937 "dependencies": {3937 "dependencies": {3938 "@babel/runtime": {3939 "version": "7.12.1",3940 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",3941 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",3942 "requires": {3943 "regenerator-runtime": "^0.13.4"3944 }3945 },3938 "@polkadot/util": {3946 "@polkadot/util": {3939 "version": "3.5.1",3947 "version": "3.6.1",3940 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",3948 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",3941 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",3949 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",3942 "requires": {3950 "requires": {3943 "@babel/runtime": "^7.11.2",3951 "@babel/runtime": "^7.12.1",3944 "@polkadot/x-textdecoder": "^0.3.2",3952 "@polkadot/x-textdecoder": "^0.3.3",3945 "@polkadot/x-textencoder": "^0.3.2",3953 "@polkadot/x-textencoder": "^0.3.3",3946 "@types/bn.js": "^4.11.6",3954 "@types/bn.js": "^4.11.6",3947 "bn.js": "^5.1.3",3955 "bn.js": "^5.1.3",3948 "camelcase": "^5.3.1",3956 "camelcase": "^5.3.1",3949 "chalk": "^4.1.0",3957 "chalk": "^4.1.0",3950 "ip-regex": "^4.1.0"3958 "ip-regex": "^4.2.0"3951 }3959 }3952 }3960 },3961 "ip-regex": {3962 "version": "4.2.0",3963 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",3964 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="3965 }3953 }3966 }3954 },3967 },3955 "@polkadot/api-contract": {3968 "@polkadot/api-contract": {3956 "version": "2.2.1",3969 "version": "2.3.1",3957 "resolved": "https://registry.npmjs.org/@polkadot/api-contract/-/api-contract-2.2.1.tgz",3970 "resolved": "https://registry.npmjs.org/@polkadot/api-contract/-/api-contract-2.3.1.tgz",3958 "integrity": "sha512-7Kb9pAx9n7qske7p3yI+YYZX8Z5/MCNET1SCEE6t3fkwtYxs+BMw2Wucq5yt/EbVgJDLM3NmZyh9xmJiLwLxHQ==",3971 "integrity": "sha512-hqRU2mGkHK84dtqZSX71tFCuBmBiV/6H7pJwj5E7UPcd124LM2ETXYJ9T0ElxbAHmZQD7yv+2ZM/ncvGC/A68Q==",3959 "requires": {3972 "requires": {3960 "@babel/runtime": "^7.11.2",3973 "@babel/runtime": "^7.12.1",3961 "@polkadot/api": "2.2.1",3974 "@polkadot/api": "2.3.1",3962 "@polkadot/rpc-core": "2.2.1",3975 "@polkadot/rpc-core": "2.3.1",3963 "@polkadot/types": "2.2.1",3976 "@polkadot/types": "2.3.1",3964 "@polkadot/util": "^3.5.1",3977 "@polkadot/util": "^3.6.1",3965 "bn.js": "^5.1.3",3978 "bn.js": "^5.1.3",3966 "rxjs": "^6.6.3"3979 "rxjs": "^6.6.3"3967 },3980 },3968 "dependencies": {3981 "dependencies": {3982 "@babel/runtime": {3983 "version": "7.12.1",3984 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",3985 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",3986 "requires": {3987 "regenerator-runtime": "^0.13.4"3988 }3989 },3969 "@polkadot/util": {3990 "@polkadot/util": {3970 "version": "3.5.1",3991 "version": "3.6.1",3971 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",3992 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",3972 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",3993 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",3973 "requires": {3994 "requires": {3974 "@babel/runtime": "^7.11.2",3995 "@babel/runtime": "^7.12.1",3975 "@polkadot/x-textdecoder": "^0.3.2",3996 "@polkadot/x-textdecoder": "^0.3.3",3976 "@polkadot/x-textencoder": "^0.3.2",3997 "@polkadot/x-textencoder": "^0.3.3",3977 "@types/bn.js": "^4.11.6",3998 "@types/bn.js": "^4.11.6",3978 "bn.js": "^5.1.3",3999 "bn.js": "^5.1.3",3979 "camelcase": "^5.3.1",4000 "camelcase": "^5.3.1",3980 "chalk": "^4.1.0",4001 "chalk": "^4.1.0",3981 "ip-regex": "^4.1.0"4002 "ip-regex": "^4.2.0"3982 }4003 }3983 }4004 },4005 "ip-regex": {4006 "version": "4.2.0",4007 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4008 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4009 }3984 }4010 }3985 },4011 },3986 "@polkadot/api-derive": {4012 "@polkadot/api-derive": {3987 "version": "2.2.1",4013 "version": "2.3.1",3988 "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-2.2.1.tgz",4014 "resolved": "https://registry.npmjs.org/@polkadot/api-derive/-/api-derive-2.3.1.tgz",3989 "integrity": "sha512-4J9nA9bDBlE+yn06VjgeCnElnRn8IhTpkGhtT4J/agBe+4I0tYSz+DR5o2Rb5mQDMXu3aayYpfVDaJk1mRJsPQ==",4015 "integrity": "sha512-FcDEx+/1Io7zOHPjbQAEzXB0KenA9emgY+96aHS4yPV/OVmAifU0IAxudZdMVp7uVC2dWq9iFvjxx84yCXgVRA==",3990 "requires": {4016 "requires": {3991 "@babel/runtime": "^7.11.2",4017 "@babel/runtime": "^7.12.1",3992 "@polkadot/api": "2.2.1",4018 "@polkadot/api": "2.3.1",3993 "@polkadot/rpc-core": "2.2.1",4019 "@polkadot/rpc-core": "2.3.1",3994 "@polkadot/rpc-provider": "2.2.1",4020 "@polkadot/rpc-provider": "2.3.1",3995 "@polkadot/types": "2.2.1",4021 "@polkadot/types": "2.3.1",3996 "@polkadot/util": "^3.5.1",4022 "@polkadot/util": "^3.6.1",3997 "@polkadot/util-crypto": "^3.5.1",4023 "@polkadot/util-crypto": "^3.6.1",3998 "bn.js": "^5.1.3",4024 "bn.js": "^5.1.3",3999 "memoizee": "^0.4.14",4025 "memoizee": "^0.4.14",4000 "rxjs": "^6.6.3"4026 "rxjs": "^6.6.3"4001 },4027 },4002 "dependencies": {4028 "dependencies": {4029 "@babel/runtime": {4030 "version": "7.12.1",4031 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4032 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4033 "requires": {4034 "regenerator-runtime": "^0.13.4"4035 }4036 },4003 "@polkadot/util": {4037 "@polkadot/util": {4004 "version": "3.5.1",4038 "version": "3.6.1",4005 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4039 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4006 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4040 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4007 "requires": {4041 "requires": {4008 "@babel/runtime": "^7.11.2",4042 "@babel/runtime": "^7.12.1",4009 "@polkadot/x-textdecoder": "^0.3.2",4043 "@polkadot/x-textdecoder": "^0.3.3",4010 "@polkadot/x-textencoder": "^0.3.2",4044 "@polkadot/x-textencoder": "^0.3.3",4011 "@types/bn.js": "^4.11.6",4045 "@types/bn.js": "^4.11.6",4012 "bn.js": "^5.1.3",4046 "bn.js": "^5.1.3",4013 "camelcase": "^5.3.1",4047 "camelcase": "^5.3.1",4014 "chalk": "^4.1.0",4048 "chalk": "^4.1.0",4015 "ip-regex": "^4.1.0"4049 "ip-regex": "^4.2.0"4016 }4050 }4017 }4051 },4052 "ip-regex": {4053 "version": "4.2.0",4054 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4055 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4056 }4018 }4057 }4019 },4058 },4020 "@polkadot/dev": {4059 "@polkadot/dev": {4099 }4138 }4100 },4139 },4101 "@polkadot/keyring": {4140 "@polkadot/keyring": {4102 "version": "3.5.1",4141 "version": "3.6.1",4103 "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-3.5.1.tgz",4142 "resolved": "https://registry.npmjs.org/@polkadot/keyring/-/keyring-3.6.1.tgz",4104 "integrity": "sha512-Wg8PBACl+RobbmcShl659/5a+foU1j7PGdvdr2pZowkZul8jvwyAN+piIyPSfrsaJkbUoDUR9Pe+oVoeF4ZoXg==",4143 "integrity": "sha512-JbW4M5Ct3HaX3vgoa/UWAQVF/0sc1PbbA2D6v0KKaJkXl+EYVP9uyOYAoRCppB6ENZThz7CUJVQp8trs8WTrFQ==",4105 "requires": {4144 "requires": {4106 "@babel/runtime": "^7.11.2",4145 "@babel/runtime": "^7.12.1",4107 "@polkadot/util": "3.5.1",4146 "@polkadot/util": "3.6.1",4108 "@polkadot/util-crypto": "3.5.1"4147 "@polkadot/util-crypto": "3.6.1"4109 },4148 },4110 "dependencies": {4149 "dependencies": {4150 "@babel/runtime": {4151 "version": "7.12.1",4152 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4153 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4154 "requires": {4155 "regenerator-runtime": "^0.13.4"4156 }4157 },4111 "@polkadot/util": {4158 "@polkadot/util": {4112 "version": "3.5.1",4159 "version": "3.6.1",4113 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4160 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4114 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4161 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4115 "requires": {4162 "requires": {4116 "@babel/runtime": "^7.11.2",4163 "@babel/runtime": "^7.12.1",4117 "@polkadot/x-textdecoder": "^0.3.2",4164 "@polkadot/x-textdecoder": "^0.3.3",4118 "@polkadot/x-textencoder": "^0.3.2",4165 "@polkadot/x-textencoder": "^0.3.3",4119 "@types/bn.js": "^4.11.6",4166 "@types/bn.js": "^4.11.6",4120 "bn.js": "^5.1.3",4167 "bn.js": "^5.1.3",4121 "camelcase": "^5.3.1",4168 "camelcase": "^5.3.1",4122 "chalk": "^4.1.0",4169 "chalk": "^4.1.0",4123 "ip-regex": "^4.1.0"4170 "ip-regex": "^4.2.0"4124 }4171 }4125 }4172 },4173 "ip-regex": {4174 "version": "4.2.0",4175 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4176 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4177 }4126 }4178 }4127 },4179 },4128 "@polkadot/metadata": {4180 "@polkadot/metadata": {4129 "version": "2.2.1",4181 "version": "2.3.1",4130 "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-2.2.1.tgz",4182 "resolved": "https://registry.npmjs.org/@polkadot/metadata/-/metadata-2.3.1.tgz",4131 "integrity": "sha512-Xp5S2ukNS2rvSeK4cT/xhWzIMmOQZ8BssZU9pqK8u1ttv36CKCD9CRUGxAvG42+SiHV6WMG1S2NAt3UgLthQyw==",4183 "integrity": "sha512-F/QwDDR/d9mcqToDqndRTUYvMt/GYzjQ+kNGjQYBOIDRqF9zDbPHAXruqcHd0Y5MMpPMRBZGNaqPOb3BMrIdOQ==",4132 "requires": {4184 "requires": {4133 "@babel/runtime": "^7.11.2",4185 "@babel/runtime": "^7.12.1",4134 "@polkadot/types": "2.2.1",4186 "@polkadot/types": "2.3.1",4135 "@polkadot/types-known": "2.2.1",4187 "@polkadot/types-known": "2.3.1",4136 "@polkadot/util": "^3.5.1",4188 "@polkadot/util": "^3.6.1",4137 "@polkadot/util-crypto": "^3.5.1",4189 "@polkadot/util-crypto": "^3.6.1",4138 "bn.js": "^5.1.3"4190 "bn.js": "^5.1.3"4139 },4191 },4140 "dependencies": {4192 "dependencies": {4193 "@babel/runtime": {4194 "version": "7.12.1",4195 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4196 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4197 "requires": {4198 "regenerator-runtime": "^0.13.4"4199 }4200 },4141 "@polkadot/util": {4201 "@polkadot/util": {4142 "version": "3.5.1",4202 "version": "3.6.1",4143 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4203 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4144 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4204 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4145 "requires": {4205 "requires": {4146 "@babel/runtime": "^7.11.2",4206 "@babel/runtime": "^7.12.1",4147 "@polkadot/x-textdecoder": "^0.3.2",4207 "@polkadot/x-textdecoder": "^0.3.3",4148 "@polkadot/x-textencoder": "^0.3.2",4208 "@polkadot/x-textencoder": "^0.3.3",4149 "@types/bn.js": "^4.11.6",4209 "@types/bn.js": "^4.11.6",4150 "bn.js": "^5.1.3",4210 "bn.js": "^5.1.3",4151 "camelcase": "^5.3.1",4211 "camelcase": "^5.3.1",4152 "chalk": "^4.1.0",4212 "chalk": "^4.1.0",4153 "ip-regex": "^4.1.0"4213 "ip-regex": "^4.2.0"4154 }4214 }4155 }4215 },4216 "ip-regex": {4217 "version": "4.2.0",4218 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4219 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4220 }4156 }4221 }4157 },4222 },4223 "@polkadot/networks": {4224 "version": "3.6.1",4225 "resolved": "https://registry.npmjs.org/@polkadot/networks/-/networks-3.6.1.tgz",4226 "integrity": "sha512-PEEw/vTZaKf32vuAUeFXYNJei+b/s3hr7msMKfvoYeKDU/otgt9Mgkqrh6VCaE6+lHHgX8vLbH70pCqQrGG/uA==",4227 "requires": {4228 "@babel/runtime": "^7.12.1"4229 },4230 "dependencies": {4231 "@babel/runtime": {4232 "version": "7.12.1",4233 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4234 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4235 "requires": {4236 "regenerator-runtime": "^0.13.4"4237 }4238 }4239 }4240 },4158 "@polkadot/rpc-core": {4241 "@polkadot/rpc-core": {4159 "version": "2.2.1",4242 "version": "2.3.1",4160 "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-2.2.1.tgz",4243 "resolved": "https://registry.npmjs.org/@polkadot/rpc-core/-/rpc-core-2.3.1.tgz",4161 "integrity": "sha512-t3XoR6QPE6TaYsuKXCfOvTW9C6Lvjgcn++0DT33EANANtgtT9b6e+08mEOjf8VtYkwExgzK2aSGwCCoRccYcsg==",4244 "integrity": "sha512-SWYU6azxNwWkhz6bm/wpRPQZ/5KJ2hnEXPS4EN77q7EFH4c4k9mNtVyjUQFkKJsG7T85vxaCCWwhx60aYCZVeA==",4162 "requires": {4245 "requires": {4163 "@babel/runtime": "^7.11.2",4246 "@babel/runtime": "^7.12.1",4164 "@polkadot/metadata": "2.2.1",4247 "@polkadot/metadata": "2.3.1",4165 "@polkadot/rpc-provider": "2.2.1",4248 "@polkadot/rpc-provider": "2.3.1",4166 "@polkadot/types": "2.2.1",4249 "@polkadot/types": "2.3.1",4167 "@polkadot/util": "^3.5.1",4250 "@polkadot/util": "^3.6.1",4168 "memoizee": "^0.4.14",4251 "memoizee": "^0.4.14",4169 "rxjs": "^6.6.3"4252 "rxjs": "^6.6.3"4170 },4253 },4171 "dependencies": {4254 "dependencies": {4255 "@babel/runtime": {4256 "version": "7.12.1",4257 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4258 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4259 "requires": {4260 "regenerator-runtime": "^0.13.4"4261 }4262 },4172 "@polkadot/util": {4263 "@polkadot/util": {4173 "version": "3.5.1",4264 "version": "3.6.1",4174 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4265 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4175 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4266 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4176 "requires": {4267 "requires": {4177 "@babel/runtime": "^7.11.2",4268 "@babel/runtime": "^7.12.1",4178 "@polkadot/x-textdecoder": "^0.3.2",4269 "@polkadot/x-textdecoder": "^0.3.3",4179 "@polkadot/x-textencoder": "^0.3.2",4270 "@polkadot/x-textencoder": "^0.3.3",4180 "@types/bn.js": "^4.11.6",4271 "@types/bn.js": "^4.11.6",4181 "bn.js": "^5.1.3",4272 "bn.js": "^5.1.3",4182 "camelcase": "^5.3.1",4273 "camelcase": "^5.3.1",4183 "chalk": "^4.1.0",4274 "chalk": "^4.1.0",4184 "ip-regex": "^4.1.0"4275 "ip-regex": "^4.2.0"4185 }4276 }4186 }4277 },4278 "ip-regex": {4279 "version": "4.2.0",4280 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4281 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4282 }4187 }4283 }4188 },4284 },4189 "@polkadot/rpc-provider": {4285 "@polkadot/rpc-provider": {4190 "version": "2.2.1",4286 "version": "2.3.1",4191 "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-2.2.1.tgz",4287 "resolved": "https://registry.npmjs.org/@polkadot/rpc-provider/-/rpc-provider-2.3.1.tgz",4192 "integrity": "sha512-s6iIRazo2O8xcyXaNrnWW48qJEx0FqMHD506Z8RzuYzh3jQxlAd53zw0InWZpFTfrvk46VN3tvQJaq9LYvcliA==",4288 "integrity": "sha512-lRN68RosWvtBA844PWqhYEV2ifT3T9SUyAP2WvRYyWVPiMmXjw57qG1zHKQWgZk5aFzeaHKSYgsKTmkWz9IM4g==",4193 "requires": {4289 "requires": {4194 "@babel/runtime": "^7.11.2",4290 "@babel/runtime": "^7.12.1",4195 "@polkadot/metadata": "2.2.1",4291 "@polkadot/metadata": "2.3.1",4196 "@polkadot/types": "2.2.1",4292 "@polkadot/types": "2.3.1",4197 "@polkadot/util": "^3.5.1",4293 "@polkadot/util": "^3.6.1",4198 "@polkadot/util-crypto": "^3.5.1",4294 "@polkadot/util-crypto": "^3.6.1",4199 "@polkadot/x-fetch": "^0.3.2",4295 "@polkadot/x-fetch": "^0.3.3",4200 "@polkadot/x-ws": "^0.3.2",4296 "@polkadot/x-ws": "^0.3.3",4201 "bn.js": "^5.1.3",4297 "bn.js": "^5.1.3",4202 "eventemitter3": "^4.0.7"4298 "eventemitter3": "^4.0.7"4203 },4299 },4204 "dependencies": {4300 "dependencies": {4301 "@babel/runtime": {4302 "version": "7.12.1",4303 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4304 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4305 "requires": {4306 "regenerator-runtime": "^0.13.4"4307 }4308 },4205 "@polkadot/util": {4309 "@polkadot/util": {4206 "version": "3.5.1",4310 "version": "3.6.1",4207 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4311 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4208 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4312 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4209 "requires": {4313 "requires": {4210 "@babel/runtime": "^7.11.2",4314 "@babel/runtime": "^7.12.1",4211 "@polkadot/x-textdecoder": "^0.3.2",4315 "@polkadot/x-textdecoder": "^0.3.3",4212 "@polkadot/x-textencoder": "^0.3.2",4316 "@polkadot/x-textencoder": "^0.3.3",4213 "@types/bn.js": "^4.11.6",4317 "@types/bn.js": "^4.11.6",4214 "bn.js": "^5.1.3",4318 "bn.js": "^5.1.3",4215 "camelcase": "^5.3.1",4319 "camelcase": "^5.3.1",4216 "chalk": "^4.1.0",4320 "chalk": "^4.1.0",4217 "ip-regex": "^4.1.0"4321 "ip-regex": "^4.2.0"4218 }4322 }4219 }4323 },4324 "ip-regex": {4325 "version": "4.2.0",4326 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4327 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4328 }4220 }4329 }4221 },4330 },4222 "@polkadot/ts": {4331 "@polkadot/ts": {4229 }4338 }4230 },4339 },4231 "@polkadot/types": {4340 "@polkadot/types": {4232 "version": "2.2.1",4341 "version": "2.3.1",4233 "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-2.2.1.tgz",4342 "resolved": "https://registry.npmjs.org/@polkadot/types/-/types-2.3.1.tgz",4234 "integrity": "sha512-4kW+pdCgXoUQ4bXIdHMs5/JV7tsxseqlV2O0p6j60CeXZQOaRQJkIeC2I9J+HwpmnkT1SAgakX3wZniFp9nDeA==",4343 "integrity": "sha512-G3cyYYV+vYmpkMjPirwOA/zLreb1uBrKpEMWTvtTuCz/sNwcbCT5hI/KZCzNo1PueOQAowroKPe4yQ793dqVPw==",4235 "requires": {4344 "requires": {4236 "@babel/runtime": "^7.11.2",4345 "@babel/runtime": "^7.12.1",4237 "@polkadot/metadata": "2.2.1",4346 "@polkadot/metadata": "2.3.1",4238 "@polkadot/util": "^3.5.1",4347 "@polkadot/util": "^3.6.1",4239 "@polkadot/util-crypto": "^3.5.1",4348 "@polkadot/util-crypto": "^3.6.1",4240 "@types/bn.js": "^4.11.6",4349 "@types/bn.js": "^4.11.6",4241 "bn.js": "^5.1.3",4350 "bn.js": "^5.1.3",4242 "memoizee": "^0.4.14",4351 "memoizee": "^0.4.14",4243 "rxjs": "^6.6.3"4352 "rxjs": "^6.6.3"4244 },4353 },4245 "dependencies": {4354 "dependencies": {4355 "@babel/runtime": {4356 "version": "7.12.1",4357 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4358 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4359 "requires": {4360 "regenerator-runtime": "^0.13.4"4361 }4362 },4246 "@polkadot/util": {4363 "@polkadot/util": {4247 "version": "3.5.1",4364 "version": "3.6.1",4248 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4365 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4249 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4366 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4250 "requires": {4367 "requires": {4251 "@babel/runtime": "^7.11.2",4368 "@babel/runtime": "^7.12.1",4252 "@polkadot/x-textdecoder": "^0.3.2",4369 "@polkadot/x-textdecoder": "^0.3.3",4253 "@polkadot/x-textencoder": "^0.3.2",4370 "@polkadot/x-textencoder": "^0.3.3",4254 "@types/bn.js": "^4.11.6",4371 "@types/bn.js": "^4.11.6",4255 "bn.js": "^5.1.3",4372 "bn.js": "^5.1.3",4256 "camelcase": "^5.3.1",4373 "camelcase": "^5.3.1",4257 "chalk": "^4.1.0",4374 "chalk": "^4.1.0",4258 "ip-regex": "^4.1.0"4375 "ip-regex": "^4.2.0"4259 }4376 }4260 }4377 },4378 "ip-regex": {4379 "version": "4.2.0",4380 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4381 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4382 }4261 }4383 }4262 },4384 },4263 "@polkadot/types-known": {4385 "@polkadot/types-known": {4264 "version": "2.2.1",4386 "version": "2.3.1",4265 "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-2.2.1.tgz",4387 "resolved": "https://registry.npmjs.org/@polkadot/types-known/-/types-known-2.3.1.tgz",4266 "integrity": "sha512-RmxDg1C5bz1GWe1Bk21Lf75PdtwdWWO4mPVkXsZi1zGfFLxoCYcsO4duEab/kAJk2hKyhxANn88SF1tIBpJ2ww==",4388 "integrity": "sha512-34yuvDraW9Sjy5ookQZf55sBKLOsTqos+WQdTu6DUxtRuwvMP9DEAGcs2m6AFvWxwZps+3zFGUvzn6SMHsSJ5Q==",4267 "requires": {4389 "requires": {4268 "@babel/runtime": "^7.11.2",4390 "@babel/runtime": "^7.12.1",4269 "@polkadot/types": "2.2.1",4391 "@polkadot/types": "2.3.1",4270 "@polkadot/util": "^3.5.1",4392 "@polkadot/util": "^3.6.1",4271 "bn.js": "^5.1.3"4393 "bn.js": "^5.1.3"4272 },4394 },4273 "dependencies": {4395 "dependencies": {4396 "@babel/runtime": {4397 "version": "7.12.1",4398 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4399 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4400 "requires": {4401 "regenerator-runtime": "^0.13.4"4402 }4403 },4274 "@polkadot/util": {4404 "@polkadot/util": {4275 "version": "3.5.1",4405 "version": "3.6.1",4276 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4406 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4277 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4407 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4278 "requires": {4408 "requires": {4279 "@babel/runtime": "^7.11.2",4409 "@babel/runtime": "^7.12.1",4280 "@polkadot/x-textdecoder": "^0.3.2",4410 "@polkadot/x-textdecoder": "^0.3.3",4281 "@polkadot/x-textencoder": "^0.3.2",4411 "@polkadot/x-textencoder": "^0.3.3",4282 "@types/bn.js": "^4.11.6",4412 "@types/bn.js": "^4.11.6",4283 "bn.js": "^5.1.3",4413 "bn.js": "^5.1.3",4284 "camelcase": "^5.3.1",4414 "camelcase": "^5.3.1",4285 "chalk": "^4.1.0",4415 "chalk": "^4.1.0",4286 "ip-regex": "^4.1.0"4416 "ip-regex": "^4.2.0"4287 }4417 }4288 }4418 },4419 "ip-regex": {4420 "version": "4.2.0",4421 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4422 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4423 }4289 }4424 }4290 },4425 },4291 "@polkadot/util": {4426 "@polkadot/util": {4302 }4437 }4303 },4438 },4304 "@polkadot/util-crypto": {4439 "@polkadot/util-crypto": {4305 "version": "3.5.1",4440 "version": "3.6.1",4306 "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-3.5.1.tgz",4441 "resolved": "https://registry.npmjs.org/@polkadot/util-crypto/-/util-crypto-3.6.1.tgz",4307 "integrity": "sha512-7SWxOYG+dUCAkGW2xCJc9gutLJ02T9LwiumTW8cXFysRai4qLA3XRl+XQHAEdRzKA+97IQmtGMl4/Tjq9TGwYw==",4442 "integrity": "sha512-mRCijOXrxTa2JD5vpNvr1MHSj3NaSGaImg1yzAf3l7nw7zNGjLy1K3qQNcFgr8+0NHyPKk5lCIehtwGTRZYsiA==",4308 "requires": {4443 "requires": {4309 "@babel/runtime": "^7.11.2",4444 "@babel/runtime": "^7.12.1",4445 "@polkadot/networks": "3.6.1",4310 "@polkadot/util": "3.5.1",4446 "@polkadot/util": "3.6.1",4311 "@polkadot/wasm-crypto": "^1.4.1",4447 "@polkadot/wasm-crypto": "^1.4.1",4312 "base-x": "^3.0.8",4448 "base-x": "^3.0.8",4313 "bip39": "^3.0.2",4449 "bip39": "^3.0.2",4321 "xxhashjs": "^0.2.2"4457 "xxhashjs": "^0.2.2"4322 },4458 },4323 "dependencies": {4459 "dependencies": {4460 "@babel/runtime": {4461 "version": "7.12.1",4462 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4463 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4464 "requires": {4465 "regenerator-runtime": "^0.13.4"4466 }4467 },4324 "@polkadot/util": {4468 "@polkadot/util": {4325 "version": "3.5.1",4469 "version": "3.6.1",4326 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.5.1.tgz",4470 "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-3.6.1.tgz",4327 "integrity": "sha512-9CBVeQlhmghlVeOttZDxwOtDVWLKpHSP0iAE2vG2bnI6T1dSjD0cFHCG9q7GeD6UAN8z+m17/M9WDV2WXzT6kA==",4471 "integrity": "sha512-ToGVghmTtC8s8cg8mCGG3I88UasrCg9VNm5JoUvBH4nTZCxc/dQEkU24nULXwHUpmd7d39p3RLpVbkLCVYIMZw==",4328 "requires": {4472 "requires": {4329 "@babel/runtime": "^7.11.2",4473 "@babel/runtime": "^7.12.1",4330 "@polkadot/x-textdecoder": "^0.3.2",4474 "@polkadot/x-textdecoder": "^0.3.3",4331 "@polkadot/x-textencoder": "^0.3.2",4475 "@polkadot/x-textencoder": "^0.3.3",4332 "@types/bn.js": "^4.11.6",4476 "@types/bn.js": "^4.11.6",4333 "bn.js": "^5.1.3",4477 "bn.js": "^5.1.3",4334 "camelcase": "^5.3.1",4478 "camelcase": "^5.3.1",4335 "chalk": "^4.1.0",4479 "chalk": "^4.1.0",4336 "ip-regex": "^4.1.0"4480 "ip-regex": "^4.2.0"4337 }4481 }4338 }4482 },4483 "ip-regex": {4484 "version": "4.2.0",4485 "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.2.0.tgz",4486 "integrity": "sha512-n5cDDeTWWRwK1EBoWwRti+8nP4NbytBBY0pldmnIkq6Z55KNFmWofh4rl9dPZpj+U/nVq7gweR3ylrvMt4YZ5A=="4487 }4339 }4488 }4340 },4489 },4341 "@polkadot/wasm-crypto": {4490 "@polkadot/wasm-crypto": {4344 "integrity": "sha512-GPBCh8YvQmA5bobI4rqRkUhrEHkEWU1+lcJVPbZYsa7jiHFaZpzCLrGQfiqW/vtbU1aBS2wmJ0x1nlt33B9QqQ=="4493 "integrity": "sha512-GPBCh8YvQmA5bobI4rqRkUhrEHkEWU1+lcJVPbZYsa7jiHFaZpzCLrGQfiqW/vtbU1aBS2wmJ0x1nlt33B9QqQ=="4345 },4494 },4346 "@polkadot/x-fetch": {4495 "@polkadot/x-fetch": {4347 "version": "0.3.2",4496 "version": "0.3.3",4348 "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-0.3.2.tgz",4497 "resolved": "https://registry.npmjs.org/@polkadot/x-fetch/-/x-fetch-0.3.3.tgz",4349 "integrity": "sha512-lk9M8ql/kBBqiZ8KOWj7LFK7P9OxDgVn2fZPNELJzQbfFZwFF8umBPDIWlQIK7wTnlRsQlzOuf6MGEyMK5p42w==",4498 "integrity": "sha512-Osa+ifkqlndIW5U5jLnuugLYTd6q/cHkjdfisyYgNev/etsEtXkqesbGvF/UKw5FgZBxhK8sj6jjfProfh2NZw==",4350 "requires": {4499 "requires": {4351 "@babel/runtime": "^7.11.2",4500 "@babel/runtime": "^7.12.1",4352 "@types/node-fetch": "^2.5.7",4501 "@types/node-fetch": "^2.5.7",4353 "node-fetch": "^2.6.1"4502 "node-fetch": "^2.6.1"4354 }4503 },4504 "dependencies": {4505 "@babel/runtime": {4506 "version": "7.12.1",4507 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4508 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4509 "requires": {4510 "regenerator-runtime": "^0.13.4"4511 }4512 }4513 }4355 },4514 },4356 "@polkadot/x-textdecoder": {4515 "@polkadot/x-textdecoder": {4357 "version": "0.3.2",4516 "version": "0.3.3",4358 "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-0.3.2.tgz",4517 "resolved": "https://registry.npmjs.org/@polkadot/x-textdecoder/-/x-textdecoder-0.3.3.tgz",4359 "integrity": "sha512-W3KK6mMzOH5kts8pSkyYyfsQuAsKUHmIm8jQkhQnSR6FRyhwJtHLZnxP3feEwkNkRbGggG6CtDPrxYCuEO0MvA==",4518 "integrity": "sha512-ehbPUUNn34kJh/RV8eQwyLnAFcMQSbtGPKqGRB7GSa/bL7P6hh1QGxB4DwvtlFU//bDTlofsv44ydpjDNmfWLg==",4360 "requires": {4519 "requires": {4361 "@babel/runtime": "^7.11.2"4520 "@babel/runtime": "^7.12.1"4362 }4521 },4522 "dependencies": {4523 "@babel/runtime": {4524 "version": "7.12.1",4525 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4526 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4527 "requires": {4528 "regenerator-runtime": "^0.13.4"4529 }4530 }4531 }4363 },4532 },4364 "@polkadot/x-textencoder": {4533 "@polkadot/x-textencoder": {4365 "version": "0.3.2",4534 "version": "0.3.3",4366 "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-0.3.2.tgz",4535 "resolved": "https://registry.npmjs.org/@polkadot/x-textencoder/-/x-textencoder-0.3.3.tgz",4367 "integrity": "sha512-nm7N9gWgKsZv8In1Fgfm+jYOPjprna/03Cd8hOqkCMRlSq0L4LS+d8BPrFhPOiT57VFTTW/7csLivFdeKv0GMA==",4536 "integrity": "sha512-klbz82L5LxDJTFoCO64G/EFfY1mKXHDlteJMDGFTOim/1oK1ypLOG8/7BmncmQAw2BevA0r1YkvWN+F3muJSag==",4368 "requires": {4537 "requires": {4369 "@babel/runtime": "^7.11.2"4538 "@babel/runtime": "^7.12.1"4370 }4539 },4540 "dependencies": {4541 "@babel/runtime": {4542 "version": "7.12.1",4543 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4544 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4545 "requires": {4546 "regenerator-runtime": "^0.13.4"4547 }4548 }4549 }4371 },4550 },4372 "@polkadot/x-ws": {4551 "@polkadot/x-ws": {4373 "version": "0.3.2",4552 "version": "0.3.3",4374 "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-0.3.2.tgz",4553 "resolved": "https://registry.npmjs.org/@polkadot/x-ws/-/x-ws-0.3.3.tgz",4375 "integrity": "sha512-1aiG11Py8sgzJsz19melMzvBOn5zeMmfjCPoMryX4//063E0mcfnkujg4O6pTMygxJdFGAV1INB9wvMU9Dg9Wg==",4554 "integrity": "sha512-t06ID5QLYi5B8bzlT2fcYsQ09yfLf5Uq9idunKRZj13EwSELaqvZFfn2UmiDFiIB1H5u7c2y+VDWbIdqE8ZxKw==",4376 "requires": {4555 "requires": {4377 "@babel/runtime": "^7.11.2",4556 "@babel/runtime": "^7.12.1",4378 "@types/websocket": "^1.0.1",4557 "@types/websocket": "^1.0.1",4379 "websocket": "^1.0.32"4558 "websocket": "^1.0.32"4380 }4559 },4560 "dependencies": {4561 "@babel/runtime": {4562 "version": "7.12.1",4563 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",4564 "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",4565 "requires": {4566 "regenerator-runtime": "^0.13.4"4567 }4568 }4569 }4381 },4570 },4382 "@sindresorhus/is": {4571 "@sindresorhus/is": {4383 "version": "0.14.0",4572 "version": "0.14.0",tests/package.jsondiffbeforeafterboth23 "license": "Apache 2.0",23 "license": "Apache 2.0",24 "homepage": "",24 "homepage": "",25 "dependencies": {25 "dependencies": {26 "@polkadot/api": "^2.0.1",26 "@polkadot/api": "^2.3.1",27 "@polkadot/api-contract": "^2.0.1",27 "@polkadot/api-contract": "^2.3.1",28 "@polkadot/types": "^2.0.1",28 "@polkadot/types": "^2.3.1",29 "@polkadot/util": "^3.4.1",29 "@polkadot/util": "^3.4.1",30 "@types/bn.js": "^4.11.6",30 "@types/bn.js": "^4.11.6",31 "chai-as-promised": "^7.1.1"31 "chai-as-promised": "^7.1.1"tests/src/contracts.test.tsdiffbeforeafterboth1import { expect } from "chai";1import { expect } from "chai";2import usingApi from "./substrate/substrate-api";2import usingApi from "./substrate/substrate-api";3import promisifySubstrate from "./substrate/promisify-substrate";4import fs from "fs";3import fs from "fs";5import privateKey from "./substrate/privateKey";6import { compactAddLength, u8aToU8a } from '@polkadot/util';7import { Hash, AccountId } from "@polkadot/types/interfaces";8import { Abi, PromiseContract } from "@polkadot/api-contract";4import { Abi, BlueprintPromise, CodePromise } from "@polkadot/api-contract";9import { ISubmittableResult, IKeyringPair } from "@polkadot/types/types";5import { IKeyringPair } from "@polkadot/types/types";10import BN from "bn.js";11import { alicesPublicKey, bobsPublicKey } from "./accounts";12import { ApiPromise } from "@polkadot/api";6import { Keyring } from "@polkadot/api";13import { GenericAccountId, u128 } from "@polkadot/types";7import { ApiTypes, SubmittableExtrinsic } from "@polkadot/api/types";814import getBalance from "./substrate/get-balance";9const value = 0;1510const gasLimit = 3000n * 1000000n;161117function deployContract(api: ApiPromise, contract: Uint8Array, privateKey: IKeyringPair): Promise<Hash> {12function deployBlueprint(alice: IKeyringPair, code: CodePromise): Promise<BlueprintPromise> {18 return promisifySubstrate(api, () => {13 return new Promise<BlueprintPromise>(async (resolve, reject) => {19 return new Promise<Hash>(async (resolve, reject) => {20 const unsubscribe = api.tx.contracts.putCode(contract).signAndSend(privateKey, async result => {14 const unsub = await code15 .createBlueprint()16 .signAndSend(alice, (result) => {21 if(!result.isInBlock){17 if (result.status.isInBlock || result.status.isFinalized) {22 return;18 // here we have an additional field in the result, containing the blueprint23 }2425 const record = result.findRecord('contracts', 'CodeStored');2627 if(record) {28 (await unsubscribe)();29 resolve(record.event.data[0] as unknown as Hash);19 resolve(result.blueprint);30 } else {31 reject('Failed to find contract hash in putCode transaction result.');20 unsub();32 }21 }33 });22 })34 })23 });35 })();36}24}372538function instantiateContract(api: ApiPromise, contractHash: Hash, args: Uint8Array, privateKey: IKeyringPair): Promise<AccountId> {26function deployContract(alice: IKeyringPair, blueprint: BlueprintPromise) : Promise<any> {39 return promisifySubstrate(api, () => {27 return new Promise<any>(async (resolve, reject) => {40 return new Promise<AccountId>((resolve, reject) => {28 const endowment = 1000000000000000n;29 const initValue = true;3041 const unsubscribe = api.tx.contracts.instantiate(1000000000000000n, 1000000000000n, contractHash, args)31 const unsub = await blueprint.tx32 .new(endowment, gasLimit, initValue)42 .signAndSend(privateKey, async (result:ISubmittableResult) => {33 .signAndSend(alice, (result) => {43 if(!result.isInBlock) {44 return;45 }46 const record = result.findRecord('contracts', 'Instantiated');47 if(record) {34 if (result.status.isInBlock || result.status.isFinalized) {48 (await unsubscribe)();49 expect(alicesPublicKey).to.be.equal(record.event.data[0].toString());50 resolve(record.event.data[1] as AccountId);35 unsub();51 } else {52 reject('Failed to find instantiated event.');36 resolve(result);53 }37 }54 });38 }); 55 });39 });56 })();57}40}584159function txContractCall(api: ApiPromise, privateKey: IKeyringPair, address: string, call: Uint8Array): Promise<void> {42function runTransaction(privateKey: IKeyringPair, extrinsic: SubmittableExtrinsic<ApiTypes>) {60 return promisifySubstrate(api, async () => {43 return new Promise<void>(async (resolve, reject) => {61 return new Promise<void>(async (resolve, reject) => {62 api.tx.contracts.call(address, 0, 1000000000000n, call)63 .signAndSend(privateKey, async result => {44 extrinsic.signAndSend(privateKey, async result => {64 if(!result.isInBlock) {45 if(!result.isInBlock) {65 return;46 return;66 }47 }69 resolve();50 resolve();70 }51 }71 else {52 else {72 reject('Failed to execute tx call.');53 reject('Failed to flip value.');73 }54 }74 })55 })75 });56 });76 })();77}57}785879describe('Contracts', () => {59describe('Contracts', () => {80 it(`Can deploy smart contract Flipper, instantiate it and call it's get and flip messages.`, async () => {60 it(`Can deploy smart contract Flipper, instantiate it and call it's get and flip messages.`, async () => {81 await usingApi(async api => {61 await usingApi(async api => {62 const keyring = new Keyring({ type: 'sr25519' });82 const wasm = fs.readFileSync('./src/flipper/flipper.wasm');63 const alice = keyring.addFromUri("//Alice");64 83 const contract = compactAddLength(u8aToU8a(wasm));65 const wasm = fs.readFileSync('./src/flipper/flipper.wasm');8466 85 const metadata = JSON.parse(fs.readFileSync('./src/flipper/metadata.json').toString('utf-8'));67 const metadata = JSON.parse(fs.readFileSync('./src/flipper/metadata.json').toString('utf-8'));86 const abi = new Abi(api.registry as any, metadata);68 const abi = new Abi(metadata);8788 const alicesPrivateKey = privateKey('//Alice');896990 const contractHash = await deployContract(api, contract, alicesPrivateKey);70 const code = new CodePromise(api, abi, wasm);917192 const args = abi.constructors[0](true);93 const instanceAccountId = await instantiateContract(api, contractHash, args, alicesPrivateKey);72 const blueprint = await deployBlueprint(alice, code);9495 const contractInstance = new PromiseContract(api, abi, instanceAccountId);73 const contract = (await deployContract(alice, blueprint))['contract'];7496 const getFlipValue = async () => {75 const getFlipValue = async () => {97 return await promisifySubstrate(api, async () => {98 const result = await contractInstance.call('rpc', 'get', 0, new BN('1000000000000'))76 const result = await contract.query.get(alice.address, value, gasLimit);99 .send(alicesPublicKey);77100 if(!result.isSuccess) {78 if(!result.result.isSuccess) {101 throw 'Failed to get flipper value';79 throw `Failed to get flipper value`;102 }80 }103 return result.output && result.output.valueOf && result.output.valueOf();104 })();81 return (result.result.asSuccess.data[0] == 0x00) ? false : true;105 }82 }10683107 const initialGetResponse = await getFlipValue();84 const initialGetResponse = await getFlipValue();108 expect(initialGetResponse).to.be.true;85 expect(initialGetResponse).to.be.true;10986110 await promisifySubstrate(api, async () => {111 return new Promise<void>(async (resolve, reject) => {112 api.tx.contracts.call(contractInstance.address.toString(), 0, 1000000000000n, contractInstance.getMessage('flip').fn())87 const flip = contract.exec('flip', value, gasLimit);113 .signAndSend(alicesPrivateKey, async result => {88 await runTransaction(alice, flip);114 if(!result.isInBlock) {115 return;116 }117118 if(result.findRecord('system', 'ExtrinsicSuccess')) {119 resolve();120 }121 else {122 reject('Failed to flip value.');123 }124 })125 });126 })();12789128 const afterFlipGetResponse = await getFlipValue();90 const afterFlipGetResponse = await getFlipValue();1299113395134 it.skip('Can transfer balance using smart contract.', async () => {96 it.skip('Can transfer balance using smart contract.', async () => {135 await usingApi(async api => {97 await usingApi(async api => {136 const [alicesBalanceBefore, bobsBalanceBefore] = await getBalance(api, [alicesPublicKey, bobsPublicKey]);98 // const [alicesBalanceBefore, bobsBalanceBefore] = await getBalance(api, [alicesPublicKey, bobsPublicKey]);137 const wasm = fs.readFileSync('./src/balance-transfer-contract/calls.wasm');99 // const wasm = fs.readFileSync('./src/balance-transfer-contract/calls.wasm');138 const contract = compactAddLength(u8aToU8a(wasm));100 // const contract = compactAddLength(u8aToU8a(wasm));139101140 const metadata = JSON.parse(fs.readFileSync('./src/balance-transfer-contract/metadata.json').toString('utf-8'));102 // const metadata = JSON.parse(fs.readFileSync('./src/balance-transfer-contract/metadata.json').toString('utf-8'));141 const abi = new Abi(api.registry as any, metadata);103 // const abi = new Abi(api.registry as any, metadata);142104143 const alicesPrivateKey = privateKey('//Alice');105 // const alicesPrivateKey = privateKey('//Alice');144106145 const contractHash = await deployContract(api, contract, alicesPrivateKey);107 // const contractHash = await deployContract(api, contract, alicesPrivateKey);146108147 const args = abi.constructors[0]();109 // // const args = abi.constructors[0]();148 const instanceAccountId = await instantiateContract(api, contractHash, args, alicesPrivateKey);110 // const instanceAccountId = await instantiateContract(api, contractHash, /*args,*/ alicesPrivateKey);149 const contractInstance = new PromiseContract(api, abi, instanceAccountId);111 // const contractInstance = new ContractPromise(api, abi, instanceAccountId);150 const bob = new GenericAccountId(api.registry, bobsPublicKey);112 // const bob = new GenericAccountId(api.registry, bobsPublicKey);151 const call = contractInstance.getMessage('balance_transfer').fn(bob, new u128(api.registry, 1000000));113152 await txContractCall(api, alicesPrivateKey, contractInstance.address.toString(), call);114 // const transfer = contractInstance.exec('balance_transfer', 0, 1000000000000n, [bob, new u128(api.registry, 1000000)]);153115 // await runTransaction(alicesPrivateKey, transfer);154 const [alicesBalanceAfter, bobsBalanceAfter] = await getBalance(api, [alicesPublicKey, bobsPublicKey]);116155117 // const [alicesBalanceAfter, bobsBalanceAfter] = await getBalance(api, [alicesPublicKey, bobsPublicKey]);156 expect(alicesBalanceAfter < alicesBalanceBefore).to.be.true;118157 expect(bobsBalanceAfter > bobsBalanceBefore).to.be.true;119 // expect(alicesBalanceAfter < alicesBalanceBefore).to.be.true;120 // expect(bobsBalanceAfter > bobsBalanceBefore).to.be.true;158 });121 });159 })122 })160});123});