@wormhole-foundation/sdk-cosmwasm 4.22.0-beta.0 → 5.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -48
- package/dist/cjs/address.d.ts +0 -32
- package/dist/cjs/address.d.ts.map +0 -1
- package/dist/cjs/address.js +0 -212
- package/dist/cjs/address.js.map +0 -1
- package/dist/cjs/chain.d.ts +0 -6
- package/dist/cjs/chain.d.ts.map +0 -1
- package/dist/cjs/chain.js +0 -8
- package/dist/cjs/chain.js.map +0 -1
- package/dist/cjs/constants.d.ts +0 -3459
- package/dist/cjs/constants.d.ts.map +0 -1
- package/dist/cjs/constants.js +0 -189
- package/dist/cjs/constants.js.map +0 -1
- package/dist/cjs/gateway.d.ts +0 -17
- package/dist/cjs/gateway.d.ts.map +0 -1
- package/dist/cjs/gateway.js +0 -77
- package/dist/cjs/gateway.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -12
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -25
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/platform.d.ts +0 -35
- package/dist/cjs/platform.d.ts.map +0 -1
- package/dist/cjs/platform.js +0 -131
- package/dist/cjs/platform.js.map +0 -1
- package/dist/cjs/signer.d.ts +0 -33
- package/dist/cjs/signer.d.ts.map +0 -1
- package/dist/cjs/signer.js +0 -121
- package/dist/cjs/signer.js.map +0 -1
- package/dist/cjs/types.d.ts +0 -16
- package/dist/cjs/types.d.ts.map +0 -1
- package/dist/cjs/types.js +0 -8
- package/dist/cjs/types.js.map +0 -1
- package/dist/cjs/unsignedTransaction.d.ts +0 -20
- package/dist/cjs/unsignedTransaction.d.ts.map +0 -1
- package/dist/cjs/unsignedTransaction.js +0 -43
- package/dist/cjs/unsignedTransaction.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wormhole-foundation/sdk-cosmwasm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/wormhole-foundation/wormhole-sdk-ts.git"
|
|
@@ -13,13 +13,12 @@
|
|
|
13
13
|
"test": "__tests__"
|
|
14
14
|
},
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"main": "./dist/
|
|
17
|
-
"types": "./dist/
|
|
16
|
+
"main": "./dist/esm/index.js",
|
|
17
|
+
"types": "./dist/esm/index.d.ts",
|
|
18
18
|
"module": "./dist/esm/index.js",
|
|
19
19
|
"description": "SDK for EVM chains, used in conjunction with @wormhole-foundation/sdk",
|
|
20
20
|
"files": [
|
|
21
|
-
"dist/esm"
|
|
22
|
-
"dist/cjs"
|
|
21
|
+
"dist/esm"
|
|
23
22
|
],
|
|
24
23
|
"keywords": [
|
|
25
24
|
"wormhole",
|
|
@@ -35,24 +34,22 @@
|
|
|
35
34
|
"evm"
|
|
36
35
|
],
|
|
37
36
|
"engines": {
|
|
38
|
-
"node": ">=
|
|
37
|
+
"node": ">=20.19"
|
|
39
38
|
},
|
|
40
39
|
"sideEffects": [
|
|
41
|
-
"./dist/cjs/address.js",
|
|
42
40
|
"./dist/esm/address.js"
|
|
43
41
|
],
|
|
44
42
|
"scripts": {
|
|
45
|
-
"build:cjs": "tsc -p ./tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
46
43
|
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
47
|
-
"build": "npm run build:esm
|
|
44
|
+
"build": "npm run build:esm",
|
|
48
45
|
"rebuild": "npm run clean && npm run build",
|
|
49
46
|
"clean": "rm -rf ./dist && rm -rf ./.turbo",
|
|
50
47
|
"lint": "npm run prettier && eslint --fix ./src --ext .ts",
|
|
51
48
|
"prettier": "prettier --write ./src",
|
|
52
|
-
"test": "jest --config ./jest.config.ts"
|
|
49
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.config.ts"
|
|
53
50
|
},
|
|
54
51
|
"dependencies": {
|
|
55
|
-
"@wormhole-foundation/sdk-connect": "
|
|
52
|
+
"@wormhole-foundation/sdk-connect": "5.0.0-beta.0",
|
|
56
53
|
"@cosmjs/cosmwasm-stargate": "^0.32.0",
|
|
57
54
|
"@cosmjs/proto-signing": "^0.32.0",
|
|
58
55
|
"@cosmjs/stargate": "^0.32.0",
|
|
@@ -63,50 +60,20 @@
|
|
|
63
60
|
"typesVersions": {
|
|
64
61
|
"*": {
|
|
65
62
|
"*": [
|
|
66
|
-
"dist/
|
|
63
|
+
"dist/esm/index.d.ts"
|
|
67
64
|
]
|
|
68
65
|
}
|
|
69
66
|
},
|
|
70
67
|
"exports": {
|
|
71
68
|
".": {
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"types": "./dist/cjs/index.d.ts",
|
|
76
|
-
"default": "./dist/cjs/index.js"
|
|
77
|
-
},
|
|
78
|
-
"import": {
|
|
79
|
-
"types": "./dist/esm/index.d.ts",
|
|
80
|
-
"default": "./dist/esm/index.js"
|
|
81
|
-
},
|
|
82
|
-
"require": {
|
|
83
|
-
"types": "./dist/cjs/index.d.ts",
|
|
84
|
-
"default": "./dist/cjs/index.js"
|
|
85
|
-
},
|
|
86
|
-
"default": {
|
|
87
|
-
"types": "./dist/cjs/index.d.ts",
|
|
88
|
-
"default": "./dist/cjs/index.js"
|
|
89
|
-
}
|
|
69
|
+
"types": "./dist/esm/index.d.ts",
|
|
70
|
+
"import": "./dist/esm/index.js",
|
|
71
|
+
"default": "./dist/esm/index.js"
|
|
90
72
|
},
|
|
91
73
|
"./address": {
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"types": "./dist/cjs/address.d.ts",
|
|
96
|
-
"default": "./dist/cjs/address.js"
|
|
97
|
-
},
|
|
98
|
-
"import": {
|
|
99
|
-
"types": "./dist/esm/address.d.ts",
|
|
100
|
-
"default": "./dist/esm/address.js"
|
|
101
|
-
},
|
|
102
|
-
"require": {
|
|
103
|
-
"types": "./dist/cjs/address.d.ts",
|
|
104
|
-
"default": "./dist/cjs/address.js"
|
|
105
|
-
},
|
|
106
|
-
"default": {
|
|
107
|
-
"types": "./dist/cjs/address.d.ts",
|
|
108
|
-
"default": "./dist/cjs/address.js"
|
|
109
|
-
}
|
|
74
|
+
"types": "./dist/esm/address.d.ts",
|
|
75
|
+
"import": "./dist/esm/address.js",
|
|
76
|
+
"default": "./dist/esm/address.js"
|
|
110
77
|
}
|
|
111
78
|
}
|
|
112
79
|
}
|
package/dist/cjs/address.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Address } from "@wormhole-foundation/sdk-connect";
|
|
2
|
-
import { UniversalAddress } from "@wormhole-foundation/sdk-connect";
|
|
3
|
-
import type { AnyCosmwasmAddress, CosmwasmChains } from "./types.js";
|
|
4
|
-
export declare class CosmwasmAddress implements Address {
|
|
5
|
-
static readonly contractAddressByteSize = 32;
|
|
6
|
-
static readonly accountAddressByteSize = 20;
|
|
7
|
-
static readonly platform: "Cosmwasm";
|
|
8
|
-
readonly address: Uint8Array;
|
|
9
|
-
readonly domain?: string;
|
|
10
|
-
readonly denom?: string;
|
|
11
|
-
readonly denomType?: string;
|
|
12
|
-
constructor(address: AnyCosmwasmAddress);
|
|
13
|
-
unwrap(): string;
|
|
14
|
-
toString(): string;
|
|
15
|
-
toNative(): this;
|
|
16
|
-
toUint8Array(): Uint8Array;
|
|
17
|
-
toUniversalAddress(): UniversalAddress;
|
|
18
|
-
setChain(chain: CosmwasmChains): void;
|
|
19
|
-
static isValidAddress(address: string): boolean;
|
|
20
|
-
static encode(prefix: string, address: Uint8Array): string;
|
|
21
|
-
private static validAddressLength;
|
|
22
|
-
static instanceof(address: any): address is CosmwasmAddress;
|
|
23
|
-
equals(other: CosmwasmAddress | UniversalAddress): boolean;
|
|
24
|
-
}
|
|
25
|
-
declare module "@wormhole-foundation/sdk-connect" {
|
|
26
|
-
namespace WormholeRegistry {
|
|
27
|
-
interface PlatformToNativeAddressMapping {
|
|
28
|
-
Cosmwasm: CosmwasmAddress;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=address.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/address.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAA4B,MAAM,kCAAkC,CAAC;AAE9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA2ErE,qBAAa,eAAgB,YAAW,OAAO;IAC7C,MAAM,CAAC,QAAQ,CAAC,uBAAuB,MAAM;IAC7C,MAAM,CAAC,QAAQ,CAAC,sBAAsB,MAAM;IAC5C,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IAGrC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAG7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;gBAEhB,OAAO,EAAE,kBAAkB;IAwDvC,MAAM,IAAI,MAAM;IAIhB,QAAQ,IAAI,MAAM;IAsBlB,QAAQ;IAIR,YAAY;IAIZ,kBAAkB;IAMlB,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAKrC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAO/C,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,MAAM;IAI1D,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAajC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,eAAe;IAI3D,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,GAAG,OAAO;CAO3D;AAED,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAiB,gBAAgB,CAAC;QAChC,UAAU,8BAA8B;YACtC,QAAQ,EAAE,eAAe,CAAC;SAC3B;KACF;CACF"}
|
package/dist/cjs/address.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CosmwasmAddress = void 0;
|
|
4
|
-
const sdk_connect_1 = require("@wormhole-foundation/sdk-connect");
|
|
5
|
-
const constants_js_1 = require("./constants.js");
|
|
6
|
-
const types_js_1 = require("./types.js");
|
|
7
|
-
/*
|
|
8
|
-
Cosmos Addresses
|
|
9
|
-
-----
|
|
10
|
-
There are at least 5 types of addresses in Cosmos:
|
|
11
|
-
|
|
12
|
-
Native Denom
|
|
13
|
-
ex: "uatom"
|
|
14
|
-
|
|
15
|
-
address = [] // 0 bytes
|
|
16
|
-
domain = undefined
|
|
17
|
-
denom = "uatom"
|
|
18
|
-
denomType = "native"
|
|
19
|
-
|
|
20
|
-
Contract Address
|
|
21
|
-
ex: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"
|
|
22
|
-
|
|
23
|
-
address = [0x...] // 32 bytes
|
|
24
|
-
domain = "wormhole"
|
|
25
|
-
denom = undefined
|
|
26
|
-
denomType = undefined
|
|
27
|
-
|
|
28
|
-
Account Address
|
|
29
|
-
ex: "cosmos1hsk6jryyqjfhp5dhc55tc9jtckygx0eph6dd02"
|
|
30
|
-
|
|
31
|
-
address = [0x...] // 20 bytes
|
|
32
|
-
domain = "cosmos"
|
|
33
|
-
denom = undefined
|
|
34
|
-
denomType = undefined
|
|
35
|
-
|
|
36
|
-
IBC Denom
|
|
37
|
-
ex: IBC/BAEAC83736444C09656FBE666FB625974FCCDEE566EB700EBFD2642C5F6CF13A
|
|
38
|
-
|
|
39
|
-
address = [0x...] // 32 bytes
|
|
40
|
-
domain = undefined
|
|
41
|
-
denom = undefined
|
|
42
|
-
denomType = "IBC"
|
|
43
|
-
|
|
44
|
-
Factory Address
|
|
45
|
-
ex: "factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/avax"
|
|
46
|
-
|
|
47
|
-
address = [0x...] 20 bytes
|
|
48
|
-
domain = "inj"
|
|
49
|
-
denom = "avax"
|
|
50
|
-
denomType = "factory"
|
|
51
|
-
|
|
52
|
-
Transfer Denom
|
|
53
|
-
ex: transfer/channel-486/factory/wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk/6vxRV62YN1CTZeQM5ZfvCZDCVA4nLhtZcLxziYa7xYqb
|
|
54
|
-
|
|
55
|
-
address = [0x...] 32 bytes
|
|
56
|
-
domain = "wormhole"
|
|
57
|
-
denom = "6vxRV62YN1CTZeQM5ZfvCZDCVA4nLhtZcLxziYa7xYqb"
|
|
58
|
-
denomType = "transfer/channel-486/factory"
|
|
59
|
-
*/
|
|
60
|
-
// Factory type addresses may have hex or b64 or bech32 encoded addresses
|
|
61
|
-
function tryDecode(data) {
|
|
62
|
-
try {
|
|
63
|
-
const decoded = sdk_connect_1.encoding.bech32.decodeToBytes(data);
|
|
64
|
-
return { data: decoded.bytes, prefix: decoded.prefix };
|
|
65
|
-
}
|
|
66
|
-
catch { }
|
|
67
|
-
try {
|
|
68
|
-
return { data: sdk_connect_1.encoding.hex.decode(data) };
|
|
69
|
-
}
|
|
70
|
-
catch { }
|
|
71
|
-
try {
|
|
72
|
-
return { data: sdk_connect_1.encoding.b64.decode(data) };
|
|
73
|
-
}
|
|
74
|
-
catch { }
|
|
75
|
-
throw new Error(`Cannot decode: ${data}`);
|
|
76
|
-
}
|
|
77
|
-
class CosmwasmAddress {
|
|
78
|
-
static contractAddressByteSize = 32;
|
|
79
|
-
static accountAddressByteSize = 20;
|
|
80
|
-
static platform = types_js_1._platform;
|
|
81
|
-
// the actual bytes of the address
|
|
82
|
-
address;
|
|
83
|
-
// The domain is the prefix for the address, like "cosmos" or "ibc"
|
|
84
|
-
domain;
|
|
85
|
-
// The denom is the token name, like "uatom" or "usdc"
|
|
86
|
-
denom;
|
|
87
|
-
// The denomType is "native", "ibc", or "factory"
|
|
88
|
-
denomType;
|
|
89
|
-
constructor(address) {
|
|
90
|
-
if (CosmwasmAddress.instanceof(address)) {
|
|
91
|
-
const a = address;
|
|
92
|
-
this.address = a.address;
|
|
93
|
-
this.domain = a.domain;
|
|
94
|
-
this.denom = a.denom;
|
|
95
|
-
this.denomType = a.denomType;
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
if (typeof address === "string") {
|
|
99
|
-
// A native denom like "uatom"
|
|
100
|
-
if (address.length <= 8) {
|
|
101
|
-
this.address = new Uint8Array(0);
|
|
102
|
-
this.denom = address;
|
|
103
|
-
this.denomType = "native";
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
if (address.indexOf("/") !== -1) {
|
|
107
|
-
// A denom address like "ibc/..." or "factory/..." or "transfer/channel-${id}/factory/..."
|
|
108
|
-
const chunks = address.split("/");
|
|
109
|
-
// It's a `transfer/...` denom
|
|
110
|
-
if (chunks.length >= 3) {
|
|
111
|
-
// Address will be second from the last
|
|
112
|
-
const { data, prefix } = tryDecode(chunks[chunks.length - 2]);
|
|
113
|
-
this.address = data;
|
|
114
|
-
this.domain = prefix;
|
|
115
|
-
this.denom = chunks[chunks.length - 1];
|
|
116
|
-
this.denomType = chunks.slice(0, chunks.length - 2).join("/");
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
const { data } = tryDecode(chunks[1]);
|
|
120
|
-
this.address = data;
|
|
121
|
-
this.denomType = chunks[0];
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
// should be a contract or account address by now
|
|
126
|
-
if (!CosmwasmAddress.isValidAddress(address))
|
|
127
|
-
throw new Error(`Invalid Cosmwasm address: ${address}`);
|
|
128
|
-
const { bytes: data, prefix } = sdk_connect_1.encoding.bech32.decodeToBytes(address);
|
|
129
|
-
this.address = data;
|
|
130
|
-
this.domain = prefix;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
else if (address instanceof Uint8Array) {
|
|
134
|
-
this.address = address;
|
|
135
|
-
}
|
|
136
|
-
else if (sdk_connect_1.UniversalAddress.instanceof(address)) {
|
|
137
|
-
this.address = address.toUint8Array();
|
|
138
|
-
}
|
|
139
|
-
else
|
|
140
|
-
throw new Error(`Invalid Cosmwasm address ${address}`);
|
|
141
|
-
if (!CosmwasmAddress.validAddressLength(this.address)) {
|
|
142
|
-
throw new Error("Expected 20 or 32 bytes address");
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
unwrap() {
|
|
146
|
-
return this.toString();
|
|
147
|
-
}
|
|
148
|
-
toString() {
|
|
149
|
-
// Coin address
|
|
150
|
-
if (this.denomType !== undefined) {
|
|
151
|
-
// native asset denom
|
|
152
|
-
if (this.denomType === "native")
|
|
153
|
-
return this.denom;
|
|
154
|
-
// ibc/hex
|
|
155
|
-
if (this.denomType === "ibc") {
|
|
156
|
-
// NOTE: this is case sensitive, should be `ibc` not `IBC`
|
|
157
|
-
return `${this.denomType.toLowerCase()}/${sdk_connect_1.encoding.hex.encode(this.address).toUpperCase()}`;
|
|
158
|
-
}
|
|
159
|
-
// ?/factory/address/denom
|
|
160
|
-
return `${this.denomType}/${CosmwasmAddress.encode(this.domain, this.address)}/${this.denom}`;
|
|
161
|
-
}
|
|
162
|
-
// contract or account address
|
|
163
|
-
return CosmwasmAddress.encode(this.domain, this.address);
|
|
164
|
-
}
|
|
165
|
-
toNative() {
|
|
166
|
-
return this;
|
|
167
|
-
}
|
|
168
|
-
toUint8Array() {
|
|
169
|
-
return this.address;
|
|
170
|
-
}
|
|
171
|
-
toUniversalAddress() {
|
|
172
|
-
const buff = new Uint8Array(sdk_connect_1.UniversalAddress.byteSize);
|
|
173
|
-
buff.set(this.address, sdk_connect_1.UniversalAddress.byteSize - this.address.length);
|
|
174
|
-
return new sdk_connect_1.UniversalAddress(buff);
|
|
175
|
-
}
|
|
176
|
-
setChain(chain) {
|
|
177
|
-
// @ts-expect-error -- readonly
|
|
178
|
-
this.domain = constants_js_1.chainToAddressPrefix.get(chain);
|
|
179
|
-
}
|
|
180
|
-
static isValidAddress(address) {
|
|
181
|
-
try {
|
|
182
|
-
const maybe = sdk_connect_1.encoding.bech32.decodeToBytes(address);
|
|
183
|
-
return CosmwasmAddress.validAddressLength(maybe.bytes);
|
|
184
|
-
}
|
|
185
|
-
catch { }
|
|
186
|
-
return false;
|
|
187
|
-
}
|
|
188
|
-
static encode(prefix, address) {
|
|
189
|
-
return sdk_connect_1.encoding.bech32.encode(prefix, sdk_connect_1.encoding.bech32.toWords(address));
|
|
190
|
-
}
|
|
191
|
-
static validAddressLength(address) {
|
|
192
|
-
if (address.length !== CosmwasmAddress.contractAddressByteSize &&
|
|
193
|
-
address.length !== CosmwasmAddress.accountAddressByteSize)
|
|
194
|
-
throw new Error(`Invalid Cosmwasm address, expected ${CosmwasmAddress.contractAddressByteSize} ` +
|
|
195
|
-
`or ${CosmwasmAddress.accountAddressByteSize} bytes but got ${address.length}`);
|
|
196
|
-
return true;
|
|
197
|
-
}
|
|
198
|
-
static instanceof(address) {
|
|
199
|
-
return address.constructor.platform === CosmwasmAddress.platform;
|
|
200
|
-
}
|
|
201
|
-
equals(other) {
|
|
202
|
-
if (CosmwasmAddress.instanceof(other)) {
|
|
203
|
-
return this.toString() === other.toString();
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return other.equals(this.toUniversalAddress());
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
exports.CosmwasmAddress = CosmwasmAddress;
|
|
211
|
-
(0, sdk_connect_1.registerNative)(types_js_1._platform, CosmwasmAddress);
|
|
212
|
-
//# sourceMappingURL=address.js.map
|
package/dist/cjs/address.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/address.ts"],"names":[],"mappings":";;;AACA,kEAA8F;AAC9F,iDAAsD;AAEtD,yCAAuC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDE;AAEF,yEAAyE;AACzE,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,sBAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACpD,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;IACzD,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IAEV,IAAI,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,sBAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IAEV,IAAI,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,sBAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IAEV,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,MAAa,eAAe;IAC1B,MAAM,CAAU,uBAAuB,GAAG,EAAE,CAAC;IAC7C,MAAM,CAAU,sBAAsB,GAAG,EAAE,CAAC;IAC5C,MAAM,CAAU,QAAQ,GAAG,oBAAS,CAAC;IAErC,kCAAkC;IACzB,OAAO,CAAa;IAE7B,mEAAmE;IAC1D,MAAM,CAAU;IACzB,sDAAsD;IAC7C,KAAK,CAAU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AAtJH,0CAuJC;AAUD,IAAA,4BAAc,EAAC,oBAAS,EAAE,eAAe,CAAC,CAAC"}
|
package/dist/cjs/chain.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Network } from "@wormhole-foundation/sdk-connect";
|
|
2
|
-
import { ChainContext } from "@wormhole-foundation/sdk-connect";
|
|
3
|
-
import type { CosmwasmChains } from "./types.js";
|
|
4
|
-
export declare class CosmwasmChain<N extends Network = Network, C extends CosmwasmChains = CosmwasmChains> extends ChainContext<N, C> {
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=chain.d.ts.map
|
package/dist/cjs/chain.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,qBAAa,aAAa,CACxB,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3B,CAAC,SAAS,cAAc,GAAG,cAAc,CACzC,SAAQ,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC;CAAG"}
|
package/dist/cjs/chain.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CosmwasmChain = void 0;
|
|
4
|
-
const sdk_connect_1 = require("@wormhole-foundation/sdk-connect");
|
|
5
|
-
class CosmwasmChain extends sdk_connect_1.ChainContext {
|
|
6
|
-
}
|
|
7
|
-
exports.CosmwasmChain = CosmwasmChain;
|
|
8
|
-
//# sourceMappingURL=chain.js.map
|
package/dist/cjs/chain.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":";;;AACA,kEAAgE;AAGhE,MAAa,aAGX,SAAQ,0BAAkB;CAAG;AAH/B,sCAG+B"}
|