@zubari/sdk 0.1.29 → 0.2.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.
@@ -3,7 +3,7 @@ import * as node_modules_viem__types_utils_ccip from 'node_modules/viem/_types/u
3
3
  import * as viem from 'viem';
4
4
  import { HDNodeWallet } from 'ethers';
5
5
  import { S as SecureStorageAdapter } from './SecureStorage-jO783AhC.mjs';
6
- import { N as NetworkType } from './index-IPLQBUaD.mjs';
6
+ import { N as NetworkType } from './index-Be7yLGAO.mjs';
7
7
 
8
8
  interface NetworkConfig {
9
9
  name: string;
@@ -789,10 +789,10 @@ declare class WalletManager {
789
789
  getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
790
790
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
791
791
  number: blockTag extends "pending" ? null : bigint;
792
+ nonce: blockTag extends "pending" ? null : `0x${string}`;
792
793
  hash: blockTag extends "pending" ? null : `0x${string}`;
793
794
  gasUsed: bigint;
794
795
  timestamp: bigint;
795
- nonce: blockTag extends "pending" ? null : `0x${string}`;
796
796
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
797
797
  baseFeePerGas: bigint | null;
798
798
  blobGasUsed: bigint;
@@ -816,6 +816,7 @@ declare class WalletManager {
816
816
  withdrawalsRoot?: `0x${string}` | undefined;
817
817
  transactions: includeTransactions extends true ? ({
818
818
  chainId?: number | undefined;
819
+ nonce: number;
819
820
  to: viem.Address | null;
820
821
  hash: viem.Hash;
821
822
  from: viem.Address;
@@ -823,7 +824,6 @@ declare class WalletManager {
823
824
  yParity?: undefined | undefined;
824
825
  gas: bigint;
825
826
  input: viem.Hex;
826
- nonce: number;
827
827
  r: viem.Hex;
828
828
  s: viem.Hex;
829
829
  typeHex: viem.Hex | null;
@@ -841,6 +841,7 @@ declare class WalletManager {
841
841
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
842
842
  } | {
843
843
  chainId: number;
844
+ nonce: number;
844
845
  to: viem.Address | null;
845
846
  hash: viem.Hash;
846
847
  from: viem.Address;
@@ -848,7 +849,6 @@ declare class WalletManager {
848
849
  yParity: number;
849
850
  gas: bigint;
850
851
  input: viem.Hex;
851
- nonce: number;
852
852
  r: viem.Hex;
853
853
  s: viem.Hex;
854
854
  typeHex: viem.Hex | null;
@@ -866,6 +866,7 @@ declare class WalletManager {
866
866
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
867
867
  } | {
868
868
  chainId: number;
869
+ nonce: number;
869
870
  to: viem.Address | null;
870
871
  hash: viem.Hash;
871
872
  from: viem.Address;
@@ -873,7 +874,6 @@ declare class WalletManager {
873
874
  yParity: number;
874
875
  gas: bigint;
875
876
  input: viem.Hex;
876
- nonce: number;
877
877
  r: viem.Hex;
878
878
  s: viem.Hex;
879
879
  typeHex: viem.Hex | null;
@@ -891,6 +891,7 @@ declare class WalletManager {
891
891
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
892
892
  } | {
893
893
  chainId: number;
894
+ nonce: number;
894
895
  to: viem.Address | null;
895
896
  hash: viem.Hash;
896
897
  from: viem.Address;
@@ -898,7 +899,6 @@ declare class WalletManager {
898
899
  yParity: number;
899
900
  gas: bigint;
900
901
  input: viem.Hex;
901
- nonce: number;
902
902
  r: viem.Hex;
903
903
  s: viem.Hex;
904
904
  typeHex: viem.Hex | null;
@@ -916,6 +916,7 @@ declare class WalletManager {
916
916
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
917
917
  } | {
918
918
  chainId: number;
919
+ nonce: number;
919
920
  to: viem.Address | null;
920
921
  hash: viem.Hash;
921
922
  from: viem.Address;
@@ -923,7 +924,6 @@ declare class WalletManager {
923
924
  yParity: number;
924
925
  gas: bigint;
925
926
  input: viem.Hex;
926
- nonce: number;
927
927
  r: viem.Hex;
928
928
  s: viem.Hex;
929
929
  typeHex: viem.Hex | null;
@@ -1062,6 +1062,7 @@ declare class WalletManager {
1062
1062
  getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
1063
1063
  getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
1064
1064
  chainId?: number | undefined;
1065
+ nonce: number;
1065
1066
  to: viem.Address | null;
1066
1067
  hash: viem.Hash;
1067
1068
  from: viem.Address;
@@ -1069,7 +1070,6 @@ declare class WalletManager {
1069
1070
  yParity?: undefined | undefined;
1070
1071
  gas: bigint;
1071
1072
  input: viem.Hex;
1072
- nonce: number;
1073
1073
  r: viem.Hex;
1074
1074
  s: viem.Hex;
1075
1075
  typeHex: viem.Hex | null;
@@ -1087,6 +1087,7 @@ declare class WalletManager {
1087
1087
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
1088
1088
  } | {
1089
1089
  chainId: number;
1090
+ nonce: number;
1090
1091
  to: viem.Address | null;
1091
1092
  hash: viem.Hash;
1092
1093
  from: viem.Address;
@@ -1094,7 +1095,6 @@ declare class WalletManager {
1094
1095
  yParity: number;
1095
1096
  gas: bigint;
1096
1097
  input: viem.Hex;
1097
- nonce: number;
1098
1098
  r: viem.Hex;
1099
1099
  s: viem.Hex;
1100
1100
  typeHex: viem.Hex | null;
@@ -1112,6 +1112,7 @@ declare class WalletManager {
1112
1112
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
1113
1113
  } | {
1114
1114
  chainId: number;
1115
+ nonce: number;
1115
1116
  to: viem.Address | null;
1116
1117
  hash: viem.Hash;
1117
1118
  from: viem.Address;
@@ -1119,7 +1120,6 @@ declare class WalletManager {
1119
1120
  yParity: number;
1120
1121
  gas: bigint;
1121
1122
  input: viem.Hex;
1122
- nonce: number;
1123
1123
  r: viem.Hex;
1124
1124
  s: viem.Hex;
1125
1125
  typeHex: viem.Hex | null;
@@ -1137,6 +1137,7 @@ declare class WalletManager {
1137
1137
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
1138
1138
  } | {
1139
1139
  chainId: number;
1140
+ nonce: number;
1140
1141
  to: viem.Address | null;
1141
1142
  hash: viem.Hash;
1142
1143
  from: viem.Address;
@@ -1144,7 +1145,6 @@ declare class WalletManager {
1144
1145
  yParity: number;
1145
1146
  gas: bigint;
1146
1147
  input: viem.Hex;
1147
- nonce: number;
1148
1148
  r: viem.Hex;
1149
1149
  s: viem.Hex;
1150
1150
  typeHex: viem.Hex | null;
@@ -1162,6 +1162,7 @@ declare class WalletManager {
1162
1162
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
1163
1163
  } | {
1164
1164
  chainId: number;
1165
+ nonce: number;
1165
1166
  to: viem.Address | null;
1166
1167
  hash: viem.Hash;
1167
1168
  from: viem.Address;
@@ -1169,7 +1170,6 @@ declare class WalletManager {
1169
1170
  yParity: number;
1170
1171
  gas: bigint;
1171
1172
  input: viem.Hex;
1172
- nonce: number;
1173
1173
  r: viem.Hex;
1174
1174
  s: viem.Hex;
1175
1175
  typeHex: viem.Hex | null;
@@ -5018,7 +5018,7 @@ declare class WalletManager {
5018
5018
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
5019
5019
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
5020
5020
  chainId?: number | undefined;
5021
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
5021
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
5022
5022
  readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
5023
5023
  sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
5024
5024
  sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
@@ -3,7 +3,7 @@ import * as node_modules_viem__types_utils_ccip from 'node_modules/viem/_types/u
3
3
  import * as viem from 'viem';
4
4
  import { HDNodeWallet } from 'ethers';
5
5
  import { S as SecureStorageAdapter } from './SecureStorage-jO783AhC.js';
6
- import { N as NetworkType } from './index-IPLQBUaD.js';
6
+ import { N as NetworkType } from './index-Be7yLGAO.js';
7
7
 
8
8
  interface NetworkConfig {
9
9
  name: string;
@@ -789,10 +789,10 @@ declare class WalletManager {
789
789
  getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
790
790
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
791
791
  number: blockTag extends "pending" ? null : bigint;
792
+ nonce: blockTag extends "pending" ? null : `0x${string}`;
792
793
  hash: blockTag extends "pending" ? null : `0x${string}`;
793
794
  gasUsed: bigint;
794
795
  timestamp: bigint;
795
- nonce: blockTag extends "pending" ? null : `0x${string}`;
796
796
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
797
797
  baseFeePerGas: bigint | null;
798
798
  blobGasUsed: bigint;
@@ -816,6 +816,7 @@ declare class WalletManager {
816
816
  withdrawalsRoot?: `0x${string}` | undefined;
817
817
  transactions: includeTransactions extends true ? ({
818
818
  chainId?: number | undefined;
819
+ nonce: number;
819
820
  to: viem.Address | null;
820
821
  hash: viem.Hash;
821
822
  from: viem.Address;
@@ -823,7 +824,6 @@ declare class WalletManager {
823
824
  yParity?: undefined | undefined;
824
825
  gas: bigint;
825
826
  input: viem.Hex;
826
- nonce: number;
827
827
  r: viem.Hex;
828
828
  s: viem.Hex;
829
829
  typeHex: viem.Hex | null;
@@ -841,6 +841,7 @@ declare class WalletManager {
841
841
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
842
842
  } | {
843
843
  chainId: number;
844
+ nonce: number;
844
845
  to: viem.Address | null;
845
846
  hash: viem.Hash;
846
847
  from: viem.Address;
@@ -848,7 +849,6 @@ declare class WalletManager {
848
849
  yParity: number;
849
850
  gas: bigint;
850
851
  input: viem.Hex;
851
- nonce: number;
852
852
  r: viem.Hex;
853
853
  s: viem.Hex;
854
854
  typeHex: viem.Hex | null;
@@ -866,6 +866,7 @@ declare class WalletManager {
866
866
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
867
867
  } | {
868
868
  chainId: number;
869
+ nonce: number;
869
870
  to: viem.Address | null;
870
871
  hash: viem.Hash;
871
872
  from: viem.Address;
@@ -873,7 +874,6 @@ declare class WalletManager {
873
874
  yParity: number;
874
875
  gas: bigint;
875
876
  input: viem.Hex;
876
- nonce: number;
877
877
  r: viem.Hex;
878
878
  s: viem.Hex;
879
879
  typeHex: viem.Hex | null;
@@ -891,6 +891,7 @@ declare class WalletManager {
891
891
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
892
892
  } | {
893
893
  chainId: number;
894
+ nonce: number;
894
895
  to: viem.Address | null;
895
896
  hash: viem.Hash;
896
897
  from: viem.Address;
@@ -898,7 +899,6 @@ declare class WalletManager {
898
899
  yParity: number;
899
900
  gas: bigint;
900
901
  input: viem.Hex;
901
- nonce: number;
902
902
  r: viem.Hex;
903
903
  s: viem.Hex;
904
904
  typeHex: viem.Hex | null;
@@ -916,6 +916,7 @@ declare class WalletManager {
916
916
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
917
917
  } | {
918
918
  chainId: number;
919
+ nonce: number;
919
920
  to: viem.Address | null;
920
921
  hash: viem.Hash;
921
922
  from: viem.Address;
@@ -923,7 +924,6 @@ declare class WalletManager {
923
924
  yParity: number;
924
925
  gas: bigint;
925
926
  input: viem.Hex;
926
- nonce: number;
927
927
  r: viem.Hex;
928
928
  s: viem.Hex;
929
929
  typeHex: viem.Hex | null;
@@ -1062,6 +1062,7 @@ declare class WalletManager {
1062
1062
  getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
1063
1063
  getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<{
1064
1064
  chainId?: number | undefined;
1065
+ nonce: number;
1065
1066
  to: viem.Address | null;
1066
1067
  hash: viem.Hash;
1067
1068
  from: viem.Address;
@@ -1069,7 +1070,6 @@ declare class WalletManager {
1069
1070
  yParity?: undefined | undefined;
1070
1071
  gas: bigint;
1071
1072
  input: viem.Hex;
1072
- nonce: number;
1073
1073
  r: viem.Hex;
1074
1074
  s: viem.Hex;
1075
1075
  typeHex: viem.Hex | null;
@@ -1087,6 +1087,7 @@ declare class WalletManager {
1087
1087
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
1088
1088
  } | {
1089
1089
  chainId: number;
1090
+ nonce: number;
1090
1091
  to: viem.Address | null;
1091
1092
  hash: viem.Hash;
1092
1093
  from: viem.Address;
@@ -1094,7 +1095,6 @@ declare class WalletManager {
1094
1095
  yParity: number;
1095
1096
  gas: bigint;
1096
1097
  input: viem.Hex;
1097
- nonce: number;
1098
1098
  r: viem.Hex;
1099
1099
  s: viem.Hex;
1100
1100
  typeHex: viem.Hex | null;
@@ -1112,6 +1112,7 @@ declare class WalletManager {
1112
1112
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
1113
1113
  } | {
1114
1114
  chainId: number;
1115
+ nonce: number;
1115
1116
  to: viem.Address | null;
1116
1117
  hash: viem.Hash;
1117
1118
  from: viem.Address;
@@ -1119,7 +1120,6 @@ declare class WalletManager {
1119
1120
  yParity: number;
1120
1121
  gas: bigint;
1121
1122
  input: viem.Hex;
1122
- nonce: number;
1123
1123
  r: viem.Hex;
1124
1124
  s: viem.Hex;
1125
1125
  typeHex: viem.Hex | null;
@@ -1137,6 +1137,7 @@ declare class WalletManager {
1137
1137
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
1138
1138
  } | {
1139
1139
  chainId: number;
1140
+ nonce: number;
1140
1141
  to: viem.Address | null;
1141
1142
  hash: viem.Hash;
1142
1143
  from: viem.Address;
@@ -1144,7 +1145,6 @@ declare class WalletManager {
1144
1145
  yParity: number;
1145
1146
  gas: bigint;
1146
1147
  input: viem.Hex;
1147
- nonce: number;
1148
1148
  r: viem.Hex;
1149
1149
  s: viem.Hex;
1150
1150
  typeHex: viem.Hex | null;
@@ -1162,6 +1162,7 @@ declare class WalletManager {
1162
1162
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
1163
1163
  } | {
1164
1164
  chainId: number;
1165
+ nonce: number;
1165
1166
  to: viem.Address | null;
1166
1167
  hash: viem.Hash;
1167
1168
  from: viem.Address;
@@ -1169,7 +1170,6 @@ declare class WalletManager {
1169
1170
  yParity: number;
1170
1171
  gas: bigint;
1171
1172
  input: viem.Hex;
1172
- nonce: number;
1173
1173
  r: viem.Hex;
1174
1174
  s: viem.Hex;
1175
1175
  typeHex: viem.Hex | null;
@@ -5018,7 +5018,7 @@ declare class WalletManager {
5018
5018
  authorizationList: viem.TransactionSerializableEIP7702["authorizationList"];
5019
5019
  } ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_12 extends "eip7702" ? viem.TransactionRequestEIP7702 : never : never : never)>> & {
5020
5020
  chainId?: number | undefined;
5021
- }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "fees" | "gas" | "nonce" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
5021
+ }, (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") extends infer T_13 ? T_13 extends (request["parameters"] extends readonly viem.PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "chainId" | "nonce" | "fees" | "gas" | "blobVersionedHashes" | "type") ? T_13 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_13 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T ? { [K in keyof T]: T[K]; } : never>;
5022
5022
  readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
5023
5023
  sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
5024
5024
  sendRawTransactionSync: (args: viem.SendRawTransactionSyncParameters) => Promise<viem.TransactionReceipt>;
@@ -46,16 +46,35 @@ interface Account {
46
46
  publicKey: string;
47
47
  derivationPath: string;
48
48
  }
49
+ type NFTCurrency = 'ETH' | 'USDT';
50
+ interface NFTAttribute {
51
+ trait_type: string;
52
+ value: string | number;
53
+ display_type?: 'boost_number' | 'boost_percentage' | 'number' | 'date';
54
+ max_value?: number;
55
+ }
49
56
  interface NFTMetadata {
50
57
  name: string;
51
58
  description: string;
52
59
  image: string;
53
- attributes?: Array<{
54
- trait_type: string;
55
- value: string | number;
56
- }>;
60
+ externalUrl?: string;
61
+ animationUrl?: string;
62
+ attributes?: NFTAttribute[];
57
63
  royaltyBps: number;
58
64
  }
65
+ interface WatermarkingData {
66
+ contentHash: string;
67
+ userId: string;
68
+ sessionId: string;
69
+ }
70
+ interface CreateVoucherParams {
71
+ metadata: NFTMetadata;
72
+ creatorAddress: string;
73
+ price: string;
74
+ currency: NFTCurrency;
75
+ nonce?: number;
76
+ watermarking?: WatermarkingData;
77
+ }
59
78
  interface LazyMintVoucher {
60
79
  tokenId: string;
61
80
  uri: string;
@@ -63,6 +82,13 @@ interface LazyMintVoucher {
63
82
  royaltyBps: number;
64
83
  deadline: number;
65
84
  signature: string;
85
+ price: string;
86
+ currency: string;
87
+ nonce: number;
88
+ contentHash?: string;
89
+ userId?: string;
90
+ watermarkTimestamp?: number;
91
+ sessionId?: string;
66
92
  }
67
93
  interface NFT {
68
94
  tokenId: string;
@@ -114,6 +140,16 @@ interface TipStats {
114
140
  tipCount: number;
115
141
  uniqueTippers: number;
116
142
  }
143
+ interface Tip {
144
+ tipId: string;
145
+ sender: string;
146
+ recipient: string;
147
+ token: string;
148
+ amount: bigint;
149
+ platformFee: bigint;
150
+ message: string;
151
+ timestamp: number;
152
+ }
117
153
  interface SubscriptionPlan {
118
154
  planId?: string;
119
155
  name: string;
@@ -169,4 +205,4 @@ declare class ZubariError extends Error {
169
205
  constructor(code: ZubariErrorCode, message: string, details?: unknown | undefined);
170
206
  }
171
207
 
172
- export { type Account as A, type BuyParams as B, type EarningsBreakdown as E, type LazyMintVoucher as L, type NetworkType as N, type RevenueSplit as R, type SendParams as S, type TokenBalance as T, type ZubariWalletConfig as Z, type NetworkBalance as a, type TxResult as b, type NFTMetadata as c, type NFT as d, type ListingParams as e, type Listing as f, type TipData as g, type TipResult as h, type TipStats as i, type SubscriptionPlan as j, type Subscription as k, type SwapQuote as l, type SwapParams as m, type ZubariErrorCode as n, ZubariError as o };
208
+ export { type Account as A, type BuyParams as B, type CreateVoucherParams as C, type EarningsBreakdown as E, type LazyMintVoucher as L, type NetworkType as N, type RevenueSplit as R, type SendParams as S, type TokenBalance as T, type WatermarkingData as W, type ZubariWalletConfig as Z, type NetworkBalance as a, type TxResult as b, type NFTCurrency as c, type NFTAttribute as d, type NFTMetadata as e, type NFT as f, type ListingParams as g, type Listing as h, type TipData as i, type TipResult as j, type TipStats as k, type Tip as l, type SubscriptionPlan as m, type Subscription as n, type SwapQuote as o, type SwapParams as p, type ZubariErrorCode as q, ZubariError as r };
@@ -46,16 +46,35 @@ interface Account {
46
46
  publicKey: string;
47
47
  derivationPath: string;
48
48
  }
49
+ type NFTCurrency = 'ETH' | 'USDT';
50
+ interface NFTAttribute {
51
+ trait_type: string;
52
+ value: string | number;
53
+ display_type?: 'boost_number' | 'boost_percentage' | 'number' | 'date';
54
+ max_value?: number;
55
+ }
49
56
  interface NFTMetadata {
50
57
  name: string;
51
58
  description: string;
52
59
  image: string;
53
- attributes?: Array<{
54
- trait_type: string;
55
- value: string | number;
56
- }>;
60
+ externalUrl?: string;
61
+ animationUrl?: string;
62
+ attributes?: NFTAttribute[];
57
63
  royaltyBps: number;
58
64
  }
65
+ interface WatermarkingData {
66
+ contentHash: string;
67
+ userId: string;
68
+ sessionId: string;
69
+ }
70
+ interface CreateVoucherParams {
71
+ metadata: NFTMetadata;
72
+ creatorAddress: string;
73
+ price: string;
74
+ currency: NFTCurrency;
75
+ nonce?: number;
76
+ watermarking?: WatermarkingData;
77
+ }
59
78
  interface LazyMintVoucher {
60
79
  tokenId: string;
61
80
  uri: string;
@@ -63,6 +82,13 @@ interface LazyMintVoucher {
63
82
  royaltyBps: number;
64
83
  deadline: number;
65
84
  signature: string;
85
+ price: string;
86
+ currency: string;
87
+ nonce: number;
88
+ contentHash?: string;
89
+ userId?: string;
90
+ watermarkTimestamp?: number;
91
+ sessionId?: string;
66
92
  }
67
93
  interface NFT {
68
94
  tokenId: string;
@@ -114,6 +140,16 @@ interface TipStats {
114
140
  tipCount: number;
115
141
  uniqueTippers: number;
116
142
  }
143
+ interface Tip {
144
+ tipId: string;
145
+ sender: string;
146
+ recipient: string;
147
+ token: string;
148
+ amount: bigint;
149
+ platformFee: bigint;
150
+ message: string;
151
+ timestamp: number;
152
+ }
117
153
  interface SubscriptionPlan {
118
154
  planId?: string;
119
155
  name: string;
@@ -169,4 +205,4 @@ declare class ZubariError extends Error {
169
205
  constructor(code: ZubariErrorCode, message: string, details?: unknown | undefined);
170
206
  }
171
207
 
172
- export { type Account as A, type BuyParams as B, type EarningsBreakdown as E, type LazyMintVoucher as L, type NetworkType as N, type RevenueSplit as R, type SendParams as S, type TokenBalance as T, type ZubariWalletConfig as Z, type NetworkBalance as a, type TxResult as b, type NFTMetadata as c, type NFT as d, type ListingParams as e, type Listing as f, type TipData as g, type TipResult as h, type TipStats as i, type SubscriptionPlan as j, type Subscription as k, type SwapQuote as l, type SwapParams as m, type ZubariErrorCode as n, ZubariError as o };
208
+ export { type Account as A, type BuyParams as B, type CreateVoucherParams as C, type EarningsBreakdown as E, type LazyMintVoucher as L, type NetworkType as N, type RevenueSplit as R, type SendParams as S, type TokenBalance as T, type WatermarkingData as W, type ZubariWalletConfig as Z, type NetworkBalance as a, type TxResult as b, type NFTCurrency as c, type NFTAttribute as d, type NFTMetadata as e, type NFT as f, type ListingParams as g, type Listing as h, type TipData as i, type TipResult as j, type TipStats as k, type Tip as l, type SubscriptionPlan as m, type Subscription as n, type SwapQuote as o, type SwapParams as p, type ZubariErrorCode as q, ZubariError as r };
@@ -1,5 +1,5 @@
1
- import { Z as ZubariWalletConfig, N as NetworkType, A as Account, a as NetworkBalance, S as SendParams, b as TxResult } from './index-IPLQBUaD.js';
2
- import './WalletManager-CO-urS0z.js';
1
+ import { Z as ZubariWalletConfig, N as NetworkType, A as Account, a as NetworkBalance, S as SendParams, b as TxResult } from './index-Be7yLGAO.js';
2
+ import './WalletManager-DrI2lvOM.js';
3
3
 
4
4
  interface ContractAddresses {
5
5
  registry: string;
@@ -15,6 +15,7 @@ interface ContractAddresses {
15
15
  usdt: string;
16
16
  weth: string;
17
17
  }
18
+ declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
18
19
  declare const ZUBARI_CONTRACTS: Record<'testnet' | 'mainnet', ContractAddresses>;
19
20
  declare const PLATFORM_CONFIG: {
20
21
  readonly tipFeeBps: 300;
@@ -23,6 +24,59 @@ declare const PLATFORM_CONFIG: {
23
24
  readonly voucherValiditySecs: number;
24
25
  readonly swapDeadlineSecs: number;
25
26
  };
27
+ declare const NFT_VOUCHER_DOMAIN: {
28
+ readonly name: "ZubariNFT";
29
+ readonly version: "1";
30
+ };
31
+ declare const NFT_VOUCHER_TYPES: {
32
+ readonly NFTVoucher: readonly [{
33
+ readonly name: "tokenId";
34
+ readonly type: "bytes32";
35
+ }, {
36
+ readonly name: "uri";
37
+ readonly type: "string";
38
+ }, {
39
+ readonly name: "creator";
40
+ readonly type: "address";
41
+ }, {
42
+ readonly name: "royaltyBps";
43
+ readonly type: "uint256";
44
+ }, {
45
+ readonly name: "deadline";
46
+ readonly type: "uint256";
47
+ }, {
48
+ readonly name: "price";
49
+ readonly type: "uint256";
50
+ }, {
51
+ readonly name: "currency";
52
+ readonly type: "address";
53
+ }, {
54
+ readonly name: "nonce";
55
+ readonly type: "uint256";
56
+ }, {
57
+ readonly name: "contentHash";
58
+ readonly type: "bytes32";
59
+ }, {
60
+ readonly name: "userId";
61
+ readonly type: "bytes32";
62
+ }, {
63
+ readonly name: "watermarkTimestamp";
64
+ readonly type: "uint256";
65
+ }, {
66
+ readonly name: "sessionId";
67
+ readonly type: "bytes32";
68
+ }];
69
+ };
70
+ declare const CURRENCY_ADDRESSES: {
71
+ readonly testnet: {
72
+ readonly ETH: "0x0000000000000000000000000000000000000000";
73
+ readonly USDT: "0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0";
74
+ };
75
+ readonly mainnet: {
76
+ readonly ETH: "0x0000000000000000000000000000000000000000";
77
+ readonly USDT: "0xdAC17F958D2ee523a2206206994597C13D831ec7";
78
+ };
79
+ };
26
80
  declare function getContractAddresses(network: 'testnet' | 'mainnet'): ContractAddresses;
27
81
 
28
82
  /**
@@ -133,4 +187,4 @@ declare class ZubariWallet {
133
187
  getContractAddresses(): ContractAddresses;
134
188
  }
135
189
 
136
- export { PLATFORM_CONFIG as P, ZubariWallet as Z, ZUBARI_CONTRACTS as a, getContractAddresses as g };
190
+ export { CURRENCY_ADDRESSES as C, NFT_VOUCHER_DOMAIN as N, PLATFORM_CONFIG as P, ZubariWallet as Z, ZUBARI_CONTRACTS as a, ZERO_ADDRESS as b, NFT_VOUCHER_TYPES as c, getContractAddresses as g };