@iexec/web3mail 2.0.0 → 2.0.1
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,13 +1,4 @@
|
|
|
1
1
|
import { Web3SignerProvider } from '../web3mail/types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Build an ethers signer for Node.js from a private key and an explicit chain.
|
|
4
|
-
*
|
|
5
|
-
* `host` must be provided (chain id or iExec chain host string). There is no default
|
|
6
|
-
* chain: omitting it used to fall back to Arbitrum Sepolia and could migrate users
|
|
7
|
-
* silently when defaults change.
|
|
8
|
-
*
|
|
9
|
-
* @see https://github.com/iExecBlockchainComputing/dataprotector-sdk/blob/dataprotector-v2.0.0-beta.27/packages/sdk/src/utils/getWeb3Provider.ts
|
|
10
|
-
*/
|
|
11
2
|
export declare const getWeb3Provider: (privateKey: string, host: number | string, options?: {
|
|
12
3
|
allowExperimentalNetworks?: boolean;
|
|
13
4
|
}) => Web3SignerProvider;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { getSignerFromPrivateKey } from 'iexec/utils';
|
|
2
|
-
/**
|
|
3
|
-
* Build an ethers signer for Node.js from a private key and an explicit chain.
|
|
4
|
-
*
|
|
5
|
-
* `host` must be provided (chain id or iExec chain host string). There is no default
|
|
6
|
-
* chain: omitting it used to fall back to Arbitrum Sepolia and could migrate users
|
|
7
|
-
* silently when defaults change.
|
|
8
|
-
*
|
|
9
|
-
* @see https://github.com/iExecBlockchainComputing/dataprotector-sdk/blob/dataprotector-v2.0.0-beta.27/packages/sdk/src/utils/getWeb3Provider.ts
|
|
10
|
-
*/
|
|
11
2
|
export const getWeb3Provider = (privateKey, host, options = {}) => getSignerFromPrivateKey(`${host}`, privateKey, {
|
|
12
3
|
allowExperimentalNetworks: options?.allowExperimentalNetworks,
|
|
13
4
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWeb3Provider.js","sourceRoot":"","sources":["../../src/utils/getWeb3Provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGtD
|
|
1
|
+
{"version":3,"file":"getWeb3Provider.js","sourceRoot":"","sources":["../../src/utils/getWeb3Provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAGtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,UAAkB,EAClB,IAAqB,EACrB,UAAmD,EAAE,EACjC,EAAE,CACtB,uBAAuB,CAAC,GAAG,IAAI,EAAE,EAAE,UAAU,EAAE;IAC7C,yBAAyB,EAAE,OAAO,EAAE,yBAAyB;CAC9D,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { getSignerFromPrivateKey } from 'iexec/utils';
|
|
2
2
|
import { Web3SignerProvider } from '../web3mail/types.js';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Build an ethers signer for Node.js from a private key and an explicit chain.
|
|
6
|
-
*
|
|
7
|
-
* `host` must be provided (chain id or iExec chain host string). There is no default
|
|
8
|
-
* chain: omitting it used to fall back to Arbitrum Sepolia and could migrate users
|
|
9
|
-
* silently when defaults change.
|
|
10
|
-
*
|
|
11
|
-
* @see https://github.com/iExecBlockchainComputing/dataprotector-sdk/blob/dataprotector-v2.0.0-beta.27/packages/sdk/src/utils/getWeb3Provider.ts
|
|
12
|
-
*/
|
|
13
4
|
export const getWeb3Provider = (
|
|
14
5
|
privateKey: string,
|
|
15
6
|
host: number | string,
|