@airgap/optimism 0.13.15-beta.11 → 0.13.15-beta.12

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/optimism",
3
- "version": "0.13.15-beta.11",
3
+ "version": "0.13.15-beta.12",
4
4
  "description": "The @airgap/optimism is an Optimism implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
5
5
  "keywords": [
6
6
  "airgap",
@@ -35,7 +35,7 @@ var OptimismProtocolImpl = /** @class */ (function (_super) {
35
35
  function OptimismProtocolImpl(options) {
36
36
  var completeOptions = createOptimismProtocolOptions(options.network);
37
37
  var nodeClient = new v1_1.AirGapNodeClient(completeOptions.network.rpcUrl);
38
- var infoClient = new v1_1.EtherscanInfoClient(completeOptions.network.blockExplorerApi);
38
+ var infoClient = new v1_1.EtherscanInfoClient(completeOptions.network.blockExplorerApi, completeOptions.network.blockExplorerApiKey);
39
39
  return _super.call(this, nodeClient, infoClient, {
40
40
  network: completeOptions.network,
41
41
  contractAddress: completeOptions.network.contractAddress,
@@ -64,7 +64,8 @@ exports.OPTIMISM_MAINNET_PROTOCOL_NETWORK = {
64
64
  rpcUrl: 'https://mainnet.optimism.io',
65
65
  chainId: 10,
66
66
  contractAddress: '0x4200000000000000000000000000000000000042',
67
- blockExplorerApi: 'https://explorer.optimism.io'
67
+ blockExplorerApi: 'https://api-optimistic.etherscan.io',
68
+ blockExplorerApiKey: 'WQC6EZP3IZU2I1JHVTREI3V3E8K4GYGPN8'
68
69
  };
69
70
  var DEFAULT_OPTIMISM_PROTOCOL_NETWORK = exports.OPTIMISM_MAINNET_PROTOCOL_NETWORK;
70
71
  function createOptimismProtocolOptions(network) {
@@ -1 +1 @@
1
- {"version":3,"file":"OptimismProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/OptimismProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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AO,EAAE,EAAE;IACX,eAAe,EAAE,4CAA4C;IAC7D,gBAAgB,EAAE,qCAAqC;IACvD,mBAAmB,EAAE,oCAAoC;CAC1D,CAAA;AAED,IAAM,iCAAiC,GAA4B,yCAAiC,CAAA;AAEpG,SAAgB,6BAA6B,CAAC,OAA8C;IAA9C,wBAAA,EAAA,YAA8C;IAC1F,OAAO;QACL,OAAO,wBAAO,iCAAiC,GAAK,OAAO,CAAE;KAC9D,CAAA;AACH,CAAC;AAJD,sEAIC"}
@@ -15,28 +15,25 @@
15
15
  "type": "string"
16
16
  },
17
17
  "transaction": {
18
- "$ref": "#/definitions/SerializableEthereumTypedUnsignedTransaction"
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "derivationPath": {
21
+ "type": "string"
22
+ },
23
+ "masterFingerprint": {
24
+ "type": "string"
25
+ },
26
+ "serialized": {
27
+ "$ref": "#/definitions/HexString",
28
+ "type": "string"
29
+ }
30
+ },
31
+ "required": ["derivationPath", "masterFingerprint", "serialized"],
32
+ "type": "object"
19
33
  }
20
34
  },
21
35
  "required": ["publicKey", "transaction"],
22
36
  "type": "object"
23
- },
24
- "SerializableEthereumTypedUnsignedTransaction": {
25
- "additionalProperties": false,
26
- "properties": {
27
- "derivationPath": {
28
- "type": "string"
29
- },
30
- "masterFingerprint": {
31
- "type": "string"
32
- },
33
- "serialized": {
34
- "$ref": "#/definitions/HexString",
35
- "type": "string"
36
- }
37
- },
38
- "required": ["derivationPath", "masterFingerprint", "serialized"],
39
- "type": "object"
40
37
  }
41
38
  }
42
39
  }
@@ -15,45 +15,42 @@
15
15
  "type": "string"
16
16
  },
17
17
  "transaction": {
18
- "$ref": "#/definitions/SerializableEthereumRawUnsignedTransaction"
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "chainId": {
21
+ "type": "number"
22
+ },
23
+ "data": {
24
+ "$ref": "#/definitions/HexString",
25
+ "type": "string"
26
+ },
27
+ "gasLimit": {
28
+ "$ref": "#/definitions/HexString",
29
+ "type": "string"
30
+ },
31
+ "gasPrice": {
32
+ "$ref": "#/definitions/HexString",
33
+ "type": "string"
34
+ },
35
+ "nonce": {
36
+ "$ref": "#/definitions/HexString",
37
+ "type": "string"
38
+ },
39
+ "to": {
40
+ "$ref": "#/definitions/HexString",
41
+ "type": "string"
42
+ },
43
+ "value": {
44
+ "$ref": "#/definitions/HexString",
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": ["chainId", "data", "gasLimit", "gasPrice", "nonce", "to", "value"],
49
+ "type": "object"
19
50
  }
20
51
  },
21
52
  "required": ["publicKey", "transaction"],
22
53
  "type": "object"
23
- },
24
- "SerializableEthereumRawUnsignedTransaction": {
25
- "additionalProperties": false,
26
- "properties": {
27
- "chainId": {
28
- "type": "number"
29
- },
30
- "data": {
31
- "$ref": "#/definitions/HexString",
32
- "type": "string"
33
- },
34
- "gasLimit": {
35
- "$ref": "#/definitions/HexString",
36
- "type": "string"
37
- },
38
- "gasPrice": {
39
- "$ref": "#/definitions/HexString",
40
- "type": "string"
41
- },
42
- "nonce": {
43
- "$ref": "#/definitions/HexString",
44
- "type": "string"
45
- },
46
- "to": {
47
- "$ref": "#/definitions/HexString",
48
- "type": "string"
49
- },
50
- "value": {
51
- "$ref": "#/definitions/HexString",
52
- "type": "string"
53
- }
54
- },
55
- "required": ["chainId", "data", "gasLimit", "gasPrice", "nonce", "to", "value"],
56
- "type": "object"
57
54
  }
58
55
  }
59
56
  }