@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.d.mts
CHANGED
|
@@ -9196,10 +9196,6 @@ declare class PublicModule extends BaseModule {
|
|
|
9196
9196
|
}
|
|
9197
9197
|
|
|
9198
9198
|
declare class TokenModule extends BaseModule {
|
|
9199
|
-
/**
|
|
9200
|
-
* Mint tokens (for testnet/mock tokens only)
|
|
9201
|
-
*/
|
|
9202
|
-
mint(token: Address, to: Address, amount: bigint): Promise<`0x${string}`>;
|
|
9203
9199
|
/**
|
|
9204
9200
|
* Approve a spender to spend tokens
|
|
9205
9201
|
*/
|
|
@@ -16855,25 +16851,6 @@ var ERC20 = [
|
|
|
16855
16851
|
],
|
|
16856
16852
|
stateMutability: "view"
|
|
16857
16853
|
},
|
|
16858
|
-
{
|
|
16859
|
-
type: "function",
|
|
16860
|
-
name: "mint",
|
|
16861
|
-
inputs: [
|
|
16862
|
-
{
|
|
16863
|
-
name: "to",
|
|
16864
|
-
type: "address",
|
|
16865
|
-
internalType: "address"
|
|
16866
|
-
},
|
|
16867
|
-
{
|
|
16868
|
-
name: "amount",
|
|
16869
|
-
type: "uint256",
|
|
16870
|
-
internalType: "uint256"
|
|
16871
|
-
}
|
|
16872
|
-
],
|
|
16873
|
-
outputs: [
|
|
16874
|
-
],
|
|
16875
|
-
stateMutability: "nonpayable"
|
|
16876
|
-
},
|
|
16877
16854
|
{
|
|
16878
16855
|
type: "function",
|
|
16879
16856
|
name: "name",
|
package/dist/index.d.ts
CHANGED
|
@@ -9196,10 +9196,6 @@ declare class PublicModule extends BaseModule {
|
|
|
9196
9196
|
}
|
|
9197
9197
|
|
|
9198
9198
|
declare class TokenModule extends BaseModule {
|
|
9199
|
-
/**
|
|
9200
|
-
* Mint tokens (for testnet/mock tokens only)
|
|
9201
|
-
*/
|
|
9202
|
-
mint(token: Address, to: Address, amount: bigint): Promise<`0x${string}`>;
|
|
9203
9199
|
/**
|
|
9204
9200
|
* Approve a spender to spend tokens
|
|
9205
9201
|
*/
|
|
@@ -16855,25 +16851,6 @@ var ERC20 = [
|
|
|
16855
16851
|
],
|
|
16856
16852
|
stateMutability: "view"
|
|
16857
16853
|
},
|
|
16858
|
-
{
|
|
16859
|
-
type: "function",
|
|
16860
|
-
name: "mint",
|
|
16861
|
-
inputs: [
|
|
16862
|
-
{
|
|
16863
|
-
name: "to",
|
|
16864
|
-
type: "address",
|
|
16865
|
-
internalType: "address"
|
|
16866
|
-
},
|
|
16867
|
-
{
|
|
16868
|
-
name: "amount",
|
|
16869
|
-
type: "uint256",
|
|
16870
|
-
internalType: "uint256"
|
|
16871
|
-
}
|
|
16872
|
-
],
|
|
16873
|
-
outputs: [
|
|
16874
|
-
],
|
|
16875
|
-
stateMutability: "nonpayable"
|
|
16876
|
-
},
|
|
16877
16854
|
{
|
|
16878
16855
|
type: "function",
|
|
16879
16856
|
name: "name",
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var CONTRACT_ADDRESSES = {
|
|
|
9
9
|
[chains.baseSepolia.id]: {
|
|
10
10
|
diamond: "0x31a4126aec35b36d46dd371eb0f0d5b71e1c2292",
|
|
11
11
|
conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
|
|
12
|
-
usdc: "
|
|
12
|
+
usdc: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
|
|
13
13
|
subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base-sepolia/version/latest"
|
|
14
14
|
},
|
|
15
15
|
[chains.base.id]: {
|
|
@@ -6708,24 +6708,6 @@ var ERC20_default = [
|
|
|
6708
6708
|
],
|
|
6709
6709
|
stateMutability: "view"
|
|
6710
6710
|
},
|
|
6711
|
-
{
|
|
6712
|
-
type: "function",
|
|
6713
|
-
name: "mint",
|
|
6714
|
-
inputs: [
|
|
6715
|
-
{
|
|
6716
|
-
name: "to",
|
|
6717
|
-
type: "address",
|
|
6718
|
-
internalType: "address"
|
|
6719
|
-
},
|
|
6720
|
-
{
|
|
6721
|
-
name: "amount",
|
|
6722
|
-
type: "uint256",
|
|
6723
|
-
internalType: "uint256"
|
|
6724
|
-
}
|
|
6725
|
-
],
|
|
6726
|
-
outputs: [],
|
|
6727
|
-
stateMutability: "nonpayable"
|
|
6728
|
-
},
|
|
6729
6711
|
{
|
|
6730
6712
|
type: "function",
|
|
6731
6713
|
name: "name",
|
|
@@ -10312,21 +10294,6 @@ var PublicModule = class extends BaseModule {
|
|
|
10312
10294
|
|
|
10313
10295
|
// src/modules/token.ts
|
|
10314
10296
|
var TokenModule = class extends BaseModule {
|
|
10315
|
-
/**
|
|
10316
|
-
* Mint tokens (for testnet/mock tokens only)
|
|
10317
|
-
*/
|
|
10318
|
-
async mint(token, to, amount) {
|
|
10319
|
-
const wallet = this.walletClient;
|
|
10320
|
-
const account = await this.getSignerAccount();
|
|
10321
|
-
const { request } = await this.publicClient.simulateContract({
|
|
10322
|
-
address: token,
|
|
10323
|
-
abi: ERC20_default,
|
|
10324
|
-
functionName: "mint",
|
|
10325
|
-
args: [to, amount],
|
|
10326
|
-
account
|
|
10327
|
-
});
|
|
10328
|
-
return wallet.writeContract(request);
|
|
10329
|
-
}
|
|
10330
10297
|
/**
|
|
10331
10298
|
* Approve a spender to spend tokens
|
|
10332
10299
|
*/
|