@dfns/sdk 0.7.1 → 0.7.2

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.
@@ -862,6 +862,9 @@ export type ListAssetWithdrawalNetworksResponse = (({
862
862
  } | {
863
863
  kind: "Coin" | "LockedCoin";
864
864
  coin: string;
865
+ } | {
866
+ kind: "Asset";
867
+ assetId: string;
865
868
  } | {
866
869
  kind: "Sep41";
867
870
  issuer: string;
@@ -160,7 +160,22 @@ export type GenerateSignatureBody = {
160
160
  externalId?: string | undefined;
161
161
  } | {
162
162
  kind: "SignerPayload";
163
- payload: string;
163
+ payload: string | {
164
+ address: string;
165
+ blockHash: string;
166
+ blockNumber: string;
167
+ era: string;
168
+ genesisHash: string;
169
+ metadataHash?: string | undefined;
170
+ method: string;
171
+ mode?: number | undefined;
172
+ nonce: string;
173
+ specVersion: string;
174
+ tip: string;
175
+ transactionVersion: string;
176
+ signedExtensions: string[];
177
+ version: number;
178
+ };
164
179
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
165
180
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
166
181
  externalId?: string | undefined;
@@ -244,7 +259,22 @@ export type GenerateSignatureResponse = {
244
259
  externalId?: string | undefined;
245
260
  } | {
246
261
  kind: "SignerPayload";
247
- payload: string;
262
+ payload: string | {
263
+ address: string;
264
+ blockHash: string;
265
+ blockNumber: string;
266
+ era: string;
267
+ genesisHash: string;
268
+ metadataHash?: string | undefined;
269
+ method: string;
270
+ mode?: number | undefined;
271
+ nonce: string;
272
+ specVersion: string;
273
+ tip: string;
274
+ transactionVersion: string;
275
+ signedExtensions: string[];
276
+ version: number;
277
+ };
248
278
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
249
279
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
250
280
  externalId?: string | undefined;
@@ -382,7 +412,22 @@ export type GetSignatureResponse = {
382
412
  externalId?: string | undefined;
383
413
  } | {
384
414
  kind: "SignerPayload";
385
- payload: string;
415
+ payload: string | {
416
+ address: string;
417
+ blockHash: string;
418
+ blockNumber: string;
419
+ era: string;
420
+ genesisHash: string;
421
+ metadataHash?: string | undefined;
422
+ method: string;
423
+ mode?: number | undefined;
424
+ nonce: string;
425
+ specVersion: string;
426
+ tip: string;
427
+ transactionVersion: string;
428
+ signedExtensions: string[];
429
+ version: number;
430
+ };
386
431
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
387
432
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
388
433
  externalId?: string | undefined;
@@ -548,7 +593,22 @@ export type ListSignaturesResponse = {
548
593
  externalId?: string | undefined;
549
594
  } | {
550
595
  kind: "SignerPayload";
551
- payload: string;
596
+ payload: string | {
597
+ address: string;
598
+ blockHash: string;
599
+ blockNumber: string;
600
+ era: string;
601
+ genesisHash: string;
602
+ metadataHash?: string | undefined;
603
+ method: string;
604
+ mode?: number | undefined;
605
+ nonce: string;
606
+ specVersion: string;
607
+ tip: string;
608
+ transactionVersion: string;
609
+ signedExtensions: string[];
610
+ version: number;
611
+ };
552
612
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
553
613
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
554
614
  externalId?: string | undefined;
@@ -670,7 +670,22 @@ export type CreateApprovalDecisionResponse = {
670
670
  externalId?: string | undefined;
671
671
  } | {
672
672
  kind: "SignerPayload";
673
- payload: string;
673
+ payload: string | {
674
+ address: string;
675
+ blockHash: string;
676
+ blockNumber: string;
677
+ era: string;
678
+ genesisHash: string;
679
+ metadataHash?: string | undefined;
680
+ method: string;
681
+ mode?: number | undefined;
682
+ nonce: string;
683
+ specVersion: string;
684
+ tip: string;
685
+ transactionVersion: string;
686
+ signedExtensions: string[];
687
+ version: number;
688
+ };
674
689
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
675
690
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
676
691
  externalId?: string | undefined;
@@ -809,6 +824,38 @@ export type CreateApprovalDecisionResponse = {
809
824
  optIn?: boolean | undefined;
810
825
  optOut?: boolean | undefined;
811
826
  clawback?: boolean | undefined;
827
+ } | {
828
+ walletId: string;
829
+ direction: "In" | "Out";
830
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
831
+ blockNumber: number;
832
+ txHash: string;
833
+ index?: string | undefined;
834
+ timestamp: string;
835
+ metadata: {
836
+ asset: {
837
+ symbol?: string | undefined;
838
+ decimals?: number | undefined;
839
+ verified?: boolean | undefined;
840
+ quotes?: {
841
+ [x: string]: number;
842
+ } | undefined;
843
+ };
844
+ fee?: {
845
+ symbol?: string | undefined;
846
+ decimals?: number | undefined;
847
+ verified?: boolean | undefined;
848
+ quotes?: {
849
+ [x: string]: number;
850
+ } | undefined;
851
+ } | undefined;
852
+ };
853
+ kind: "AssetTransfer";
854
+ assetId: string;
855
+ from?: string | undefined;
856
+ to?: string | undefined;
857
+ value: string;
858
+ fee?: string | undefined;
812
859
  } | {
813
860
  walletId: string;
814
861
  direction: "In" | "Out";
@@ -2350,7 +2397,22 @@ export type GetApprovalResponse = {
2350
2397
  externalId?: string | undefined;
2351
2398
  } | {
2352
2399
  kind: "SignerPayload";
2353
- payload: string;
2400
+ payload: string | {
2401
+ address: string;
2402
+ blockHash: string;
2403
+ blockNumber: string;
2404
+ era: string;
2405
+ genesisHash: string;
2406
+ metadataHash?: string | undefined;
2407
+ method: string;
2408
+ mode?: number | undefined;
2409
+ nonce: string;
2410
+ specVersion: string;
2411
+ tip: string;
2412
+ transactionVersion: string;
2413
+ signedExtensions: string[];
2414
+ version: number;
2415
+ };
2354
2416
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
2355
2417
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
2356
2418
  externalId?: string | undefined;
@@ -2489,6 +2551,38 @@ export type GetApprovalResponse = {
2489
2551
  optIn?: boolean | undefined;
2490
2552
  optOut?: boolean | undefined;
2491
2553
  clawback?: boolean | undefined;
2554
+ } | {
2555
+ walletId: string;
2556
+ direction: "In" | "Out";
2557
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
2558
+ blockNumber: number;
2559
+ txHash: string;
2560
+ index?: string | undefined;
2561
+ timestamp: string;
2562
+ metadata: {
2563
+ asset: {
2564
+ symbol?: string | undefined;
2565
+ decimals?: number | undefined;
2566
+ verified?: boolean | undefined;
2567
+ quotes?: {
2568
+ [x: string]: number;
2569
+ } | undefined;
2570
+ };
2571
+ fee?: {
2572
+ symbol?: string | undefined;
2573
+ decimals?: number | undefined;
2574
+ verified?: boolean | undefined;
2575
+ quotes?: {
2576
+ [x: string]: number;
2577
+ } | undefined;
2578
+ } | undefined;
2579
+ };
2580
+ kind: "AssetTransfer";
2581
+ assetId: string;
2582
+ from?: string | undefined;
2583
+ to?: string | undefined;
2584
+ value: string;
2585
+ fee?: string | undefined;
2492
2586
  } | {
2493
2587
  walletId: string;
2494
2588
  direction: "In" | "Out";
@@ -4070,7 +4164,22 @@ export type ListApprovalsResponse = {
4070
4164
  externalId?: string | undefined;
4071
4165
  } | {
4072
4166
  kind: "SignerPayload";
4073
- payload: string;
4167
+ payload: string | {
4168
+ address: string;
4169
+ blockHash: string;
4170
+ blockNumber: string;
4171
+ era: string;
4172
+ genesisHash: string;
4173
+ metadataHash?: string | undefined;
4174
+ method: string;
4175
+ mode?: number | undefined;
4176
+ nonce: string;
4177
+ specVersion: string;
4178
+ tip: string;
4179
+ transactionVersion: string;
4180
+ signedExtensions: string[];
4181
+ version: number;
4182
+ };
4074
4183
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
4075
4184
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
4076
4185
  externalId?: string | undefined;
@@ -4209,6 +4318,38 @@ export type ListApprovalsResponse = {
4209
4318
  optIn?: boolean | undefined;
4210
4319
  optOut?: boolean | undefined;
4211
4320
  clawback?: boolean | undefined;
4321
+ } | {
4322
+ walletId: string;
4323
+ direction: "In" | "Out";
4324
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
4325
+ blockNumber: number;
4326
+ txHash: string;
4327
+ index?: string | undefined;
4328
+ timestamp: string;
4329
+ metadata: {
4330
+ asset: {
4331
+ symbol?: string | undefined;
4332
+ decimals?: number | undefined;
4333
+ verified?: boolean | undefined;
4334
+ quotes?: {
4335
+ [x: string]: number;
4336
+ } | undefined;
4337
+ };
4338
+ fee?: {
4339
+ symbol?: string | undefined;
4340
+ decimals?: number | undefined;
4341
+ verified?: boolean | undefined;
4342
+ quotes?: {
4343
+ [x: string]: number;
4344
+ } | undefined;
4345
+ } | undefined;
4346
+ };
4347
+ kind: "AssetTransfer";
4348
+ assetId: string;
4349
+ from?: string | undefined;
4350
+ to?: string | undefined;
4351
+ value: string;
4352
+ fee?: string | undefined;
4212
4353
  } | {
4213
4354
  walletId: string;
4214
4355
  direction: "In" | "Out";
@@ -268,7 +268,22 @@ export type GenerateSignatureBody = {
268
268
  externalId?: string | undefined;
269
269
  } | {
270
270
  kind: "SignerPayload";
271
- payload: string;
271
+ payload: string | {
272
+ address: string;
273
+ blockHash: string;
274
+ blockNumber: string;
275
+ era: string;
276
+ genesisHash: string;
277
+ metadataHash?: string | undefined;
278
+ method: string;
279
+ mode?: number | undefined;
280
+ nonce: string;
281
+ specVersion: string;
282
+ tip: string;
283
+ transactionVersion: string;
284
+ signedExtensions: string[];
285
+ version: number;
286
+ };
272
287
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
273
288
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
274
289
  externalId?: string | undefined;
@@ -352,7 +367,22 @@ export type GenerateSignatureResponse = {
352
367
  externalId?: string | undefined;
353
368
  } | {
354
369
  kind: "SignerPayload";
355
- payload: string;
370
+ payload: string | {
371
+ address: string;
372
+ blockHash: string;
373
+ blockNumber: string;
374
+ era: string;
375
+ genesisHash: string;
376
+ metadataHash?: string | undefined;
377
+ method: string;
378
+ mode?: number | undefined;
379
+ nonce: string;
380
+ specVersion: string;
381
+ tip: string;
382
+ transactionVersion: string;
383
+ signedExtensions: string[];
384
+ version: number;
385
+ };
356
386
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
357
387
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
358
388
  externalId?: string | undefined;
@@ -466,7 +496,22 @@ export type GetSignatureResponse = {
466
496
  externalId?: string | undefined;
467
497
  } | {
468
498
  kind: "SignerPayload";
469
- payload: string;
499
+ payload: string | {
500
+ address: string;
501
+ blockHash: string;
502
+ blockNumber: string;
503
+ era: string;
504
+ genesisHash: string;
505
+ metadataHash?: string | undefined;
506
+ method: string;
507
+ mode?: number | undefined;
508
+ nonce: string;
509
+ specVersion: string;
510
+ tip: string;
511
+ transactionVersion: string;
512
+ signedExtensions: string[];
513
+ version: number;
514
+ };
470
515
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
471
516
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
472
517
  externalId?: string | undefined;
@@ -913,6 +958,9 @@ export type GetWalletAssetsResponse = {
913
958
  } | {
914
959
  kind: "Coin" | "LockedCoin";
915
960
  coin: string;
961
+ } | {
962
+ kind: "Asset";
963
+ assetId: string;
916
964
  } | {
917
965
  kind: "Sep41";
918
966
  issuer: string;
@@ -949,7 +997,7 @@ export type GetWalletHistoryQuery = {
949
997
  limit?: string | undefined;
950
998
  paginationToken?: string | undefined;
951
999
  direction?: ("In" | "Out") | undefined;
952
- kind?: ("NativeTransfer" | "Aip21Transfer" | "AsaTransfer" | "CoinTransfer" | "Erc20Transfer" | "Erc721Transfer" | "LockedCoinTransfer" | "Tep74Transfer" | "Trc10Transfer" | "Trc20Transfer" | "Trc721Transfer" | "Sep41Transfer" | "SplTransfer" | "Spl2022Transfer" | "UtxoTransfer") | undefined;
1000
+ kind?: ("NativeTransfer" | "Aip21Transfer" | "AsaTransfer" | "AssetTransfer" | "CoinTransfer" | "Erc20Transfer" | "Erc721Transfer" | "LockedCoinTransfer" | "Tep74Transfer" | "Trc10Transfer" | "Trc20Transfer" | "Trc721Transfer" | "Sep41Transfer" | "SplTransfer" | "Spl2022Transfer" | "UtxoTransfer") | undefined;
953
1001
  contract?: string | undefined;
954
1002
  };
955
1003
  export type GetWalletHistoryResponse = {
@@ -1062,6 +1110,38 @@ export type GetWalletHistoryResponse = {
1062
1110
  optIn?: boolean | undefined;
1063
1111
  optOut?: boolean | undefined;
1064
1112
  clawback?: boolean | undefined;
1113
+ } | {
1114
+ walletId: string;
1115
+ direction: "In" | "Out";
1116
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
1117
+ blockNumber: number;
1118
+ txHash: string;
1119
+ index?: string | undefined;
1120
+ timestamp: string;
1121
+ metadata: {
1122
+ asset: {
1123
+ symbol?: string | undefined;
1124
+ decimals?: number | undefined;
1125
+ verified?: boolean | undefined;
1126
+ quotes?: {
1127
+ [x: string]: number;
1128
+ } | undefined;
1129
+ };
1130
+ fee?: {
1131
+ symbol?: string | undefined;
1132
+ decimals?: number | undefined;
1133
+ verified?: boolean | undefined;
1134
+ quotes?: {
1135
+ [x: string]: number;
1136
+ } | undefined;
1137
+ } | undefined;
1138
+ };
1139
+ kind: "AssetTransfer";
1140
+ assetId: string;
1141
+ from?: string | undefined;
1142
+ to?: string | undefined;
1143
+ value: string;
1144
+ fee?: string | undefined;
1065
1145
  } | {
1066
1146
  walletId: string;
1067
1147
  direction: "In" | "Out";
@@ -1575,7 +1655,22 @@ export type ListSignaturesResponse = {
1575
1655
  externalId?: string | undefined;
1576
1656
  } | {
1577
1657
  kind: "SignerPayload";
1578
- payload: string;
1658
+ payload: string | {
1659
+ address: string;
1660
+ blockHash: string;
1661
+ blockNumber: string;
1662
+ era: string;
1663
+ genesisHash: string;
1664
+ metadataHash?: string | undefined;
1665
+ method: string;
1666
+ mode?: number | undefined;
1667
+ nonce: string;
1668
+ specVersion: string;
1669
+ tip: string;
1670
+ transactionVersion: string;
1671
+ signedExtensions: string[];
1672
+ version: number;
1673
+ };
1579
1674
  network?: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | undefined;
1580
1675
  blockchainKind?: ("Algorand" | "Aptos" | "Bitcoin" | "BitcoinCash" | "Canton" | "Cardano" | "Cosmos" | "Evm" | "Icp" | "Iota" | "Kaspa" | "Polymesh" | "Solana" | "Stellar" | "Substrate" | "Sui" | "Tezos" | "Ton" | "Tron" | "Xrpl") | undefined;
1581
1676
  externalId?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "dependencies": {
5
5
  "buffer": "6.0.3",
6
6
  "cross-fetch": "3.1.6"