@wormhole-foundation/sdk-base 0.1.8-beta.6 → 0.1.8-beta.7

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.
@@ -1,4 +1,4 @@
1
- export declare const protocols: readonly ["CoreBridge", "TokenBridge", "NftBridge", "Relayer", "CCTP"];
1
+ export declare const protocols: readonly ["WormholeCore", "TokenBridge", "AutomaticTokenBridge", "CircleBridge", "AutomaticCircleBridge", "Relayer", "NftBridge"];
2
2
  export type ProtocolName = (typeof protocols)[number];
3
- export declare const isProtocolName: (protocol: string) => protocol is "CoreBridge" | "TokenBridge" | "NftBridge" | "Relayer" | "CCTP";
3
+ export declare const isProtocolName: (protocol: string) => protocol is "WormholeCore" | "TokenBridge" | "AutomaticTokenBridge" | "CircleBridge" | "AutomaticCircleBridge" | "Relayer" | "NftBridge";
4
4
  //# sourceMappingURL=protocols.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"protocols.d.ts","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS,wEAMZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc,aAAc,MAAM,gFACD,CAAC"}
1
+ {"version":3,"file":"protocols.d.ts","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS,mIASZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc,aAAc,MAAM,6IACD,CAAC"}
@@ -19,18 +19,21 @@
19
19
  * (notice the clash with EVM where bridge refers to the token bridge...).
20
20
  *
21
21
  * With all of this in mind: What should we name modules here?
22
- * My preferred choice would be ["CoreBridge", "TokenBridge", "NftBridge", "Relayer"]
22
+ * My preferred choice would be ["Wormholecore", "TokenBridge", "NftBridge", "Relayer"]
23
23
  * but ["Core", "TokenBridge", "NFTBridge", "WormholeRelayer"] seems to be more consistent given
24
24
  * current naming "conventions"
25
25
  */
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.isProtocolName = exports.protocols = void 0;
28
28
  exports.protocols = [
29
- "CoreBridge",
29
+ "WormholeCore",
30
30
  "TokenBridge",
31
- "NftBridge",
31
+ "AutomaticTokenBridge",
32
+ "CircleBridge",
33
+ "AutomaticCircleBridge",
32
34
  "Relayer",
33
- "CCTP",
35
+ // not implemented
36
+ "NftBridge",
34
37
  ];
35
38
  const isProtocolName = (protocol) => exports.protocols.includes(protocol);
36
39
  exports.isProtocolName = isProtocolName;
@@ -1 +1 @@
1
- {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEU,QAAA,SAAS,GAAG;IACvB,YAAY;IACZ,aAAa;IACb,WAAW;IACX,SAAS;IACT,MAAM;CACE,CAAC;AAGJ,MAAM,cAAc,GAAG,CAAC,QAAgB,EAA4B,EAAE,CAC3E,iBAAS,CAAC,QAAQ,CAAC,QAAwB,CAAC,CAAC;AADlC,QAAA,cAAc,kBACoB"}
1
+ {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEU,QAAA,SAAS,GAAG;IACvB,cAAc;IACd,aAAa;IACb,sBAAsB;IACtB,cAAc;IACd,uBAAuB;IACvB,SAAS;IACT,kBAAkB;IAClB,WAAW;CACH,CAAC;AAGJ,MAAM,cAAc,GAAG,CAAC,QAAgB,EAA4B,EAAE,CAC3E,iBAAS,CAAC,QAAQ,CAAC,QAAwB,CAAC,CAAC;AADlC,QAAA,cAAc,kBACoB"}
@@ -1,4 +1,4 @@
1
- export declare const protocols: readonly ["CoreBridge", "TokenBridge", "NftBridge", "Relayer", "CCTP"];
1
+ export declare const protocols: readonly ["WormholeCore", "TokenBridge", "AutomaticTokenBridge", "CircleBridge", "AutomaticCircleBridge", "Relayer", "NftBridge"];
2
2
  export type ProtocolName = (typeof protocols)[number];
3
- export declare const isProtocolName: (protocol: string) => protocol is "CoreBridge" | "TokenBridge" | "NftBridge" | "Relayer" | "CCTP";
3
+ export declare const isProtocolName: (protocol: string) => protocol is "WormholeCore" | "TokenBridge" | "AutomaticTokenBridge" | "CircleBridge" | "AutomaticCircleBridge" | "Relayer" | "NftBridge";
4
4
  //# sourceMappingURL=protocols.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"protocols.d.ts","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS,wEAMZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc,aAAc,MAAM,gFACD,CAAC"}
1
+ {"version":3,"file":"protocols.d.ts","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS,mIASZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc,aAAc,MAAM,6IACD,CAAC"}
@@ -18,16 +18,19 @@
18
18
  * (notice the clash with EVM where bridge refers to the token bridge...).
19
19
  *
20
20
  * With all of this in mind: What should we name modules here?
21
- * My preferred choice would be ["CoreBridge", "TokenBridge", "NftBridge", "Relayer"]
21
+ * My preferred choice would be ["Wormholecore", "TokenBridge", "NftBridge", "Relayer"]
22
22
  * but ["Core", "TokenBridge", "NFTBridge", "WormholeRelayer"] seems to be more consistent given
23
23
  * current naming "conventions"
24
24
  */
25
25
  export const protocols = [
26
- "CoreBridge",
26
+ "WormholeCore",
27
27
  "TokenBridge",
28
- "NftBridge",
28
+ "AutomaticTokenBridge",
29
+ "CircleBridge",
30
+ "AutomaticCircleBridge",
29
31
  "Relayer",
30
- "CCTP",
32
+ // not implemented
33
+ "NftBridge",
31
34
  ];
32
35
  export const isProtocolName = (protocol) => protocols.includes(protocol);
33
36
  //# sourceMappingURL=protocols.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,YAAY;IACZ,aAAa;IACb,WAAW;IACX,SAAS;IACT,MAAM;CACE,CAAC;AAGX,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAgB,EAA4B,EAAE,CAC3E,SAAS,CAAC,QAAQ,CAAC,QAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../src/constants/protocols.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,cAAc;IACd,aAAa;IACb,sBAAsB;IACtB,cAAc;IACd,uBAAuB;IACvB,SAAS;IACT,kBAAkB;IAClB,WAAW;CACH,CAAC;AAGX,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAgB,EAA4B,EAAE,CAC3E,SAAS,CAAC,QAAQ,CAAC,QAAwB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wormhole-foundation/sdk-base",
3
- "version": "0.1.8-beta.6",
3
+ "version": "0.1.8-beta.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/wormhole-foundation/connect-sdk.git"
@@ -18,17 +18,20 @@
18
18
  * (notice the clash with EVM where bridge refers to the token bridge...).
19
19
  *
20
20
  * With all of this in mind: What should we name modules here?
21
- * My preferred choice would be ["CoreBridge", "TokenBridge", "NftBridge", "Relayer"]
21
+ * My preferred choice would be ["Wormholecore", "TokenBridge", "NftBridge", "Relayer"]
22
22
  * but ["Core", "TokenBridge", "NFTBridge", "WormholeRelayer"] seems to be more consistent given
23
23
  * current naming "conventions"
24
24
  */
25
25
 
26
26
  export const protocols = [
27
- "CoreBridge",
27
+ "WormholeCore",
28
28
  "TokenBridge",
29
- "NftBridge",
29
+ "AutomaticTokenBridge",
30
+ "CircleBridge",
31
+ "AutomaticCircleBridge",
30
32
  "Relayer",
31
- "CCTP",
33
+ // not implemented
34
+ "NftBridge",
32
35
  ] as const;
33
36
 
34
37
  export type ProtocolName = (typeof protocols)[number];