Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .husky/pre-commit

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"clean": "$INIT_CWD/scripts/bin/clean.ts",
"lint": "$INIT_CWD/scripts/bin/lint.ts",
"test": "$INIT_CWD/scripts/bin/test.ts",
"scaffold": "$INIT_CWD/scripts/bin/scaffold/run.tsx",
"postinstall": "husky install"
"scaffold": "$INIT_CWD/scripts/bin/scaffold/run.tsx"
},
"devDependencies": {
"@babel/core": "^7.26.10",
Expand Down Expand Up @@ -49,7 +48,6 @@
"fs-extra": "^10.0.0",
"globals": "^15.12.0",
"gzip-size": "^6.0.0",
"husky": "^7.0.1",
"inquirer": "^8.1.2",
"is-ci": "^3.0.0",
"jest": "^29.7.0",
Expand Down
8 changes: 0 additions & 8 deletions packages/@magic-sdk/provider/src/modules/wallet.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import {
GasApiResponse,
MagicPayloadMethod,
GaslessTransactionRequest,
ConnectWithUIOptions,
ConnectWithUiEvents,
ShowUIPromiEvents,
Expand Down Expand Up @@ -73,12 +71,6 @@ export class WalletModule extends BaseModule {
return this.request<boolean>(createJsonRpcRequestPayload(MagicPayloadMethod.ShowBalances));
}

public sendGaslessTransaction(address: string, transaction: GaslessTransactionRequest) {
return this.request<GasApiResponse>(
createJsonRpcRequestPayload(MagicPayloadMethod.SendGaslessTransaction, [address, transaction]),
);
}

/**
* Sign an EIP-7702 authorization to delegate the EOA to a smart contract implementation.
* This enables account abstraction features for externally owned accounts.
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/@magic-sdk/types/src/core/json-rpc-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export enum MagicPayloadMethod {
ShowSendTokensUI = 'magic_show_send_tokens_ui',
ShowAddress = 'magic_show_address',
ShowBalances = 'magic_show_balances',
SendGaslessTransaction = 'eth_sendGaslessTransaction',
RevealPK = 'magic_reveal_key',
EnableMFA = 'magic_auth_enable_mfa_flow',
DisableMFA = 'magic_auth_disable_mfa_flow',
Expand Down
81 changes: 0 additions & 81 deletions packages/@magic-sdk/types/src/modules/wallet-types.ts
Original file line number Diff line number Diff line change
@@ -1,91 +1,10 @@
export type GasApiResponse = {
request_id: string;
state: string;
success: boolean;
};

export type AccessListEntry = { address: string; storageKeys: Array<string> };

/**
* An ordered collection of [[AccessList]] entries.
*/
export type AccessList = Array<AccessListEntry>;

export interface GaslessTransactionRequest {
/**
* The transaction type.
*/
type?: number;

/**
* The target of the transaction.
*/
to?: string;

/**
* The sender of the transaction.
*/
from?: string;

/**
* The nonce of the transaction, used to prevent replay attacks.
*/

nonce?: number;

/**
* The maximum amount of gas to allow this transaction to consume.
*/
gasLimit?: bigint;

/**
* The gas price to use for legacy transactions or transactions on
* legacy networks.
*
* Most of the time the ``max*FeePerGas`` is preferred.
*/
gasPrice?: bigint;

/**
* The [[link-eip-1559]] maximum priority fee to pay per gas.
*/
maxPriorityFeePerGas?: bigint;

/**
* The [[link-eip-1559]] maximum total fee to pay per gas. The actual
* value used is protocol enforced to be the block's base fee.
*/
maxFeePerGas?: bigint;

/**
* The transaction data.
*/
data?: string;

/**
* The transaction value (in wei).
*/
value?: bigint;

/**
* The chain ID for the network this transaction is valid on.
*/
chainId?: bigint;

/**
* The [[link-eip-2930]] access list. Storage slots included in the access
* list are //warmed// by pre-loading them, so their initial cost to
* fetch is guaranteed, but then each additional access is cheaper.
*/
accessList?: AccessList;

/**
* A custom object, which can be passed along for network-specific
* values.
*/
customData?: any;
}

export enum WalletEventOnReceived {
WalletInfoFetched = 'Wallet/wallet-info-fetched',
}
Expand Down
20 changes: 5 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3558,12 +3558,12 @@ __metadata:
languageName: unknown
linkType: soft

"@magic-sdk/provider@^33.1.1, @magic-sdk/provider@workspace:packages/@magic-sdk/provider":
"@magic-sdk/provider@^33.2.0, @magic-sdk/provider@workspace:packages/@magic-sdk/provider":
version: 0.0.0-use.local
resolution: "@magic-sdk/provider@workspace:packages/@magic-sdk/provider"
dependencies:
"@babel/plugin-transform-modules-commonjs": ^7.9.6
"@magic-sdk/types": ^27.1.0
"@magic-sdk/types": ^27.2.0
eventemitter3: ^4.0.4
localforage: ^1.7.4
tslib: ^2.3.1
Expand Down Expand Up @@ -3736,7 +3736,7 @@ __metadata:
languageName: unknown
linkType: soft

"@magic-sdk/types@^27.1.0, @magic-sdk/types@workspace:packages/@magic-sdk/types":
"@magic-sdk/types@^27.2.0, @magic-sdk/types@workspace:packages/@magic-sdk/types":
version: 0.0.0-use.local
resolution: "@magic-sdk/types@workspace:packages/@magic-sdk/types"
languageName: unknown
Expand Down Expand Up @@ -12211,15 +12211,6 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^7.0.1":
version: 7.0.4
resolution: "husky@npm:7.0.4"
bin:
husky: lib/bin.js
checksum: c6ec4af63da2c9522da8674a20ad9b48362cc92704896cc8a58c6a2a39d797feb2b806f93fbd83a6d653fbdceb2c3b6e0b602c6b2e8565206ffc2882ef7db9e9
languageName: node
linkType: hard

"iconv-lite@npm:0.6.3, iconv-lite@npm:^0.6.2":
version: 0.6.3
resolution: "iconv-lite@npm:0.6.3"
Expand Down Expand Up @@ -14788,7 +14779,6 @@ __metadata:
fs-extra: ^10.0.0
globals: ^15.12.0
gzip-size: ^6.0.0
husky: ^7.0.1
inquirer: ^8.1.2
is-ci: ^3.0.0
jest: ^29.7.0
Expand Down Expand Up @@ -14821,8 +14811,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "magic-sdk@workspace:packages/magic-sdk"
dependencies:
"@magic-sdk/provider": ^33.1.1
"@magic-sdk/types": ^27.1.0
"@magic-sdk/provider": ^33.2.0
"@magic-sdk/types": ^27.2.0
localforage: ^1.7.4
languageName: unknown
linkType: soft
Expand Down