@oddmaki-protocol/sdk 1.5.0 → 1.6.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/index.d.mts +0 -23
- package/dist/index.d.ts +0 -23
- package/dist/index.js +1 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ var CONTRACT_ADDRESSES = {
|
|
|
7
7
|
[baseSepolia.id]: {
|
|
8
8
|
diamond: "0x31a4126aec35b36d46dd371eb0f0d5b71e1c2292",
|
|
9
9
|
conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
|
|
10
|
-
usdc: "
|
|
10
|
+
usdc: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
|
11
11
|
subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base-sepolia/version/latest"
|
|
12
12
|
},
|
|
13
13
|
[base.id]: {
|
|
@@ -6706,24 +6706,6 @@ var ERC20_default = [
|
|
|
6706
6706
|
],
|
|
6707
6707
|
stateMutability: "view"
|
|
6708
6708
|
},
|
|
6709
|
-
{
|
|
6710
|
-
type: "function",
|
|
6711
|
-
name: "mint",
|
|
6712
|
-
inputs: [
|
|
6713
|
-
{
|
|
6714
|
-
name: "to",
|
|
6715
|
-
type: "address",
|
|
6716
|
-
internalType: "address"
|
|
6717
|
-
},
|
|
6718
|
-
{
|
|
6719
|
-
name: "amount",
|
|
6720
|
-
type: "uint256",
|
|
6721
|
-
internalType: "uint256"
|
|
6722
|
-
}
|
|
6723
|
-
],
|
|
6724
|
-
outputs: [],
|
|
6725
|
-
stateMutability: "nonpayable"
|
|
6726
|
-
},
|
|
6727
6709
|
{
|
|
6728
6710
|
type: "function",
|
|
6729
6711
|
name: "name",
|
|
@@ -10310,21 +10292,6 @@ var PublicModule = class extends BaseModule {
|
|
|
10310
10292
|
|
|
10311
10293
|
// src/modules/token.ts
|
|
10312
10294
|
var TokenModule = class extends BaseModule {
|
|
10313
|
-
/**
|
|
10314
|
-
* Mint tokens (for testnet/mock tokens only)
|
|
10315
|
-
*/
|
|
10316
|
-
async mint(token, to, amount) {
|
|
10317
|
-
const wallet = this.walletClient;
|
|
10318
|
-
const account = await this.getSignerAccount();
|
|
10319
|
-
const { request } = await this.publicClient.simulateContract({
|
|
10320
|
-
address: token,
|
|
10321
|
-
abi: ERC20_default,
|
|
10322
|
-
functionName: "mint",
|
|
10323
|
-
args: [to, amount],
|
|
10324
|
-
account
|
|
10325
|
-
});
|
|
10326
|
-
return wallet.writeContract(request);
|
|
10327
|
-
}
|
|
10328
10295
|
/**
|
|
10329
10296
|
* Approve a spender to spend tokens
|
|
10330
10297
|
*/
|