@rabby-wallet/gnosis-sdk 1.3.9 → 1.3.10-alpha.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/dist/api.js CHANGED
@@ -62,6 +62,22 @@ const HOST_MAP = {
62
62
  * X Layer
63
63
  */
64
64
  "196": "https://safe-transaction-xlayer.safe.global/api/v1",
65
+ /**
66
+ * mantle
67
+ */
68
+ "5000": "https://safe-transaction-mantle.safe.global",
69
+ /**
70
+ * World Chain
71
+ */
72
+ "480": "https://safe-transaction-worldchain.safe.global",
73
+ /**
74
+ * blast
75
+ */
76
+ "81457": "https://safe-transaction-blast.safe.global",
77
+ /**
78
+ * Sonic
79
+ */
80
+ "146": "https://safe-transaction-sonic.safe.global",
65
81
  };
66
82
  export default class RequestProvider {
67
83
  constructor(networkId, adapter) {
package/dist/index.d.ts CHANGED
@@ -1,14 +1,13 @@
1
- import { Contract } from "ethers";
2
1
  import { BigNumber } from "@ethersproject/bignumber";
3
- import { providers } from "ethers";
4
- import { SafeTransactionDataPartial, SafeSignature } from "@gnosis.pm/safe-core-sdk-types";
5
- import { TransactionResult, TransactionOptions } from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/types";
2
+ import { SafeSignature, SafeTransactionDataPartial } from "@gnosis.pm/safe-core-sdk-types";
6
3
  import SafeTransaction from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/SafeTransaction";
7
- import SafeMessage from "@safe-global/protocol-kit/dist/src/utils/messages/SafeMessage";
8
- import RequestProvider, { SafeInfo } from "./api";
9
- import { AxiosAdapter } from "axios";
4
+ import { TransactionOptions, TransactionResult } from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/types";
10
5
  import SafeApiKit from "@safe-global/api-kit";
6
+ import SafeMessage from "@safe-global/protocol-kit/dist/src/utils/messages/SafeMessage";
11
7
  import { SafeClientResult } from "@safe-global/sdk-starter-kit";
8
+ import { AxiosAdapter } from "axios";
9
+ import { Contract, providers } from "ethers";
10
+ import RequestProvider, { SafeInfo } from "./api";
12
11
  declare class Safe {
13
12
  contract: Contract;
14
13
  safeAddress: string;
package/dist/index.js CHANGED
@@ -1,18 +1,16 @@
1
- import { Contract } from "ethers";
2
1
  import { BigNumber } from "@ethersproject/bignumber";
3
- import BN from "bignumber.js";
4
- import { getSafeSingletonDeployment } from "@safe-global/safe-deployments";
5
- import { toChecksumAddress } from "web3-utils";
6
2
  import SafeTransaction from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/SafeTransaction";
7
- import { hashSafeMessage, } from "@safe-global/protocol-kit";
8
- import RequestProvider from "./api";
9
- import { standardizeSafeTransactionData, sameString, generateSignature, generatePreValidatedSignature, estimateGasForTransactionExecution, } from "./utils";
10
- import { calculateSafeMessageHash, } from "@safe-global/protocol-kit/dist/src/utils";
11
3
  import SafeApiKit from "@safe-global/api-kit";
4
+ import { hashSafeMessage } from "@safe-global/protocol-kit";
5
+ import { calculateSafeMessageHash } from "@safe-global/protocol-kit/dist/src/utils";
6
+ import { getSafeSingletonDeployment } from "@safe-global/safe-deployments";
12
7
  import { SafeClientTxStatus } from "@safe-global/sdk-starter-kit/dist/src/constants";
13
8
  import { createSafeClientResult } from "@safe-global/sdk-starter-kit/dist/src/utils";
14
- const EQ_OR_GT_1_4_1 = ">=1.4.1";
15
- const EQ_OR_GT_1_3_0 = ">=1.3.0";
9
+ import BN from "bignumber.js";
10
+ import { Contract } from "ethers";
11
+ import { toChecksumAddress } from "web3-utils";
12
+ import RequestProvider from "./api";
13
+ import { estimateGasForTransactionExecution, generatePreValidatedSignature, generateSignature, sameString, standardizeSafeTransactionData, } from "./utils";
16
14
  class Safe {
17
15
  constructor(safeAddress, version, provider, network = "1") {
18
16
  this.owners = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/gnosis-sdk",
3
- "version": "1.3.9",
3
+ "version": "1.3.10-alpha.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -16,9 +16,9 @@
16
16
  "@ethersproject/solidity": "5.5.0",
17
17
  "@gnosis.pm/safe-core-sdk": "1.0.0",
18
18
  "@gnosis.pm/safe-core-sdk-types": "0.1.1",
19
- "@safe-global/api-kit": "2.5.2",
19
+ "@safe-global/api-kit": "2.5.6",
20
20
  "@safe-global/protocol-kit": "5.0.2",
21
- "@safe-global/safe-deployments": "1.37.2",
21
+ "@safe-global/safe-deployments": "1.37.22",
22
22
  "@safe-global/sdk-starter-kit": "1.0.2",
23
23
  "@safe-global/types-kit": "1.0.0",
24
24
  "axios": "0.24.0",
package/src/api.ts CHANGED
@@ -108,6 +108,23 @@ const HOST_MAP = {
108
108
  * X Layer
109
109
  */
110
110
  "196": "https://safe-transaction-xlayer.safe.global/api/v1",
111
+
112
+ /**
113
+ * mantle
114
+ */
115
+ "5000": "https://safe-transaction-mantle.safe.global",
116
+ /**
117
+ * World Chain
118
+ */
119
+ "480": "https://safe-transaction-worldchain.safe.global",
120
+ /**
121
+ * blast
122
+ */
123
+ "81457": "https://safe-transaction-blast.safe.global",
124
+ /**
125
+ * Sonic
126
+ */
127
+ "146": "https://safe-transaction-sonic.safe.global",
111
128
  };
112
129
 
113
130
  export default class RequestProvider {
package/src/index.ts CHANGED
@@ -1,62 +1,35 @@
1
- import { Contract, ethers } from "ethers";
2
1
  import { BigNumber } from "@ethersproject/bignumber";
3
- import BN from "bignumber.js";
4
- import { getSafeSingletonDeployment } from "@safe-global/safe-deployments";
5
- import { providers } from "ethers";
6
- import { toChecksumAddress } from "web3-utils";
7
2
  import {
8
- SafeTransactionDataPartial,
9
3
  SafeSignature,
4
+ SafeTransactionDataPartial,
10
5
  } from "@gnosis.pm/safe-core-sdk-types";
6
+ import SafeTransaction from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/SafeTransaction";
11
7
  import {
12
- TransactionResult,
13
8
  TransactionOptions,
9
+ TransactionResult,
14
10
  } from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/types";
15
- import SafeTransaction from "@gnosis.pm/safe-core-sdk/dist/src/utils/transactions/SafeTransaction";
16
- import SafeTransactionNew from "@safe-global/protocol-kit/dist/src/utils/transactions/SafeTransaction";
17
- import SafeMessage from "@safe-global/protocol-kit/dist/src/utils/messages/SafeMessage";
18
- import SafeProtocolKit, {
19
- generateEIP712Signature,
20
- hashSafeMessage,
21
- preimageSafeMessageHash,
22
- SafeProvider,
23
- SigningMethod,
24
- SigningMethodType,
25
- } from "@safe-global/protocol-kit";
26
- import RequestProvider, { SafeInfo } from "./api";
27
- import {
28
- standardizeSafeTransactionData,
29
- sameString,
30
- generateSignature,
31
- generatePreValidatedSignature,
32
- estimateGasForTransactionExecution,
33
- } from "./utils";
34
- import { AxiosAdapter } from "axios";
35
- import semverSatisfies from "semver/functions/satisfies";
36
- import {
37
- EIP712TypedData,
38
- SafeEIP712Args,
39
- SafeSignature as SafeSignatureNew,
40
- } from "@safe-global/types-kit";
41
- import {
42
- calculateSafeMessageHash,
43
- EthSafeSignature,
44
- generateSignature as generateSignatureNew,
45
- hasSafeFeature,
46
- SAFE_FEATURES,
47
- } from "@safe-global/protocol-kit/dist/src/utils";
48
11
  import SafeApiKit, {
49
12
  EIP712TypedData as ApiKitEIP712TypedData,
50
13
  } from "@safe-global/api-kit";
14
+ import { hashSafeMessage } from "@safe-global/protocol-kit";
15
+ import { calculateSafeMessageHash } from "@safe-global/protocol-kit/dist/src/utils";
16
+ import SafeMessage from "@safe-global/protocol-kit/dist/src/utils/messages/SafeMessage";
17
+ import { getSafeSingletonDeployment } from "@safe-global/safe-deployments";
18
+ import { SafeClientResult } from "@safe-global/sdk-starter-kit";
51
19
  import { SafeClientTxStatus } from "@safe-global/sdk-starter-kit/dist/src/constants";
52
20
  import { createSafeClientResult } from "@safe-global/sdk-starter-kit/dist/src/utils";
21
+ import { AxiosAdapter } from "axios";
22
+ import BN from "bignumber.js";
23
+ import { Contract, providers } from "ethers";
24
+ import { toChecksumAddress } from "web3-utils";
25
+ import RequestProvider, { SafeInfo } from "./api";
53
26
  import {
54
- SafeClientResult,
55
- SendOffChainMessageProps,
56
- } from "@safe-global/sdk-starter-kit";
57
-
58
- const EQ_OR_GT_1_4_1 = ">=1.4.1";
59
- const EQ_OR_GT_1_3_0 = ">=1.3.0";
27
+ estimateGasForTransactionExecution,
28
+ generatePreValidatedSignature,
29
+ generateSignature,
30
+ sameString,
31
+ standardizeSafeTransactionData,
32
+ } from "./utils";
60
33
 
61
34
  class Safe {
62
35
  contract: Contract;