@bitgo-beta/sdk-coin-osmo
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -6,2 +6,23 @@ # Change Log | ||
## [1.3.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.3.1...@bitgo/sdk-coin-osmo@1.3.2) (2023-06-21) | ||
**Note:** Version bump only for package @bitgo/sdk-coin-osmo | ||
## [1.3.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.3.0...@bitgo/sdk-coin-osmo@1.3.1) (2023-06-14) | ||
**Note:** Version bump only for package @bitgo/sdk-coin-osmo | ||
# [1.3.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.2.0...@bitgo/sdk-coin-osmo@1.3.0) (2023-06-13) | ||
### Features | ||
- **abstract-cosmos:** sdk abstract-cosmos and sdk osmo refactored ([d1bb5f6](https://github.com/BitGo/BitGoJS/commit/d1bb5f614533b1cc119b434510539673061d2c2a)) | ||
- **sdk-coin-tia:** celestia sdk along with testcases ([1d104e0](https://github.com/BitGo/BitGoJS/commit/1d104e0d0ac0c813d16cd6da759b1a904bab4641)) | ||
# [1.2.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-osmo@1.1.0...@bitgo/sdk-coin-osmo@1.2.0) (2023-06-07) | ||
### Features | ||
- **sdk-coin-osmo:** testcases added for txn building and staking ([32fb4dc](https://github.com/BitGo/BitGoJS/commit/32fb4dc05c43d05c19ba9e6ec89034c2d91cdb87)) | ||
# 1.1.0 (2023-06-05) | ||
@@ -8,0 +29,0 @@ |
@@ -5,2 +5,3 @@ export * from './lib'; | ||
export * from './register'; | ||
export * as AbstractCosmos from '@bitgo-beta/abstract-cosmos'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -9,6 +9,19 @@ "use strict"; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AbstractCosmos = void 0; | ||
__exportStar(require("./lib"), exports); | ||
@@ -18,2 +31,3 @@ __exportStar(require("./osmo"), exports); | ||
__exportStar(require("./register"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsd0NBQXNCO0FBQ3RCLHlDQUF1QjtBQUN2QiwwQ0FBd0I7QUFDeEIsNkNBQTJCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWInO1xuZXhwb3J0ICogZnJvbSAnLi9vc21vJztcbmV4cG9ydCAqIGZyb20gJy4vdG9zbW8nO1xuZXhwb3J0ICogZnJvbSAnLi9yZWdpc3Rlcic7XG4iXX0= | ||
exports.AbstractCosmos = __importStar(require("@bitgo-beta/abstract-cosmos")); // <TODO: Restrict abstract cosmos export - https://bitgoinc.atlassian.net/browse/WIN-16> | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFzQjtBQUN0Qix5Q0FBdUI7QUFDdkIsMENBQXdCO0FBQ3hCLDZDQUEyQjtBQUMzQiw4RUFBOEQsQ0FBQyx5RkFBeUYiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYic7XG5leHBvcnQgKiBmcm9tICcuL29zbW8nO1xuZXhwb3J0ICogZnJvbSAnLi90b3Ntbyc7XG5leHBvcnQgKiBmcm9tICcuL3JlZ2lzdGVyJztcbmV4cG9ydCAqIGFzIEFic3RyYWN0Q29zbW9zIGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWNvc21vcyc7IC8vIDxUT0RPOiBSZXN0cmljdCBhYnN0cmFjdCBjb3Ntb3MgZXhwb3J0IC0gaHR0cHM6Ly9iaXRnb2luYy5hdGxhc3NpYW4ubmV0L2Jyb3dzZS9XSU4tMTY+XG4iXX0= |
export declare const validDenoms: string[]; | ||
export declare const accountAddressRegex: RegExp; | ||
export declare const validatorAddressRegex: RegExp; | ||
export declare const contractAddressRegex: RegExp; | ||
//# sourceMappingURL=constants.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validatorAddressRegex = exports.accountAddressRegex = exports.validDenoms = void 0; | ||
exports.contractAddressRegex = exports.validatorAddressRegex = exports.accountAddressRegex = exports.validDenoms = void 0; | ||
exports.validDenoms = ['nosmo', 'uosmo', 'mosmo', 'osmo']; | ||
exports.accountAddressRegex = /^(osmo)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l']+)$/; | ||
exports.validatorAddressRegex = /^(osmovaloper)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l']+)$/; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxXQUFXLEdBQUcsQ0FBQyxPQUFPLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztBQUNsRCxRQUFBLG1CQUFtQixHQUFHLGtEQUFrRCxDQUFDO0FBQ3pFLFFBQUEscUJBQXFCLEdBQUcseURBQXlELENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgdmFsaWREZW5vbXMgPSBbJ25vc21vJywgJ3Vvc21vJywgJ21vc21vJywgJ29zbW8nXTtcbmV4cG9ydCBjb25zdCBhY2NvdW50QWRkcmVzc1JlZ2V4ID0gL14ob3NtbykxKFsncXB6cnk5eDhnZjJ0dmR3MHMzam41NGtoY2U2bXVhN2wnXSspJC87XG5leHBvcnQgY29uc3QgdmFsaWRhdG9yQWRkcmVzc1JlZ2V4ID0gL14ob3Ntb3ZhbG9wZXIpMShbJ3FwenJ5OXg4Z2YydHZkdzBzM2puNTRraGNlNm11YTdsJ10rKSQvO1xuIl19 | ||
exports.accountAddressRegex = /^(osmo)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l']{38})$/; | ||
exports.validatorAddressRegex = /^(osmovaloper)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l']{38})$/; | ||
exports.contractAddressRegex = /^(osmo)1(['qpzry9x8gf2tvdw0s3jn54khce6mua7l']+)$/; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQWEsUUFBQSxXQUFXLEdBQUcsQ0FBQyxPQUFPLEVBQUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztBQUNsRCxRQUFBLG1CQUFtQixHQUFHLHFEQUFxRCxDQUFDO0FBQzVFLFFBQUEscUJBQXFCLEdBQUcsNERBQTRELENBQUM7QUFDckYsUUFBQSxvQkFBb0IsR0FBRyxrREFBa0QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCB2YWxpZERlbm9tcyA9IFsnbm9zbW8nLCAndW9zbW8nLCAnbW9zbW8nLCAnb3NtbyddO1xuZXhwb3J0IGNvbnN0IGFjY291bnRBZGRyZXNzUmVnZXggPSAvXihvc21vKTEoWydxcHpyeTl4OGdmMnR2ZHcwczNqbjU0a2hjZTZtdWE3bCddezM4fSkkLztcbmV4cG9ydCBjb25zdCB2YWxpZGF0b3JBZGRyZXNzUmVnZXggPSAvXihvc21vdmFsb3BlcikxKFsncXB6cnk5eDhnZjJ0dmR3MHMzam41NGtoY2U2bXVhN2wnXXszOH0pJC87XG5leHBvcnQgY29uc3QgY29udHJhY3RBZGRyZXNzUmVnZXggPSAvXihvc21vKTEoWydxcHpyeTl4OGdmMnR2ZHcwczNqbjU0a2hjZTZtdWE3bCddKykkLztcbiJdfQ== |
@@ -1,2 +0,2 @@ | ||
import { CosmosTransaction, CosmosTransactionBuilder, CosmosTransferBuilder, StakingActivateBuilder, StakingDeactivateBuilder, StakingWithdrawRewardsBuilder } from '@bitgo-beta/abstract-cosmos'; | ||
import { CosmosTransaction, CosmosTransactionBuilder, CosmosTransferBuilder, StakingActivateBuilder, StakingDeactivateBuilder, StakingWithdrawRewardsBuilder, ContractCallBuilder } from '@bitgo-beta/abstract-cosmos'; | ||
import { BaseTransactionBuilderFactory } from '@bitgo-beta/sdk-core'; | ||
@@ -16,2 +16,3 @@ import { BaseCoin as CoinConfig } from '@bitgo-beta/statics'; | ||
getStakingWithdrawRewardsBuilder(tx?: CosmosTransaction): StakingWithdrawRewardsBuilder; | ||
getContractCallBuilder(tx?: CosmosTransaction): ContractCallBuilder; | ||
/** @inheritdoc */ | ||
@@ -18,0 +19,0 @@ getWalletInitializationBuilder(): void; |
@@ -28,4 +28,6 @@ "use strict"; | ||
return this.getStakingWithdrawRewardsBuilder(tx); | ||
case sdk_core_1.TransactionType.ContractCall: | ||
return this.getContractCallBuilder(tx); | ||
default: | ||
throw new sdk_core_1.InvalidTransactionError('Invalid transaction'); | ||
throw new sdk_core_1.InvalidTransactionError('Transaction type not supported'); | ||
} | ||
@@ -53,2 +55,5 @@ } | ||
} | ||
getContractCallBuilder(tx) { | ||
return this.initializeBuilder(tx, new abstract_cosmos_1.ContractCallBuilder(this._coinConfig, utils_1.default)); | ||
} | ||
/** @inheritdoc */ | ||
@@ -73,2 +78,2 @@ getWalletInitializationBuilder() { | ||
exports.TransactionBuilderFactory = TransactionBuilderFactory; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyRmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvdHJhbnNhY3Rpb25CdWlsZGVyRmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxpRUFPcUM7QUFDckMsbURBQStHO0FBRS9HLG9EQUFnQztBQUVoQyxNQUFhLHlCQUEwQixTQUFRLHdDQUE2QjtJQUMxRSxZQUFZLFdBQWlDO1FBQzNDLEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUNyQixDQUFDO0lBRUQsa0JBQWtCO0lBQ2xCLElBQUksQ0FBQyxHQUFXO1FBQ2QsTUFBTSxFQUFFLEdBQUcsSUFBSSxtQ0FBaUIsQ0FBQyxJQUFJLENBQUMsV0FBVyxFQUFFLGVBQVMsQ0FBQyxDQUFDO1FBQzlELEVBQUUsQ0FBQywwQ0FBMEMsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNuRCx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
/** @inheritdoc */ | ||
isValidContractAddress(address: string): boolean; | ||
/** @inheritdoc */ | ||
validateAmount(amount: Coin): void; | ||
@@ -11,0 +13,0 @@ } |
@@ -40,2 +40,6 @@ "use strict"; | ||
/** @inheritdoc */ | ||
isValidContractAddress(address) { | ||
return constants.contractAddressRegex.test(address); | ||
} | ||
/** @inheritdoc */ | ||
validateAmount(amount) { | ||
@@ -54,2 +58,2 @@ const amountBig = bignumber_js_1.default(amount.amount); | ||
exports.default = osmoUtils; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxtREFBK0Q7QUFFL0QsZ0VBQXFDO0FBRXJDLGlFQUEwRDtBQUMxRCx1REFBeUM7QUFFekMsTUFBYSxTQUFVLFNBQVEsNkJBQVc7SUFDeEMsa0JBQWtCO0lBQ2xCLGNBQWMsQ0FBQyxPQUFlO1FBQzVCLE9BQU8sU0FBUyxDQUFDLG1CQUFtQixDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNyRCxDQUFDO0lBRUQsa0JBQWtCO0lBQ2xCLHVCQUF1QixDQUFDLE9BQWU7UUFDckMsT0FBTyxTQUFTLENBQUMscUJBQXFCLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3ZELENBQUM7SUFFRCxrQkFBa0I7SUFDbEIsY0FBYyxDQUFDLE1BQVk7UUFDekIsTUFBTSxTQUFTLEdBQUcsc0JBQVMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDM0MsSUFBSSxTQUFTLENBQUMsbUJBQW1CLENBQUMsQ0FBQyxDQUFDLEVBQUU7WUFDcEM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vbnN0YW50cy5jb250cmFjdEFkZHJlc3NSZWdleC50ZXN0KGFkZHJlc3MpO1xuICB9XG5cbiAgLyoqIEBpbmhlcml0ZG9jICovXG4gIHZhbGlkYXRlQW1vdW50KGFtb3VudDogQ29pbik6IHZvaWQge1xuICAgIGNvbnN0IGFtb3VudEJpZyA9IEJpZ051bWJlcihhbW91bnQuYW1vdW50KTtcbiAgICBpZiAoYW1vdW50QmlnLmlzTGVzc1RoYW5PckVxdWFsVG8oMCkpIHtcbiAgICAgIHRocm93IG5ldyBJbnZhbGlkVHJhbnNhY3Rpb25FcnJvcigndHJhbnNhY3Rpb25CdWlsZGVyOiB2YWxpZGF0ZUFtb3VudDogSW52YWxpZCBhbW91bnQ6ICcgKyBhbW91bnQuYW1vdW50KTtcbiAgICB9XG4gICAgaWYgKCFjb25zdGFudHMudmFsaWREZW5vbXMuZmluZCgoZGVub20pID0+IGRlbm9tID09PSBhbW91bnQuZGVub20pKSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFRyYW5zYWN0aW9uRXJyb3IoJ3RyYW5zYWN0aW9uQnVpbGRlcjogdmFsaWRhdGVBbW91bnQ6IEludmFsaWQgZGVub206ICcgKyBhbW91bnQuZGVub20pO1xuICAgIH1cbiAgfVxufVxuXG5jb25zdCBvc21vVXRpbHM6IENvc21vc1V0aWxzID0gbmV3IE9zbW9VdGlscygpO1xuXG5leHBvcnQgZGVmYXVsdCBvc21vVXRpbHM7XG4iXX0= |
{ | ||
"name": "@bitgo-beta/sdk-coin-osmo", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "BitGo SDK coin library for Osmosis", | ||
@@ -43,5 +43,5 @@ "main": "./dist/src/index.js", | ||
"dependencies": { | ||
"@bitgo-beta/abstract-cosmos": "1.0.0-alpha.1", | ||
"@bitgo-beta/sdk-core": "2.4.1-alpha.52", | ||
"@bitgo-beta/statics": "10.0.1-alpha.52", | ||
"@bitgo-beta/abstract-cosmos": "1.0.0-alpha.2", | ||
"@bitgo-beta/sdk-core": "2.4.1-alpha.53", | ||
"@bitgo-beta/statics": "10.0.1-alpha.53", | ||
"@cosmjs/amino": "^0.29.5", | ||
@@ -53,7 +53,7 @@ "@cosmjs/encoding": "^0.29.5", | ||
"devDependencies": { | ||
"@bitgo-beta/sdk-api": "1.6.1-alpha.52", | ||
"@bitgo-beta/sdk-test": "^1.2.23", | ||
"@bitgo-beta/sdk-api": "1.6.1-alpha.53", | ||
"@bitgo-beta/sdk-test": "^1.2.27", | ||
"@types/lodash": "^4.14.183" | ||
}, | ||
"gitHead": "ce20ee41a7a39623bfd344b8b2ef9b7f18bf822f" | ||
"gitHead": "7a75e6dc947b4432742058c58f6e2ead01fa68d1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
57024
382
0
+ Added@bitgo-beta/abstract-cosmos@1.0.0-alpha.2(transitive)
+ Added@bitgo-beta/blake2b@3.2.1-alpha.53(transitive)
+ Added@bitgo-beta/blake2b-wasm@3.2.1-alpha.53(transitive)
+ Added@bitgo-beta/bls-dkg@1.3.1-alpha.53(transitive)
+ Added@bitgo-beta/sdk-core@2.4.1-alpha.53(transitive)
+ Added@bitgo-beta/sdk-lib-mpc@8.2.1-alpha.8(transitive)
+ Added@bitgo-beta/statics@10.0.1-alpha.53(transitive)
+ Added@bitgo-beta/utxo-lib@4.0.1-alpha.53(transitive)
+ Added@bitgo-forks/bip174@3.1.0-master.4(transitive)
+ Added@bitgo-forks/bitcoinjs-lib@7.1.0-master.6(transitive)
- Removed@bitgo-beta/abstract-cosmos@1.0.0-alpha.1(transitive)
- Removed@bitgo-beta/blake2b@3.2.1-alpha.52(transitive)
- Removed@bitgo-beta/blake2b-wasm@3.2.1-alpha.52(transitive)
- Removed@bitgo-beta/bls-dkg@1.3.1-alpha.52(transitive)
- Removed@bitgo-beta/sdk-core@2.4.1-alpha.52(transitive)
- Removed@bitgo-beta/sdk-lib-mpc@8.2.1-alpha.7(transitive)
- Removed@bitgo-beta/statics@10.0.1-alpha.52(transitive)
- Removed@bitgo-beta/utxo-lib@4.0.1-alpha.52(transitive)
- Removed@bitgo-forks/bip174@3.1.0-master.3(transitive)
- Removed@bitgo-forks/bitcoinjs-lib@7.1.0-master.5(transitive)