signet.js 0.0.10-beta5 → 0.0.10-beta6
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/browser/index.browser.cjs +2 -2
- package/browser/index.browser.cjs.map +1 -1
- package/browser/index.browser.js +2 -2
- package/browser/index.browser.js.map +1 -1
- package/node/index.node.cjs +2 -2
- package/node/index.node.cjs.map +1 -1
- package/node/index.node.js +2 -2
- package/node/index.node.js.map +1 -1
- package/package.json +3 -1
- package/types/index.d.cts +4 -1
- package/types/index.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signet.js",
|
|
3
|
-
"version": "0.0.10-
|
|
3
|
+
"version": "0.0.10-beta6",
|
|
4
4
|
"description": "A TypeScript library for handling multi-chain transactions and signatures using Signet MPC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"vocs": "1.0.0-alpha.62"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
+
"@coral-xyz/anchor": "^0.31.0",
|
|
85
86
|
"@cosmjs/amino": "^0.32.4",
|
|
86
87
|
"@cosmjs/crypto": "^0.32.4",
|
|
87
88
|
"@cosmjs/encoding": "^0.32.4",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"@near-js/types": "^0.3.1",
|
|
96
97
|
"@near-wallet-selector/core": "^8.9.5",
|
|
97
98
|
"@scure/base": "^1.2.4",
|
|
99
|
+
"@solana/web3.js": "^1.98.0",
|
|
98
100
|
"bech32": "^2.0.0",
|
|
99
101
|
"bitcoinjs-lib": "^6.1.5",
|
|
100
102
|
"bn.js": "^5.2.1",
|
package/types/index.d.cts
CHANGED
|
@@ -104,10 +104,12 @@ declare const ENVS: {
|
|
|
104
104
|
readonly TESTNET_DEV: "TESTNET_DEV";
|
|
105
105
|
readonly TESTNET: "TESTNET";
|
|
106
106
|
readonly MAINNET: "MAINNET";
|
|
107
|
+
readonly SOLANA_STUB: "SOLANA_STUB";
|
|
107
108
|
};
|
|
108
109
|
declare const CHAINS: {
|
|
109
110
|
readonly ETHEREUM: "ETHEREUM";
|
|
110
111
|
readonly NEAR: "NEAR";
|
|
112
|
+
readonly SOLANA: "SOLANA";
|
|
111
113
|
};
|
|
112
114
|
/**
|
|
113
115
|
* Root public keys for the Sig Network Smart Contracts across different environments.
|
|
@@ -124,6 +126,7 @@ declare const ROOT_PUBLIC_KEYS: Record<keyof typeof ENVS, NajPublicKey>;
|
|
|
124
126
|
declare const KDF_CHAIN_IDS: {
|
|
125
127
|
readonly ETHEREUM: "0x1";
|
|
126
128
|
readonly NEAR: "0x18d";
|
|
129
|
+
readonly SOLANA: "0x800001f5";
|
|
127
130
|
};
|
|
128
131
|
/**
|
|
129
132
|
* Contract addresses for different chains and environments.
|
|
@@ -134,7 +137,7 @@ declare const KDF_CHAIN_IDS: {
|
|
|
134
137
|
*
|
|
135
138
|
* @see ChainSignatureContract documentation for implementation details
|
|
136
139
|
*/
|
|
137
|
-
declare const CONTRACT_ADDRESSES: Record<keyof typeof CHAINS, Record<keyof typeof ENVS, string
|
|
140
|
+
declare const CONTRACT_ADDRESSES: Record<keyof typeof CHAINS, Partial<Record<keyof typeof ENVS, string>>>;
|
|
138
141
|
|
|
139
142
|
declare const constants_CHAINS: typeof CHAINS;
|
|
140
143
|
declare const constants_CONTRACT_ADDRESSES: typeof CONTRACT_ADDRESSES;
|
package/types/index.d.ts
CHANGED
|
@@ -104,10 +104,12 @@ declare const ENVS: {
|
|
|
104
104
|
readonly TESTNET_DEV: "TESTNET_DEV";
|
|
105
105
|
readonly TESTNET: "TESTNET";
|
|
106
106
|
readonly MAINNET: "MAINNET";
|
|
107
|
+
readonly SOLANA_STUB: "SOLANA_STUB";
|
|
107
108
|
};
|
|
108
109
|
declare const CHAINS: {
|
|
109
110
|
readonly ETHEREUM: "ETHEREUM";
|
|
110
111
|
readonly NEAR: "NEAR";
|
|
112
|
+
readonly SOLANA: "SOLANA";
|
|
111
113
|
};
|
|
112
114
|
/**
|
|
113
115
|
* Root public keys for the Sig Network Smart Contracts across different environments.
|
|
@@ -124,6 +126,7 @@ declare const ROOT_PUBLIC_KEYS: Record<keyof typeof ENVS, NajPublicKey>;
|
|
|
124
126
|
declare const KDF_CHAIN_IDS: {
|
|
125
127
|
readonly ETHEREUM: "0x1";
|
|
126
128
|
readonly NEAR: "0x18d";
|
|
129
|
+
readonly SOLANA: "0x800001f5";
|
|
127
130
|
};
|
|
128
131
|
/**
|
|
129
132
|
* Contract addresses for different chains and environments.
|
|
@@ -134,7 +137,7 @@ declare const KDF_CHAIN_IDS: {
|
|
|
134
137
|
*
|
|
135
138
|
* @see ChainSignatureContract documentation for implementation details
|
|
136
139
|
*/
|
|
137
|
-
declare const CONTRACT_ADDRESSES: Record<keyof typeof CHAINS, Record<keyof typeof ENVS, string
|
|
140
|
+
declare const CONTRACT_ADDRESSES: Record<keyof typeof CHAINS, Partial<Record<keyof typeof ENVS, string>>>;
|
|
138
141
|
|
|
139
142
|
declare const constants_CHAINS: typeof CHAINS;
|
|
140
143
|
declare const constants_CONTRACT_ADDRESSES: typeof CONTRACT_ADDRESSES;
|