@coinbase/cdp-core 0.0.104 → 0.0.105
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/esm/index.native.js +29 -29
- package/dist/esm/index.native108.js +2 -2
- package/dist/esm/index.native11.js +1 -1
- package/dist/esm/index.native112.js +3 -3
- package/dist/esm/index.native123.js +12 -12
- package/dist/esm/index.native124.js +371 -84
- package/dist/esm/index.native125.js +26 -374
- package/dist/esm/index.native126.js +26 -26
- package/dist/esm/index.native127.js +88 -27
- package/dist/esm/index.native128.js +1 -1
- package/dist/esm/index.native130.js +4 -4
- package/dist/esm/index.native131.js +1 -1
- package/dist/esm/index.native136.js +1 -1
- package/dist/esm/index.native137.js +1 -1
- package/dist/esm/index.native138.js +1 -1
- package/dist/esm/index.native140.js +35 -13
- package/dist/esm/index.native141.js +67 -11
- package/dist/esm/index.native142.js +13 -54
- package/dist/esm/index.native143.js +27 -10
- package/dist/esm/index.native144.js +8 -2
- package/dist/esm/index.native145.js +4 -45
- package/dist/esm/index.native146.js +27 -13
- package/dist/esm/index.native147.js +9 -35
- package/dist/esm/index.native148.js +7 -67
- package/dist/esm/index.native149.js +72 -6
- package/dist/esm/index.native150.js +10 -10
- package/dist/esm/index.native151.js +3 -7
- package/dist/esm/index.native152.js +14 -3
- package/dist/esm/index.native153.js +4 -27
- package/dist/esm/index.native154.js +13 -8
- package/dist/esm/index.native155.js +19 -7
- package/dist/esm/index.native156.js +48 -67
- package/dist/esm/index.native157.js +16 -26
- package/dist/esm/index.native158.js +23 -3
- package/dist/esm/index.native159.js +8 -14
- package/dist/esm/index.native160.js +41 -4
- package/dist/esm/index.native161.js +7 -13
- package/dist/esm/index.native162.js +11 -10
- package/dist/esm/index.native163.js +52 -58
- package/dist/esm/index.native164.js +10 -17
- package/dist/esm/index.native165.js +2 -24
- package/dist/esm/index.native166.js +45 -9
- package/dist/esm/index.native167.js +13 -41
- package/dist/esm/index.native168.js +12 -7
- package/dist/esm/index.native169.js +11 -20
- package/dist/esm/index.native170.js +1 -1
- package/dist/esm/index.native171.js +14 -2
- package/dist/esm/index.native172.js +56 -2
- package/dist/esm/index.native173.js +6 -13
- package/dist/esm/index.native174.js +20 -54
- package/dist/esm/index.native175.js +17 -6
- package/dist/esm/index.native176.js +44 -20
- package/dist/esm/index.native177.js +3 -17
- package/dist/esm/index.native178.js +3 -45
- package/dist/esm/index.native179.js +34 -3
- package/dist/esm/index.native180.js +12 -3
- package/dist/esm/index.native181.js +4 -34
- package/dist/esm/index.native182.js +27 -11
- package/dist/esm/index.native183.js +6 -4
- package/dist/esm/index.native184.js +29 -25
- package/dist/esm/index.native185.js +12 -6
- package/dist/esm/index.native186.js +54 -31
- package/dist/esm/index.native187.js +41 -11
- package/dist/esm/index.native188.js +126 -54
- package/dist/esm/index.native189.js +100 -38
- package/dist/esm/index.native190.js +6 -127
- package/dist/esm/index.native191.js +3 -105
- package/dist/esm/index.native192.js +78 -6
- package/dist/esm/index.native193.js +2 -3
- package/dist/esm/index.native194.js +2 -79
- package/dist/esm/index.native195.js +38 -2
- package/dist/esm/index.native196.js +7 -2
- package/dist/esm/index.native197.js +29 -32
- package/dist/esm/index.native198.js +14 -6
- package/dist/esm/index.native199.js +30 -30
- package/dist/esm/index.native200.js +18 -14
- package/dist/esm/index.native201.js +8 -34
- package/dist/esm/index.native202.js +9 -17
- package/dist/esm/index.native203.js +11 -8
- package/dist/esm/index.native204.js +13 -10
- package/dist/esm/index.native205.js +5 -11
- package/dist/esm/index.native206.js +5 -14
- package/dist/esm/index.native207.js +10 -5
- package/dist/esm/index.native208.js +2 -5
- package/dist/esm/index.native209.js +2 -11
- package/dist/esm/index.native210.js +20 -38
- package/dist/esm/index.native211.js +10 -2
- package/dist/esm/index.native212.js +20 -70
- package/dist/esm/index.native213.js +93 -34
- package/dist/esm/index.native214.js +20 -14
- package/dist/esm/index.native215.js +118 -8
- package/dist/esm/index.native216.js +104 -2
- package/dist/esm/index.native217.js +71 -361
- package/dist/esm/index.native218.js +78 -826
- package/dist/esm/index.native219.js +2 -104
- package/dist/esm/index.native220.js +107 -77
- package/dist/esm/index.native221.js +2 -79
- package/dist/esm/index.native222.js +38 -20
- package/dist/esm/index.native223.js +2 -10
- package/dist/esm/index.native224.js +70 -20
- package/dist/esm/index.native225.js +34 -93
- package/dist/esm/index.native226.js +14 -20
- package/dist/esm/index.native227.js +8 -118
- package/dist/esm/index.native228.js +2 -2
- package/dist/esm/index.native229.js +363 -103
- package/dist/esm/index.native230.js +827 -2
- package/dist/esm/index.native231.js +1 -1
- package/dist/esm/index.native234.js +5 -5
- package/dist/esm/index.native235.js +2 -2
- package/dist/esm/index.native236.js +47 -2
- package/dist/esm/index.native237.js +2 -2
- package/dist/esm/index.native238.js +2 -2
- package/dist/esm/index.native239.js +2 -47
- package/dist/esm/index.native247.js +1 -1
- package/dist/esm/index.native251.js +1 -1
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native60.js +12 -12
- package/dist/esm/index.native61.js +7 -7
- package/dist/esm/index.native62.js +9 -9
- package/dist/esm/index.native82.js +1 -1
- package/dist/esm/index.web.js +26 -26
- package/dist/esm/index.web102.js +3 -3
- package/dist/esm/index.web109.js +2 -2
- package/dist/esm/index.web120.js +12 -12
- package/dist/esm/index.web121.js +3 -3
- package/dist/esm/index.web122.js +31 -2
- package/dist/esm/index.web123.js +28 -65
- package/dist/esm/index.web124.js +2 -367
- package/dist/esm/index.web125.js +63 -14
- package/dist/esm/index.web126.js +360 -18
- package/dist/esm/index.web127.js +13 -47
- package/dist/esm/index.web128.js +22 -28
- package/dist/esm/index.web129.js +50 -28
- package/dist/esm/index.web132.js +1 -1
- package/dist/esm/index.web133.js +1 -1
- package/dist/esm/index.web134.js +1 -1
- package/dist/esm/index.web135.js +1 -1
- package/dist/esm/index.web136.js +2 -2
- package/dist/esm/index.web137.js +1 -1
- package/dist/esm/index.web142.js +2 -2
- package/dist/esm/index.web149.js +1 -1
- package/dist/esm/index.web161.js +1 -1
- package/dist/esm/index.web165.js +14 -2
- package/dist/esm/index.web166.js +56 -2
- package/dist/esm/index.web167.js +6 -13
- package/dist/esm/index.web168.js +20 -54
- package/dist/esm/index.web169.js +17 -6
- package/dist/esm/index.web170.js +44 -20
- package/dist/esm/index.web171.js +3 -17
- package/dist/esm/index.web172.js +3 -45
- package/dist/esm/index.web173.js +34 -3
- package/dist/esm/index.web174.js +12 -3
- package/dist/esm/index.web175.js +4 -34
- package/dist/esm/index.web176.js +27 -11
- package/dist/esm/index.web177.js +6 -4
- package/dist/esm/index.web178.js +29 -25
- package/dist/esm/index.web179.js +12 -6
- package/dist/esm/index.web180.js +54 -31
- package/dist/esm/index.web181.js +41 -11
- package/dist/esm/index.web182.js +126 -54
- package/dist/esm/index.web183.js +100 -38
- package/dist/esm/index.web184.js +6 -127
- package/dist/esm/index.web185.js +3 -105
- package/dist/esm/index.web186.js +78 -6
- package/dist/esm/index.web187.js +2 -3
- package/dist/esm/index.web188.js +2 -79
- package/dist/esm/index.web189.js +38 -2
- package/dist/esm/index.web190.js +7 -2
- package/dist/esm/index.web191.js +29 -32
- package/dist/esm/index.web192.js +14 -6
- package/dist/esm/index.web193.js +30 -30
- package/dist/esm/index.web194.js +18 -14
- package/dist/esm/index.web195.js +8 -34
- package/dist/esm/index.web196.js +9 -17
- package/dist/esm/index.web197.js +11 -8
- package/dist/esm/index.web198.js +13 -10
- package/dist/esm/index.web199.js +5 -11
- package/dist/esm/index.web200.js +5 -14
- package/dist/esm/index.web201.js +10 -5
- package/dist/esm/index.web202.js +2 -5
- package/dist/esm/index.web203.js +2 -11
- package/dist/esm/index.web204.js +109 -2
- package/dist/esm/index.web205.js +2 -109
- package/dist/esm/index.web206.js +2 -2
- package/dist/esm/index.web214.js +1 -1
- package/dist/esm/index.web216.js +38 -7
- package/dist/esm/index.web218.js +67 -366
- package/dist/esm/index.web219.js +34 -826
- package/dist/esm/index.web220.js +14 -38
- package/dist/esm/index.web221.js +8 -2
- package/dist/esm/index.web222.js +2 -70
- package/dist/esm/index.web223.js +364 -30
- package/dist/esm/index.web224.js +826 -14
- package/dist/esm/index.web225.js +1 -1
- package/dist/esm/index.web228.js +32 -3
- package/dist/esm/index.web229.js +6 -46
- package/dist/esm/index.web230.js +44 -30
- package/dist/esm/index.web231.js +3 -6
- package/dist/esm/index.web233.js +1 -1
- package/dist/esm/index.web235.js +1 -1
- package/dist/esm/index.web239.js +1 -1
- package/dist/esm/index.web244.js +14 -78
- package/dist/esm/index.web245.js +78 -14
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web57.js +12 -12
- package/dist/esm/index.web58.js +7 -7
- package/dist/esm/index.web59.js +9 -9
- package/dist/esm/index.web8.js +1 -1
- package/dist/native/index.native.js +29 -29
- package/dist/native/index.native108.js +2 -2
- package/dist/native/index.native11.js +1 -1
- package/dist/native/index.native112.js +3 -3
- package/dist/native/index.native123.js +12 -12
- package/dist/native/index.native124.js +371 -84
- package/dist/native/index.native125.js +26 -374
- package/dist/native/index.native126.js +26 -26
- package/dist/native/index.native127.js +88 -27
- package/dist/native/index.native128.js +1 -1
- package/dist/native/index.native130.js +4 -4
- package/dist/native/index.native131.js +1 -1
- package/dist/native/index.native136.js +1 -1
- package/dist/native/index.native137.js +1 -1
- package/dist/native/index.native138.js +1 -1
- package/dist/native/index.native140.js +35 -13
- package/dist/native/index.native141.js +67 -11
- package/dist/native/index.native142.js +13 -54
- package/dist/native/index.native143.js +27 -10
- package/dist/native/index.native144.js +8 -2
- package/dist/native/index.native145.js +4 -45
- package/dist/native/index.native146.js +27 -13
- package/dist/native/index.native147.js +9 -35
- package/dist/native/index.native148.js +7 -67
- package/dist/native/index.native149.js +72 -6
- package/dist/native/index.native150.js +10 -10
- package/dist/native/index.native151.js +3 -7
- package/dist/native/index.native152.js +14 -3
- package/dist/native/index.native153.js +4 -27
- package/dist/native/index.native154.js +13 -8
- package/dist/native/index.native155.js +19 -7
- package/dist/native/index.native156.js +48 -67
- package/dist/native/index.native157.js +16 -26
- package/dist/native/index.native158.js +23 -3
- package/dist/native/index.native159.js +8 -14
- package/dist/native/index.native160.js +41 -4
- package/dist/native/index.native161.js +7 -13
- package/dist/native/index.native162.js +11 -10
- package/dist/native/index.native163.js +52 -58
- package/dist/native/index.native164.js +10 -17
- package/dist/native/index.native165.js +2 -24
- package/dist/native/index.native166.js +45 -9
- package/dist/native/index.native167.js +13 -41
- package/dist/native/index.native168.js +12 -7
- package/dist/native/index.native169.js +11 -20
- package/dist/native/index.native170.js +1 -1
- package/dist/native/index.native171.js +14 -2
- package/dist/native/index.native172.js +56 -2
- package/dist/native/index.native173.js +6 -13
- package/dist/native/index.native174.js +20 -54
- package/dist/native/index.native175.js +17 -6
- package/dist/native/index.native176.js +44 -20
- package/dist/native/index.native177.js +3 -17
- package/dist/native/index.native178.js +3 -45
- package/dist/native/index.native179.js +34 -3
- package/dist/native/index.native180.js +12 -3
- package/dist/native/index.native181.js +4 -34
- package/dist/native/index.native182.js +27 -11
- package/dist/native/index.native183.js +6 -4
- package/dist/native/index.native184.js +29 -25
- package/dist/native/index.native185.js +12 -6
- package/dist/native/index.native186.js +54 -31
- package/dist/native/index.native187.js +41 -11
- package/dist/native/index.native188.js +126 -54
- package/dist/native/index.native189.js +100 -38
- package/dist/native/index.native190.js +6 -127
- package/dist/native/index.native191.js +3 -105
- package/dist/native/index.native192.js +78 -6
- package/dist/native/index.native193.js +2 -3
- package/dist/native/index.native194.js +2 -79
- package/dist/native/index.native195.js +38 -2
- package/dist/native/index.native196.js +7 -2
- package/dist/native/index.native197.js +29 -32
- package/dist/native/index.native198.js +14 -6
- package/dist/native/index.native199.js +30 -30
- package/dist/native/index.native200.js +18 -14
- package/dist/native/index.native201.js +8 -34
- package/dist/native/index.native202.js +9 -17
- package/dist/native/index.native203.js +11 -8
- package/dist/native/index.native204.js +13 -10
- package/dist/native/index.native205.js +5 -11
- package/dist/native/index.native206.js +5 -14
- package/dist/native/index.native207.js +10 -5
- package/dist/native/index.native208.js +2 -5
- package/dist/native/index.native209.js +2 -11
- package/dist/native/index.native210.js +20 -38
- package/dist/native/index.native211.js +10 -2
- package/dist/native/index.native212.js +20 -70
- package/dist/native/index.native213.js +93 -34
- package/dist/native/index.native214.js +20 -14
- package/dist/native/index.native215.js +118 -8
- package/dist/native/index.native216.js +104 -2
- package/dist/native/index.native217.js +71 -361
- package/dist/native/index.native218.js +78 -826
- package/dist/native/index.native219.js +2 -104
- package/dist/native/index.native220.js +107 -77
- package/dist/native/index.native221.js +2 -79
- package/dist/native/index.native222.js +38 -20
- package/dist/native/index.native223.js +2 -10
- package/dist/native/index.native224.js +70 -20
- package/dist/native/index.native225.js +34 -93
- package/dist/native/index.native226.js +14 -20
- package/dist/native/index.native227.js +8 -118
- package/dist/native/index.native228.js +2 -2
- package/dist/native/index.native229.js +363 -103
- package/dist/native/index.native230.js +827 -2
- package/dist/native/index.native231.js +1 -1
- package/dist/native/index.native234.js +5 -5
- package/dist/native/index.native235.js +2 -2
- package/dist/native/index.native236.js +47 -2
- package/dist/native/index.native237.js +2 -2
- package/dist/native/index.native238.js +2 -2
- package/dist/native/index.native239.js +2 -47
- package/dist/native/index.native247.js +1 -1
- package/dist/native/index.native251.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native60.js +12 -12
- package/dist/native/index.native61.js +7 -7
- package/dist/native/index.native62.js +9 -9
- package/dist/native/index.native82.js +1 -1
- package/dist/native-types/actions/{createDelegationForAddress.d.ts → createDelegationForAccount.d.ts} +4 -4
- package/dist/{types/actions/getDelegationForAddress.d.ts → native-types/actions/getDelegationForAccount.d.ts} +5 -5
- package/dist/{web-types/actions/revokeDelegationForAddress.d.ts → native-types/actions/revokeDelegationForAccount.d.ts} +4 -4
- package/dist/native-types/index.d.ts +3 -3
- package/dist/native-types/index.native.d.ts +3 -3
- package/dist/native-types/index.web.d.ts +3 -3
- package/dist/native-types/version.d.ts +1 -1
- package/dist/{web-types/actions/createDelegationForAddress.d.ts → types/actions/createDelegationForAccount.d.ts} +4 -4
- package/dist/{native-types/actions/getDelegationForAddress.d.ts → types/actions/getDelegationForAccount.d.ts} +5 -5
- package/dist/{native-types/actions/revokeDelegationForAddress.d.ts → types/actions/revokeDelegationForAccount.d.ts} +4 -4
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.native.d.ts +3 -3
- package/dist/types/index.web.d.ts +3 -3
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web.js +26 -26
- package/dist/web/index.web102.js +3 -3
- package/dist/web/index.web109.js +2 -2
- package/dist/web/index.web120.js +12 -12
- package/dist/web/index.web121.js +3 -3
- package/dist/web/index.web122.js +31 -2
- package/dist/web/index.web123.js +28 -65
- package/dist/web/index.web124.js +2 -367
- package/dist/web/index.web125.js +63 -14
- package/dist/web/index.web126.js +360 -18
- package/dist/web/index.web127.js +13 -47
- package/dist/web/index.web128.js +22 -28
- package/dist/web/index.web129.js +50 -28
- package/dist/web/index.web132.js +1 -1
- package/dist/web/index.web133.js +1 -1
- package/dist/web/index.web134.js +1 -1
- package/dist/web/index.web135.js +1 -1
- package/dist/web/index.web136.js +2 -2
- package/dist/web/index.web137.js +1 -1
- package/dist/web/index.web142.js +2 -2
- package/dist/web/index.web149.js +1 -1
- package/dist/web/index.web161.js +1 -1
- package/dist/web/index.web165.js +14 -2
- package/dist/web/index.web166.js +56 -2
- package/dist/web/index.web167.js +6 -13
- package/dist/web/index.web168.js +20 -54
- package/dist/web/index.web169.js +17 -6
- package/dist/web/index.web170.js +44 -20
- package/dist/web/index.web171.js +3 -17
- package/dist/web/index.web172.js +3 -45
- package/dist/web/index.web173.js +34 -3
- package/dist/web/index.web174.js +12 -3
- package/dist/web/index.web175.js +4 -34
- package/dist/web/index.web176.js +27 -11
- package/dist/web/index.web177.js +6 -4
- package/dist/web/index.web178.js +29 -25
- package/dist/web/index.web179.js +12 -6
- package/dist/web/index.web180.js +54 -31
- package/dist/web/index.web181.js +41 -11
- package/dist/web/index.web182.js +126 -54
- package/dist/web/index.web183.js +100 -38
- package/dist/web/index.web184.js +6 -127
- package/dist/web/index.web185.js +3 -105
- package/dist/web/index.web186.js +78 -6
- package/dist/web/index.web187.js +2 -3
- package/dist/web/index.web188.js +2 -79
- package/dist/web/index.web189.js +38 -2
- package/dist/web/index.web190.js +7 -2
- package/dist/web/index.web191.js +29 -32
- package/dist/web/index.web192.js +14 -6
- package/dist/web/index.web193.js +30 -30
- package/dist/web/index.web194.js +18 -14
- package/dist/web/index.web195.js +8 -34
- package/dist/web/index.web196.js +9 -17
- package/dist/web/index.web197.js +11 -8
- package/dist/web/index.web198.js +13 -10
- package/dist/web/index.web199.js +5 -11
- package/dist/web/index.web200.js +5 -14
- package/dist/web/index.web201.js +10 -5
- package/dist/web/index.web202.js +2 -5
- package/dist/web/index.web203.js +2 -11
- package/dist/web/index.web204.js +109 -2
- package/dist/web/index.web205.js +2 -109
- package/dist/web/index.web206.js +2 -2
- package/dist/web/index.web214.js +1 -1
- package/dist/web/index.web216.js +38 -7
- package/dist/web/index.web218.js +67 -366
- package/dist/web/index.web219.js +34 -826
- package/dist/web/index.web220.js +14 -38
- package/dist/web/index.web221.js +8 -2
- package/dist/web/index.web222.js +2 -70
- package/dist/web/index.web223.js +364 -30
- package/dist/web/index.web224.js +826 -14
- package/dist/web/index.web225.js +1 -1
- package/dist/web/index.web228.js +32 -3
- package/dist/web/index.web229.js +6 -46
- package/dist/web/index.web230.js +44 -30
- package/dist/web/index.web231.js +3 -6
- package/dist/web/index.web233.js +1 -1
- package/dist/web/index.web235.js +1 -1
- package/dist/web/index.web239.js +1 -1
- package/dist/web/index.web244.js +14 -78
- package/dist/web/index.web245.js +78 -14
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web57.js +12 -12
- package/dist/web/index.web58.js +7 -7
- package/dist/web/index.web59.js +9 -9
- package/dist/web/index.web8.js +1 -1
- package/dist/{types/actions/createDelegationForAddress.d.ts → web-types/actions/createDelegationForAccount.d.ts} +4 -4
- package/dist/web-types/actions/{getDelegationForAddress.d.ts → getDelegationForAccount.d.ts} +5 -5
- package/dist/{types/actions/revokeDelegationForAddress.d.ts → web-types/actions/revokeDelegationForAccount.d.ts} +4 -4
- package/dist/web-types/index.d.ts +3 -3
- package/dist/web-types/index.native.d.ts +3 -3
- package/dist/web-types/index.web.d.ts +3 -3
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/web/index.web225.js
CHANGED
package/dist/web/index.web228.js
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { maxBytesPerTransaction as y, bytesPerBlob as a, fieldElementsPerBlob as f, bytesPerFieldElement as p } from "./index.web243.js";
|
|
2
|
+
import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index.web189.js";
|
|
3
|
+
import { createCursor as B } from "./index.web182.js";
|
|
4
|
+
import { size as u } from "./index.web175.js";
|
|
5
|
+
import { hexToBytes as x } from "./index.web166.js";
|
|
6
|
+
import { bytesToHex as d } from "./index.web170.js";
|
|
7
|
+
function S(e) {
|
|
8
|
+
const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
|
|
9
|
+
if (!o)
|
|
10
|
+
throw new c();
|
|
11
|
+
if (o > y)
|
|
12
|
+
throw new h({
|
|
13
|
+
maxSize: y,
|
|
14
|
+
size: o
|
|
15
|
+
});
|
|
16
|
+
const s = [];
|
|
17
|
+
let n = !0, r = 0;
|
|
18
|
+
for (; n; ) {
|
|
19
|
+
const t = B(new Uint8Array(a));
|
|
20
|
+
let l = 0;
|
|
21
|
+
for (; l < f; ) {
|
|
22
|
+
const b = i.slice(r, r + (p - 1));
|
|
23
|
+
if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
|
|
24
|
+
t.pushByte(128), n = !1;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
l++, r += 31;
|
|
28
|
+
}
|
|
29
|
+
s.push(t);
|
|
30
|
+
}
|
|
31
|
+
return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
|
|
3
32
|
}
|
|
4
33
|
export {
|
|
5
|
-
|
|
34
|
+
S as toBlobs
|
|
6
35
|
};
|
package/dist/web/index.web229.js
CHANGED
|
@@ -1,49 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
e ? r ? n = (1n << BigInt(e) * 8n - 1n) - 1n : n = 2n ** (BigInt(e) * 8n) - 1n : typeof t == "number" && (n = BigInt(Number.MAX_SAFE_INTEGER));
|
|
7
|
-
const u = typeof n == "bigint" && r ? -n - 1n : 0;
|
|
8
|
-
if (n && o > n || o < u) {
|
|
9
|
-
const s = typeof t == "bigint" ? "n" : "";
|
|
10
|
-
throw new d({
|
|
11
|
-
max: n ? `${n}${s}` : void 0,
|
|
12
|
-
min: `${u}${s}`,
|
|
13
|
-
signed: r,
|
|
14
|
-
size: e,
|
|
15
|
-
value: `${t}${s}`
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const a = `0x${(r && o < 0 ? (1n << BigInt(e * 8)) + BigInt(o) : o).toString(16)}`;
|
|
19
|
-
return e ? c(a, e) : a;
|
|
20
|
-
}
|
|
21
|
-
function c(t, i) {
|
|
22
|
-
return g(t, { dir: "left", size: i });
|
|
23
|
-
}
|
|
24
|
-
class d extends f {
|
|
25
|
-
constructor({ max: i, min: r, signed: e, size: o, value: n }) {
|
|
26
|
-
super(`Number \`${n}\` is not in safe${o ? ` ${o * 8}-bit` : ""}${e ? " signed" : " unsigned"} integer range ${i ? `(\`${r}\` to \`${i}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
|
|
27
|
-
enumerable: !0,
|
|
28
|
-
configurable: !0,
|
|
29
|
-
writable: !0,
|
|
30
|
-
value: "Hex.IntegerOutOfRangeError"
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
class p extends f {
|
|
35
|
-
constructor({ size: i, targetSize: r, type: e }) {
|
|
36
|
-
super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (\`${i}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
37
|
-
enumerable: !0,
|
|
38
|
-
configurable: !0,
|
|
39
|
-
writable: !0,
|
|
40
|
-
value: "Hex.SizeExceedsPaddingSizeError"
|
|
41
|
-
});
|
|
42
|
-
}
|
|
1
|
+
import { bytesToHex as i } from "./index.web170.js";
|
|
2
|
+
import { sha256 as m } from "./index.web184.js";
|
|
3
|
+
function f(t) {
|
|
4
|
+
const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
|
|
5
|
+
return o.set([s], 0), n === "bytes" ? o : i(o);
|
|
43
6
|
}
|
|
44
7
|
export {
|
|
45
|
-
|
|
46
|
-
p as SizeExceedsPaddingSizeError,
|
|
47
|
-
m as fromNumber,
|
|
48
|
-
c as padLeft
|
|
8
|
+
f as commitmentToVersionedHash
|
|
49
9
|
};
|
package/dist/web/index.web230.js
CHANGED
|
@@ -1,35 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
throw new
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
size:
|
|
1
|
+
import { BaseError as f } from "./index.web125.js";
|
|
2
|
+
import { pad as g } from "./index.web244.js";
|
|
3
|
+
function m(t, i = {}) {
|
|
4
|
+
const { signed: r, size: e } = i, o = BigInt(t);
|
|
5
|
+
let n;
|
|
6
|
+
e ? r ? n = (1n << BigInt(e) * 8n - 1n) - 1n : n = 2n ** (BigInt(e) * 8n) - 1n : typeof t == "number" && (n = BigInt(Number.MAX_SAFE_INTEGER));
|
|
7
|
+
const u = typeof n == "bigint" && r ? -n - 1n : 0;
|
|
8
|
+
if (n && o > n || o < u) {
|
|
9
|
+
const s = typeof t == "bigint" ? "n" : "";
|
|
10
|
+
throw new d({
|
|
11
|
+
max: n ? `${n}${s}` : void 0,
|
|
12
|
+
min: `${u}${s}`,
|
|
13
|
+
signed: r,
|
|
14
|
+
size: e,
|
|
15
|
+
value: `${t}${s}`
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const a = `0x${(r && o < 0 ? (1n << BigInt(e * 8)) + BigInt(o) : o).toString(16)}`;
|
|
19
|
+
return e ? c(a, e) : a;
|
|
20
|
+
}
|
|
21
|
+
function c(t, i) {
|
|
22
|
+
return g(t, { dir: "left", size: i });
|
|
23
|
+
}
|
|
24
|
+
class d extends f {
|
|
25
|
+
constructor({ max: i, min: r, signed: e, size: o, value: n }) {
|
|
26
|
+
super(`Number \`${n}\` is not in safe${o ? ` ${o * 8}-bit` : ""}${e ? " signed" : " unsigned"} integer range ${i ? `(\`${r}\` to \`${i}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0,
|
|
30
|
+
value: "Hex.IntegerOutOfRangeError"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
class p extends f {
|
|
35
|
+
constructor({ size: i, targetSize: r, type: e }) {
|
|
36
|
+
super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (\`${i}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0,
|
|
40
|
+
value: "Hex.SizeExceedsPaddingSizeError"
|
|
15
41
|
});
|
|
16
|
-
const s = [];
|
|
17
|
-
let n = !0, r = 0;
|
|
18
|
-
for (; n; ) {
|
|
19
|
-
const t = B(new Uint8Array(a));
|
|
20
|
-
let l = 0;
|
|
21
|
-
for (; l < f; ) {
|
|
22
|
-
const b = i.slice(r, r + (p - 1));
|
|
23
|
-
if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
|
|
24
|
-
t.pushByte(128), n = !1;
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
l++, r += 31;
|
|
28
|
-
}
|
|
29
|
-
s.push(t);
|
|
30
42
|
}
|
|
31
|
-
return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
|
|
32
43
|
}
|
|
33
44
|
export {
|
|
34
|
-
|
|
45
|
+
d as IntegerOutOfRangeError,
|
|
46
|
+
p as SizeExceedsPaddingSizeError,
|
|
47
|
+
m as fromNumber,
|
|
48
|
+
c as padLeft
|
|
35
49
|
};
|
package/dist/web/index.web231.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function f(t) {
|
|
4
|
-
const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
|
|
5
|
-
return o.set([s], 0), n === "bytes" ? o : i(o);
|
|
1
|
+
function e(t) {
|
|
2
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
3
|
}
|
|
7
4
|
export {
|
|
8
|
-
|
|
5
|
+
e as getDefaultExportFromCjs
|
|
9
6
|
};
|
package/dist/web/index.web233.js
CHANGED
package/dist/web/index.web235.js
CHANGED
package/dist/web/index.web239.js
CHANGED
package/dist/web/index.web244.js
CHANGED
|
@@ -1,81 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
case "ES384":
|
|
15
|
-
return "P-384";
|
|
16
|
-
case "ES512":
|
|
17
|
-
return "P-521";
|
|
18
|
-
default:
|
|
19
|
-
throw new Error("unreachable");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function i(t, e) {
|
|
23
|
-
if (!t.usages.includes(e))
|
|
24
|
-
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${e}.`);
|
|
25
|
-
}
|
|
26
|
-
function u(t, e, n) {
|
|
27
|
-
switch (e) {
|
|
28
|
-
case "HS256":
|
|
29
|
-
case "HS384":
|
|
30
|
-
case "HS512": {
|
|
31
|
-
if (!o(t.algorithm, "HMAC"))
|
|
32
|
-
throw r("HMAC");
|
|
33
|
-
const a = parseInt(e.slice(2), 10);
|
|
34
|
-
if (c(t.algorithm.hash) !== a)
|
|
35
|
-
throw r(`SHA-${a}`, "algorithm.hash");
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
case "RS256":
|
|
39
|
-
case "RS384":
|
|
40
|
-
case "RS512": {
|
|
41
|
-
if (!o(t.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
42
|
-
throw r("RSASSA-PKCS1-v1_5");
|
|
43
|
-
const a = parseInt(e.slice(2), 10);
|
|
44
|
-
if (c(t.algorithm.hash) !== a)
|
|
45
|
-
throw r(`SHA-${a}`, "algorithm.hash");
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
case "PS256":
|
|
49
|
-
case "PS384":
|
|
50
|
-
case "PS512": {
|
|
51
|
-
if (!o(t.algorithm, "RSA-PSS"))
|
|
52
|
-
throw r("RSA-PSS");
|
|
53
|
-
const a = parseInt(e.slice(2), 10);
|
|
54
|
-
if (c(t.algorithm.hash) !== a)
|
|
55
|
-
throw r(`SHA-${a}`, "algorithm.hash");
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
case "Ed25519":
|
|
59
|
-
case "EdDSA": {
|
|
60
|
-
if (!o(t.algorithm, "Ed25519"))
|
|
61
|
-
throw r("Ed25519");
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
case "ES256":
|
|
65
|
-
case "ES384":
|
|
66
|
-
case "ES512": {
|
|
67
|
-
if (!o(t.algorithm, "ECDSA"))
|
|
68
|
-
throw r("ECDSA");
|
|
69
|
-
const a = h(e);
|
|
70
|
-
if (t.algorithm.namedCurve !== a)
|
|
71
|
-
throw r(a, "algorithm.namedCurve");
|
|
72
|
-
break;
|
|
73
|
-
}
|
|
74
|
-
default:
|
|
75
|
-
throw new TypeError("CryptoKey does not support this operation");
|
|
76
|
-
}
|
|
77
|
-
i(t, n);
|
|
1
|
+
import { SizeExceedsPaddingSizeError as a } from "./index.web230.js";
|
|
2
|
+
function o(r, i = {}) {
|
|
3
|
+
const { dir: n, size: e = 32 } = i;
|
|
4
|
+
if (e === 0)
|
|
5
|
+
return r;
|
|
6
|
+
const t = r.replace("0x", "");
|
|
7
|
+
if (t.length > e * 2)
|
|
8
|
+
throw new a({
|
|
9
|
+
size: Math.ceil(t.length / 2),
|
|
10
|
+
targetSize: e,
|
|
11
|
+
type: "Hex"
|
|
12
|
+
});
|
|
13
|
+
return `0x${t[n === "right" ? "padEnd" : "padStart"](e * 2, "0")}`;
|
|
78
14
|
}
|
|
79
15
|
export {
|
|
80
|
-
|
|
16
|
+
o as pad
|
|
81
17
|
};
|
package/dist/web/index.web245.js
CHANGED
|
@@ -1,17 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
function r(t, e = "algorithm.name") {
|
|
2
|
+
return new TypeError(`CryptoKey does not support this operation, its ${e} must be ${t}`);
|
|
3
|
+
}
|
|
4
|
+
function o(t, e) {
|
|
5
|
+
return t.name === e;
|
|
6
|
+
}
|
|
7
|
+
function c(t) {
|
|
8
|
+
return parseInt(t.name.slice(4), 10);
|
|
9
|
+
}
|
|
10
|
+
function h(t) {
|
|
11
|
+
switch (t) {
|
|
12
|
+
case "ES256":
|
|
13
|
+
return "P-256";
|
|
14
|
+
case "ES384":
|
|
15
|
+
return "P-384";
|
|
16
|
+
case "ES512":
|
|
17
|
+
return "P-521";
|
|
18
|
+
default:
|
|
19
|
+
throw new Error("unreachable");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function i(t, e) {
|
|
23
|
+
if (!t.usages.includes(e))
|
|
24
|
+
throw new TypeError(`CryptoKey does not support this operation, its usages must include ${e}.`);
|
|
25
|
+
}
|
|
26
|
+
function u(t, e, n) {
|
|
27
|
+
switch (e) {
|
|
28
|
+
case "HS256":
|
|
29
|
+
case "HS384":
|
|
30
|
+
case "HS512": {
|
|
31
|
+
if (!o(t.algorithm, "HMAC"))
|
|
32
|
+
throw r("HMAC");
|
|
33
|
+
const a = parseInt(e.slice(2), 10);
|
|
34
|
+
if (c(t.algorithm.hash) !== a)
|
|
35
|
+
throw r(`SHA-${a}`, "algorithm.hash");
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
case "RS256":
|
|
39
|
+
case "RS384":
|
|
40
|
+
case "RS512": {
|
|
41
|
+
if (!o(t.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
42
|
+
throw r("RSASSA-PKCS1-v1_5");
|
|
43
|
+
const a = parseInt(e.slice(2), 10);
|
|
44
|
+
if (c(t.algorithm.hash) !== a)
|
|
45
|
+
throw r(`SHA-${a}`, "algorithm.hash");
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case "PS256":
|
|
49
|
+
case "PS384":
|
|
50
|
+
case "PS512": {
|
|
51
|
+
if (!o(t.algorithm, "RSA-PSS"))
|
|
52
|
+
throw r("RSA-PSS");
|
|
53
|
+
const a = parseInt(e.slice(2), 10);
|
|
54
|
+
if (c(t.algorithm.hash) !== a)
|
|
55
|
+
throw r(`SHA-${a}`, "algorithm.hash");
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
case "Ed25519":
|
|
59
|
+
case "EdDSA": {
|
|
60
|
+
if (!o(t.algorithm, "Ed25519"))
|
|
61
|
+
throw r("Ed25519");
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
case "ES256":
|
|
65
|
+
case "ES384":
|
|
66
|
+
case "ES512": {
|
|
67
|
+
if (!o(t.algorithm, "ECDSA"))
|
|
68
|
+
throw r("ECDSA");
|
|
69
|
+
const a = h(e);
|
|
70
|
+
if (t.algorithm.namedCurve !== a)
|
|
71
|
+
throw r(a, "algorithm.namedCurve");
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
default:
|
|
75
|
+
throw new TypeError("CryptoKey does not support this operation");
|
|
76
|
+
}
|
|
77
|
+
i(t, n);
|
|
14
78
|
}
|
|
15
79
|
export {
|
|
16
|
-
|
|
80
|
+
u as checkSigCryptoKey
|
|
17
81
|
};
|
package/dist/web/index.web3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./index.
|
|
1
|
+
import { __require as r } from "./index.web221.js";
|
|
2
2
|
r();
|
package/dist/web/index.web57.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { createDelegationForEndUserAccount as o } from "@coinbase/cdp-api-client";
|
|
2
|
-
import { Analytics as
|
|
2
|
+
import { Analytics as n } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as
|
|
4
|
+
import { withAuth as s } from "./index.web92.js";
|
|
5
5
|
import { InputValidationError as i } from "./index.web83.js";
|
|
6
6
|
import { withMfa as m } from "./index.web78.js";
|
|
7
|
-
import { assertUserOwnsAddress as
|
|
8
|
-
import { getCoreAuthManager as
|
|
7
|
+
import { assertUserOwnsAddress as c } from "./index.web97.js";
|
|
8
|
+
import { getCoreAuthManager as d, getConfig as f } from "./index.web69.js";
|
|
9
9
|
async function D(e) {
|
|
10
|
-
const
|
|
11
|
-
if (isNaN(
|
|
10
|
+
const t = new Date(e.expiresAt);
|
|
11
|
+
if (isNaN(t.getTime()))
|
|
12
12
|
throw new i("expiresAt must be a valid ISO 8601 date string");
|
|
13
|
-
if (
|
|
13
|
+
if (t.getTime() <= Date.now())
|
|
14
14
|
throw new i("expiresAt must be in the future");
|
|
15
|
-
return
|
|
16
|
-
() =>
|
|
17
|
-
|
|
15
|
+
return n.sendActionCallEvent({ name: "create_delegation_for_account" }), m(
|
|
16
|
+
() => s(e, d(), async ({ user: r, walletSecretId: a }) => (c(r, e.address), await o(
|
|
17
|
+
r.userId,
|
|
18
18
|
e.address,
|
|
19
19
|
{ walletSecretId: a, expiresAt: e.expiresAt },
|
|
20
|
-
{ projectID:
|
|
20
|
+
{ projectID: f().projectId }
|
|
21
21
|
)))
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
|
-
D as
|
|
25
|
+
D as createDelegationForAccount
|
|
26
26
|
};
|
package/dist/web/index.web58.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getDelegationForEndUserAccount as
|
|
1
|
+
import { getDelegationForEndUserAccount as e } from "@coinbase/cdp-api-client";
|
|
2
2
|
import { Analytics as o } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
4
|
import { withAuth as n } from "./index.web92.js";
|
|
5
|
-
import { assertUserOwnsAddress as
|
|
6
|
-
import { getCoreAuthManager as
|
|
7
|
-
async function
|
|
8
|
-
return o.sendActionCallEvent({ name: "
|
|
9
|
-
projectID:
|
|
5
|
+
import { assertUserOwnsAddress as a } from "./index.web97.js";
|
|
6
|
+
import { getCoreAuthManager as i, getConfig as s } from "./index.web69.js";
|
|
7
|
+
async function u(t) {
|
|
8
|
+
return o.sendActionCallEvent({ name: "get_delegation_for_account" }), n({}, i(), async ({ user: r }) => (a(r, t.address), await e(r.userId, t.address, {
|
|
9
|
+
projectID: s().projectId
|
|
10
10
|
})));
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
u as getDelegationForAccount
|
|
14
14
|
};
|
package/dist/web/index.web59.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { revokeDelegationForEndUserAccount as t } from "@coinbase/cdp-api-client";
|
|
2
|
-
import { Analytics as
|
|
2
|
+
import { Analytics as n } from "./index.web2.js";
|
|
3
3
|
import "./index.web3.js";
|
|
4
|
-
import { withAuth as
|
|
5
|
-
import { withMfa as
|
|
6
|
-
import { assertUserOwnsAddress as
|
|
7
|
-
import { getCoreAuthManager as
|
|
4
|
+
import { withAuth as a } from "./index.web92.js";
|
|
5
|
+
import { withMfa as i } from "./index.web78.js";
|
|
6
|
+
import { assertUserOwnsAddress as m } from "./index.web97.js";
|
|
7
|
+
import { getCoreAuthManager as c, getConfig as s } from "./index.web69.js";
|
|
8
8
|
async function h(r) {
|
|
9
|
-
return
|
|
10
|
-
() =>
|
|
9
|
+
return n.sendActionCallEvent({ name: "revoke_delegation_for_account" }), i(
|
|
10
|
+
() => a(r, c(), async ({ user: e, walletSecretId: o }) => (m(e, r.address), await t(
|
|
11
11
|
e.userId,
|
|
12
12
|
r.address,
|
|
13
13
|
{ walletSecretId: o },
|
|
14
|
-
{ projectID:
|
|
14
|
+
{ projectID: s().projectId }
|
|
15
15
|
)))
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
h as
|
|
19
|
+
h as revokeDelegationForAccount
|
|
20
20
|
};
|
package/dist/web/index.web8.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EvmAddress, SolanaAddress } from '../types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Options for creating an account-scoped delegation for a specific end user account
|
|
3
|
+
* Options for creating an account-scoped delegation for a specific end user account.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type CreateDelegationForAccountOptions = {
|
|
6
6
|
/** The blockchain address to scope the delegation to. Must belong to the current user. */
|
|
7
7
|
address: EvmAddress | SolanaAddress;
|
|
8
8
|
/** The date until which the delegation is valid (ISO 8601 string). */
|
|
@@ -11,7 +11,7 @@ export type CreateDelegationForAddressOptions = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Result of creating an account-scoped delegation.
|
|
13
13
|
*/
|
|
14
|
-
export type
|
|
14
|
+
export type CreateDelegationForAccountResult = {
|
|
15
15
|
/** The date until which the delegation is valid. */
|
|
16
16
|
expiresAt: string;
|
|
17
17
|
};
|
|
@@ -26,4 +26,4 @@ export type CreateDelegationForAddressResult = {
|
|
|
26
26
|
* @throws Error if the user is not signed in.
|
|
27
27
|
* @throws Error if the address does not belong to the current user.
|
|
28
28
|
*/
|
|
29
|
-
export declare function
|
|
29
|
+
export declare function createDelegationForAccount(options: CreateDelegationForAccountOptions): Promise<CreateDelegationForAccountResult>;
|
package/dist/web-types/actions/{getDelegationForAddress.d.ts → getDelegationForAccount.d.ts}
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { GetDelegationForEndUserAccount200 } from '@coinbase/cdp-api-client';
|
|
2
2
|
import { EvmAddress, SolanaAddress } from '../types.js';
|
|
3
3
|
/**
|
|
4
|
-
* Options for getting the account-scoped delegation for an end user account
|
|
4
|
+
* Options for getting the account-scoped delegation for an end user account.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type GetDelegationForAccountOptions = {
|
|
7
7
|
/** The blockchain address to get the delegation for. Must belong to the current user. */
|
|
8
8
|
address: EvmAddress | SolanaAddress;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Result of getting the account-scoped delegation for an end user account.
|
|
12
12
|
*/
|
|
13
|
-
export type
|
|
13
|
+
export type GetDelegationForAccountResult = GetDelegationForEndUserAccount200;
|
|
14
14
|
/**
|
|
15
15
|
* Gets the active account-scoped delegation for the specified end user account address, if one exists.
|
|
16
16
|
* This operation can be performed by the end user themselves or by a developer using their API key.
|
|
17
17
|
*
|
|
18
|
-
* @param options - Options specifying the address to query.
|
|
18
|
+
* @param options - Options specifying the account address to query.
|
|
19
19
|
* @returns A promise that resolves to the delegation details including its expiry.
|
|
20
20
|
* @throws Error if the user is not signed in.
|
|
21
21
|
* @throws Error if the address does not belong to the current user.
|
|
22
22
|
*/
|
|
23
|
-
export declare function
|
|
23
|
+
export declare function getDelegationForAccount(options: GetDelegationForAccountOptions): Promise<GetDelegationForAccountResult>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EvmAddress, SolanaAddress } from '../types.js';
|
|
2
2
|
/**
|
|
3
|
-
* Options for revoking the account-scoped delegation for a specific end user account
|
|
3
|
+
* Options for revoking the account-scoped delegation for a specific end user account.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type RevokeDelegationForAccountOptions = {
|
|
6
6
|
/** The blockchain address whose delegation should be revoked. Must belong to the current user. */
|
|
7
7
|
address: EvmAddress | SolanaAddress;
|
|
8
8
|
};
|
|
@@ -11,9 +11,9 @@ export type RevokeDelegationForAddressOptions = {
|
|
|
11
11
|
* Other account-scoped delegations for the same user are unaffected.
|
|
12
12
|
* This operation can be performed by the end user themselves or by a developer using their API key.
|
|
13
13
|
*
|
|
14
|
-
* @param options - Options specifying the address whose delegation to revoke.
|
|
14
|
+
* @param options - Options specifying the account address whose delegation to revoke.
|
|
15
15
|
* @returns A promise that resolves when the delegation has been revoked.
|
|
16
16
|
* @throws Error if the user is not signed in.
|
|
17
17
|
* @throws Error if the address does not belong to the current user.
|
|
18
18
|
*/
|
|
19
|
-
export declare function
|
|
19
|
+
export declare function revokeDelegationForAccount(options: RevokeDelegationForAccountOptions): Promise<void>;
|
|
@@ -21,9 +21,9 @@ export { waitForEvmEip7702Delegation, type WaitForEvmEip7702DelegationOptions, }
|
|
|
21
21
|
export { createDelegation, type CreateDelegationOptions, type CreateDelegationResult, } from './actions/createDelegation.js';
|
|
22
22
|
export { getDelegation, type GetDelegationResult } from './actions/getDelegation.js';
|
|
23
23
|
export { revokeDelegation, type RevokeDelegationOptions } from './actions/revokeDelegation.js';
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
24
|
+
export { createDelegationForAccount, type CreateDelegationForAccountOptions, type CreateDelegationForAccountResult, } from './actions/createDelegationForAccount.js';
|
|
25
|
+
export { getDelegationForAccount, type GetDelegationForAccountOptions, type GetDelegationForAccountResult, } from './actions/getDelegationForAccount.js';
|
|
26
|
+
export { revokeDelegationForAccount, type RevokeDelegationForAccountOptions, } from './actions/revokeDelegationForAccount.js';
|
|
27
27
|
export { createSolanaAccount, type CreateSolanaAccountOptions, } from './actions/createSolanaAccount.js';
|
|
28
28
|
export { sendEvmEoaUsdc, type SendEvmEoaUsdcOptions, type SendEvmEoaUsdcResult, } from './actions/sendEvmEoaUsdc.js';
|
|
29
29
|
export { sendEvmSmartAccountUsdc, type SendEvmSmartAccountUsdcOptions, type SendEvmSmartAccountUsdcResult, } from './actions/sendEvmSmartAccountUsdc.js';
|
|
@@ -25,9 +25,9 @@ export { waitForEvmEip7702Delegation, type WaitForEvmEip7702DelegationOptions, }
|
|
|
25
25
|
export { createDelegation, type CreateDelegationOptions, type CreateDelegationResult, } from './actions/createDelegation.js';
|
|
26
26
|
export { getDelegation, type GetDelegationResult } from './actions/getDelegation.js';
|
|
27
27
|
export { revokeDelegation, type RevokeDelegationOptions } from './actions/revokeDelegation.js';
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
28
|
+
export { createDelegationForAccount, type CreateDelegationForAccountOptions, type CreateDelegationForAccountResult, } from './actions/createDelegationForAccount.js';
|
|
29
|
+
export { getDelegationForAccount, type GetDelegationForAccountOptions, type GetDelegationForAccountResult, } from './actions/getDelegationForAccount.js';
|
|
30
|
+
export { revokeDelegationForAccount, type RevokeDelegationForAccountOptions, } from './actions/revokeDelegationForAccount.js';
|
|
31
31
|
export { createSolanaAccount } from './actions/createSolanaAccount.js';
|
|
32
32
|
export { sendEvmEoaUsdc, type SendEvmEoaUsdcOptions, type SendEvmEoaUsdcResult, } from './actions/sendEvmEoaUsdc.js';
|
|
33
33
|
export { sendEvmSmartAccountUsdc, type SendEvmSmartAccountUsdcOptions, type SendEvmSmartAccountUsdcResult, } from './actions/sendEvmSmartAccountUsdc.js';
|
|
@@ -25,9 +25,9 @@ export { waitForEvmEip7702Delegation, type WaitForEvmEip7702DelegationOptions, }
|
|
|
25
25
|
export { createDelegation, type CreateDelegationOptions, type CreateDelegationResult, } from './actions/createDelegation.js';
|
|
26
26
|
export { getDelegation, type GetDelegationResult } from './actions/getDelegation.js';
|
|
27
27
|
export { revokeDelegation, type RevokeDelegationOptions } from './actions/revokeDelegation.js';
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
28
|
+
export { createDelegationForAccount, type CreateDelegationForAccountOptions, type CreateDelegationForAccountResult, } from './actions/createDelegationForAccount.js';
|
|
29
|
+
export { getDelegationForAccount, type GetDelegationForAccountOptions, type GetDelegationForAccountResult, } from './actions/getDelegationForAccount.js';
|
|
30
|
+
export { revokeDelegationForAccount, type RevokeDelegationForAccountOptions, } from './actions/revokeDelegationForAccount.js';
|
|
31
31
|
export { createSolanaAccount } from './actions/createSolanaAccount.js';
|
|
32
32
|
export { sendEvmEoaUsdc, type SendEvmEoaUsdcOptions, type SendEvmEoaUsdcResult, } from './actions/sendEvmEoaUsdc.js';
|
|
33
33
|
export { sendEvmSmartAccountUsdc, type SendEvmSmartAccountUsdcOptions, type SendEvmSmartAccountUsdcResult, } from './actions/sendEvmSmartAccountUsdc.js';
|