near-safe 0.9.3 → 0.9.4
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/near-safe.d.ts +2 -0
- package/dist/cjs/near-safe.js +26 -0
- package/dist/esm/near-safe.d.ts +2 -0
- package/dist/esm/near-safe.js +26 -0
- package/package.json +1 -1
package/dist/cjs/near-safe.d.ts
CHANGED
@@ -170,4 +170,6 @@ export declare class NearSafe {
|
|
170
170
|
requestRouter({ method, chainId, params }: SignRequestData, sponsorshipPolicy?: string): Promise<EncodedSignRequest>;
|
171
171
|
encodeForSafe(from: string): boolean;
|
172
172
|
policyForChainId(chainId: number): Promise<SponsorshipPolicyData[]>;
|
173
|
+
deploymentRequest(chainId: number): SignRequestData;
|
174
|
+
addOwnerRequest(chainId: number, recoveryAddress: Address): SignRequestData;
|
173
175
|
}
|
package/dist/cjs/near-safe.js
CHANGED
@@ -350,5 +350,31 @@ class NearSafe {
|
|
350
350
|
const bundler = this.bundlerForChainId(chainId);
|
351
351
|
return bundler.getSponsorshipPolicies();
|
352
352
|
}
|
353
|
+
deploymentRequest(chainId) {
|
354
|
+
return {
|
355
|
+
method: "eth_sendTransaction",
|
356
|
+
chainId,
|
357
|
+
params: [
|
358
|
+
{
|
359
|
+
from: this.address,
|
360
|
+
to: viem_1.zeroAddress,
|
361
|
+
value: "0x0",
|
362
|
+
data: "0x",
|
363
|
+
},
|
364
|
+
],
|
365
|
+
};
|
366
|
+
}
|
367
|
+
addOwnerRequest(chainId, recoveryAddress) {
|
368
|
+
return {
|
369
|
+
method: "eth_sendTransaction",
|
370
|
+
chainId,
|
371
|
+
params: [{
|
372
|
+
from: this.address,
|
373
|
+
to: this.address,
|
374
|
+
value: "0x0",
|
375
|
+
data: new safe_1.SafeContractSuite().addOwnerData(recoveryAddress)
|
376
|
+
}],
|
377
|
+
};
|
378
|
+
}
|
353
379
|
}
|
354
380
|
exports.NearSafe = NearSafe;
|
package/dist/esm/near-safe.d.ts
CHANGED
@@ -170,4 +170,6 @@ export declare class NearSafe {
|
|
170
170
|
requestRouter({ method, chainId, params }: SignRequestData, sponsorshipPolicy?: string): Promise<EncodedSignRequest>;
|
171
171
|
encodeForSafe(from: string): boolean;
|
172
172
|
policyForChainId(chainId: number): Promise<SponsorshipPolicyData[]>;
|
173
|
+
deploymentRequest(chainId: number): SignRequestData;
|
174
|
+
addOwnerRequest(chainId: number, recoveryAddress: Address): SignRequestData;
|
173
175
|
}
|
package/dist/esm/near-safe.js
CHANGED
@@ -353,4 +353,30 @@ export class NearSafe {
|
|
353
353
|
const bundler = this.bundlerForChainId(chainId);
|
354
354
|
return bundler.getSponsorshipPolicies();
|
355
355
|
}
|
356
|
+
deploymentRequest(chainId) {
|
357
|
+
return {
|
358
|
+
method: "eth_sendTransaction",
|
359
|
+
chainId,
|
360
|
+
params: [
|
361
|
+
{
|
362
|
+
from: this.address,
|
363
|
+
to: zeroAddress,
|
364
|
+
value: "0x0",
|
365
|
+
data: "0x",
|
366
|
+
},
|
367
|
+
],
|
368
|
+
};
|
369
|
+
}
|
370
|
+
addOwnerRequest(chainId, recoveryAddress) {
|
371
|
+
return {
|
372
|
+
method: "eth_sendTransaction",
|
373
|
+
chainId,
|
374
|
+
params: [{
|
375
|
+
from: this.address,
|
376
|
+
to: this.address,
|
377
|
+
value: "0x0",
|
378
|
+
data: new SafeContractSuite().addOwnerData(recoveryAddress)
|
379
|
+
}],
|
380
|
+
};
|
381
|
+
}
|
356
382
|
}
|