@safe-global/sdk-starter-kit 2.0.0-alpha.0 → 2.0.0-alpha.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.
package/dist/cjs/index.cjs
CHANGED
|
@@ -44,6 +44,7 @@ var import_api_kit = __toESM(require("@safe-global/api-kit"));
|
|
|
44
44
|
var import_protocol_kit2 = require("@safe-global/protocol-kit");
|
|
45
45
|
|
|
46
46
|
// src/constants.ts
|
|
47
|
+
var DEFAULT_SAFE_MODULES_VERSION = "0.2.0";
|
|
47
48
|
var DEFAULT_DEPLOYMENT_TYPE = "canonical";
|
|
48
49
|
var TRANSACTION_EXECUTED = "The transaction has been executed, check the ethereumTxHash in the transactions property to view it on the corresponding blockchain explorer";
|
|
49
50
|
var TRANSACTION_SAVED = "The transaction was not executed on-chain yet. There are pending signatures and you need to confirm it with other Safe owners first. Use the confirm(safeTxHash) method with other signer connected to the client";
|
|
@@ -800,6 +801,7 @@ function safeOperations({ bundlerUrl }, paymasterOptions) {
|
|
|
800
801
|
const safe4337Pack = await import_relay_kit.Safe4337Pack.init({
|
|
801
802
|
provider,
|
|
802
803
|
signer,
|
|
804
|
+
safeModulesVersion: DEFAULT_SAFE_MODULES_VERSION,
|
|
803
805
|
bundlerUrl,
|
|
804
806
|
options,
|
|
805
807
|
paymasterOptions
|
package/dist/esm/index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import SafeApiKit from "@safe-global/api-kit";
|
|
|
6
6
|
import { validateEthereumAddress } from "@safe-global/protocol-kit";
|
|
7
7
|
|
|
8
8
|
// src/constants.ts
|
|
9
|
+
var DEFAULT_SAFE_MODULES_VERSION = "0.2.0";
|
|
9
10
|
var DEFAULT_DEPLOYMENT_TYPE = "canonical";
|
|
10
11
|
var TRANSACTION_EXECUTED = "The transaction has been executed, check the ethereumTxHash in the transactions property to view it on the corresponding blockchain explorer";
|
|
11
12
|
var TRANSACTION_SAVED = "The transaction was not executed on-chain yet. There are pending signatures and you need to confirm it with other Safe owners first. Use the confirm(safeTxHash) method with other signer connected to the client";
|
|
@@ -762,6 +763,7 @@ function safeOperations({ bundlerUrl }, paymasterOptions) {
|
|
|
762
763
|
const safe4337Pack = await Safe4337Pack.init({
|
|
763
764
|
provider,
|
|
764
765
|
signer,
|
|
766
|
+
safeModulesVersion: DEFAULT_SAFE_MODULES_VERSION,
|
|
765
767
|
bundlerUrl,
|
|
766
768
|
options,
|
|
767
769
|
paymasterOptions
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DeploymentType } from '@safe-global/protocol-kit';
|
|
2
|
+
export declare const DEFAULT_SAFE_MODULES_VERSION = "0.2.0";
|
|
2
3
|
export declare const DEFAULT_DEPLOYMENT_TYPE: DeploymentType;
|
|
3
4
|
export declare enum SafeClientTxStatus {
|
|
4
5
|
DEPLOYED_AND_EXECUTED = "DEPLOYED_AND_EXECUTED",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,eAAO,MAAM,uBAAuB,EAAE,cAA4B,CAAA;AAElE,oBAAY,kBAAkB;IAC5B,qBAAqB,0BAA0B;IAC/C,+BAA+B,oCAAoC;IACnE,QAAQ,aAAa;IACrB,kBAAkB,uBAAuB;IACzC,0BAA0B,+BAA+B;IACzD,iBAAiB,sBAAsB;IACvC,uCAAuC,4CAA4C;IACnF,8BAA8B,mCAAmC;IACjE,uBAAuB,4BAA4B;IACnD,iCAAiC,sCAAsC;CACxE;AAiBD,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWpB,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,eAAO,MAAM,4BAA4B,UAAU,CAAA;AAEnD,eAAO,MAAM,uBAAuB,EAAE,cAA4B,CAAA;AAElE,oBAAY,kBAAkB;IAC5B,qBAAqB,0BAA0B;IAC/C,+BAA+B,oCAAoC;IACnE,QAAQ,aAAa;IACrB,kBAAkB,uBAAuB;IACzC,0BAA0B,+BAA+B;IACzD,iBAAiB,sBAAsB;IACvC,uCAAuC,4CAA4C;IACnF,8BAA8B,mCAAmC;IACjE,uBAAuB,4BAA4B;IACnD,iCAAiC,sCAAsC;CACxE;AAiBD,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeOperations.d.ts","sourceRoot":"","sources":["../../../../src/extensions/safe-operations/safeOperations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wBAAwB,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AAEpE,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,oCAAoC,CAAA;
|
|
1
|
+
{"version":3,"file":"safeOperations.d.ts","sourceRoot":"","sources":["../../../../src/extensions/safe-operations/safeOperations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wBAAwB,CAAA;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AAEpE,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,oCAAoC,CAAA;AAG3C,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,EAAE,UAAU,EAAE,EAAE,cAAc,EAC9B,gBAAgB,CAAC,EAAE,gBAAgB,YAEb,UAAU;IAoC5B;;;;;;;;;OASG;6BAC4B,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAGjF;;;;;OAKG;gCAC+B,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAGvF;;;;;;;OAOG;uCACsC,WAAW,GAAG,OAAO,CAAC,4BAA4B,CAAC;GAKjG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@safe-global/sdk-starter-kit",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"description": "SDK that provides the basic tools to interact with the Safe Smart Account.",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"main": "dist/cjs/index.cjs",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@safe-global/api-kit": "^3.0.0-alpha.
|
|
49
|
-
"@safe-global/protocol-kit": "^6.0.0-alpha.
|
|
50
|
-
"@safe-global/relay-kit": "^4.0.0-alpha.
|
|
51
|
-
"@safe-global/types-kit": "^2.0.0-alpha.
|
|
48
|
+
"@safe-global/api-kit": "^3.0.0-alpha.1",
|
|
49
|
+
"@safe-global/protocol-kit": "^6.0.0-alpha.1",
|
|
50
|
+
"@safe-global/relay-kit": "^4.0.0-alpha.1",
|
|
51
|
+
"@safe-global/types-kit": "^2.0.0-alpha.1",
|
|
52
52
|
"viem": "^2.21.8"
|
|
53
53
|
}
|
|
54
54
|
}
|