[price-pusher] Injective error handling (#696)

* add few errors check in injective

* update injective sdk version to fix error

* bump version
This commit is contained in:
Dev Kalra 2023-03-15 19:43:24 +05:30 committed by GitHub
parent ed37358da2
commit 94032fa521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 112 additions and 100 deletions

194
package-lock.json generated
View File

@ -6820,13 +6820,13 @@
} }
}, },
"node_modules/@injectivelabs/exceptions": { "node_modules/@injectivelabs/exceptions": {
"version": "1.0.56", "version": "1.0.59",
"resolved": "https://registry.npmjs.org/@injectivelabs/exceptions/-/exceptions-1.0.56.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/exceptions/-/exceptions-1.0.59.tgz",
"integrity": "sha512-g8BRgnxcHrJx6t11VARbaTbxONk/ZIs3l+Z9Dbz08s8yukSZr5MUnSW1HjZwHCwjwE4M8XiHHg70durL123vQQ==", "integrity": "sha512-j96IKyoLp9myiVQs4dT36lj0sMFnDJfZlRJ4EGIAZn+obEF4dhcKu70uQzFwbbqw0qAYIXGtS15PpaGoFIpB7g==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web": "^0.0.1",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
"link-module-alias": "^1.2.0", "link-module-alias": "^1.2.0",
"shx": "^0.3.2" "shx": "^0.3.2"
@ -6864,26 +6864,26 @@
} }
}, },
"node_modules/@injectivelabs/networks": { "node_modules/@injectivelabs/networks": {
"version": "1.0.93", "version": "1.0.96",
"resolved": "https://registry.npmjs.org/@injectivelabs/networks/-/networks-1.0.93.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/networks/-/networks-1.0.96.tgz",
"integrity": "sha512-7TayU1KD8Qk9MKWOjGJ0/hgeSeO/lb+fvXQxkNdtVq1/apZOZHDiEuz0khOc2e2lkeCOsLRZlTh5VlWY/OpG9A==", "integrity": "sha512-fd2yOqNWjsCVRcfIr/BEXm9XMGos2hseYgFUarmS6Gzbelo1p137ReSxFbTVxaV1JRA0opDuZCovWPL1LvaWRg==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"@injectivelabs/utils": "^1.0.81", "@injectivelabs/utils": "^1.0.84",
"link-module-alias": "^1.2.0", "link-module-alias": "^1.2.0",
"shx": "^0.3.2" "shx": "^0.3.2"
} }
}, },
"node_modules/@injectivelabs/networks/node_modules/@injectivelabs/utils": { "node_modules/@injectivelabs/networks/node_modules/@injectivelabs/utils": {
"version": "1.0.81", "version": "1.0.84",
"resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.81.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.84.tgz",
"integrity": "sha512-Eh3SEXj1E6eTnfxLWRWTax/AuGHJxrB2EkvewnKe0yZTr85x3+yn3+yNQjsKR+BrdyHDQ3KUJB5R+NSQlbK/Sw==", "integrity": "sha512-p2Q2azmp/S3vh439AUp7mitlQO3pnsVlNwvLqZFlWgGqwwjazF1RoN16eIj1djbedeNgap+e67r2bSoIJ8nn6A==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"axios": "^0.21.1", "axios": "^0.21.1",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
@ -6902,9 +6902,9 @@
} }
}, },
"node_modules/@injectivelabs/ninja-api": { "node_modules/@injectivelabs/ninja-api": {
"version": "1.0.11", "version": "1.0.12",
"resolved": "https://registry.npmjs.org/@injectivelabs/ninja-api/-/ninja-api-1.0.11.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/ninja-api/-/ninja-api-1.0.12.tgz",
"integrity": "sha512-idNPJMTBgTgfq7epsuOKCjoNTCqRWsGzZvt88H81UjrrsRZpLwpnfCHNc/aTE6VR19RZ27gk9CwI9vH/j4kq9w==", "integrity": "sha512-YG6x34Fg+9OvvFmEKVtsMy9eftlCLBmNLQGDQzc+Dp63KWkEh46V6drEtlTAWsk3jXrRRkJM3WUKg3STbQbAsA==",
"dependencies": { "dependencies": {
"@improbable-eng/grpc-web": "^0.14.0", "@improbable-eng/grpc-web": "^0.14.0",
"google-protobuf": "^3.14.0" "google-protobuf": "^3.14.0"
@ -6974,15 +6974,15 @@
} }
}, },
"node_modules/@injectivelabs/token-metadata": { "node_modules/@injectivelabs/token-metadata": {
"version": "1.0.173", "version": "1.0.192",
"resolved": "https://registry.npmjs.org/@injectivelabs/token-metadata/-/token-metadata-1.0.173.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/token-metadata/-/token-metadata-1.0.192.tgz",
"integrity": "sha512-htEkkWSSIjfqDXkyRpKRkpqk3byxnbYGYvE504DOGnW2BL/G4YecGCt3WfdLhTrz5UX1khLc4FUddUWmf1gmhA==", "integrity": "sha512-U7bocYIJCPfLFxmKFUpcvOfQC8mlw502yH8IyCZxIjgyKuLPnrPQFHv6T9RGJqpdySGlm9b7Tmr/ey1TyKFwfQ==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/networks": "^1.0.93", "@injectivelabs/networks": "^1.0.96",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"@injectivelabs/utils": "^1.0.81", "@injectivelabs/utils": "^1.0.84",
"@types/lodash.values": "^4.3.6", "@types/lodash.values": "^4.3.6",
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"jsonschema": "^1.4.0", "jsonschema": "^1.4.0",
@ -6993,13 +6993,13 @@
} }
}, },
"node_modules/@injectivelabs/token-metadata/node_modules/@injectivelabs/utils": { "node_modules/@injectivelabs/token-metadata/node_modules/@injectivelabs/utils": {
"version": "1.0.81", "version": "1.0.84",
"resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.81.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.84.tgz",
"integrity": "sha512-Eh3SEXj1E6eTnfxLWRWTax/AuGHJxrB2EkvewnKe0yZTr85x3+yn3+yNQjsKR+BrdyHDQ3KUJB5R+NSQlbK/Sw==", "integrity": "sha512-p2Q2azmp/S3vh439AUp7mitlQO3pnsVlNwvLqZFlWgGqwwjazF1RoN16eIj1djbedeNgap+e67r2bSoIJ8nn6A==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"axios": "^0.21.1", "axios": "^0.21.1",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
@ -7018,9 +7018,9 @@
} }
}, },
"node_modules/@injectivelabs/ts-types": { "node_modules/@injectivelabs/ts-types": {
"version": "1.0.29", "version": "1.0.30",
"resolved": "https://registry.npmjs.org/@injectivelabs/ts-types/-/ts-types-1.0.29.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/ts-types/-/ts-types-1.0.30.tgz",
"integrity": "sha512-6pfh/KqBA/rFLzBI+hzahj74WnEsqfyOjUSkrRmWLpw7/mIDVGDCVqi9Zbb+2oLrhNafgYFslH4LTOml2s7BEg==", "integrity": "sha512-ho3WkqZbdXzyfj2vzhe/WvpKW4CwqQrbVFaWJiUptR+fviUeIILfees+eRBQGtn2qXFEzYMRMbxPMz0/Y5H/QQ==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"link-module-alias": "^1.2.0", "link-module-alias": "^1.2.0",
@ -48072,10 +48072,10 @@
}, },
"price_pusher": { "price_pusher": {
"name": "@pythnetwork/pyth-price-pusher", "name": "@pythnetwork/pyth-price-pusher",
"version": "4.0.0", "version": "4.1.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@injectivelabs/sdk-ts": "^1.0.457", "@injectivelabs/sdk-ts": "^1.0.484",
"@pythnetwork/price-service-client": "*", "@pythnetwork/price-service-client": "*",
"@pythnetwork/pyth-sdk-solidity": "^2.2.0", "@pythnetwork/pyth-sdk-solidity": "^2.2.0",
"@truffle/hdwallet-provider": "^2.1.3", "@truffle/hdwallet-provider": "^2.1.3",
@ -48142,9 +48142,9 @@
} }
}, },
"price_pusher/node_modules/@injectivelabs/sdk-ts": { "price_pusher/node_modules/@injectivelabs/sdk-ts": {
"version": "1.0.458", "version": "1.0.484",
"resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.0.458.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.0.484.tgz",
"integrity": "sha512-T8n4YLSLKFHNpj74uG2RWZVaGo4cspo9xiGDQJngQTp9UmED8NOE6ekFvHrPVNnqnvcdqy82yQcCU97lqvoYog==", "integrity": "sha512-7vQf8tAu0UG/IIQOH0lZSYs/Z7O5Bh7EwSdTwOYhydUDI2/xJ2Cpg6dGiJdp2Uv6Nvwugxr+ERfsezQBY28vvQ==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@apollo/client": "^3.5.8", "@apollo/client": "^3.5.8",
@ -48156,14 +48156,14 @@
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0", "@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
"@improbable-eng/grpc-web-react-native-transport": "^0.15.0", "@improbable-eng/grpc-web-react-native-transport": "^0.15.0",
"@injectivelabs/chain-api": "1.9.6", "@injectivelabs/chain-api": "1.9.6",
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web": "^0.0.1",
"@injectivelabs/indexer-api": "1.10.0-rc.2.5", "@injectivelabs/indexer-api": "1.10.0-rc.2.5",
"@injectivelabs/networks": "^1.0.93", "@injectivelabs/networks": "^1.0.96",
"@injectivelabs/ninja-api": "^1.0.11", "@injectivelabs/ninja-api": "1.0.12",
"@injectivelabs/token-metadata": "^1.0.173", "@injectivelabs/token-metadata": "^1.0.192",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"@injectivelabs/utils": "^1.0.81", "@injectivelabs/utils": "^1.0.84",
"@metamask/eth-sig-util": "^4.0.0", "@metamask/eth-sig-util": "^4.0.0",
"@types/google-protobuf": "^3.15.5", "@types/google-protobuf": "^3.15.5",
"axios": "^0.27.2", "axios": "^0.27.2",
@ -48186,13 +48186,13 @@
} }
}, },
"price_pusher/node_modules/@injectivelabs/utils": { "price_pusher/node_modules/@injectivelabs/utils": {
"version": "1.0.81", "version": "1.0.84",
"resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.81.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.84.tgz",
"integrity": "sha512-Eh3SEXj1E6eTnfxLWRWTax/AuGHJxrB2EkvewnKe0yZTr85x3+yn3+yNQjsKR+BrdyHDQ3KUJB5R+NSQlbK/Sw==", "integrity": "sha512-p2Q2azmp/S3vh439AUp7mitlQO3pnsVlNwvLqZFlWgGqwwjazF1RoN16eIj1djbedeNgap+e67r2bSoIJ8nn6A==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"axios": "^0.21.1", "axios": "^0.21.1",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
@ -54294,12 +54294,12 @@
} }
}, },
"@injectivelabs/exceptions": { "@injectivelabs/exceptions": {
"version": "1.0.56", "version": "1.0.59",
"resolved": "https://registry.npmjs.org/@injectivelabs/exceptions/-/exceptions-1.0.56.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/exceptions/-/exceptions-1.0.59.tgz",
"integrity": "sha512-g8BRgnxcHrJx6t11VARbaTbxONk/ZIs3l+Z9Dbz08s8yukSZr5MUnSW1HjZwHCwjwE4M8XiHHg70durL123vQQ==", "integrity": "sha512-j96IKyoLp9myiVQs4dT36lj0sMFnDJfZlRJ4EGIAZn+obEF4dhcKu70uQzFwbbqw0qAYIXGtS15PpaGoFIpB7g==",
"requires": { "requires": {
"@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web": "^0.0.1",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
"link-module-alias": "^1.2.0", "link-module-alias": "^1.2.0",
"shx": "^0.3.2" "shx": "^0.3.2"
@ -54333,24 +54333,24 @@
} }
}, },
"@injectivelabs/networks": { "@injectivelabs/networks": {
"version": "1.0.93", "version": "1.0.96",
"resolved": "https://registry.npmjs.org/@injectivelabs/networks/-/networks-1.0.93.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/networks/-/networks-1.0.96.tgz",
"integrity": "sha512-7TayU1KD8Qk9MKWOjGJ0/hgeSeO/lb+fvXQxkNdtVq1/apZOZHDiEuz0khOc2e2lkeCOsLRZlTh5VlWY/OpG9A==", "integrity": "sha512-fd2yOqNWjsCVRcfIr/BEXm9XMGos2hseYgFUarmS6Gzbelo1p137ReSxFbTVxaV1JRA0opDuZCovWPL1LvaWRg==",
"requires": { "requires": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"@injectivelabs/utils": "^1.0.81", "@injectivelabs/utils": "^1.0.84",
"link-module-alias": "^1.2.0", "link-module-alias": "^1.2.0",
"shx": "^0.3.2" "shx": "^0.3.2"
}, },
"dependencies": { "dependencies": {
"@injectivelabs/utils": { "@injectivelabs/utils": {
"version": "1.0.81", "version": "1.0.84",
"resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.81.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.84.tgz",
"integrity": "sha512-Eh3SEXj1E6eTnfxLWRWTax/AuGHJxrB2EkvewnKe0yZTr85x3+yn3+yNQjsKR+BrdyHDQ3KUJB5R+NSQlbK/Sw==", "integrity": "sha512-p2Q2azmp/S3vh439AUp7mitlQO3pnsVlNwvLqZFlWgGqwwjazF1RoN16eIj1djbedeNgap+e67r2bSoIJ8nn6A==",
"requires": { "requires": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"axios": "^0.21.1", "axios": "^0.21.1",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
@ -54371,9 +54371,9 @@
} }
}, },
"@injectivelabs/ninja-api": { "@injectivelabs/ninja-api": {
"version": "1.0.11", "version": "1.0.12",
"resolved": "https://registry.npmjs.org/@injectivelabs/ninja-api/-/ninja-api-1.0.11.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/ninja-api/-/ninja-api-1.0.12.tgz",
"integrity": "sha512-idNPJMTBgTgfq7epsuOKCjoNTCqRWsGzZvt88H81UjrrsRZpLwpnfCHNc/aTE6VR19RZ27gk9CwI9vH/j4kq9w==", "integrity": "sha512-YG6x34Fg+9OvvFmEKVtsMy9eftlCLBmNLQGDQzc+Dp63KWkEh46V6drEtlTAWsk3jXrRRkJM3WUKg3STbQbAsA==",
"requires": { "requires": {
"@improbable-eng/grpc-web": "^0.14.0", "@improbable-eng/grpc-web": "^0.14.0",
"google-protobuf": "^3.14.0" "google-protobuf": "^3.14.0"
@ -54443,14 +54443,14 @@
} }
}, },
"@injectivelabs/token-metadata": { "@injectivelabs/token-metadata": {
"version": "1.0.173", "version": "1.0.192",
"resolved": "https://registry.npmjs.org/@injectivelabs/token-metadata/-/token-metadata-1.0.173.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/token-metadata/-/token-metadata-1.0.192.tgz",
"integrity": "sha512-htEkkWSSIjfqDXkyRpKRkpqk3byxnbYGYvE504DOGnW2BL/G4YecGCt3WfdLhTrz5UX1khLc4FUddUWmf1gmhA==", "integrity": "sha512-U7bocYIJCPfLFxmKFUpcvOfQC8mlw502yH8IyCZxIjgyKuLPnrPQFHv6T9RGJqpdySGlm9b7Tmr/ey1TyKFwfQ==",
"requires": { "requires": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/networks": "^1.0.93", "@injectivelabs/networks": "^1.0.96",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"@injectivelabs/utils": "^1.0.81", "@injectivelabs/utils": "^1.0.84",
"@types/lodash.values": "^4.3.6", "@types/lodash.values": "^4.3.6",
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"jsonschema": "^1.4.0", "jsonschema": "^1.4.0",
@ -54461,12 +54461,12 @@
}, },
"dependencies": { "dependencies": {
"@injectivelabs/utils": { "@injectivelabs/utils": {
"version": "1.0.81", "version": "1.0.84",
"resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.81.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.84.tgz",
"integrity": "sha512-Eh3SEXj1E6eTnfxLWRWTax/AuGHJxrB2EkvewnKe0yZTr85x3+yn3+yNQjsKR+BrdyHDQ3KUJB5R+NSQlbK/Sw==", "integrity": "sha512-p2Q2azmp/S3vh439AUp7mitlQO3pnsVlNwvLqZFlWgGqwwjazF1RoN16eIj1djbedeNgap+e67r2bSoIJ8nn6A==",
"requires": { "requires": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"axios": "^0.21.1", "axios": "^0.21.1",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",
@ -54487,9 +54487,9 @@
} }
}, },
"@injectivelabs/ts-types": { "@injectivelabs/ts-types": {
"version": "1.0.29", "version": "1.0.30",
"resolved": "https://registry.npmjs.org/@injectivelabs/ts-types/-/ts-types-1.0.29.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/ts-types/-/ts-types-1.0.30.tgz",
"integrity": "sha512-6pfh/KqBA/rFLzBI+hzahj74WnEsqfyOjUSkrRmWLpw7/mIDVGDCVqi9Zbb+2oLrhNafgYFslH4LTOml2s7BEg==", "integrity": "sha512-ho3WkqZbdXzyfj2vzhe/WvpKW4CwqQrbVFaWJiUptR+fviUeIILfees+eRBQGtn2qXFEzYMRMbxPMz0/Y5H/QQ==",
"requires": { "requires": {
"link-module-alias": "^1.2.0", "link-module-alias": "^1.2.0",
"shx": "^0.3.2" "shx": "^0.3.2"
@ -59196,7 +59196,7 @@
"@pythnetwork/pyth-price-pusher": { "@pythnetwork/pyth-price-pusher": {
"version": "file:price_pusher", "version": "file:price_pusher",
"requires": { "requires": {
"@injectivelabs/sdk-ts": "^1.0.457", "@injectivelabs/sdk-ts": "1.0.484",
"@pythnetwork/price-service-client": "*", "@pythnetwork/price-service-client": "*",
"@pythnetwork/pyth-sdk-solidity": "^2.2.0", "@pythnetwork/pyth-sdk-solidity": "^2.2.0",
"@truffle/hdwallet-provider": "^2.1.3", "@truffle/hdwallet-provider": "^2.1.3",
@ -59254,9 +59254,9 @@
} }
}, },
"@injectivelabs/sdk-ts": { "@injectivelabs/sdk-ts": {
"version": "1.0.458", "version": "1.0.484",
"resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.0.458.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.0.484.tgz",
"integrity": "sha512-T8n4YLSLKFHNpj74uG2RWZVaGo4cspo9xiGDQJngQTp9UmED8NOE6ekFvHrPVNnqnvcdqy82yQcCU97lqvoYog==", "integrity": "sha512-7vQf8tAu0UG/IIQOH0lZSYs/Z7O5Bh7EwSdTwOYhydUDI2/xJ2Cpg6dGiJdp2Uv6Nvwugxr+ERfsezQBY28vvQ==",
"requires": { "requires": {
"@apollo/client": "^3.5.8", "@apollo/client": "^3.5.8",
"@cosmjs/amino": "^0.29.5", "@cosmjs/amino": "^0.29.5",
@ -59267,14 +59267,14 @@
"@improbable-eng/grpc-web-node-http-transport": "^0.15.0", "@improbable-eng/grpc-web-node-http-transport": "^0.15.0",
"@improbable-eng/grpc-web-react-native-transport": "^0.15.0", "@improbable-eng/grpc-web-react-native-transport": "^0.15.0",
"@injectivelabs/chain-api": "1.9.6", "@injectivelabs/chain-api": "1.9.6",
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web": "^0.0.1",
"@injectivelabs/indexer-api": "1.10.0-rc.2.5", "@injectivelabs/indexer-api": "1.10.0-rc.2.5",
"@injectivelabs/networks": "^1.0.93", "@injectivelabs/networks": "^1.0.96",
"@injectivelabs/ninja-api": "^1.0.11", "@injectivelabs/ninja-api": "1.0.12",
"@injectivelabs/token-metadata": "^1.0.173", "@injectivelabs/token-metadata": "^1.0.192",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"@injectivelabs/utils": "^1.0.81", "@injectivelabs/utils": "^1.0.84",
"@metamask/eth-sig-util": "^4.0.0", "@metamask/eth-sig-util": "^4.0.0",
"@types/google-protobuf": "^3.15.5", "@types/google-protobuf": "^3.15.5",
"axios": "^0.27.2", "axios": "^0.27.2",
@ -59297,12 +59297,12 @@
} }
}, },
"@injectivelabs/utils": { "@injectivelabs/utils": {
"version": "1.0.81", "version": "1.0.84",
"resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.81.tgz", "resolved": "https://registry.npmjs.org/@injectivelabs/utils/-/utils-1.0.84.tgz",
"integrity": "sha512-Eh3SEXj1E6eTnfxLWRWTax/AuGHJxrB2EkvewnKe0yZTr85x3+yn3+yNQjsKR+BrdyHDQ3KUJB5R+NSQlbK/Sw==", "integrity": "sha512-p2Q2azmp/S3vh439AUp7mitlQO3pnsVlNwvLqZFlWgGqwwjazF1RoN16eIj1djbedeNgap+e67r2bSoIJ8nn6A==",
"requires": { "requires": {
"@injectivelabs/exceptions": "^1.0.56", "@injectivelabs/exceptions": "^1.0.59",
"@injectivelabs/ts-types": "^1.0.29", "@injectivelabs/ts-types": "^1.0.30",
"axios": "^0.21.1", "axios": "^0.21.1",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"http-status-codes": "^2.2.0", "http-status-codes": "^2.2.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pythnetwork/pyth-price-pusher", "name": "@pythnetwork/pyth-price-pusher",
"version": "4.1.0", "version": "4.1.1",
"description": "Pyth Price Pusher", "description": "Pyth Price Pusher",
"homepage": "https://pyth.network", "homepage": "https://pyth.network",
"main": "lib/index.js", "main": "lib/index.js",
@ -48,8 +48,8 @@
"typescript": "^4.6.3" "typescript": "^4.6.3"
}, },
"dependencies": { "dependencies": {
"@injectivelabs/sdk-ts": "^1.0.484",
"@pythnetwork/price-service-client": "*", "@pythnetwork/price-service-client": "*",
"@injectivelabs/sdk-ts": "^1.0.457",
"@pythnetwork/pyth-sdk-solidity": "^2.2.0", "@pythnetwork/pyth-sdk-solidity": "^2.2.0",
"@truffle/hdwallet-provider": "^2.1.3", "@truffle/hdwallet-provider": "^2.1.3",
"joi": "^17.6.0", "joi": "^17.6.0",

View File

@ -236,7 +236,19 @@ export class InjectivePricePusher implements IPricePusher {
if (rs.code !== 0) throw new Error("Error: transaction failed"); if (rs.code !== 0) throw new Error("Error: transaction failed");
console.log("Succesfully broadcasted txHash:", rs.txHash); console.log("Succesfully broadcasted txHash:", rs.txHash);
} catch (e) { } catch (e: any) {
if (e.message.match(/account inj[a-zA-Z0-9]+ not found/) !== null) {
console.error(e);
throw new Error("Please check the mnemonic");
}
if (
e.message.match(/insufficient/) !== null &&
e.message.match(/funds/) !== null
) {
console.error(e);
throw new Error("Insufficient funds");
}
console.error("Error executing messages"); console.error("Error executing messages");
console.log(e); console.log(e);
} }